/* 
   PACIFIC TOWER — Premium Design System & Styles
   Developer: Chaitanya Developers
   Architectural Storytelling Experience CSS
*/

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- Root Variables (Design System Tokens) --- */
:root {
  /* Color Palette */
  --color-ivory: #F8F5EF;
  --color-gold: #D4AF37;
  --color-gold-hover: #DFBA4B;
  --color-gold-dark: #B38F1E;
  --color-charcoal: #2C3539;
  --color-charcoal-light: #3D4549;
  --color-beige: #F8F5EF;
  --color-beige-dark: #EFEBE0;
  --color-deep-blue: #0F1A2C;
  --color-deep-blue-light: #16253E;
  --color-soft-white: #FFFFFF;
  --color-text-dark: #2C3539;
  --color-text-muted: #5E6977;
  --color-text-light: #E0E5EB;
  
  /* Glassmorphism Layers */
  --glass-bg-light: rgba(248, 245, 239, 0.45);
  --glass-bg-dark: rgba(15, 26, 44, 0.65);
  --glass-border-light: rgba(255, 255, 255, 0.3);
  --glass-border-dark: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 16px 40px rgba(60, 40, 20, 0.04);
  --luxury-shadow: 0 20px 60px rgba(60, 40, 20, 0.08);

  /* Gradients */
  --gradient-sunrise: linear-gradient(180deg, rgba(15, 26, 44, 0.6) 0%, rgba(223, 186, 75, 0.15) 50%, var(--color-ivory) 100%);
  --gradient-sunset: linear-gradient(180deg, rgba(15, 26, 44, 0.95) 0%, rgba(28, 28, 28, 0.85) 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(15, 26, 44, 0.8) 0%, rgba(223, 186, 75, 0.35) 50%, rgba(15, 26, 44, 0.9) 100%);
  --gradient-gold: linear-gradient(135deg, var(--color-gold-hover) 0%, var(--color-gold) 50%, var(--color-gold-dark) 100%);

  /* Typography System (Fluid Typography with clamp) */
  --font-editorial: 'Cormorant Garamond', serif;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;

  /* Font Sizes */
  --fs-h1: clamp(2.5rem, 4.5vw + 1rem, 5rem);
  --fs-h2: clamp(1.6rem, 3vw + 0.5rem, 3rem);
  --fs-h3: clamp(1.2rem, 1.8vw + 0.5rem, 2rem);
  --fs-body: clamp(0.95rem, 0.5vw + 0.8rem, 1.1rem);
  --fs-small: clamp(0.8rem, 0.3vw + 0.7rem, 0.95rem);
  --fs-meta: 0.75rem;

  /* Spacing & Motion Choreography */
  --section-padding: 140px;
  --transition-slow: 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-medium: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  
  --transition-fade: 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-zoom: 15s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-hover: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-reveal: 1s cubic-bezier(0.215, 0.61, 0.355, 1);
  --transition-blur-reveal: 1.4s cubic-bezier(0.19, 1, 0.22, 1);
}

/* --- Base & Reset Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--color-text-dark);
  background-color: var(--color-ivory);
  overflow-x: hidden;
}

body {
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-ivory);
  overflow-x: clip;
  position: relative;
}

/* Atmospheric Grain Layer */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
  opacity: 0.035;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 9999;
}

/* Scroll Rhythm System */
section {
  scroll-margin-top: 120px;
}

/* Lock scroll during loading */
body.loading-active {
  overflow: hidden;
}

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

::-webkit-scrollbar-track {
  background: var(--color-beige);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-dark);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 0.95;
  color: var(--color-deep-blue);
  letter-spacing: -0.03em;
}

p {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--color-text-dark);
  line-height: 1.9;
  max-width: 62ch;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Image Cinematography System */
.story-image-wrap img,
.lifestyle-card img,
.amenity-visual img,
.why-image-panel img,
.developer-visual img,
.plan-img,
.cta-bg img,
.connectivity-map iframe,
.contact-map iframe {
  transition: transform var(--transition-slow), filter var(--transition-medium);
}

.story-image-wrap,
.lifestyle-card,
.amenity-visual,
.why-image-panel,
.developer-visual {
  position: relative;
  overflow: hidden;
  border-radius: 28px !important; /* luxury rounded panels */
  box-shadow: 0 20px 60px rgba(60, 40, 20, 0.08) !important;
}

.story-image-wrap::after,
.lifestyle-card::after,
.amenity-visual::after,
.why-image-panel::after,
.developer-visual::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 26, 44, 0) 50%, rgba(15, 26, 44, 0.15) 100%);
  pointer-events: none;
  z-index: 1;
}

.story-image-wrap:hover img,
.lifestyle-card:hover img,
.amenity-visual:hover img,
.why-image-panel:hover img,
.developer-visual:hover img {
  transform: scale(1.05);
}

/* --- Reusable Components & Utilities --- */

.container {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
}

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

.section-subtitle {
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-gold);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: var(--fs-h2);
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--color-deep-blue);
  margin-bottom: 1.5rem;
}

.section-desc {
  font-size: 1.15rem;
  max-width: 620px;
  line-height: 1.9;
  margin: 0 auto 3rem auto;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--color-text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 3rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-radius: 50px; /* Capsule shape */
  transition: all var(--transition-hover);
  cursor: pointer;
  border: 1px solid transparent;
  gap: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(60, 40, 20, 0.05);
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--color-charcoal);
  border: 1px solid var(--color-gold);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.45), 0 0 15px rgba(212, 175, 55, 0.2);
  background: var(--color-gold-hover);
}

.btn-secondary {
  background: rgba(248, 245, 239, 0.15); /* warm glass */
  color: var(--color-soft-white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
  background: rgba(248, 245, 239, 0.35);
  color: var(--color-soft-white);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.15);
}

.btn-outline {
  background: transparent;
  color: var(--color-deep-blue);
  border: 1px solid var(--color-gold);
}

.btn-outline:hover {
  background: var(--color-gold);
  color: var(--color-charcoal);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.25);
}

.glass-card {
  background: rgba(248, 245, 239, 0.45); 
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(60, 40, 20, 0.08);
  border-radius: 28px;
  color: #2C3539;
  transition: all var(--transition-medium);
}

.glass-card-dark {
  background: rgba(15, 26, 44, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  color: var(--color-soft-white);
  transition: all var(--transition-medium);
}

.pull-quote {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(1.4rem, 2vw + 0.5rem, 2.2rem);
  line-height: 1.6;
  color: var(--color-deep-blue);
  border-left: 2px solid var(--color-gold);
  padding-left: 2.5rem;
  margin: 3.5rem 0;
  position: relative;
  max-width: 62ch;
}

.pull-quote::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 2.5rem;
  width: 80px;
  height: 1px;
  background: var(--color-gold);
}

