:root {
  --bg-color: #f7f6f2; /* Cream/Warm Beige */
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --accent-color: #8c8273; /* Earthy/stone */
  --gold-accent: #c2a878; /* Matte architectural gold */
  
  --font-serif: 'Quattrocento', serif;
  --font-sans: 'Montserrat', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, .logo {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 1.5rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 90%;
  padding: 0.6rem 3%; /* Reduced padding to make it slimmer */
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  border-radius: 0;
  
  /* GLASSMORPHISM (Lumina Style) */
  background: rgba(255, 255, 255, 0.35); /* Consistent White frosted glass */
  backdrop-filter: blur(20px);

  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  border-left: none;
  border-right: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

/* NAVBAR SCROLLED STATE (Light Background) */
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.35); /* Consistent White frosted glass */
  backdrop-filter: blur(20px);

  box-shadow: 0 4px 25px rgba(0,0,0,0.06);
  border-top: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  border-left: none;
  border-right: none;
}

.navbar.scrolled .nav-menu a,
.navbar.scrolled .lang-switch span {
  color: var(--text-dark);
}

.navbar.scrolled .lang-switch {
  border-left-color: var(--gold-accent);
}

.navbar.scrolled .nav-menu a:hover {
  opacity: 0.6;
}



.logo-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  margin-left: -1rem; /* A middle ground for the left shift */
  transition: opacity 0.3s ease;
}

.logo-link:hover {
  opacity: 0.7; /* Match nav buttons fade */
}

/* Make the hover effect much more noticeable when the text is black */
.navbar.scrolled .logo-link:hover {
  opacity: 0.5; 
}

.logo-img {
  height: 45px; /* Reduced slightly */
  width: auto;
  display: block;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* Centra el texto superior con el inferior */
}

.logo-text-img {
  width: 190px; /* Reduced slightly */
  height: auto;
  display: block;
  margin-left: -10px; /* Moved left even closer */
}

.nav-menu {
  display: flex;
  gap: 3rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.nav-menu a:hover {
  opacity: 0.7;
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-left: 1rem;
  border-left: 1px solid var(--gold-accent);
  padding-left: 2rem;
  transition: border-color 0.3s ease;
}

.lang-switch span {
  color: var(--text-light);
  opacity: 0.5;
  transition: color 0.3s ease;
}

/* Dark mode for scrolled navbar (optional JS to add class later, keeping simple for now) */

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translateX(-50%) translateY(-50%) scale(1.05); /* Scaled slightly to hide blur edge bleed */
  object-fit: cover;
}

/* Cinemagraph Video Background with Watermark Hide */
.hero-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* Zoom restaurado a 1.05 (estándar). El video ya no tendrá franjas negras. */
  transform: translateX(-50%) translateY(-50%) scale(1.05); 
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Elegant vignette: dark on the left only to frame the view and make text pop */
  background: linear-gradient(to right, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.25) 38%, rgba(0,0,0,0) 68%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-light);
  width: 100%;
  max-width: none;
  padding: 0 5%;
}

.hero-content h1 {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  margin-bottom: 0;
  letter-spacing: 0.15em;
  font-weight: 300;
  line-height: 1.4;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-welcome {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 500;
  margin-top: 1.5rem;
  margin-bottom: 0;
  letter-spacing: 0.05em;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
}

.btn-frost {
  display: inline-block;
  margin-top: 3.5rem;
  padding: 1.2rem 3.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.35); /* Consistent White frosted glass */
  backdrop-filter: blur(20px);

  border: 1px solid var(--gold-accent);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s ease;
}

.btn-frost:hover {
  background: rgba(212, 175, 55, 0.15); /* Slight gold tint */
  border-color: #fff;
  transform: translateY(-2px);
}

