/* ==========================================================================
   خالد البشيري | KHALID AL-BSHYRI - REAL ESTATE BROKER JEDDAH
   Luxury Saudi Real Estate Design System
   ========================================================================== */

/* --- GOOGLE FONTS IMPORT --- */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Tajawal:wght@400;500;700;800;900&display=swap');

/* --- ROOT DESIGN TOKENS --- */
:root {
  /* Brand Luxury Palette */
  --primary-emerald: #0B5D3B;
  --primary-emerald-hover: #0E734A;
  --primary-emerald-light: #167a50;
  
  --gold-start: #C9A24B;
  --gold-mid: #E8D08A;
  --gold-end: #8E6B22;
  --gold-gradient: linear-gradient(135deg, #E8D08A 0%, #C9A24B 50%, #8E6B22 100%);
  --gold-gradient-shine: linear-gradient(120deg, #C9A24B 0%, #FFF3C4 40%, #E8D08A 60%, #C9A24B 100%);
  --gold-glow: rgba(201, 162, 75, 0.35);
  --gold-border: rgba(201, 162, 75, 0.25);
  
  /* Dark Theme (Default) */
  --bg-main: #07110D;
  --bg-card: rgba(11, 28, 20, 0.72);
  --bg-card-hover: rgba(16, 42, 30, 0.88);
  --bg-surface: #0B1C14;
  --bg-nav: rgba(7, 17, 13, 0.85);
  --text-primary: #F7F4EC;
  --text-secondary: #9EB3A6;
  --text-muted: #6B8074;
  --border-color: rgba(201, 162, 75, 0.18);
  --border-glass: rgba(255, 255, 255, 0.08);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(201, 162, 75, 0.15);
  --pattern-opacity: 0.04;
  --input-bg: rgba(7, 17, 13, 0.65);
  
  /* Typography Variables */
  --font-ar-heading: 'Tajawal', sans-serif;
  --font-ar-body: 'IBM Plex Sans Arabic', sans-serif;
  --font-en-heading: 'Playfair Display', serif;
  --font-en-body: 'Inter', sans-serif;

  /* Current Active Font defaults */
  --font-heading: var(--font-ar-heading);
  --font-body: var(--font-ar-body);
  
  /* Transitions */
  --theme-transition: background-color 400ms cubic-bezier(0.16, 1, 0.3, 1), 
                      color 400ms cubic-bezier(0.16, 1, 0.3, 1), 
                      border-color 400ms cubic-bezier(0.16, 1, 0.3, 1),
                      box-shadow 400ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-main: #F7F4EC;
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-surface: #EDE7D8;
  --bg-nav: rgba(247, 244, 236, 0.88);
  --text-primary: #111D17;
  --text-secondary: #3E5448;
  --text-muted: #6B8074;
  --border-color: rgba(201, 162, 75, 0.28);
  --border-glass: rgba(11, 93, 59, 0.1);
  --shadow-card: 0 15px 35px -10px rgba(11, 93, 59, 0.08), 0 0 1px 1px rgba(201, 162, 75, 0.25);
  --pattern-opacity: 0.06;
  --input-bg: rgba(255, 255, 255, 0.9);
}

/* English Mode Fonts */
[lang="en"] {
  --font-heading: var(--font-en-heading);
  --font-body: var(--font-en-body);
  direction: ltr;
}

[lang="ar"] {
  direction: rtl;
}

/* --- RESET & GLOBAL STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  transition: var(--theme-transition);
  position: relative;
  min-height: 100vh;
}

/* Saudi Islamic Pattern Background Overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('../assets/images/pattern.svg');
  background-repeat: repeat;
  background-size: 140px 140px;
  opacity: var(--pattern-opacity);
  pointer-events: none;
  z-index: 0;
  transition: opacity 400ms ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 250ms ease;
}

ul {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
  border: none;
  outline: none;
}

/* --- SCROLL PROGRESS BAR --- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: var(--gold-gradient);
  z-index: 10001;
  transform-origin: 0% 50%;
  transform: scaleX(0);
  transition: transform 60ms linear;
}

/* --- DESKTOP CUSTOM CURSOR GLOW --- */
.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(201, 162, 75, 0.12) 0%, rgba(11, 93, 59, 0.05) 45%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 9998;
  mix-blend-mode: screen;
  transition: opacity 300ms ease;
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-glow {
    opacity: 1;
  }
}

/* --- INTRO PRELOADER --- */
#intro-loader {
  position: fixed;
  inset: 0;
  background-color: #07110D;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 600ms var(--ease-spring), visibility 600ms ease;
}

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