.vertical-accent {
  position: absolute;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: rgba(212, 175, 55, 0.25);
  top: 25%;
  right: -3rem;
  user-select: none;
  pointer-events: none;
  display: block;
}

.gold-micro-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-gold-dark);
  background: rgba(212, 175, 55, 0.06);
  padding: 0.4rem 1.2rem;
  border-radius: 30px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  display: inline-block;
  margin-bottom: 1.5rem;
}

/* Lazy Load Transition */
img[lazy] {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
img[lazy].loaded {
  opacity: 1;
}

/* --- 1. LOADING EXPERIENCE --- */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-ivory);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s;
}

#loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-branding {
  width: 280px;
  margin-bottom: 2rem;
  opacity: 0;
  transform: scale(0.95);
  animation: loaderReveal 1.8s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.3s;
  position: relative;
}

.loader-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(212,175,55,0.2) 0%, rgba(212,175,55,0) 70%);
  opacity: 0;
  animation: pulseGlow 2.5s ease-in-out infinite alternate;
}

.loader-line {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, rgba(212,175,55,0) 0%, rgba(212,175,55,1) 50%, rgba(212,175,55,0) 100%);
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
}

.loader-line::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--color-soft-white), transparent);
  animation: shine 1.5s ease-in-out infinite;
}

@keyframes loaderReveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes pulseGlow {
  to {
    opacity: 1;
    width: 200px;
    height: 200px;
  }
}
@keyframes shine {
  to {
    left: 100%;
  }
}

/* --- 2. FLOATING NAVBAR --- */
.navbar {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px); /* translated up */
  width: 90%;
  max-width: 1300px;
  height: 90px; /* Increased from 80px for breathing room */
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem; /* Increased padding */
  transition: opacity var(--transition-medium), transform var(--transition-medium), background var(--transition-medium), height var(--transition-medium), top var(--transition-medium);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 26, 44, 0.15); /* Slightly darker backing for transparent overlay contrast */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 45px;
  opacity: 0; /* hidden initially */
  pointer-events: none; /* disable clicks when hidden */
}

/* Navbar Scrolled State */
.navbar.scrolled {
  opacity: 1; /* visible */
  pointer-events: auto; /* restore clicks */
  top: 15px;
  transform: translateX(-50%) translateY(0); /* slide down */
  height: 80px; /* Increased from 70px */
  background: rgba(253, 251, 247, 0.85); /* Thicker glass backing */
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25); /* Subtle gold accent border */
  box-shadow: 0 20px 50px rgba(15, 26, 44, 0.08); /* Premium shadow */
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.navbar-logo {
  height: 52px; /* Increased from 42px */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-medium);
}
.navbar.scrolled .navbar-logo {
  height: 44px; /* Increased from 36px */
}

.navbar-logo img,
.navbar-logo svg {
  max-height: 100%;
  height: auto;
  width: auto;
  display: block;
  transition: filter var(--transition-medium);
}

/* Invert navbar logo when overlaying dark hero section (transparent navbar) */
.navbar:not(.scrolled) .navbar-logo img {
  filter: brightness(0) invert(1);
}

.navbar-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.5rem; /* Better breathing spacing */
  flex-wrap: nowrap;
}

.navbar-link {
  font-family: var(--font-sans);
  font-size: 0.85rem; /* Increased from 0.8rem */
  font-weight: 500;
  letter-spacing: 2px; /* Wider spacing */
  text-transform: uppercase;
  color: var(--color-soft-white);
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
}
.navbar.scrolled .navbar-link {
  color: var(--color-deep-blue);
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-gold);
  transition: width var(--transition-fast);
}

.navbar-link:hover::after,
.navbar-link.active::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: nowrap;
}

.navbar-actions .btn-nav {
  padding: 0.5rem 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  border-radius: 20px;
  white-space: nowrap;
}

.navbar-actions .btn-nav.btn-phone {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-soft-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.navbar.scrolled .navbar-actions .btn-nav.btn-phone {
  background: var(--color-beige);
  color: var(--color-deep-blue);
  border-color: var(--color-beige-dark);
}

.navbar-actions .btn-nav.btn-phone:hover {
  background: var(--color-deep-blue);
  color: var(--color-soft-white);
}

.navbar-actions .btn-nav.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}
.navbar-actions .btn-nav.btn-whatsapp:hover {
  background: #128C7E;
  border-color: #128C7E;
}

/* Hamburger menu button */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-soft-white);
  position: absolute;
  left: 0;
  transition: all 0.3s ease-in-out;
}
.navbar.scrolled .hamburger span {
  background-color: var(--color-deep-blue);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 22px; }

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 11px;
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 11px;
}
.hamburger.open span {
  background-color: var(--color-deep-blue) !important;
}

/* Mobile Slide-in Menu Panel */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background: var(--color-ivory);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 120px 3rem 3rem 3rem;
  transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-bottom: auto;
}

.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--color-deep-blue);
  font-weight: 400;
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 26, 44, 0.4);
  backdrop-filter: blur(5px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-medium);
}
.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* --- 3. HERO SECTION --- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: var(--color-deep-blue);
  color: var(--color-soft-white);
  display: flex;
  align-items: center;
}

.hero-slider {
  position: absolute;
  top: -10vh;
  left: 0;
  width: 100%;
  height: 120vh;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

@keyframes kenburns {
  0% { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.15) translate(-1%, -0.5%); } /* Slower, deeper zoom */
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform var(--transition-zoom);
}

.hero-slide.active img {
  animation: kenburns var(--transition-zoom) cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes ambientLight {
  0% { opacity: 0.6; }
  50% { opacity: 0.8; }
  100% { opacity: 0.6; }
}

/* Moving warm light sweep simulation */
@keyframes lightSweep {
  0% { transform: scale(1) translate(0, 0); opacity: 0.4; }
  50% { transform: scale(1.08) translate(1%, 0.5%); opacity: 0.7; }
  100% { transform: scale(1) translate(0, 0); opacity: 0.4; }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 26, 44, 0.85) 0%, rgba(15, 26, 44, 0.4) 60%, var(--color-ivory) 100%);
  z-index: 2;
  box-shadow: inset 0 0 180px rgba(6, 10, 18, 0.95);
  animation: ambientLight 12s ease-in-out infinite alternate;
}

/* Warm top-left sunrise light simulation + deep navy shadow */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.4) 0%, rgba(212, 175, 55, 0.1) 30%, transparent 60%),
              radial-gradient(circle at 85% 85%, rgba(15, 26, 44, 0.6) 0%, transparent 50%);
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: lightSweep 15s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 100px;
}

