/* Architectural Studio - Midnight Blue & Amber Spark Theme */

:root {
  --primary-color: #1565C0;
  --secondary-color: #FF6F00;
  --dark-blue: #0D47A1;
  --light-blue: #1976D2;
  --amber-dark: #E65100;
  --amber-light: #FF8F00;
  --text-dark: #263238;
  --text-light: #ECEFF1;
  --bg-light: #F5F5F5;
  --bg-dark: #1A237E;
  --shadow-color: rgba(21, 101, 192, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.5px;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 800;
  color: var(--primary-color) !important;
}

/* Navbar Styling */
.navbar {
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-color) 100%) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background: linear-gradient(135deg, #0a2e63 0%, #0D47A1 100%) !important;
}

.navbar-brand {
  font-size: 1.5rem;
  color: #FFFFFF !important;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  color: var(--secondary-color) !important;
  transform: scale(1.05);
}

.navbar-brand .bi-star-fill {
  color: var(--secondary-color) !important;
  animation: pulse 2s infinite;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600;
  padding: 0.5rem 1.2rem !important;
  margin: 0 0.2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--secondary-color);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 80%;
}

.nav-link:hover,
.nav-link.active {
  color: #FFFFFF !important;
  background: rgba(255, 111, 0, 0.2);
  transform: translateY(-2px);
}

.navbar-toggler {
  border: 2px solid var(--secondary-color) !important;
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 111, 0, 0.3) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FF6F00' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-color) 50%, #0D47A1 100%);
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
}

.hero-overlay {
  background: linear-gradient(135deg, rgba(13, 71, 161, 0.9) 0%, rgba(21, 101, 192, 0.8) 100%);
  z-index: 2;
  top: 0;
  left: 0;
}

.hero-section .container {
  position: relative;
  z-index: 3;
}

.hero-title {
  color: #FFFFFF !important;
  text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease;
  font-weight: 900;
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1.2s ease;
  font-weight: 400;
}

/* Buttons */
.btn {
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s ease;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.cta-primary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--amber-dark) 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 25px rgba(255, 111, 0, 0.4);
  border: 2px solid transparent !important;
}

.cta-primary:hover {
  background: linear-gradient(135deg, var(--amber-dark) 0%, var(--secondary-color) 100%) !important;
  color: #FFFFFF !important;
  transform: translateY(-4px);
  box-shadow: 0 10px 35px rgba(255, 111, 0, 0.6);
}

.cta-secondary {
  background: transparent !important;
  color: #FFFFFF !important;
  border: 3px solid #FFFFFF !important;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.cta-secondary:hover {
  background: #FFFFFF !important;
  color: var(--primary-color) !important;
  border-color: #FFFFFF !important;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  background: transparent !important;
}

.btn-outline-primary:hover {
  background: var(--primary-color) !important;
  color: #FFFFFF !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-3px);
}

.btn-outline-light {
  border: 2px solid #FFFFFF !important;
  color: #FFFFFF !important;
  background: transparent !important;
}

.btn-outline-light:hover {
  background: #FFFFFF !important;
  color: var(--primary-color) !important;
  border-color: #FFFFFF !important;
}

.btn-light {
  background: #FFFFFF !important;
  color: var(--primary-color) !important;
  border: 2px solid #FFFFFF !important;
}

.btn-light:hover {
  background: var(--secondary-color) !important;
  color: #FFFFFF !important;
  border-color: var(--secondary-color) !important;
}

.btn-sm {
  padding: 0.5rem 1.5rem !important;
  font-size: 0.875rem !important;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  color: #FFFFFF !important;
  z-index: 3;
  cursor: pointer;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 1;
  transform: translateY(5px) !important;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* Service Cards */
.service-card {
  transition: all 0.4s ease;
  border: 2px solid transparent;
  background: #FFFFFF !important;
  position: relative;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(21, 101, 192, 0.05) 0%, rgba(255, 111, 0, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 0.375rem;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--shadow-color) !important;
  border-color: var(--primary-color);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--light-blue) 100%);
  color: #FFFFFF !important;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--amber-dark) 100%);
  transform: rotate(10deg) scale(1.1);
}

.service-card .h4 {
  color: var(--primary-color) !important;
  font-weight: 700;
  transition: color 0.3s ease;
}