.loader-logo-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.loader-rect {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawGoldBorder 1.4s var(--ease-spring) forwards;
}

.loader-text {
  opacity: 0;
  transform: scale(0.85);
  animation: revealText 0.8s 0.6s var(--ease-spring) forwards;
  color: #E8D08A;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.loader-subtext {
  margin-top: 24px;
  color: #C9A24B;
  font-family: 'Tajawal', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.8s 0.8s var(--ease-spring) forwards;
}

@keyframes drawGoldBorder {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes revealText {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* --- LUXURY UTILITY CLASSES --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
  position: relative;
  z-index: 1;
}

.text-gold-gradient {
  background: var(--gold-gradient-shine);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.gold-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(201, 162, 75, 0.12);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  color: #E8D08A;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
}

.section-tagline {
  color: #C9A24B;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.section-tagline::before,
.section-tagline::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold-gradient);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 16px;
}

.section-desc {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 48px;
}

.decorative-divider {
  display: flex;
  justify-content: center;
  margin-block: 20px 40px;
}

.decorative-divider img,
.decorative-divider svg {
  max-width: 180px;
  height: auto;
  opacity: 0.85;
}

/* --- GLASS CARDS & 3D TILT --- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 300ms var(--ease-spring), 
              box-shadow 300ms var(--ease-spring), 
              border-color 300ms ease, 
              background-color 400ms ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity 300ms ease;
}

.glass-card:hover {
  border-color: rgba(201, 162, 75, 0.45);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 25px rgba(201, 162, 75, 0.2);
}

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

/* --- BUTTONS --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--gold-gradient);
  color: #07110D;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 9999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(201, 162, 75, 0.35);
  transition: all 300ms var(--ease-spring);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(201, 162, 75, 0.55), 0 0 20px rgba(232, 208, 138, 0.4);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.98);
}

.btn-primary.pulse-glow {
  animation: goldPulse 2.4s infinite;
}

@keyframes goldPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 162, 75, 0.6);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(201, 162, 75, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(201, 162, 75, 0);
  }
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  background: rgba(11, 28, 20, 0.5);
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 9999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 300ms var(--ease-spring);
}

.btn-outline:hover {
  border-color: #E8D08A;
  background: rgba(201, 162, 75, 0.15);
  color: #E8D08A;
  transform: translateY(-2px);
}

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 80px;
  background: var(--bg-nav);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-glass);
  transition: height 300ms ease, background-color 400ms ease, border-color 400ms ease;
}

.navbar.scrolled {
  height: 68px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-monogram {
  width: 44px;
  height: 44px;
  border: 1.5px solid #C9A24B;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #E8D08A;
  background: radial-gradient(circle, rgba(201, 162, 75, 0.2) 0%, rgba(7, 17, 13, 0.6) 100%);
  box-shadow: 0 4px 12px rgba(201, 162, 75, 0.2);
  transition: transform 300ms ease;
}

.brand-logo:hover .logo-monogram {
  transform: rotate(6deg) scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.75rem;
  color: #C9A24B;
  letter-spacing: 0.5px;
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding-block: 6px;
}

.nav-link:hover,
.nav-link.active {
  color: #E8D08A;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: width 300ms var(--ease-spring);
}

[lang="en"] .nav-link::after {
  right: auto;
  left: 0;
}

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

/* Nav Controls */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 162, 75, 0.1);
  border: 1px solid var(--border-color);
  color: #E8D08A;
  cursor: pointer;
  transition: all 250ms ease;
}

.icon-btn:hover {
  background: rgba(201, 162, 75, 0.25);
  transform: scale(1.08);
}