.hero-content::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 100px;
  width: 1px;
  height: 250px;
  background: linear-gradient(180deg, var(--color-gold) 0%, transparent 100%);
  opacity: 0.7;
}

.hero-logo,
.hero-title,
.hero-sub,
.hero-ctas {
  opacity: 0;
  transform: translateY(20px);
}

@keyframes logoEntrance {
  0% { opacity: 0; transform: scale(0.9) translateY(15px); filter: brightness(0.8) drop-shadow(0 0 0 rgba(212, 175, 55, 0)); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: brightness(1) drop-shadow(0 4px 20px rgba(212, 175, 55, 0.25)); }
}

.loaded .hero-logo {
  width: 150px;
  height: auto;
  margin-bottom: 3rem;
  align-self: flex-start;
  animation: logoEntrance 2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
  filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.3)); /* ambient glow */
}

.loaded .hero-title {
  font-family: var(--font-serif);
  font-size: var(--fs-h1);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--color-soft-white);
  margin-bottom: 2.5rem;
  transform: translateY(25px);
  animation: revealFade var(--transition-fade) forwards 0.5s;
  text-shadow: 0 0 80px rgba(212, 175, 55, 0.25), 0 4px 30px rgba(15, 26, 44, 0.25);
  max-width: 18ch;
}

.hero-title span {
  display: block;
  font-family: var(--font-editorial);
  font-style: italic;
  color: var(--color-gold);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-top: 0.8rem;
  text-shadow: 0 0 40px rgba(212, 175, 55, 0.4);
}

.loaded .hero-sub {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.9;
  max-width: 55ch; /* editorial width limit */
  color: var(--color-text-light);
  margin-bottom: 3rem;
  text-align: left;
  animation: revealFade var(--transition-fade) forwards 0.8s;
}

.loaded .hero-ctas {
  display: flex;
  gap: 1.5rem;
  transform: translateY(15px);
  justify-content: flex-start;
  width: 100%;
  animation: revealFade var(--transition-fade) forwards 1.1s;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--color-text-light);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 25px;
  background: var(--color-gold);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: -25px; }
  50% { top: 50px; }
  100% { top: 50px; }
}

@keyframes revealFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* --- 4. PROJECT STORY SECTION --- */
.story {
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

.story::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/gallery/pacific-tower-top-view.jpg') no-repeat center center / cover;
  opacity: 0.04;
  filter: grayscale(1);
  z-index: 0;
  pointer-events: none;
}

/* Blending transition entering from dark Hero */
.story::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 240px; /* Thicker transition */
  background: linear-gradient(180deg, #0F1A2C 0%, rgba(15, 26, 44, 0.45) 50%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* Blending transition from Why to Developer (light to dark) */
.developer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(180deg, var(--color-ivory) 0%, var(--color-deep-blue) 100%);
  pointer-events: none;
  z-index: 2;
}
.developer {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  background-color: var(--color-deep-blue);
  color: var(--color-soft-white);
}

/* Blending transition from Testimonial to FAQ (dark to light) */
.faq {
  position: relative; /* ensure position relative is set for pseudo element */
}
.faq::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(180deg, #0F1A2C 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* Blending transition from FAQ to Final CTA (light to dark) */
.final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(180deg, var(--color-ivory) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* Blending transition from Final CTA to Contact (dark to light) */
.contact {
  position: relative; /* ensure position relative is set for pseudo element */
}
.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(180deg, #0F1A2C 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* Blending transition from Contact to Footer (light to dark) */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(180deg, var(--color-beige) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.story .container {
  position: relative;
  z-index: 1;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--section-padding);
  align-items: center;
}

.story-visual {
  position: relative;
}

.story-image-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(15, 26, 44, 0.12); /* Deep premium shadow */
  position: relative;
  transition: transform var(--transition-slow);
}

.story-image-wrap:hover {
  transform: translateY(-8px) scale(1.01);
}

.story-image-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(212,175,55,0.1) 0%, rgba(15,26,44,0.05) 100%);
  pointer-events: none;
}

.story-stats-panel {
  position: absolute;
  bottom: -60px;
  right: -40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  width: 90%;
  max-width: 440px;
  z-index: 5;
}

.stat-item {
  padding: 2.2rem 1.8rem;
  text-align: center;
  background: rgba(253, 251, 247, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-bottom: 3px solid var(--color-gold); /* Gold underline */
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.08), inset 0 0 20px rgba(212, 175, 55, 0.04);
  transition: all var(--transition-medium);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(212, 175, 55, 0.2), inset 0 0 25px rgba(212, 175, 55, 0.08);
  border-color: var(--color-gold);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 600;
  color: var(--color-deep-blue);
  line-height: 1.0;
  margin-bottom: 0.8rem;
  display: block;
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
  font-weight: 600;
  display: block;
}

.story-content {
  padding-left: 3rem; /* More breathing space */
}

.story-copy {
  font-family: var(--font-editorial);
  font-size: 1.7rem; /* Slightly larger */
  line-height: 1.7;
  color: var(--color-deep-blue);
  font-style: italic;
  margin-bottom: 2rem;
}

.story-body {
  margin-bottom: 2.5rem;
}

.story-body p {
  margin-bottom: 1.5rem;
  max-width: 620px; /* Locked editorial width */
  line-height: 1.9; /* More breathing room */
}

/* --- 5. LIFESTYLE EXPERIENCE (CINEMATIC SCROLL STORY) --- */
.lifestyle {
  position: relative;
  height: 600vh; /* Increased scroll depth for proper human scrolling speed */
  background-color: var(--color-deep-blue);
  margin: 0;
  padding: 0;
}

.lifestyle-sticky-wrapper {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.lifestyle-scenes-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.lifestyle-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: opacity 0.5s ease-out, visibility 0.5s;
}

.lifestyle-scene.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.scene-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.scene-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: contrast(1.05) saturate(1.02) sepia(0.06) brightness(0.9);
}

.lifestyle-scene.active .scene-bg img {
  transform: scale(1.08);
}

.scene-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 26, 44, 0.75) 0%, rgba(15, 26, 44, 0.35) 50%, rgba(15, 26, 44, 0.8) 100%);
  z-index: 1;
  box-shadow: inset 0 0 100px rgba(0,0,0,0.5);
}

.scene-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8%;
}

.scene-card {
  max-width: 460px;
  padding: 3.5rem;
  background: rgba(15, 26, 44, 0.75) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-bottom: 2px solid var(--color-gold) !important;
  color: var(--color-soft-white);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out 0.1s, transform 0.6s ease-out 0.1s;
}

.lifestyle-scene.active .scene-card {
  opacity: 1;
  transform: translateY(0);
}

.scene-time {
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-gold);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  display: block;
}

.scene-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-soft-white);
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}

