/* =====================================================
   BHAKTIMARGA SWAMI — EXPERIMENTAL SPIRITUAL WEBSITE
   Design System & Core Styles
   ===================================================== */

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

/* ── CSS Custom Properties ── */
:root {
  /* Primary */
  --saffron: #FF6F00;
  --saffron-light: #FFA040;
  --saffron-dark: #E65100;
  --krishna-blue: #1A237E;
  --krishna-blue-light: #283593;
  --krishna-blue-dark: #0D1452;

  /* Secondary */
  --golden-yellow: #FFD600;
  --golden-yellow-light: #FFEA00;
  --cream: #FFF8E1;
  --cream-dark: #F5F0DC;

  /* Accents */
  --temple-gold: #C6A032;
  --temple-gold-light: #D4B04A;
  --leaf-green: #33691E;
  --leaf-green-light: #558B2F;
  --lotus-pink: #F48FB1;
  --lotus-pink-light: #F8BBD0;

  /* Neutrals */
  --dark: #1a1a2e;
  --dark-soft: #2d2d44;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-light: #f0e6d3;
  --white: #ffffff;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Cormorant Garamond', serif;
  --font-ui: 'Space Grotesk', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-xxl: 8rem;

  /* Transitions */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-dramatic: cubic-bezier(0.77, 0, 0.18, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-med: 0.5s var(--ease-smooth);
  --transition-slow: 0.8s var(--ease-dramatic);

  /* Borders & Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-round: 50%;

  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(26, 35, 126, 0.08);
  --shadow-med: 0 8px 40px rgba(26, 35, 126, 0.12);
  --shadow-dramatic: 0 16px 60px rgba(26, 35, 126, 0.2);
  --shadow-glow-saffron: 0 0 40px rgba(255, 111, 0, 0.3);
  --shadow-glow-gold: 0 0 40px rgba(198, 160, 50, 0.3);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--cream);
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-ui);
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

.font-ui { font-family: var(--font-ui); }
.font-body { font-family: var(--font-body); }

.text-gradient-saffron {
  background: linear-gradient(135deg, var(--saffron), var(--temple-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-blue {
  background: linear-gradient(135deg, var(--krishna-blue), var(--krishna-blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Navigation ── */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-med);
  background: transparent;
}

.main-nav.scrolled {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 2rem;
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.nav-logo .logo-accent {
  color: var(--saffron);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cream);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--saffron);
  transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
}

.nav-links a:hover {
  color: var(--saffron-light);
}

.nav-links a.active {
  color: var(--saffron);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.nav-hamburger span {
  width: 28px;
  height: 2px;
  background: var(--cream);
  transition: var(--transition-fast);
  display: block;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Security Gate Page ── */
.security-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--krishna-blue-dark), var(--krishna-blue), var(--saffron-dark));
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
  z-index: 10000;
  overflow: hidden;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.mandala-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.mandala-ring {
  position: absolute;
  border: 1px solid rgba(198, 160, 50, 0.15);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: mandalaRotate 30s linear infinite;
}

.mandala-ring:nth-child(1) { width: 300px; height: 300px; animation-duration: 25s; }
.mandala-ring:nth-child(2) { width: 500px; height: 500px; animation-duration: 35s; animation-direction: reverse; }
.mandala-ring:nth-child(3) { width: 700px; height: 700px; animation-duration: 45s; }
.mandala-ring:nth-child(4) { width: 900px; height: 900px; animation-duration: 55s; animation-direction: reverse; }
.mandala-ring:nth-child(5) { width: 1100px; height: 1100px; animation-duration: 60s; }

.mandala-ring::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--temple-gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--temple-gold);
}

@keyframes mandalaRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.gate-content {
  text-align: center;
  z-index: 2;
  padding: var(--space-md);
  max-width: 480px;
}

.gate-lotus {
  font-size: 3.5rem;
  margin-bottom: var(--space-sm);
  animation: lotusFloat 4s ease-in-out infinite;
}

@keyframes lotusFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.05); }
}

.gate-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--cream);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.gate-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: rgba(240, 230, 211, 0.7);
  margin-bottom: var(--space-md);
  font-style: italic;
}

.gate-input-wrap {
  position: relative;
  margin-bottom: var(--space-sm);
}

.gate-input {
  width: 100%;
  padding: 1rem 1.5rem;
  font-family: var(--font-ui);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(198, 160, 50, 0.3);
  border-radius: var(--radius-lg);
  color: var(--cream);
  text-align: center;
  letter-spacing: 0.3em;
  outline: none;
  transition: var(--transition-fast);
}

