/* ============================================
   DEVAKI NANDANA DASA — DESIGN SYSTEM
   Royal/Regal Dark Theme
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* --- CSS Variables --- */
:root {
  --deep-blue: #0a1628;
  --navy: #0f2044;
  --gold: #d4a843;
  --gold-light: #f0d48a;
  --burgundy: #6b1d3a;
  --burgundy-light: #9c3461;
  --saffron: #e8922f;
  --cream: #f5f0e8;
  --white: #ffffff;
  --text-primary: #f5f0e8;
  --text-secondary: rgba(245, 240, 232, 0.7);
  --text-muted: rgba(245, 240, 232, 0.45);
  --glass-bg: rgba(15, 32, 68, 0.6);
  --glass-border: rgba(212, 168, 67, 0.15);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-primary: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 80px; }
body {
  font-family: var(--font-primary);
  background: var(--deep-blue);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: var(--gold); transition: var(--transition); }
a:hover { color: var(--gold-light); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* --- Skip Nav --- */
.skip-nav {
  position: absolute; top: -100%; left: 16px; z-index: 10000;
  padding: 12px 24px; background: var(--gold); color: var(--deep-blue);
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip-nav:focus { top: 16px; }

/* --- Scroll Progress --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 10001;
  background: linear-gradient(90deg, var(--gold), var(--saffron), var(--burgundy-light));
  width: 0%; transition: width 0.1s linear;
}

/* --- Film Grain Overlay --- */
.grain-overlay {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* --- Animated Blob Background --- */
.blob-container {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15;
  animation: blobFloat 20s ease-in-out infinite;
}
.blob-1 { width: 500px; height: 500px; background: var(--burgundy); top: -10%; right: -10%; animation-delay: 0s; }
.blob-2 { width: 400px; height: 400px; background: var(--gold); bottom: -10%; left: -5%; animation-delay: -7s; }
.blob-3 { width: 350px; height: 350px; background: var(--navy); top: 50%; left: 50%; animation-delay: -14s; }
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 30px) scale(0.9); }
}

/* --- Container --- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
.display-xl {
  font-family: var(--font-display); font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.02em;
}
.display-lg {
  font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.01em;
}
.display-md {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600; line-height: 1.2;
}
h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.15; }
h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.8rem); font-weight: 600; line-height: 1.2; }
h3 { font-family: var(--font-display); font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
.gradient-text {
  background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--saffron));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-shadow { text-shadow: 0 2px 20px rgba(212, 168, 67, 0.3); }
.mono-accent { font-family: var(--font-mono); font-size: 0.85em; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); }
.highlight-marker {
  background: linear-gradient(180deg, transparent 60%, rgba(212, 168, 67, 0.25) 60%);
  padding: 0 4px;
}
.section-label {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px; display: block;
}

/* --- Glassmorphism Card --- */
.glass-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 32px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--glass-shadow); transition: var(--transition);
}
.glass-card:hover { border-color: rgba(212, 168, 67, 0.3); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4); }

/* --- Neumorphism Button --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem;
  transition: var(--transition); position: relative; overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--saffron));
  color: var(--deep-blue); box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212, 168, 67, 0.5); color: var(--deep-blue); }
.btn-outline {
  border: 2px solid var(--gold); color: var(--gold); background: transparent;
}
.btn-outline:hover { background: var(--gold); color: var(--deep-blue); }
.btn .ripple {
  position: absolute; border-radius: 50%; background: rgba(255,255,255,0.3);
  transform: scale(0); animation: rippleAnim 0.6s linear;
}
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* --- Navigation --- */
.main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  padding: 20px 0; transition: var(--transition);
  background: transparent;
}
.main-nav.scrolled {
  padding: 10px 0; background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  color: var(--gold); display: flex; align-items: center; gap: 10px;
}
.nav-logo-icon {
  width: 40px; height: 40px; background: linear-gradient(135deg, var(--gold), var(--saffron));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--deep-blue);
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: var(--text-secondary); font-weight: 500; font-size: 0.9rem;
  letter-spacing: 0.03em; position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--gold); transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.hamburger {
  display: none; flex-direction: column; gap: 5px; width: 28px; cursor: pointer; z-index: 10001;
}
.hamburger span {
  width: 100%; height: 2px; background: var(--text-primary);
  transition: var(--transition); border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 10000;
  background: rgba(10, 22, 40, 0.98); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 24px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 1.8rem; color: var(--text-primary);
  font-weight: 600; transition: var(--transition);
}
.mobile-menu a:hover { color: var(--gold); }