.scene-text {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* Sidebar progress indicators */
.lifestyle-progress-container {
  position: absolute;
  left: 6%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 10px;
  height: 250px;
}

.progress-line-track {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 250px;
  background: rgba(255, 255, 255, 0.15);
}

.progress-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--color-gold);
  transition: height 0.3s ease-out;
}

.progress-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
}

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  position: relative;
  transition: background 0.3s;
}

.progress-dot.active {
  background: var(--color-gold);
}

.progress-dot span {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s, color 0.3s;
  white-space: nowrap;
}

.progress-dot.active span {
  opacity: 1;
  color: var(--color-soft-white);
}

.progress-dot:hover span {
  opacity: 1;
}

/* Lightbox styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 26, 44, 0.95);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-medium);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content-wrap {
  width: 90%;
  max-width: 1000px;
  max-height: 80vh;
  position: relative;
}

.lightbox-image {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: var(--color-soft-white);
  font-size: 2rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--color-gold);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-soft-white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-nav:hover {
  background: var(--color-gold);
  color: var(--color-charcoal);
}

.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }

.lightbox-caption {
  color: var(--color-text-light);
  margin-top: 1.5rem;
  font-size: 1.1rem;
  font-family: var(--font-serif);
  text-align: center;
}

/* --- 6. AMENITIES SECTION --- */
.amenities {
  padding: var(--section-padding) 0;
  background: var(--color-ivory);
}

.amenities-editorial {
  display: flex;
  flex-direction: column;
  gap: 8rem; /* Breathing gap between rows */
  margin-top: 4rem;
}

.amenity-panel {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  gap: 0;
  position: relative;
  box-sizing: border-box;
}

.amenity-panel:nth-child(even) {
  flex-direction: row-reverse;
}

.amenity-visual-col {
  flex: 1.2;
  height: 70vh;
  overflow: hidden;
  border-radius: 28px !important;
  box-shadow: var(--luxury-shadow);
  position: relative;
  z-index: 1;
}

.amenity-visual-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s cubic-bezier(0.16, 1, 0.3, 1);
}

.amenity-panel:hover .amenity-visual-col img {
  transform: scale(1.06);
}

.amenity-text-col {
  flex: 0.8;
  padding: 4.5rem;
  margin-left: -5rem; /* Overlap image */
  position: relative;
  z-index: 2;
  box-shadow: 0 25px 60px rgba(15, 26, 44, 0.06);
  background: rgba(253, 251, 247, 0.85); /* Highly transparent glass */
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-left: 4px solid var(--color-gold); /* Gold sidebar accent */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 28px;
  transition: all var(--transition-medium);
}

.amenity-panel:nth-child(even) .amenity-text-col {
  margin-left: 0;
  margin-right: -5rem; /* Overlap image on reverse rows */
}

.amenity-text-col:hover {
  background: rgba(253, 251, 247, 0.95);
  transform: translateY(-5px);
  box-shadow: 0 30px 65px rgba(15, 26, 44, 0.1);
}

.amenity-text {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.amenities-secondary-header {
  text-align: center;
  margin: 8rem 0 3rem 0; /* Generous breathing margins */
}

.amenities-secondary-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-deep-blue);
  letter-spacing: -0.01em;
}

.amenities-secondary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.amenity-compact-card {
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: all var(--transition-medium);
}

.amenity-compact-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-gold);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.08);
}

.amenity-compact-icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-dark);
  margin-bottom: 1.5rem;
  transition: all var(--transition-medium);
}

.amenity-compact-card:hover .amenity-compact-icon {
  background: var(--color-gold);
  color: var(--color-charcoal);
  transform: scale(1.05);
}

.amenity-compact-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.2;
  fill: none;
}

.amenity-compact-card h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  color: var(--color-deep-blue);
  font-weight: 500;
}

.amenity-compact-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- 7. FLOOR PLAN EXPERIENCE --- */
.floorplan {
  padding: var(--section-padding) 0;
  background-color: var(--color-beige);
}

.floorplan-tabs {
  display: flex;
  width: max-content;
  max-width: calc(100% - 30px);
  box-sizing: border-box;
  background: rgba(15, 26, 44, 0.06);
  padding: 6px;
  border-radius: 40px;
  margin: 3rem auto;
  gap: 0;
  border: 1px solid rgba(15, 26, 44, 0.05);
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 0.8rem 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-deep-blue);
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition-medium);
  letter-spacing: 1px;
}

.tab-btn.active {
  background: var(--color-deep-blue);
  color: var(--color-soft-white);
  box-shadow: 0 4px 15px rgba(15, 26, 44, 0.15);
}

.tab-btn:hover:not(.active) {
  background: rgba(15, 26, 44, 0.04);
}

.floorplan-viewer {
  display: none;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.floorplan-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.floorplan-viewer.active {
  display: grid;
}

.floorplan-image-box {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(253, 251, 247, 0.45); 
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}

.floorplan-image-box img {
  max-height: 400px;
  width: auto;
  object-fit: contain;
  transition: transform 0.5s ease;
  cursor: zoom-in;
}

.floorplan-image-box.zoomed img {
  transform: scale(1.6);
  cursor: zoom-out;
}

.floorplan-zoom-hint {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 26, 44, 0.7);
  color: var(--color-soft-white);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  pointer-events: none;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: 6px;
}

.floorplan-info {
  display: flex;
  flex-direction: column;
  background: rgba(253, 251, 247, 0.65); /* Warm ivory glassmorphic block */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  padding: 3rem; /* Generous luxury breathing room */
  box-shadow: 0 20px 45px rgba(15, 26, 44, 0.03);
}

.floorplan-info h3 {
  font-size: 2.2rem;
  font-family: var(--font-serif);
  color: var(--color-deep-blue);
  margin-bottom: 0.8rem;
}

.floorplan-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-beige-dark);
  padding-bottom: 1.5rem;
}

.floorplan-meta-item span {
  display: block;
}

.floorplan-meta-item .meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.3rem;
  letter-spacing: 1px;
}

.floorplan-meta-item .meta-val {
  font-size: 1.35rem;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-gold-dark);
}

.floorplan-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.spec-line {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(125,138,153,0.3);
  padding-bottom: 0.5rem;
}

.spec-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.spec-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-deep-blue);
}