/* Developments Section */
.developments-section {
  padding: 4rem 5% 4rem; /* Adjusted top padding */
  max-width: 1400px;
  margin: 0 auto;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem; /* Reduced bottom margin */
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  letter-spacing: 0.2em;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--accent-color);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.cards-grid {
  display: flex;
  flex-direction: column;
  gap: 5rem; /* Reduced from 8rem to bring projects closer */
  max-width: 1200px;
  margin: 0 auto;
}

.dev-card {
  border: none;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.card-inner {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start; /* Keep text close to the image */
  gap: 8%; /* Fixed, elegant gap */
}

.dev-card:nth-child(even) .card-inner {
  flex-direction: row-reverse;
}

.img-frame {
  overflow: hidden;
  flex: 0 0 40%; /* Images are now much smaller (40%) */
  aspect-ratio: 16 / 10;
  height: auto;
  position: relative;
  z-index: 1;
  border-radius: 4px;
  box-shadow: none;
}

.portrait-card .img-frame {
  flex: 0 0 26%; /* Reduced from 35% to make the overall height and width smaller */
  aspect-ratio: 3 / 4; /* Portrait ratio to show height */
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
  display: block;
}

.portrait-card .img-frame img {
  object-position: 50% 70%; /* Pans the camera down slightly to balance pool and building */
}

.dev-card:hover .img-frame img {
  transform: scale(1.08);
}

/* OVERLAPPING FLOATING CONTENT (LUMINA STYLE) -> NOW CLEAN EDITORIAL (MERCEDES STYLE) */
.card-content-overlay {
  background: transparent;
  padding: 0;
  flex: 0 0 40%; /* Reduced from 50% to equal the image width */
  max-width: 500px; /* Limit the max width so text doesn't stretch infinitely */
  margin: 0;
  position: relative;
  z-index: 2;
  border-radius: 0;
  box-shadow: none;
  text-align: left; /* Always left aligned like Mercedes */
  border: none;
  transition: none; /* NO ANIMATION */
}

.dev-card:nth-child(even) .card-content-overlay {
  margin: 0;
}

/* Removed dev-card:hover .card-content-overlay entirely so text is 100% static */

.img-caption {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted); /* Softer color for category */
  margin-bottom: 0.5rem;
}