.gate-input:focus {
  border-color: var(--temple-gold);
  box-shadow: 0 0 30px rgba(198, 160, 50, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

.gate-input::placeholder {
  color: rgba(240, 230, 211, 0.4);
  letter-spacing: 0.1em;
}

.gate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.5rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--dark);
  background: linear-gradient(135deg, var(--temple-gold), var(--golden-yellow));
  border-radius: var(--radius-lg);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-glow-gold);
}

.gate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(198, 160, 50, 0.5);
}

.gate-error {
  color: var(--lotus-pink);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  margin-top: 0.75rem;
  opacity: 0;
  transition: var(--transition-fast);
}

.gate-error.visible {
  opacity: 1;
}

.gate-input.shake {
  animation: shakeInput 0.5s ease;
}

@keyframes shakeInput {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

/* Portal transition */
.portal-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
}

.portal-transition.active {
  animation: portalOpen 1.2s var(--ease-dramatic) forwards;
}

@keyframes portalOpen {
  0% { opacity: 0; transform: scale(0); border-radius: 50%; background: var(--temple-gold); }
  50% { opacity: 1; transform: scale(1.5); border-radius: 50%; background: var(--cream); }
  100% { opacity: 1; transform: scale(3); border-radius: 0; background: var(--cream); }
}

/* ── Hero Sections ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--krishna-blue-dark);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(0.8);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 46, 0.5) 0%,
    rgba(26, 35, 126, 0.6) 50%,
    rgba(26, 26, 46, 0.9) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-md);
  max-width: 900px;
}

.hero-tag {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--temple-gold);
  margin-bottom: var(--space-sm);
  display: inline-block;
}

.hero h1 {
  color: var(--cream);
  margin-bottom: var(--space-sm);
  font-weight: 800;
}

.hero h1 .accent {
  color: var(--saffron);
}

.hero-desc {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(240, 230, 211, 0.85);
  max-width: 700px;
  margin: 0 auto var(--space-md);
  font-style: italic;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dark);
  background: linear-gradient(135deg, var(--saffron), var(--golden-yellow));
  border-radius: var(--radius-xl);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-glow-saffron);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(255, 111, 0, 0.4);
}

/* Floating Sacred Geometry */
.floating-geometry {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.geo-mandala {
  width: 200px;
  height: 200px;
  border: 1px solid rgba(198, 160, 50, 0.12);
  border-radius: 50%;
  position: absolute;
  animation: floatGeo 20s ease-in-out infinite;
}

.geo-mandala:nth-child(1) { top: 10%; left: 5%; width: 150px; height: 150px; animation-delay: 0s; }
.geo-mandala:nth-child(2) { top: 60%; right: 8%; width: 180px; height: 180px; animation-delay: -5s; }
.geo-mandala:nth-child(3) { bottom: 15%; left: 15%; width: 120px; height: 120px; animation-delay: -10s; }

@keyframes floatGeo {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.3; }
  25% { transform: translate(20px, -30px) rotate(90deg); opacity: 0.6; }
  50% { transform: translate(-10px, 20px) rotate(180deg); opacity: 0.3; }
  75% { transform: translate(15px, 10px) rotate(270deg); opacity: 0.6; }
}

/* ── Page Sections ── */
.section {
  padding: var(--space-xl) var(--space-md);
  position: relative;
}

.section-dark {
  background: var(--dark);
  color: var(--text-light);
}

.section-blue {
  background: linear-gradient(135deg, var(--krishna-blue-dark), var(--krishna-blue));
  color: var(--text-light);
}

.section-cream {
  background: var(--cream);
}

.section-saffron {
  background: linear-gradient(135deg, var(--saffron-dark), var(--saffron));
  color: var(--cream);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Section headings */
.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-tag {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--saffron);
  margin-bottom: 0.75rem;
  display: block;
}

.section-dark .section-tag,
.section-blue .section-tag {
  color: var(--temple-gold);
}

.section-title {
  margin-bottom: var(--space-sm);
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
}

.section-dark .section-desc,
.section-blue .section-desc {
  color: rgba(240, 230, 211, 0.7);
}

/* ── Split Screen Storytelling ── */
.split-screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  margin: var(--space-lg) 0;
}

.split-screen.reverse {
  direction: rtl;
}

.split-screen.reverse > * {
  direction: ltr;
}

.split-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-dramatic);
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
  transition: transform 0.8s var(--ease-smooth);
}

.split-image:hover img {
  transform: scale(1.05);
}

.split-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 111, 0, 0.1), transparent);
  pointer-events: none;
}

.split-text {
  padding: var(--space-md);
}