.floorplan-view-selector {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.view-selector-btn {
  background: var(--color-soft-white);
  border: 1px solid var(--color-beige-dark);
  padding: 0.6rem 1.4rem;
  font-size: 0.8rem;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--transition-fast);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.view-selector-btn.active, .view-selector-btn:hover {
  border-color: var(--color-gold);
  background: var(--color-gold);
  color: var(--color-charcoal);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

/* Fullscreen Floorplan Blueprint Inspect Modal */
.blueprint-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 26, 44, 0.96); /* Deep luxury blue opacity */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  display: none; /* Controlled by JS */
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.blueprint-modal.open {
  display: flex;
  opacity: 1;
}

.blueprint-close {
  position: absolute;
  top: 30px;
  right: 40px;
  background: none;
  border: none;
  color: var(--color-soft-white);
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2010;
  transition: color var(--transition-fast);
}

.blueprint-close:hover {
  color: var(--color-gold);
}

.blueprint-wrapper {
  width: 90%;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 26, 44, 0.5);
}

.blueprint-large-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.1s ease-out;
  transform-origin: center center;
}

.blueprint-large-img:active {
  cursor: grabbing;
}

.blueprint-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  background: rgba(253, 251, 247, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 40px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 2010;
}

.control-btn {
  background: transparent;
  border: none;
  color: var(--color-soft-white);
  font-size: 1.2rem;
  font-weight: 600;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.control-btn:hover {
  background: var(--color-gold);
  color: var(--color-charcoal);
}

.blueprint-instructions {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2005;
  pointer-events: none;
}

/* --- 8. CONNECTIVITY SECTION --- */
.connectivity {
  padding: var(--section-padding) 0;
  background-color: var(--color-ivory);
}

.connectivity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.connectivity-details {
  display: flex;
  flex-direction: column;
}

.connectivity-categories {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.connect-panel {
  padding: 1.8rem 2rem;
  border-radius: 12px;
  background: rgba(253, 251, 247, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.12);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02);
  transition: all var(--transition-medium);
}

.connect-panel:hover {
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-2px);
}

.connect-panel.active {
  border-color: var(--color-gold);
  background: rgba(253, 251, 247, 0.85);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.08);
}

.connect-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.connect-title-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-deep-blue);
  font-weight: 500;
}

.connect-icon {
  width: 24px;
  height: 24px;
  color: var(--color-gold-dark);
}

.connect-toggle-icon {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  transition: transform var(--transition-fast);
}

.connect-panel.active .connect-toggle-icon {
  transform: rotate(180deg);
  color: var(--color-gold-dark);
}

.connect-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium);
  padding-left: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.connect-panel.active .connect-list {
  max-height: 350px;
  margin-top: 1.2rem;
}

.connect-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.2);
  padding-bottom: 0.5rem;
  font-size: 0.9rem;
}

.connect-place {
  color: var(--color-text-dark);
  font-weight: 400;
}

.connect-dist {
  color: var(--color-gold-dark);
  font-weight: 600;
}

.connectivity-map {
  position: sticky;
  top: 130px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(15, 26, 44, 0.06);
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.connectivity-map iframe,
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1) sepia(0.55) hue-rotate(5deg) contrast(1.05) brightness(0.92); /* Luxury monochrome sepia */
  transition: filter var(--transition-slow);
}

.connectivity-map iframe:hover,
.contact-map iframe:hover {
  filter: none;
}

/* --- 9. WHY PACIFIC TOWER --- */
.why-section {
  padding: var(--section-padding) 0;
  background-color: var(--color-beige);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5rem; /* Increased spacing */
  margin-top: 4.5rem;
}

.why-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.why-block:nth-child(even) {
  grid-template-columns: 0.9fr 1.1fr;
}

.why-block:nth-child(even) .why-image-panel {
  order: -1;
}

.why-image-panel {
  position: relative;
  border-radius: 16px; /* Slightly more rounded */
  overflow: hidden;
  box-shadow: 0 25px 55px rgba(15, 26, 44, 0.08); /* Deeper shadow */
  height: 380px;
  align-self: center;
  transition: transform var(--transition-slow);
}

.why-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.why-block:hover .why-image-panel img {
  transform: scale(1.05);
}

.why-text-panel {
  display: flex;
  flex-direction: column;
  background: rgba(253, 251, 247, 0.7); /* Frosted ivory */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 4rem 3.5rem; /* Editorial padding */
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-left: 4px solid var(--color-gold); /* Thin gold sidebar strip */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.02);
  align-self: center;
  transition: all var(--transition-medium);
}

.why-block:hover .why-text-panel {
  background: rgba(253, 251, 247, 0.85);
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(15, 26, 44, 0.05);
}

.why-num {
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 0.8rem;
  font-weight: 400;
}

.why-block-title {
  font-size: 1.9rem;
  font-family: var(--font-serif);
  margin-bottom: 1.2rem;
  color: var(--color-deep-blue);
}

.why-block p {
  margin-bottom: 1.5rem;
  line-height: 1.9; /* Improved spacing */
  color: var(--color-text-muted);
}

/* --- 10. CHAITANYA DEVELOPERS SECTION --- */
.developer {
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
  background-color: var(--color-deep-blue);
  color: var(--color-soft-white);
}

.developer-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/gallery/pacific-tower-office.jpg') no-repeat center center / cover;
  opacity: 0.05;
  filter: grayscale(1) brightness(0.5);
  z-index: 0;
  pointer-events: none;
}

.developer .container {
  position: relative;
  z-index: 1;
}

.developer-banner {
  padding: 4.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
  background: rgba(15, 26, 44, 0.75); /* dark glass */
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: inset 0 0 40px rgba(212, 175, 55, 0.08), 0 25px 60px rgba(0, 0, 0, 0.25);
  border-radius: 28px;
}

.developer-branding {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  height: 100%;
}

.developer-logo-box {
  width: 220px;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #ffffff; /* Solid white to act as a seamless plaque for the original logo */
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all var(--transition-medium);
}

.developer-logo-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 1);
  border-color: rgba(212, 175, 55, 0.8);
}

.developer-logo-box img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  mix-blend-mode: multiply; /* Eliminates white edges inside the plaque */
}

.developer-logo-box svg {
  width: 100%;
  height: auto;
}

.developer-banner-title {
  font-size: 2.2rem;
  font-family: var(--font-serif);
  margin-bottom: 1.5rem;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--color-soft-white);
}

.developer-banner p {
  margin-bottom: 2rem;
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.9;
  max-width: 62ch;
}

.developer-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  margin-top: auto; /* Push stats to the bottom for perfect vertical alignment */
}

.dev-stat-card {
  padding: 1.8rem 1rem;
  background: rgba(15, 26, 44, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: all var(--transition-medium);
}

.dev-stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.25);
}

.dev-stat-num {
  display: block;
  font-size: 2.8rem; /* Increased size for visual strength */
  font-family: var(--font-serif);
  color: var(--color-gold);
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.2); /* Subtle glow */
}

.dev-stat-lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-light);
  opacity: 0.7;
}

.developer-visual {
  border-radius: 28px !important;
  overflow: hidden;
  box-shadow: var(--luxury-shadow);
  height: calc(100% - 3rem); /* Allow margins to act as breathing room */
  margin: 1.5rem; /* Margins for breathing room inside the banner */
  min-height: 420px;
}