.lang-toggle-btn {
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(201, 162, 75, 0.1);
  border: 1px solid var(--border-color);
  color: #E8D08A;
  cursor: pointer;
  transition: all 250ms ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-toggle-btn:hover {
  background: rgba(201, 162, 75, 0.25);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 6px;
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  background: var(--bg-main);
  z-index: 999;
  padding: 100px 30px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 400ms var(--ease-spring);
}

.mobile-nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.mobile-nav-links .nav-link {
  font-size: 1.35rem;
  font-weight: 700;
}

/* --- SECTION 1: HERO --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: 60px;
  overflow: hidden;
}

.hero-bg-container {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  animation: heroCinematicZoom 24s infinite alternate ease-in-out;
  filter: brightness(0.7) contrast(1.1);
}

@keyframes heroCinematicZoom {
  0% { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.18) translate(-1%, -1%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
              rgba(7, 17, 13, 0.82) 0%, 
              rgba(11, 45, 29, 0.75) 50%, 
              var(--bg-main) 100%);
  z-index: -1;
}

#hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  text-align: center;
  max-width: 920px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.hero-license-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(11, 28, 20, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: floatSubtle 4s ease-in-out infinite;
}

@keyframes floatSubtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-headline {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-subheadline {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: 40px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* --- SECTION 2: ANIMATED STATS BAR --- */
.stats-section {
  position: relative;
  margin-top: -40px;
  z-index: 10;
  padding-bottom: 80px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 36px 30px;
  box-shadow: var(--shadow-card);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 0;
  width: 1px;
  height: 70%;
  background: var(--border-glass);
}

[lang="en"] .stat-item:not(:last-child)::after {
  left: auto;
  right: 0;
}

.stat-number-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  background: var(--gold-gradient-shine);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.stat-suffix {
  font-size: 1.6rem;
  color: #E8D08A;
  font-weight: 700;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 8px;
}

/* Circular Progress Ring for 100% Satisfaction */
.circle-progress-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 8px;
}

.circle-progress-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.circle-bg {
  fill: none;
  stroke: rgba(201, 162, 75, 0.15);
  stroke-width: 5;
}

.circle-bar {
  fill: none;
  stroke: url(#goldGradientStroke);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 201;
  stroke-dashoffset: 201;
  transition: stroke-dashoffset 1.8s var(--ease-spring);
}

.circle-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #E8D08A;
}

/* --- SECTION 3: SERVICES (4 Glass Cards with 3D Tilt) --- */
.services-section {
  padding-block: 80px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
}

.service-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(201, 162, 75, 0.12);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E8D08A;
  margin-bottom: 24px;
  transition: all 300ms var(--ease-spring);
}

.service-card:hover .service-icon-wrap {
  background: var(--gold-gradient);
  color: #07110D;
  transform: scale(1.1) rotate(4deg);
  box-shadow: 0 8px 24px rgba(201, 162, 75, 0.4);
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #E8D08A;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
}

.service-link svg {
  transition: transform 250ms ease;
}

.service-card:hover .service-link svg {
  transform: translateX(-6px);
}

[lang="en"] .service-card:hover .service-link svg {
  transform: translateX(6px);
}

/* --- SECTION 4: FEATURED PROJECT "برج اللؤلؤة" --- */
.project-section {
  padding-block: 100px;
  position: relative;
}

.project-showcase {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.project-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

/* Gallery Slider */
.project-gallery {
  position: relative;
  background: #020906;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.gallery-main-slide {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 500ms ease, transform 6s ease;
  position: absolute;
  inset: 0;
  opacity: 0;
}

.slide-img.active {
  opacity: 1;
  transform: scale(1.04);
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(7, 17, 13, 0.75);
  border: 1px solid rgba(201, 162, 75, 0.4);
  color: #E8D08A;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 250ms ease;
}

.gallery-nav-btn:hover {
  background: var(--gold-gradient);
  color: #07110D;
}

.gallery-prev { right: 16px; }
.gallery-next { left: 16px; }

[lang="en"] .gallery-prev { right: auto; left: 16px; }
[lang="en"] .gallery-next { left: auto; right: 16px; }

.gallery-thumbs {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: rgba(7, 17, 13, 0.9);
  overflow-x: auto;
}

.thumb-item {
  width: 70px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all 250ms ease;
  flex-shrink: 0;
}

.thumb-item.active,
.thumb-item:hover {
  border-color: #E8D08A;
  opacity: 1;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Project Info Column */
.project-info {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-price-tag {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #E8D08A;
  margin-block: 8px 16px;
}

.project-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-block: 24px;
}

.project-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.project-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(201, 162, 75, 0.12);
  color: #E8D08A;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Units Availability Bar */
.units-progress-wrap {
  margin-block: 20px;
  padding: 18px;
  background: rgba(11, 28, 20, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 14px;
}

.units-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.progress-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 30%; /* 12/40 = 30% remaining */
  background: var(--gold-gradient);
  border-radius: 9999px;
  transition: width 1.2s var(--ease-spring);
}

/* Payment Plan Timeline */
.payment-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-block: 28px 20px;
  padding-block: 10px;
}

.payment-timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-gradient);
  z-index: 0;
}