.split-text h2 {
  margin-bottom: var(--space-sm);
}

.split-text p {
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ── Content Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-med);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--saffron), var(--temple-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-smooth);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-dramatic);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* Dark card variant */
.card-dark {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(198, 160, 50, 0.15);
}

.card-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--temple-gold);
}

.card-dark h3 { color: var(--cream); }
.card-dark p { color: rgba(240, 230, 211, 0.7); }

/* ── Timeline ── */
.timeline {
  position: relative;
  padding: var(--space-md) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--saffron), var(--temple-gold), var(--krishna-blue));
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-lg);
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  width: 45%;
  padding: var(--space-md);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-med);
}

.timeline-content:hover {
  box-shadow: var(--shadow-med);
  transform: translateY(-4px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--saffron);
  border: 4px solid var(--cream);
  border-radius: 50%;
  z-index: 2;
  box-shadow: var(--shadow-glow-saffron);
}

.timeline-year {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--saffron);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ── Quote Block ── */
.quote-block {
  position: relative;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  background: linear-gradient(135deg, var(--krishna-blue-dark), var(--krishna-blue));
  overflow: hidden;
}

.quote-block::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 15rem;
  color: rgba(198, 160, 50, 0.08);
  line-height: 1;
}

.quote-text {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--cream);
  font-style: italic;
  max-width: 800px;
  margin: 0 auto var(--space-sm);
  position: relative;
  z-index: 2;
}

.quote-author {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--temple-gold);
  position: relative;
  z-index: 2;
}

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-sm);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-med);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-smooth);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-dramatic);
}

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(26, 26, 46, 0.9));
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  transform: translateY(100%);
  transition: var(--transition-med);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 46, 0.95);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-med);
  backdrop-filter: blur(20px);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 85%;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dramatic);
  transition: transform 0.5s var(--ease-spring);
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2rem;
  color: var(--cream);
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 5001;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-close:hover {
  background: rgba(255, 111, 0, 0.3);
  transform: rotate(90deg);
}

.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.1rem;
  text-align: center;
  font-style: italic;
}

/* ── Contact Form ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.form-group {
  margin-bottom: var(--space-sm);
}

.form-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  border: 1px solid rgba(26, 35, 126, 0.15);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(255, 111, 0, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
  border-radius: var(--radius-lg);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-glow-saffron);
}

.form-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 111, 0, 0.3);
}

/* Contact info sidebar */
.contact-info-card {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  color: var(--text-light);
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-info-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-info-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--temple-gold);
  margin-bottom: 0.25rem;
}

.contact-info-text {
  font-size: 1rem;
  color: rgba(240, 230, 211, 0.8);
}

.contact-info-text a {
  color: rgba(240, 230, 211, 0.8);
  transition: var(--transition-fast);
}

.contact-info-text a:hover {
  color: var(--saffron);
}

/* Social Media */
.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-round);
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
  font-size: 1.2rem;
  transition: var(--transition-fast);
  border: 1px solid rgba(198, 160, 50, 0.2);
}

.social-link:hover {
  background: var(--saffron);
  border-color: var(--saffron);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-saffron);
}

/* ── Footer ── */
.site-footer {
  background: var(--dark);
  color: var(--text-light);
  padding: var(--space-lg) var(--space-md) var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: var(--space-xs);
}

.footer-brand p {
  font-size: 0.95rem;
  color: rgba(240, 230, 211, 0.6);
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--temple-gold);
  margin-bottom: var(--space-sm);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: rgba(240, 230, 211, 0.6);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--saffron);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: var(--space-md) auto 0;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(240, 230, 211, 0.4);
}

.footer-bottom a {
  color: var(--temple-gold);
  transition: var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--saffron);
}

/* ── Animated Elements ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-spring);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.4s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.5s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.6s; }

/* ── Decorative Particles ── */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--temple-gold);
  border-radius: 50%;
  opacity: 0.3;
  animation: particleFloat 15s ease-in-out infinite;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; animation-duration: 18s; }
.particle:nth-child(2) { top: 50%; left: 80%; animation-delay: -3s; animation-duration: 22s; width: 6px; height: 6px; }
.particle:nth-child(3) { top: 70%; left: 30%; animation-delay: -7s; animation-duration: 16s; }
.particle:nth-child(4) { top: 30%; left: 60%; animation-delay: -11s; animation-duration: 20s; width: 3px; height: 3px; }
.particle:nth-child(5) { top: 85%; left: 50%; animation-delay: -4s; animation-duration: 24s; width: 5px; height: 5px; }
.particle:nth-child(6) { top: 15%; left: 90%; animation-delay: -9s; animation-duration: 19s; }