.developer-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- 11. TESTIMONIAL SECTION --- */
.testimonials {
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
  background-color: var(--color-beige-dark); /* Warm beige background */
  color: var(--color-deep-blue);
}

.testimonials .container {
  position: relative;
  z-index: 1;
}

.testimonials-slider-wrap {
  width: 100%;
  max-width: 900px;
  margin: 3.5rem auto 0 auto;
  position: relative;
}

.testimonials-slider {
  display: flex;
  position: relative;
  height: 380px; /* Increased height for breathing space */
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px) scale(0.98); /* Luxury transition preset */
  transition: all var(--transition-slow);
  padding: 4rem 3.5rem; /* Increased breathing space */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(253, 251, 247, 0.95) !important; /* Warm ivory card base */
  border: 1px solid rgba(212, 175, 55, 0.25) !important;
  border-left: 4px solid var(--color-gold) !important; /* Subtle gold accent */
  border-radius: 20px;
  box-shadow: 0 15px 45px rgba(60, 40, 20, 0.05); /* Soft premium shadow */
}

.testimonial-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.testimonial-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  background: rgba(212, 175, 55, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-dark);
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.1);
  transition: all var(--transition-medium);
}

.testimonial-slide:hover .testimonial-avatar {
  transform: scale(1.08);
  background: rgba(212, 175, 55, 0.15);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.25);
}

.testimonial-avatar svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.testimonial-quote {
  font-family: var(--font-editorial);
  font-size: 1.7rem; /* Adjusted for better flow */
  line-height: 1.6;
  color: var(--color-deep-blue); /* Deep navy typography */
  font-style: italic;
  margin-bottom: 2rem;
  max-width: 720px;
}

.testimonial-quote::before {
  content: '“';
  font-size: 4.5rem;
  color: var(--color-gold);
  line-height: 0;
  vertical-align: -1.8rem;
  margin-right: 0.5rem;
  font-family: var(--font-serif);
}

.testimonial-author {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-gold-dark);
}

.testimonial-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
  opacity: 0.8;
}

.testimonials-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(15, 26, 44, 0.15) !important;
  color: var(--color-deep-blue) !important;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(60, 40, 20, 0.05);
  transition: all var(--transition-fast);
}

.testimonials-nav:hover {
  background: var(--color-gold) !important;
  color: var(--color-charcoal) !important;
  border-color: var(--color-gold) !important;
}

.testimonials-prev { left: -50px; }
.testimonials-next { right: -50px; }

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-beige-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--color-gold);
}

/* --- 12. FAQ SECTION --- */
.faq {
  padding: var(--section-padding) 0;
  background-color: var(--color-ivory);
}

.faq-list {
  max-width: 900px;
  margin: 3.5rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Increased spacing between panels for luxury feel */
}

.faq-panel {
  overflow: hidden;
  border-radius: 20px; /* Separated capsule design */
  transition: transform var(--transition-medium);
}

.faq-panel:hover {
  transform: translateY(-2px);
}

.faq-trigger {
  width: 100%;
  padding: 1.8rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(253, 251, 247, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.15); /* Light gold border base */
  border-radius: 20px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-deep-blue);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-medium);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.faq-panel:hover .faq-trigger {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(253, 251, 247, 0.75);
}

.faq-panel.active .faq-trigger {
  border-color: var(--color-gold);
  background: rgba(253, 251, 247, 0.85);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.06);
}

.faq-trigger-icon {
  font-size: 1.3rem;
  color: var(--color-gold-dark);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-panel.active .faq-trigger-icon {
  transform: rotate(135deg);
  color: var(--color-gold-dark);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content p {
  padding: 2rem 2.5rem;
  background: rgba(253, 251, 247, 0.75); /* Matching frosted container */
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-top: none;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  font-family: var(--font-sans);
  font-size: 1rem; /* Slightly larger */
  color: var(--color-text-dark);
  line-height: 1.8;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* --- 13. FINAL CTA EXPERIENCE --- */
.final-cta {
  position: relative;
  padding: 160px 0; /* Increased padding for grander scale */
  background-color: var(--color-deep-blue);
  overflow: hidden;
  color: var(--color-soft-white);
  text-align: center;
}

/* Spotlight center simulation */
.final-cta::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
}

.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  transition: transform var(--transition-slow);
}

.final-cta:hover .cta-bg img {
  transform: scale(1.05); /* Zoom background on hover */
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 26, 44, 0.85) 0%, rgba(15, 26, 44, 0.5) 50%, rgba(15, 26, 44, 0.9) 100%);
  z-index: 2;
}

/* Moving warm light texture */
@keyframes lightDrift {
  0% { transform: translate(-30%, -30%) scale(1); opacity: 0.3; }
  50% { transform: translate(10%, 10%) scale(1.2); opacity: 0.55; }
  100% { transform: translate(-30%, -30%) scale(1); opacity: 0.3; }
}

.cta-overlay::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(223, 186, 75, 0.16) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
  animation: lightDrift 16s ease-in-out infinite;
}

.cta-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-logo {
  width: 100px;
  margin-bottom: 2rem;
}

.cta-title {
  font-size: var(--fs-h2);
  color: var(--color-soft-white);
  margin-bottom: 1.5rem;
}

.cta-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  font-weight: 300;
  margin-bottom: 3rem;
  max-width: 600px;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
}

/* --- 14. CONTACT SECTION --- */
.contact {
  padding: var(--section-padding) 0;
  background-color: var(--color-beige);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3.5rem;
}

.contact-card {
  padding: 4rem; /* More generous spacing */
  height: 100%;
  background: rgba(253, 251, 247, 0.7); /* Frosted glass */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(15, 26, 44, 0.04);
  border-left: 4px solid var(--color-gold); /* Gold brand stripe */
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  margin-bottom: 3rem;
}

.contact-item-row {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  color: var(--color-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.contact-item-details h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.contact-item-details p, .contact-item-details a {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--color-deep-blue);
  overflow-wrap: break-word;
  word-break: break-word;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-actions .btn {
  width: 100%;
}

.contact-map {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(15, 26, 44, 0.06);
  border: 1px solid var(--color-beige-dark);
  height: 100%;
  min-height: 450px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1) sepia(0.55) hue-rotate(5deg) contrast(1.05) brightness(0.92); /* Sepia Map styling */
  transition: filter var(--transition-slow);
}

/* Modal Lead Form */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 26, 44, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-medium);
}
.modal.open {
  opacity: 1;
  visibility: visible;
}
.modal-container {
  width: 90%;
  max-width: 500px;
  padding: 3rem;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}