.card-main-title {
  font-size: 2.2rem;
  font-weight: 300;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.project-logo {
  max-width: 130px; /* Further reduced for extreme subtlety */
  width: 100%;
  height: auto;
  margin-bottom: 0.5rem; /* Pulled closer so the location caption hugs the logo */
  display: block;
}

.card-subtitle {
  display: block;
  font-size: 0.85rem;
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.card-text {
  font-size: 0.9rem;
  color: #555;
}

.card-action {
  margin-top: 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--gold-accent);
  text-transform: uppercase;
  font-weight: 500;
  display: inline-block;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.card-inner:hover .card-action {
  border-bottom: 1px solid var(--gold-accent);
  opacity: 0.8;
}

/* About Us Section */
.about-section {
  position: relative;
  padding: 10rem 5%;
  color: #ffffff;
  overflow: hidden;
}

.vision-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

.bg-1 {
  background: 
    linear-gradient(to bottom, transparent 50%, #111 100%),
    linear-gradient(to right, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 25%, rgba(0,0,0,0) 45%),
    url('/images/vision-bg2.jpeg');
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-attachment: scroll, scroll, fixed;
  z-index: 1;
}

.bg-2 {
  background: 
    linear-gradient(to bottom, transparent 50%, #111 100%),
    linear-gradient(to right, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 25%, rgba(0,0,0,0) 45%),
    url('/images/vision-bg-20.jpeg');
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-attachment: scroll, scroll, fixed;
  z-index: 2;
  opacity: 0;
}

.bg-3 {
  background: 
    linear-gradient(to bottom, transparent 50%, #111 100%),
    linear-gradient(to right, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 25%, rgba(0,0,0,0) 45%),
    url('/images/cielo-maya/24.webp');
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-attachment: scroll, scroll, fixed;
  z-index: 3;
  opacity: 0;
}

.bg-4 {
  background: 
    linear-gradient(to bottom, transparent 50%, #111 100%),
    linear-gradient(to right, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 25%, rgba(0,0,0,0) 45%),
    url('/images/cielo-maya/4.webp');
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-attachment: scroll, scroll, fixed;
  z-index: 4;
  opacity: 0;
}

.about-container {
  position: relative;
  z-index: 10;
  display: flex;
  max-width: 1200px; 
  margin: 0 auto;
  justify-content: flex-start; /* Push text block to the left */
}

.about-text {
  flex: 0 0 50%; /* Constrain text to the left half of the screen */
  text-align: left; /* Aligned left */
}

.about-text .section-title {
  text-align: left;
  margin-bottom: 2rem;
  color: #ffffff; 
  /* Match hero title typography */
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  letter-spacing: 0.15em;
  font-weight: 300;
  line-height: 1.4;
  text-transform: none;
}

.about-text .brand-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9); /* Lighter text for dark bg */
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.about-image {
  flex: 0 0 40%; /* Made image smaller */
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
  /* Fade effect towards the text (left side) */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 35%);
  mask-image: linear-gradient(to right, transparent 0%, black 35%);
}

/* Contact Section */
.contact-section {
  background-color: #ffffff;
  padding: 8rem 5%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 5%; /* Reduced padding top/bottom */
  background-color: #fff;
}

.contact-split {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  gap: 5rem;
  align-items: center;
}

.contact-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-image img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  object-fit: cover;
}

.contact-form-container {
  flex: 1;
}

.contact-header {
  text-align: left; /* Override center align */
  margin-bottom: 2.5rem;
}

.contact-header .section-title {
  font-size: 2.5rem;
}

/* Contact Form Lumina Style */
.input-group.lumina-style {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
}

.input-group.lumina-style label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--gold-accent);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 400;
  text-align: left;
}

.input-group input,
.luxury-select {
  width: 100%;
  padding: 0.8rem 0;
  border: none;
  border-bottom: 1px solid #ddd;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease;
  background: transparent;
  color: var(--text-dark);
}

.input-group input::placeholder {
  color: #bbb;
  font-weight: 300;
}

.luxury-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  border-radius: 0;
}

.luxury-select option {
  color: var(--text-dark);
  background: #fff;
}

.input-group input:focus,
.luxury-select:focus {
  border-bottom: 1px solid var(--gold-accent);
}

.lumina-btn {
  width: 100%;
  padding: 1.2rem;
  background-color: var(--gold-accent);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.lumina-btn:hover {
  background-color: #a08c5c;
}

.modern-btn {

  width: 100%;
  padding: 1.2rem;
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--text-dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
  margin-top: 1rem;
}

.modal-location {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.modal-counter {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  opacity: 0.6;
}

.modern-btn:hover {
  background: var(--text-dark);
  color: white;
}

/* --- Project Modal Gallery --- */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.project-modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* Translucent so the background is visible */
  backdrop-filter: blur(8px); /* Lighter blur */

}

.modal-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1400px;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Shows full image without cropping */
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 3rem;
  font-weight: 200;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--gold-accent);
}

.modal-controls {
  position: absolute;
  top: 50%;
  left: -2rem;
  right: -2rem;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none; /* Let clicks pass through empty space */
}

.modal-controls button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-light);
  padding: 1.5rem 1rem;
  font-size: 2rem;
  cursor: pointer;
  pointer-events: all; /* Make buttons clickable */
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.modal-controls button:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--gold-accent);
  border-color: var(--gold-accent);
}

.modal-info {
  position: absolute;
  bottom: 2.5rem;
  left: 3rem;
  color: white;
  z-index: 1001;
  text-shadow: 0 4px 10px rgba(0,0,0,0.6); /* Ensures text is readable over any photo */
  pointer-events: none; /* So clicks pass through to the image/background if needed */
}