.payment-step {
  position: relative;
  z-index: 1;
  background: var(--bg-surface);
  border: 1px solid #C9A24B;
  padding: 8px 14px;
  border-radius: 10px;
  text-align: center;
  font-size: 0.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.payment-step span {
  display: block;
  font-weight: 700;
  color: #E8D08A;
}

/* Interactive Jeddah Map Container */
.map-container {
  margin-top: 24px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  height: 180px;
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: invert(90%) hue-rotate(180deg) contrast(1.1) brightness(0.9);
}

[data-theme="light"] .map-container iframe {
  filter: none;
}

/* --- SECTION 5: WHY CHOOSE US (6 Staggered Glass Cards) --- */
.why-section {
  padding-block: 100px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.why-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(201, 162, 75, 0.12);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E8D08A;
  flex-shrink: 0;
  transition: all 300ms ease;
}

.why-card:hover .why-icon {
  background: var(--gold-gradient);
  color: #07110D;
  transform: rotate(-8deg) scale(1.08);
}

.why-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.why-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- SECTION 6: LICENSE VERIFICATION (REGA Trust Section) --- */
.license-section {
  padding-block: 80px;
}

.license-box {
  background: linear-gradient(135deg, rgba(14, 45, 30, 0.8) 0%, rgba(7, 17, 13, 0.95) 100%);
  border: 1.5px solid #C9A24B;
  border-radius: 28px;
  padding: 48px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(201, 162, 75, 0.15);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.license-img-wrap {
  perspective: 1000px;
}

.license-card-mockup {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(232, 208, 138, 0.4);
  transition: transform 400ms var(--ease-spring);
}

.license-card-mockup:hover {
  transform: rotateY(-6deg) rotateX(4deg) scale(1.03);
}

.license-info h3 {
  font-size: 1.85rem;
  margin-bottom: 16px;
}

.license-info p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* --- SECTION 7: HOW IT WORKS (Animated Vertical Timeline) --- */
.timeline-section {
  padding-block: 100px;
}

.timeline-track {
  position: relative;
  max-width: 800px;
  margin-inline: auto;
  padding-block: 20px;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 50%;
  width: 3px;
  background: rgba(201, 162, 75, 0.2);
  transform: translateX(50%);
  border-radius: 9999px;
}

.timeline-line-glow {
  position: absolute;
  top: 0;
  right: 50%;
  width: 3px;
  height: 0%;
  background: var(--gold-gradient);
  transform: translateX(50%);
  box-shadow: 0 0 15px #E8D08A;
  border-radius: 9999px;
  transition: height 1s ease;
}

.timeline-node {
  position: relative;
  margin-bottom: 60px;
  display: flex;
  align-items: center;
}

.timeline-node:nth-child(odd) {
  justify-content: flex-start;
  padding-left: calc(50% + 40px);
}

.timeline-node:nth-child(even) {
  justify-content: flex-end;
  padding-right: calc(50% + 40px);
}

[lang="en"] .timeline-node:nth-child(odd) {
  padding-left: 0;
  padding-right: calc(50% + 40px);
}

[lang="en"] .timeline-node:nth-child(even) {
  padding-right: 0;
  padding-left: calc(50% + 40px);
}

.timeline-marker {
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #07110D;
  border: 2px solid #C9A24B;
  color: #E8D08A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  z-index: 2;
  box-shadow: 0 0 20px rgba(201, 162, 75, 0.4);
}

.timeline-content {
  width: 100%;
}

/* --- SECTION 8: ABOUT (من نحن) & INSTAGRAM REELS --- */
.about-section {
  padding-block: 100px;
}

.about-split {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 60px;
  align-items: center;
}

.portrait-container {
  position: relative;
  max-width: 420px;
  margin-inline: auto;
}

.portrait-rotating-glow {
  position: absolute;
  inset: -12px;
  border-radius: 36px;
  background: conic-gradient(from 0deg, #C9A24B, #0B5D3B, #E8D08A, #07110D, #C9A24B);
  animation: spinGlow 12s linear infinite;
  filter: blur(14px);
  opacity: 0.6;
  z-index: 0;
}

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

.portrait-img-frame {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid #C9A24B;
  background: #0B1C14;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

.portrait-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 400ms ease;
}

.portrait-container:hover .portrait-img {
  transform: scale(1.03);
}

.about-text h3 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.about-story {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.gold-signature {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 2rem;
  color: #E8D08A;
  margin-top: 10px;
}

/* Instagram Reels Cards */
.reels-container {
  margin-top: 50px;
}

.reels-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.reels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.reel-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 9/16;
  background: #0E281C;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: transform 300ms var(--ease-spring);
  display: block;
}

.reel-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: #E8D08A;
}

.reel-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
}

.reel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 17, 13, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}