/* --- Hero Section --- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  justify-content: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.7) 0%, rgba(10,22,40,0.4) 40%, rgba(10,22,40,0.85) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center; padding: 120px 24px 80px;
  max-width: 900px;
}
.hero-content .section-label { margin-bottom: 20px; }
.hero-content h1 { margin-bottom: 24px; }
.hero-content p { font-size: 1.15rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto 36px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Page Hero (Inner pages) --- */
.page-hero {
  position: relative; padding: 160px 0 80px; text-align: center;
  background: linear-gradient(180deg, var(--navy) 0%, var(--deep-blue) 100%);
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a843' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 { margin-bottom: 16px; }
.page-hero .breadcrumb {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted);
  letter-spacing: 0.1em;
}
.page-hero .breadcrumb a { color: var(--gold); }

/* --- Sections --- */
.section { padding: 100px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--text-secondary); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }
.section-divider {
  height: 1px; border: none; margin: 0;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

/* --- Diagonal Section --- */
.diagonal-section {
  position: relative; padding: 120px 0; margin: 40px 0;
  background: linear-gradient(135deg, var(--navy), rgba(107, 29, 58, 0.2));
}
.diagonal-section::before, .diagonal-section::after {
  content: ''; position: absolute; left: 0; right: 0; height: 80px;
  background: var(--deep-blue);
}
.diagonal-section::before { top: -40px; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.diagonal-section::after { bottom: -40px; clip-path: polygon(0 0, 100% 0, 0 100%); }

/* --- Split Section --- */
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-content { padding: 20px 0; }
.split-content h2 { margin-bottom: 20px; }
.split-content p { color: var(--text-secondary); margin-bottom: 16px; }
.split-image { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.split-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.split-image:hover img { transform: scale(1.05); }
.split-image::after {
  content: ''; position: absolute; inset: 0;
  border: 2px solid rgba(212, 168, 67, 0.2); border-radius: var(--radius-lg);
}

/* --- Bento Grid --- */
.bento-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; grid-auto-rows: minmax(200px, auto);
}
.bento-item { padding: 32px; border-radius: var(--radius-lg); }
.bento-item.span-2 { grid-column: span 2; }
.bento-item.tall { grid-row: span 2; }
.bento-icon { font-size: 2.5rem; margin-bottom: 16px; }
.bento-item h3 { margin-bottom: 12px; font-size: 1.2rem; }
.bento-item p { color: var(--text-secondary); font-size: 0.95rem; }

/* --- Stats Counter --- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat-item { text-align: center; padding: 32px 16px; }
.stat-number {
  font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800; margin-bottom: 8px;
}
.stat-label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-secondary); }

/* --- Testimonials --- */
.testimonials-slider { position: relative; overflow: hidden; padding: 20px 0; }
.testimonial-track { display: flex; transition: transform 0.5s ease; }
.testimonial-card {
  min-width: 100%; padding: 0 20px;
}
.testimonial-inner {
  padding: 40px; border-radius: var(--radius-lg); background: var(--glass-bg);
  border: 1px solid var(--glass-border); text-align: center;
}
.testimonial-quote {
  font-family: var(--font-display); font-size: 1.3rem; font-style: italic;
  line-height: 1.6; margin-bottom: 24px; position: relative; padding: 0 20px;
}
.testimonial-quote::before { content: '"'; font-size: 4rem; color: var(--gold); opacity: 0.3; position: absolute; top: -20px; left: -10px; font-family: var(--font-display); }
.testimonial-author { font-weight: 600; margin-bottom: 4px; }
.testimonial-role { font-size: 0.85rem; color: var(--text-muted); }
.testimonial-dots { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.testimonial-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--text-muted); cursor: pointer; transition: var(--transition);
}
.testimonial-dot.active { background: var(--gold); width: 30px; border-radius: 5px; }

/* --- Timeline --- */
.timeline { position: relative; padding: 40px 0; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold), var(--gold), transparent);
  transform: translateX(-50%);
}
.timeline-item {
  display: flex; justify-content: flex-end; padding: 0 0 60px; width: 50%;
  position: relative;
}
.timeline-item:nth-child(even) { justify-content: flex-start; margin-left: 50%; }
.timeline-item::before {
  content: ''; position: absolute; width: 16px; height: 16px;
  background: var(--gold); border-radius: 50%; border: 3px solid var(--deep-blue);
  z-index: 2;
}
.timeline-item:nth-child(odd)::before { right: -8px; }
.timeline-item:nth-child(even)::before { left: -8px; }
.timeline-content {
  padding: 32px; border-radius: var(--radius-lg); background: var(--glass-bg);
  border: 1px solid var(--glass-border); max-width: 420px; margin: 0 40px;
}
.timeline-year {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--gold);
  letter-spacing: 0.1em; margin-bottom: 8px;
}
.timeline-content h3 { margin-bottom: 12px; font-size: 1.15rem; }
.timeline-content p { color: var(--text-secondary); font-size: 0.95rem; }
.timeline-content img { border-radius: var(--radius-sm); margin-top: 16px; }