@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
  25% { transform: translate(30px, -60px) scale(1.5); opacity: 0.5; }
  50% { transform: translate(-20px, 40px) scale(0.8); opacity: 0.3; }
  75% { transform: translate(40px, 20px) scale(1.2); opacity: 0.6; }
}

/* ── Counter Animation ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  text-align: center;
}

.stat-item {
  padding: var(--space-md);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--saffron);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

.section-dark .stat-label,
.section-blue .stat-label {
  color: rgba(240, 230, 211, 0.6);
}

/* ── Theatre Section Special ── */
.theatre-stage {
  position: relative;
  background: linear-gradient(180deg, var(--krishna-blue-dark), #0a0a1a);
  padding: var(--space-xxl) var(--space-md);
  overflow: hidden;
}

.curtain-left,
.curtain-right {
  position: absolute;
  top: 0;
  width: 8%;
  height: 100%;
  z-index: 2;
}

.curtain-left {
  left: 0;
  background: linear-gradient(90deg, rgba(139, 0, 0, 0.6), transparent);
}

.curtain-right {
  right: 0;
  background: linear-gradient(-90deg, rgba(139, 0, 0, 0.6), transparent);
}

.spotlight {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 0, 0.15), transparent 70%);
  pointer-events: none;
  animation: spotlightPulse 5s ease-in-out infinite;
}

.spotlight-1 { top: 10%; left: 20%; animation-delay: 0s; }
.spotlight-2 { top: 30%; right: 15%; animation-delay: -2s; }
.spotlight-3 { bottom: 20%; left: 40%; animation-delay: -4s; width: 400px; height: 400px; }

@keyframes spotlightPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

/* ── Asymmetric Layout ── */
.asymmetric-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-md);
  align-items: start;
}

.asymmetric-grid.reverse {
  grid-template-columns: 0.8fr 1.2fr;
}

/* ── Image with overlay text ── */
.image-story {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: var(--space-md) 0;
}

.image-story img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.image-story-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  background: linear-gradient(transparent, rgba(26, 26, 46, 0.95));
  color: var(--cream);
}

.image-story-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.image-story-overlay p {
  font-size: 1rem;
  opacity: 0.85;
  line-height: 1.7;
}

/* ── Page-specific pilgrimage nav ── */
.pilgrimage-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  flex-wrap: wrap;
}

.pilgrimage-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  text-decoration: none;
  position: relative;
}

.pilgrimage-step .step-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(26, 35, 126, 0.08);
  color: var(--krishna-blue);
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.pilgrimage-step:hover .step-num,
.pilgrimage-step.active .step-num {
  background: var(--saffron);
  color: var(--white);
  box-shadow: var(--shadow-glow-saffron);
}

.pilgrimage-step:hover,
.pilgrimage-step.active {
  color: var(--saffron);
}

/* ── Decorative Divider ── */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: var(--space-lg) 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--temple-gold), transparent);
  max-width: 200px;
}

.divider-symbol {
  font-size: 1.5rem;
  color: var(--temple-gold);
}

/* ── Map ── */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-med);
  margin-top: var(--space-md);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .split-screen {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .split-screen.reverse {
    direction: ltr;
  }

  .asymmetric-grid,
  .asymmetric-grid.reverse {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 60px;
  }

  .timeline-dot {
    left: 30px;
  }

  .timeline-content {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    padding: 5rem 2rem;
    transition: right 0.4s var(--ease-dramatic);
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    gap: 0.5rem;
  }

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

  .nav-links a {
    font-size: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: clamp(2rem, 7vw, 3.5rem);
  }

  .pilgrimage-nav {
    gap: 0.5rem;
  }

  .pilgrimage-step {
    font-size: 0.65rem;
  }

  .section {
    padding: var(--space-lg) var(--space-sm);
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split-image img {
    min-height: 280px;
  }

  .image-story img {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .gate-title {
    font-size: 1.6rem;
  }
}

/* ── RNG Design Variations (applied via JS classes) ── */
.rng-layout-asym .split-screen { grid-template-columns: 1.3fr 0.7fr; }
.rng-layout-wide .container { max-width: 1400px; }
.rng-typo-bold h2 { font-weight: 800; letter-spacing: -0.02em; }
.rng-typo-light h2 { font-weight: 400; font-style: italic; }
.rng-accent-pink .section-tag { color: var(--lotus-pink); }
.rng-accent-green .section-tag { color: var(--leaf-green-light); }
.rng-anim-slow .reveal { transition-duration: 1.2s; }
.rng-anim-fast .reveal { transition-duration: 0.4s; }

/* ── Utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