.reel-play-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(201, 162, 75, 0.85);
  color: #07110D;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-top: 60%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.reel-caption {
  font-size: 0.85rem;
  font-weight: 600;
  color: #FFF;
  line-height: 1.4;
}

/* --- SECTION 9: INVESTMENT CALCULATOR --- */
.calc-section {
  padding-block: 100px;
}

.calc-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 44px;
  box-shadow: var(--shadow-card);
}

.calc-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.calc-control-group {
  margin-bottom: 28px;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.calc-label {
  font-weight: 600;
  font-size: 1.05rem;
}

.calc-val-badge {
  font-size: 1.2rem;
  font-weight: 800;
  color: #E8D08A;
}

/* Custom Range Slider */
.calc-slider {
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: rgba(201, 162, 75, 0.2);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-gradient);
  border: 2px solid #FFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 150ms ease;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-results-panel {
  background: linear-gradient(145deg, rgba(14, 45, 30, 0.8) 0%, rgba(7, 17, 13, 0.9) 100%);
  border: 1.5px solid var(--border-color);
  border-radius: 22px;
  padding: 36px;
  text-align: center;
}

.calc-result-item {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
}

.calc-result-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.calc-result-title {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.calc-result-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #E8D08A;
}

.calc-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px;
  font-style: italic;
}

/* --- SECTION 10: TESTIMONIALS CAROUSEL --- */
.testimonials-section {
  padding-block: 100px;
}

.testimonials-carousel-wrap {
  position: relative;
  overflow: hidden;
  padding-block: 20px;
}

.testimonials-track {
  display: flex;
  gap: 28px;
  transition: transform 500ms var(--ease-spring);
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 20px);
  min-width: 300px;
}

.star-rating {
  display: flex;
  gap: 4px;
  color: #E8D08A;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.client-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.client-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #07110D;
}

.client-name {
  font-weight: 700;
  font-size: 1rem;
}

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

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(201, 162, 75, 0.3);
  cursor: pointer;
  transition: all 300ms ease;
}

.indicator-dot.active {
  width: 32px;
  border-radius: 9999px;
  background: var(--gold-gradient);
}

/* --- SECTION 11: FAQ ACCORDION --- */
.faq-section {
  padding-block: 100px;
}

.faq-list {
  max-width: 860px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 300ms ease;
}