.modal-close:hover {
  color: var(--color-gold);
}
.modal-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--color-deep-blue);
  margin-bottom: 0.5rem;
}
.modal-desc {
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}
.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-beige-dark);
  border-radius: 4px;
  background: var(--color-ivory);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.3s;
}
.form-control:focus {
  border-color: var(--color-gold);
  outline: none;
}
.form-submit-btn {
  width: 100%;
  margin-top: 1rem;
}

/* ==========================================================================
   10. PREMIUM FOOTER 
   ========================================================================== */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(180deg, var(--color-beige) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.footer {
  background-color: #080c14;
  color: var(--color-text-light);
  padding: 120px 0 40px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  position: relative;
  overflow: hidden;
}

.footer::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: radial-gradient(circle at 50% 100%, rgba(212, 175, 55, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.footer .container {
  position: relative;
  z-index: 1;
}

/* TOP GRID - 4 Columns */
.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: 4rem;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 40px;
}

/* Column General Styling */
.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-gold);
  margin-bottom: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Brand Column */
.footer-logo-box {
  width: 180px;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
  margin: 0;
}

.footer-desc {
  color: var(--color-text-light);
  opacity: 0.7;
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 90%;
}

/* Links Column */
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 0;
  margin: 0;
}

.footer-links a {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text-light);
  opacity: 0.65;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-gold);
  opacity: 1;
  padding-left: 6px;
}

/* Contact Column */
.footer-address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-address p {
  color: var(--color-text-light);
  opacity: 0.7;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.footer-address strong {
  color: var(--color-gold-hover);
  font-weight: 600;
  display: inline-block;
  min-width: 60px;
}

.footer-address a {
  color: var(--color-text-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-address a:hover {
  color: var(--color-gold);
}

/* RERA Column */
.footer-rera-box {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.rera-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.rera-number {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--color-soft-white);
  font-weight: 500;
}

.rera-link-text {
  font-size: 0.85rem;
  color: var(--color-text-light);
  opacity: 0.5;
}

.rera-link-text a {
  color: var(--color-gold);
  text-decoration: underline;
  opacity: 0.8;
}

.rera-link-text a:hover {
  opacity: 1;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--color-text-light);
  opacity: 0.5;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-light);
  border: 1px solid transparent;
  transition: all var(--transition-medium);
}

.social-icon:hover {
  background: var(--color-gold);
  color: var(--color-charcoal);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --- ANIMATION REVEAL SYSTEM --- */
.reveal {
  opacity: 0;
  transition: opacity var(--transition-reveal), transform var(--transition-reveal), filter var(--transition-reveal);
}

.reveal-up {
  transform: translateY(60px);
}

.reveal-blur {
  filter: blur(10px);
  transition: opacity var(--transition-blur-reveal), transform var(--transition-blur-reveal), filter var(--transition-blur-reveal);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Staggered entrance reveals scroll pacing */
.section-subtitle,
.section-title {
  transition-delay: 0ms !important;
}

.section-desc,
.story-copy,
.story-body,
.amenity-text,
.floorplan-info p,
.why-block p,
.developer-banner p,
.faq-content p,
.cta-subtitle,
.contact-item-details p {
  transition-delay: 200ms !important;
}

.story-visual,
.lifestyle-grid,
.amenity-visual,
.floorplan-image-box,
.connectivity-map,
.why-image-panel,
.developer-visual,
.testimonials-slider-wrap,
.faq-list,
.contact-map {
  transition-delay: 400ms !important;
}

.story-content .btn,
.hero-ctas,
.cta-buttons,
.contact-actions,
.floorplan-info .btn,
.mobile-nav-actions {
  transition-delay: 600ms !important;
}

/* Stagger transitions for list items/grids */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-reveal);
}

.reveal-stagger.show > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.show > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.show > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.show > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.show > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger.show > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger.show > *:nth-child(6) { transition-delay: 0.6s; }
.reveal-stagger.show > *:nth-child(7) { transition-delay: 0.7s; }
.reveal-stagger.show > *:nth-child(8) { transition-delay: 0.8s; }

/* --- MOBILE SPECIFIC RULES --- */
@media (max-width: 1024px) {
  .navbar-menu {
    display: none;
  }
  .navbar-actions {
    display: none;
  }
  .hamburger {
    display: block;
  }
  
  .story-grid,
  .floorplan-viewer,
  .connectivity-grid,
  .why-block,
  .why-block:nth-child(even),
  .developer-banner,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .story-content {
    padding-left: 0;
  }
  .vertical-accent {
    display: none !important;
  }
  .story-stats-panel {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 2.5rem auto 0 auto !important;
    max-width: 100% !important;
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.2rem !important;
  }
  .stat-item {
    padding: 1.5rem 1.2rem !important;
  }
  
  .why-block:nth-child(even) .why-image-panel {
    order: 0;
  }
  
  .connectivity-map {
    position: relative;
    top: 0;
    height: 400px;
  }
  
  .developer-visual {
    height: 300px;
    margin: 0 0 2rem 0; /* Reset margins */
    width: 100%;
  }
  .developer-banner {
    padding: 2.5rem 1.5rem !important;
  }
  
  .lifestyle-card.col-4,
  .lifestyle-card.col-5,
  .lifestyle-card.col-6,
  .lifestyle-card.col-7,
  .lifestyle-card.col-8 {
    grid-column: span 12;
    height: 300px;
  }

  .lifestyle-card:nth-child(odd),
  .lifestyle-card:nth-child(even) {
    transform: none !important;
  }
  
  .testimonials-prev, .testimonials-next {
    display: none;
  }

  /* Editorial Amenities responsive stack */
  .amenities-editorial {
    gap: 4rem;
  }
  
  .amenity-row,
  .amenity-row:nth-child(even) {
    flex-direction: column;
    gap: 0;
  }
  
  .amenity-visual {
    width: 100%;
    flex: none;
    height: 300px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  
  .amenity-content-card,
  .amenity-row:nth-child(even) .amenity-content-card {
    width: 100%;
    flex: none;
    margin-left: 0;
    margin-right: 0;
    padding: 2.5rem 2rem;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
}

/* Mobile Sticky Bottom CTA Bar */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 15px; /* Float from bottom */
  left: 10px;
  width: calc(100% - 20px);
  height: 64px;
  background: rgba(248, 245, 239, 0.85); /* glass blur */
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(60, 40, 20, 0.15); /* ambient shadow */
  z-index: 990;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px; /* floating appearance */
  overflow: hidden;
}

.mobile-cta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-deep-blue);
  border-right: 1px solid rgba(212, 175, 55, 0.15);
}

.mobile-cta-item:last-child {
  border-right: none;
}

.mobile-cta-item.bg-whatsapp {
  background-color: #25D366;
  color: white;
  border-color: #25D366;
}