.modal-info h3 {
  font-family: 'Quattrocento', serif;
  font-size: 2.5rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.2rem;
}

.modal-info p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  opacity: 0.8;
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  background-color: #111; /* Dark sleek background */
  color: white;
  padding: 3rem 5% 1rem 5%; /* Reduced top and bottom padding */
  border-top: none; /* Ensure no top border */
  margin-top: -2px; /* Force overlap to crush any GSAP subpixel gap */
  position: relative;
  z-index: 20; /* Make sure it overlaps the gap */
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 0.5rem; /* Reduced to pull copyright up */
  border-bottom: none; /* Removed white line */
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-brand {
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Keep the block aligned to the left in the grid */
}

/* Create an inner wrapper styling implicitly by grouping logo and text */
.footer-logo-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.5rem; /* Reduced to bring text closer */
}

.footer-logo-img {
  width: 190px; /* Reduced slightly per user request */
  height: auto;
  display: block;
  margin-bottom: 0; /* Removed to pull text up */
}

.brand-desc {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.6;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-col a {
  color: #888;
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 0.5rem; /* Reduced from 2rem to pull copyright up */
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #666;
}

.dlux-credit a {
  color: #d4af37; /* DLUX Gold Color */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.dlux-credit a:hover {
  color: #f1c40f;
}

/* Mobile Navigation & Hamburger */
.nav-reveal {
  display: flex;
  align-items: center;
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1001; /* Above menu */
  margin-left: 1rem;
}

.hamburger-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-light);
  transition: 0.3s ease;
}

.navbar.scrolled .hamburger-btn span {
  background-color: var(--text-dark);
}

@media (max-width: 900px) {
  .cards-grid {
    gap: 3rem; /* Reduced mobile gap */
  }
  .card-inner, .dev-card:nth-child(even) .card-inner {
    flex-direction: column;
    gap: 2rem;
  }
  .img-frame {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .card-content-overlay, .dev-card:nth-child(even) .card-content-overlay {
    flex: 0 0 auto;
    width: 100%;
    margin: 0;
    padding: 0;
  }
}

@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }
  .logo-link {
    margin-left: 0; /* Remove negative margin on mobile so it doesn't touch the edge */
  }
  
  /* On mobile, nav-menu becomes a dropdown/overlay */
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px);

    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
    align-items: center;
    border-radius: 20px;
    margin-top: 10px;
    display: none; /* hidden by default on mobile */
  }

  .navbar.scrolled .nav-menu {
    background: rgba(255, 255, 255, 0.85);
  }

  .navbar.scrolled .nav-menu a {
    color: var(--text-dark);
  }

  /* Hamburger open states */
  .hamburger-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-menu.active {
    display: flex;
    animation: fadeInMenu 0.3s ease forwards;
  }

  @keyframes fadeInMenu {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Responsive layout for Vision and Contact sections */
  .about-container,
  .contact-split {
    flex-direction: column;
    gap: 3rem;
  }

  .about-text {
    padding-right: 0;
    text-align: center;
  }

  .about-text .section-title {
    text-align: center;
  }

  .about-image img,
  .contact-image img {
    width: 100%;
    max-height: 400px;
  }
}

/* ==========================================================================
   SEO & ACCESSIBILITY UTILITIES
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   PREMIUM SUCCESS MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.success-modal {
  background: rgba(26, 26, 26, 0.95);
  border: 1px solid rgba(194, 168, 120, 0.3); /* Subtle gold border */
  padding: 3rem 2.5rem;
  width: 90%;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-light);
  position: relative;
}

.modal-overlay.active .success-modal {
  transform: scale(1) translateY(0);
}

.success-modal h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  letter-spacing: 0.1em;
  color: var(--gold-accent);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.success-modal p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
  opacity: 0.85;
}

.success-modal .close-modal-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  padding: 0.8rem 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.success-modal .close-modal-btn:hover {
  background: var(--text-light);
  color: var(--text-dark);
  border-color: var(--text-light);
}