/* --- Gallery --- */
.gallery-filters { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  padding: 8px 20px; border-radius: 30px; font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary); border: 1px solid var(--glass-border);
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--gold); color: var(--deep-blue); border-color: var(--gold); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.gallery-item {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  cursor: pointer; aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: var(--transition-slow); filter: brightness(0.9);
}
.gallery-item:hover img { transform: scale(1.1); filter: brightness(1); }
.gallery-item-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 20px;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 22, 40, 0.8));
  opacity: 0; transition: var(--transition);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay span { font-weight: 500; font-size: 0.9rem; }

/* --- Lightbox --- */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 20000;
  background: rgba(10, 22, 40, 0.95); backdrop-filter: blur(10px);
  align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-img { max-width: 90%; max-height: 85vh; border-radius: var(--radius-md); object-fit: contain; }
.lightbox-close {
  position: absolute; top: 24px; right: 24px; font-size: 2rem;
  color: var(--text-primary); cursor: pointer; z-index: 20001;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--glass-bg); border: 1px solid var(--glass-border);
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--text-primary); cursor: pointer;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--glass-bg); border: 1px solid var(--glass-border);
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* --- FAQ Accordion --- */
.faq-item { border-bottom: 1px solid var(--glass-border); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; font-size: 1.1rem; font-weight: 500;
  color: var(--text-primary); width: 100%; text-align: left; cursor: pointer;
  transition: var(--transition);
}
.faq-question:hover { color: var(--gold); }
.faq-icon { font-size: 1.5rem; color: var(--gold); transition: var(--transition); }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer-inner { padding: 0 0 24px; color: var(--text-secondary); line-height: 1.8; }

/* --- Contact Form --- */
.form-group { margin-bottom: 24px; }
.form-label {
  display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem;
  color: var(--text-secondary);
}
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 14px 18px; font-size: 1rem;
  background: rgba(15, 32, 68, 0.5); border: 1px solid var(--glass-border);
  color: var(--text-primary); border-radius: var(--radius-sm);
  transition: var(--transition);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.15);
}
.form-textarea { min-height: 150px; resize: vertical; }
.form-select option { background: var(--deep-blue); }
.form-error { color: #ff6b6b; font-size: 0.8rem; margin-top: 4px; display: none; }
.form-group.error .form-input, .form-group.error .form-textarea { border-color: #ff6b6b; }
.form-group.error .form-error { display: block; }

/* --- Marquee Ticker --- */
.marquee {
  overflow: hidden; padding: 16px 0;
  border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border);
}
.marquee-track {
  display: flex; gap: 60px; animation: marqueeScroll 30s linear infinite; white-space: nowrap;
}
.marquee-item {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  color: var(--text-muted); display: flex; align-items: center; gap: 20px;
}
.marquee-item .dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }
@keyframes marqueeScroll { to { transform: translateX(-50%); } }

/* --- Pull Quote --- */
.pull-quote {
  padding: 32px 40px; margin: 40px 0; position: relative;
  border-left: 3px solid var(--gold);
  font-family: var(--font-display); font-size: 1.3rem; font-style: italic;
  line-height: 1.6; color: var(--text-primary);
}
.pull-quote cite { display: block; margin-top: 12px; font-size: 0.85rem; font-style: normal; color: var(--gold); font-family: var(--font-mono); }

/* --- Tabbed Content --- */
.tabs { display: flex; gap: 4px; margin-bottom: 32px; overflow-x: auto; }
.tab-btn {
  padding: 12px 24px; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-weight: 500; color: var(--text-secondary); white-space: nowrap;
  border-bottom: 2px solid transparent; transition: var(--transition);
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); background: var(--glass-bg); }
.tab-panel { display: none; padding: 32px; background: var(--glass-bg); border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg); border: 1px solid var(--glass-border); }
.tab-panel.active { display: block; }

/* --- Process Steps --- */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: step; }
.process-step {
  padding: 32px; text-align: center; position: relative; counter-increment: step;
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 3rem; font-weight: 800;
  color: var(--gold); opacity: 0.2; display: block; margin-bottom: 12px;
}
.process-step h4 { margin-bottom: 12px; color: var(--gold); }
.process-step p { font-size: 0.9rem; color: var(--text-secondary); }