.service-card:hover .h4 {
  color: var(--secondary-color) !important;
}

.service-card .text-muted {
  color: var(--text-dark) !important;
  opacity: 0.8;
}

.service-card .bi-arrow-right {
  color: var(--secondary-color) !important;
  transition: transform 0.3s ease;
}

.service-card:hover .bi-arrow-right {
  transform: translateX(10px);
}

/* Gallery */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.4s ease;
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(21, 101, 192, 0.7) 0%, rgba(255, 111, 0, 0.7) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gallery-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.15);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  color: #FFFFFF !important;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.gallery-overlay .text-white-50 {
  color: rgba(255, 255, 255, 0.9) !important;
}

.gallery-masonry .gallery-item.tall .gallery-img {
  height: 450px;
}

.gallery-masonry .gallery-item.wide .gallery-img {
  height: 350px;
}

/* Filter Buttons */
.filter-btn {
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  background: #FFFFFF !important;
  padding: 0.6rem 1.8rem !important;
  margin: 0.3rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(21, 101, 192, 0.3);
}

/* Team Cards */
.team-card {
  transition: all 0.4s ease;
  border: none;
  background: #FFFFFF;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(21, 101, 192, 0.2);
}

.team-card img {
  transition: transform 0.5s ease;
}

.team-card:hover img {
  transform: scale(1.1);
}

.team-skills {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--light-blue) 100%);
  color: #FFFFFF !important;
  padding: 1rem;
}

.team-skills .bi-check2 {
  color: var(--secondary-color) !important;
}

/* Timeline Section */
.timeline-section {
  position: relative;
  padding: 4rem 0;
}

.timeline-section::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transform: translateX(-50%);
}

/* Accordion */
.accordion-button {
  background: var(--primary-color) !important;
  color: #FFFFFF !important;
  font-weight: 700;
  border: none !important;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background: var(--secondary-color) !important;
  color: #FFFFFF !important;
}

.accordion-button::after {
  filter: brightness(0) invert(1);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(21, 101, 192, 0.25) !important;
}

.accordion-body {
  background: #F8F9FA;
  border: 2px solid var(--primary-color);
  border-top: none;
}

/* Forms */
.form-control,
.form-select {
  border: 2px solid #E0E0E0 !important;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  background: #FFFFFF !important;
  color: var(--text-dark) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(21, 101, 192, 0.15) !important;
  background: #FFFFFF !important;
}

.form-label {
  font-weight: 600;
  color: var(--primary-color) !important;
  margin-bottom: 0.5rem;
}

.form-check-input:checked {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(21, 101, 192, 0.25) !important;
}

.invalid-feedback {
  color: #DC3545 !important;
  font-weight: 600;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #DC3545 !important;
}

/* Cards */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background: #FFFFFF;
}

.card:hover {
  box-shadow: 0 10px 35px rgba(21, 101, 192, 0.2);
  transform: translateY(-5px);
}

.card-title {
  color: var(--primary-color) !important;
  font-weight: 700;
}

.card-text {
  color: var(--text-dark) !important;
}

/* List Group */
.list-group-item {
  border: 2px solid #E0E0E0;
  border-radius: 10px !important;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  background: #FFFFFF;
  color: var(--text-dark) !important;
}

.list-group-item:hover {
  background: var(--primary-color) !important;
  color: #FFFFFF !important;
  border-color: var(--primary-color) !important;
  transform: translateX(10px);
}

.list-group-item.active {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #FFFFFF !important;
}

/* Table */
.table {
  background: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
}

.table thead {
  background: var(--primary-color) !important;
  color: #FFFFFF !important;
}

.table thead th {
  border: none;
  font-weight: 700;
  color: #FFFFFF !important;
}

.table-hover tbody tr:hover {
  background: rgba(21, 101, 192, 0.1) !important;
  cursor: pointer;
}

/* Alert */
.alert {
  border-radius: 10px;
  border: none;
  font-weight: 600;
}

.alert-success {
  background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%) !important;
  color: #FFFFFF !important;
}

.alert-info {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--light-blue) 100%) !important;
  color: #FFFFFF !important;
}

/* Modal */
.modal-content {
  border-radius: 20px;
  border: none;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--light-blue) 100%);
  color: #FFFFFF !important;
  border: none;
}