.mobile-cta-item.bg-visit {
  background-color: var(--color-gold);
  color: var(--color-charcoal);
  border-color: var(--color-gold);
}

.mobile-cta-item svg {
  width: 18px;
  height: 18px;
  margin-bottom: 3px;
  fill: currentColor;
}

.mobile-cta-item.bg-whatsapp svg {
  fill: #fff;
}

@media (max-width: 768px) {
  :root {
    --section-padding: 90px; /* Enforced mobile luxury spacing */
  }
  body {
    padding-bottom: 90px; /* offset for sticky bottom cta bar */
  }
  .mobile-sticky-cta {
    display: grid;
  }
  .navbar {
    top: 15px;
    height: 65px;
  }
  .navbar.scrolled {
    top: 0;
    width: 100%;
    border-radius: 0;
  }
  .story-stats-panel {
    gap: 0.8rem !important;
  }
  .stat-item {
    padding: 1.2rem 0.8rem !important;
    border-radius: 12px !important;
  }
  .stat-number {
    font-size: 2.2rem !important;
    margin-bottom: 0.4rem !important;
  }
  .stat-label {
    font-size: 0.65rem !important;
    letter-spacing: 0.1em !important;
  }
  
  .hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-content {
    padding-top: 140px; /* Larger top breathing space for mobile */
    padding-bottom: 60px;
    align-items: center;
    text-align: center;
  }
  .hero-content::before {
    display: none;
  }
  .loaded .hero-title {
    font-size: clamp(2.2rem, 5vw + 1rem, 3.2rem);
    text-align: center;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }
  .loaded .hero-sub {
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 2rem;
    max-width: 100%;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    gap: 0.8rem;
    margin: 0 auto;
    align-items: center;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .hero-ctas a[data-modal-type="brochure"],
  .hero-ctas a[href*="wa.me"] {
    display: none !important; /* Keep mobile clean, single soft primary CTA */
  }
  
  .floorplan-viewer.active {
    grid-template-columns: 1fr;
  }
  .floorplan-tabs {
    margin: 2rem auto !important;
  }
  .tab-btn {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.5px !important;
  }
  .floorplan-actions {
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    margin-top: 1.25rem;
  }
  .floorplan-actions .btn {
    width: 100% !important;
    text-align: center;
  }
  .cta-buttons {
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    max-width: 290px;
    margin: 0 auto;
    align-items: center;
  }
  .cta-buttons .btn {
    width: 100% !important;
    text-align: center;
  }
  .floorplan-image-box {
    min-height: 300px;
  }
  .floorplan-view-selector {
    justify-content: center;
  }
  .developer-banner {
    padding: 2rem 1.25rem !important;
  }
  .developer-logo-box {
    width: 200px !important;
    margin-bottom: 1.5rem !important;
  }
  .developer-stats {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .dev-stat-card {
    padding: 1.2rem 1rem !important;
  }
  .dev-stat-num {
    font-size: 2.2rem !important;
  }
  
  .testimonial-slide {
    padding: 1.5rem;
  }
  .testimonial-quote {
    font-size: 1.3rem;
  }
  
  .contact-card {
    padding: 1.5rem;
    border-radius: 28px !important;
  }
  .modal-container {
    padding: 2rem 1.5rem;
    border-radius: 28px !important;
  }
}

/* --- EXTRA CINEMATIC CORRECTION CLASSES --- */

/* FAQ Category Tabs & Groups */
.faq-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  width: 100%;
}

.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  max-width: 1000px;
}

.faq-tab-btn {
  padding: 0.8rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: rgba(253, 251, 247, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 30px;
  color: var(--color-deep-blue);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.faq-tab-btn:hover {
  border-color: var(--color-gold);
  background: rgba(253, 251, 247, 0.9);
  transform: translateY(-2px);
}

.faq-tab-btn.active {
  background: var(--gradient-gold);
  border-color: var(--color-gold);
  color: var(--color-charcoal);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.faq-group {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-group.active {
  display: flex;
}

/* Mobile Responsiveness for Premium Footer */
@media (max-width: 1024px) {
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

/* Why block occupy viewport height on desktop */
@media (min-width: 1025px) {
  .why-block {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
    box-sizing: border-box;
    padding: 80px 0;
  }
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  
  .amenity-panel,
  .amenity-panel:nth-child(even) {
    flex-direction: column;
    gap: 0;
    min-height: auto;
  }
  
  .amenity-visual-col {
    width: 100%;
    flex: none;
    height: 300px;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  
  .amenity-text-col,
  .amenity-panel:nth-child(even) .amenity-text-col {
    width: 100%;
    flex: none;
    margin-left: 0;
    margin-right: 0;
    padding: 2.5rem 2rem;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
  }
}

/* Mobile responsive fallbacks for Lifestyle Scroll Story */
@media (max-width: 768px) {
  .lifestyle {
    height: auto !important;
  }
  .lifestyle-sticky-wrapper {
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
  }
  .lifestyle-scenes-container {
    height: auto !important;
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }
  .lifestyle-scene {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: 500px !important;
  }
  .lifestyle-scene.active .scene-bg img {
    transform: none !important;
  }
  .scene-content {
    justify-content: center !important;
    padding-right: 0 !important;
    transform: none !important;
  }
  .scene-card {
    opacity: 1 !important;
    transform: none !important;
    padding: 2rem !important;
    max-width: 90% !important;
  }
  .lifestyle-progress-container {
    display: none !important;
  }
}

/* Short Viewport Overrides (To prevent content from drifting/overflowing on low-height screens) */
@media (max-height: 760px) {
  .hero-scroll-indicator {
    display: none !important;
  }
  .hero-content {
    padding-top: clamp(65px, 8vh, 85px) !important;
    padding-bottom: 20px !important;
  }
  .hero-content::before {
    top: clamp(65px, 8vh, 85px) !important;
    height: clamp(100px, 20vh, 180px) !important;
  }
  .loaded .hero-logo {
    width: clamp(70px, 8vh, 100px) !important;
    margin-bottom: clamp(0.8rem, 2vh, 1.5rem) !important;
  }
  .loaded .hero-title {
    font-size: clamp(1.8rem, 5.5vh, 2.8rem) !important;
    margin-bottom: clamp(0.8rem, 2vh, 1.25rem) !important;
  }
  .loaded .hero-sub {
    font-size: clamp(0.85rem, 2.2vh, 1rem) !important;
    margin-bottom: clamp(1rem, 2.5vh, 1.5rem) !important;
    line-height: 1.5 !important;
  }
  .loaded .hero-ctas {
    gap: clamp(0.5rem, 2vh, 0.8rem) !important;
    margin-top: 0 !important;
  }
}