/* --- CTA Banner --- */
.cta-banner {
  padding: 80px 40px; text-align: center; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--burgundy), var(--navy));
  position: relative; overflow: hidden;
}
.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p { margin-bottom: 32px; color: var(--text-secondary); max-width: 500px; margin-left: auto; margin-right: auto; margin-bottom: 32px; }

/* --- Footer --- */
.main-footer {
  padding: 80px 0 0; background: linear-gradient(180deg, var(--deep-blue), #060e1a);
  border-top: 1px solid var(--glass-border); position: relative;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid var(--glass-border);
}
.footer-brand h3 { font-family: var(--font-display); color: var(--gold); margin-bottom: 16px; }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 20px;
}
.footer-col a { display: block; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 12px; }
.footer-col a:hover { color: var(--gold); transform: translateX(4px); }
.footer-newsletter { margin-top: 20px; }
.footer-newsletter-form { display: flex; gap: 8px; }
.footer-newsletter-form input {
  flex: 1; padding: 10px 16px; background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); color: var(--text-primary); font-size: 0.9rem;
}
.footer-newsletter-form button { padding: 10px 20px; }
.footer-bottom {
  padding: 24px 0; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }
.footer-bottom a { color: var(--gold); }
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--saffron));
  color: var(--deep-blue); border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(212, 168, 67, 0.3);
  opacity: 0; visibility: hidden; transition: var(--transition); z-index: 9990;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-4px); }

/* --- Scroll Animations --- */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }
.scale-in { opacity: 0; transform: scale(0.9); transition: opacity 0.6s ease, transform 0.6s ease; }
.scale-in.visible { opacity: 1; transform: scale(1); }

/* --- Gate Page Styles --- */
.gate-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.gate-bg { position: absolute; inset: 0; z-index: 0; }
.gate-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.15; }
.gate-content { position: relative; z-index: 2; text-align: center; max-width: 460px; padding: 24px; }
.gate-card { padding: 48px 40px; }
.gate-icon { font-size: 3rem; margin-bottom: 24px; }
.gate-card h1 { font-size: 1.8rem; margin-bottom: 8px; }
.gate-card p { color: var(--text-secondary); margin-bottom: 32px; font-size: 0.95rem; }
.gate-input-wrap { position: relative; margin-bottom: 16px; }
.gate-input {
  width: 100%; padding: 16px 20px; font-size: 1.1rem; text-align: center;
  letter-spacing: 0.3em; font-family: var(--font-mono);
  background: rgba(10, 22, 40, 0.8); border: 2px solid var(--glass-border);
  border-radius: var(--radius-sm); color: var(--gold); transition: var(--transition);
}
.gate-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 168, 67, 0.15); }
.gate-input.shake { animation: shake 0.5s ease; }
@keyframes shake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-10px); } 40%,80% { transform: translateX(10px); } }
.gate-error { color: #ff6b6b; font-size: 0.85rem; margin-bottom: 16px; min-height: 20px; }
.gate-submit { width: 100%; padding: 16px; font-size: 1rem; }
.gate-footer { margin-top: 32px; font-size: 0.8rem; color: var(--text-muted); }

/* --- Map Embed --- */
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--glass-border); height: 400px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.5) contrast(1.1); }

/* --- Social Proof --- */
.social-badges { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.social-badge {
  display: flex; align-items: center; gap: 8px; padding: 10px 20px;
  border-radius: 30px; background: var(--glass-bg); border: 1px solid var(--glass-border);
  font-size: 0.85rem; color: var(--text-secondary);
}
.social-badge-icon { font-size: 1.1rem; }

/* --- Video Embed --- */
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--glass-border); }
.video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* --- Donation Widget --- */
.donation-widget { text-align: center; }
.donation-amounts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.donation-btn { padding: 12px 24px; border-radius: var(--radius-sm); border: 2px solid var(--glass-border); color: var(--text-primary); transition: var(--transition); }
.donation-btn:hover, .donation-btn.active { border-color: var(--gold); background: rgba(212, 168, 67, 0.1); color: var(--gold); }

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .fade-in, .fade-in-left, .fade-in-right, .scale-in { opacity: 1; transform: none; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-item.span-2 { grid-column: span 1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split-section { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-content { padding: 100px 16px 60px; }
  .display-xl { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-item.span-2 { grid-column: span 1; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .timeline::before { left: 20px; }
  .timeline-item, .timeline-item:nth-child(even) { width: 100%; margin-left: 0; justify-content: flex-start; padding-left: 50px; }
  .timeline-item::before, .timeline-item:nth-child(even)::before { left: 12px; right: auto; }
  .timeline-content { margin: 0; max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .section { padding: 60px 0; }
  .glass-card { padding: 24px; }
  .pull-quote { padding: 20px 24px; font-size: 1.1rem; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}