.modal-title {
  color: #FFFFFF !important;
  font-weight: 700;
}

.btn-close-white {
  filter: brightness(0) invert(1);
}

.modal-body {
  padding: 2rem;
  background: #F8F9FA;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--dark-blue) 0%, #0a2e63 100%) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

footer h5 {
  color: #FFFFFF !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--secondary-color);
}

footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

footer a:hover {
  color: var(--secondary-color) !important;
  transform: translateX(5px);
}

footer .list-unstyled li {
  margin-bottom: 0.8rem;
}

footer .bi {
  color: var(--secondary-color) !important;
  margin-right: 0.5rem;
}

/* Sections */
section {
  position: relative;
  overflow: hidden;
}

.bg-light {
  background: linear-gradient(135deg, #F5F7FA 0%, #E8EEF4 100%) !important;
}

/* Badges */
.badge {
  background: var(--secondary-color) !important;
  color: #FFFFFF !important;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
}

/* Icon Styling */
.bi {
  vertical-align: middle;
}

.bi-check-circle-fill {
  color: var(--secondary-color) !important;
}

.bi-award-fill,
.bi-star-fill {
  color: var(--secondary-color) !important;
}

/* Shadows */
.shadow-sm {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

.shadow {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg {
  box-shadow: 0 10px 40px rgba(21, 101, 192, 0.15) !important;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease;
}

.slide-in-right {
  animation: slideInRight 0.8s ease;
}

/* Sticky Elements */
.sticky-top {
  top: 80px;
  z-index: 1020;
}

/* Text Colors */
.text-white {
  color: #FFFFFF !important;
}

.text-muted {
  color: #6C757D !important;
}

.text-light {
  color: var(--text-light) !important;
}

.text-success {
  color: #28A745 !important;
}

.text-danger {
  color: #DC3545 !important;
}

/* Background Colors */
.bg-white {
  background: #FFFFFF !important;
}

.bg-dark {
  background: var(--bg-dark) !important;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(13, 71, 161, 0.98);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  }
  
  .nav-link {
    margin: 0.3rem 0;
  }
  
  .hero-section {
    min-height: 100vh;
  }
  
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-5 {
    font-size: 2rem !important;
  }
  
  .lead {
    font-size: 1.1rem !important;
  }
  
  .timeline-section::before {
    left: 30px;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
  }
  
  .btn-lg {
    padding: 0.8rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .gallery-img {
    height: 250px !important;
  }
  
  .gallery-masonry .gallery-item.tall .gallery-img,
  .gallery-masonry .gallery-item.wide .gallery-img {
    height: 250px !important;
  }
}

@media (max-width: 767.98px) {
  .display-2 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.8rem !important;
  }
  
  .display-6 {
    font-size: 1.5rem !important;
  }
  
  section {
    padding: 3rem 0 !important;
  }
  
  .btn-lg {
    padding: 0.7rem 1.5rem !important;
  }
  
  .service-card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .display-2 {
    font-size: 1.75rem !important;
  }
  
  .lead {
    font-size: 1rem !important;
  }
  
  .filter-btn {
    font-size: 0.8rem !important;
    padding: 0.5rem 1rem !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer,
  .scroll-indicator {
    display: none !important;
  }
  
  body {
    color: #000;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .btn,
  .nav-link,
  .card {
    border-width: 3px !important;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  body {
    background: #121212;
    color: #E0E0E0;
  }
  
  .bg-light {
    background: #1E1E1E !important;
  }
  
  .bg-white {
    background: #2C2C2C !important;
  }
  
  .card,
  .service-card {
    background: #2C2C2C !important;
    color: #E0E0E0 !important;
  }
}

/* Utility Classes */
.cursor-pointer {
  cursor: pointer;
}

.overflow-hidden {
  overflow: hidden;
}

.object-fit-cover {
  object-fit: cover;
}

.z-3 {
  z-index: 3;
}

.opacity-25 {
  opacity: 0.25 !important;
}

.opacity-75 {
  opacity: 0.75 !important;
}

.opacity-90 {
  opacity: 0.9 !important;
}

/* Loading Spinner */
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(21, 101, 192, 0.2);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #F5F5F5;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}