.faq-item.active {
  border-color: rgba(201, 162, 75, 0.55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.faq-question-btn {
  width: 100%;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: inherit;
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(201, 162, 75, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E8D08A;
  transition: transform 300ms ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--gold-gradient);
  color: #07110D;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms var(--ease-spring), padding 350ms ease;
  padding-inline: 28px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 22px;
}

/* --- SECTION 12: CONTACT FORM & FINAL CTA --- */
.contact-section {
  padding-block: 100px;
}

.contact-card {
  background: linear-gradient(135deg, rgba(14, 45, 30, 0.9) 0%, rgba(7, 17, 13, 0.95) 100%);
  border: 1.5px solid #C9A24B;
  border-radius: 32px;
  padding: clamp(32px, 5vw, 64px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(201, 162, 75, 0.2);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #E8D08A;
}

.form-input,
.form-select {
  width: 100%;
  padding: 14px 18px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 250ms ease, box-shadow 250ms ease;
}

.form-input:focus,
.form-select:focus {
  border-color: #E8D08A;
  box-shadow: 0 0 15px rgba(201, 162, 75, 0.3);
}

.form-select option {
  background: #0B1C14;
  color: #FFF;
}

[data-theme="light"] .form-select option {
  background: #FFF;
  color: #111;
}

/* --- SECTION 13: FOOTER --- */
.site-footer {
  background: #050D0A;
  border-top: 1px solid var(--border-glass);
  padding-top: 80px;
  padding-bottom: 120px; /* Space for mobile sticky bar */
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin-top: 16px;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col-title {
  color: #E8D08A;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a:hover {
  color: #E8D08A;
  transform: translateX(-4px);
}

[lang="en"] .footer-links a:hover {
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-glass);
  padding-top: 28px;
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 16px;
}

.demo-disclaimer-pill {
  padding: 6px 14px;
  background: rgba(201, 162, 75, 0.15);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  color: #E8D08A;
  font-size: 0.8rem;
}

/* --- FLOATING CONTROLS (WhatsApp & Back to Top) --- */
.floating-whatsapp {
  position: fixed;
  bottom: 90px;
  right: 28px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 300ms var(--ease-spring);
  animation: pulseGreen 2.4s infinite;
}

[lang="en"] .floating-whatsapp {
  right: auto;
  left: 28px;
}

.floating-whatsapp:hover {
  transform: scale(1.12);
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.back-to-top {
  position: fixed;
  bottom: 90px;
  left: 28px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: #E8D08A;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 300ms ease;
}

[lang="en"] .back-to-top {
  left: auto;
  right: 28px;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--gold-gradient);
  color: #07110D;
  transform: translateY(-4px);
}

/* --- MOBILE STICKY BOTTOM BAR --- */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  height: 70px;
  background: rgba(7, 17, 13, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  padding: 10px 16px;
  align-items: center;
  justify-content: space-around;
  gap: 10px;
}

.mobile-bottom-btn {
  flex: 1;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
}

.mobile-bottom-btn.btn-call {
  background: rgba(255, 255, 255, 0.1);
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-bottom-btn.btn-wa {
  background: #25D366;
  color: #FFF;
}

.mobile-bottom-btn.btn-book {
  background: var(--gold-gradient);
  color: #07110D;
}

/* --- LIVE BOOKINGS TICKER TOAST --- */
.live-ticker-toast {
  position: fixed;
  bottom: 95px;
  left: 28px;
  z-index: 9980;
  background: rgba(11, 28, 20, 0.92);
  border: 1px solid #C9A24B;
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(12px);
  transform: translateY(120px);
  opacity: 0;
  transition: all 400ms var(--ease-spring);
  pointer-events: none;
  max-width: 340px;
}

[lang="en"] .live-ticker-toast {
  left: auto;
  right: 28px;
}

.live-ticker-toast.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.ticker-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 10px #4ADE80;
  flex-shrink: 0;
}

.ticker-text {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #F7F4EC;
}

.ticker-time {
  font-size: 0.75rem;
  color: #E8D08A;
}

/* --- BROCHURE MODAL --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 300ms ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-surface);
  border: 1.5px solid #C9A24B;
  border-radius: 24px;
  padding: 36px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  position: relative;
  transform: scale(0.9);
  transition: transform 300ms var(--ease-spring);
}

.modal-overlay.open .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

[lang="en"] .modal-close-btn {
  left: auto;
  right: 18px;
}

/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(4px);
  transition: opacity 800ms var(--ease-spring), 
              transform 800ms var(--ease-spring), 
              filter 800ms ease;
  will-change: opacity, transform, filter;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Stagger delays */
.stagger-1 { transition-delay: 100ms; }
.stagger-2 { transition-delay: 200ms; }
.stagger-3 { transition-delay: 300ms; }
.stagger-4 { transition-delay: 400ms; }
.stagger-5 { transition-delay: 500ms; }
.stagger-6 { transition-delay: 600ms; }

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .project-layout {
    grid-template-columns: 1fr;
  }
  
  .about-split {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .badges-row {
    justify-content: center;
  }
  
  .calc-layout {
    grid-template-columns: 1fr;
  }
  
  .license-box {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu,
  .nav-actions .btn-primary {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .mobile-bottom-bar {
    display: flex;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .timeline-line,
  .timeline-line-glow {
    right: 24px;
    transform: none;
  }
  
  .timeline-marker {
    right: 0;
    transform: none;
  }
  
  .timeline-node:nth-child(odd),
  .timeline-node:nth-child(even) {
    justify-content: flex-start;
    padding-left: 0;
    padding-right: 64px;
  }
  
  [lang="en"] .timeline-node:nth-child(odd),
  [lang="en"] .timeline-node:nth-child(even) {
    padding-right: 0;
    padding-left: 64px;
  }
  
  .testimonial-card {
    flex: 0 0 100%;
  }
  
  .floating-whatsapp {
    bottom: 85px;
    right: 18px;
    width: 50px;
    height: 50px;
  }
  
  [lang="en"] .floating-whatsapp {
    left: 18px;
    right: auto;
  }
  
  .live-ticker-toast {
    bottom: 85px;
    left: 16px;
    right: 16px;
    max-width: calc(100% - 32px);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-outline {
    width: 100%;
  }
}
