/* ============================================================
   KAILASH MAHADEV TEMPLE — Premium Spiritual Website
   Complete CSS — All selectors matched to HTML
   ============================================================ */

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

/* ─── CSS Custom Properties ─── */
:root {
  --saffron: #FF6B00;
  --deep-saffron: #E65100;
  --saffron-light: #FF8F00;
  --saffron-glow: rgba(255, 107, 0, 0.45);
  --gold: #D4A017;
  --gold-bright: #FFD700;
  --gold-muted: #C9A84C;
  --gold-pale: #E8D5A3;
  --gold-glow: rgba(212, 160, 23, 0.35);
  --white: #FFFFFF;
  --warm-white: #FFF8F0;
  --old-lace: #FDF5E6;
  --cream: #FAF0E6;
  --cream-dark: #F5E6D3;
  --dark-brown: #2C1810;
  --brown-deep: #3E2723;
  --brown-medium: #4E342E;
  --brown-light: #6D4C41;
  --brown-soft: #8D6E63;
  --maroon: #800000;
  --maroon-deep: #5B0000;
  --shadow-warm-sm: 0 2px 8px rgba(44, 24, 16, 0.08);
  --shadow-warm-md: 0 4px 20px rgba(44, 24, 16, 0.1);
  --shadow-warm-lg: 0 8px 40px rgba(44, 24, 16, 0.12);
  --shadow-warm-xl: 0 12px 60px rgba(44, 24, 16, 0.15);
  --shadow-gold: 0 4px 25px rgba(212, 160, 23, 0.2);
  --shadow-saffron: 0 4px 25px rgba(255, 107, 0, 0.25);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
  --section-padding: 100px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.3s var(--ease-smooth);
  --transition-normal: 0.4s var(--ease-smooth);
  --transition-slow: 0.6s var(--ease-smooth);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50%;
}

/* ============================================================
   1. RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--brown-deep);
  background-color: var(--warm-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; border: none; outline: none; background: none; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; color: var(--dark-brown); }
::selection { background-color: var(--saffron); color: var(--white); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark-brown); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--gold), var(--gold-muted)); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); }
html { scrollbar-color: var(--gold) var(--dark-brown); scrollbar-width: thin; }

.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: var(--container-padding); }
.section { padding: var(--section-padding); position: relative; }

/* ============================================================
   2. PRELOADER
   ============================================================ */
#preloader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--dark-brown) 0%, var(--brown-deep) 50%, var(--maroon-deep) 100%);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { text-align: center; }
.preloader-om {
  font-size: 4rem; color: var(--gold-bright);
  animation: preloaderPulse 1.5s ease-in-out infinite;
  margin-bottom: 24px;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}
.preloader-text {
  font-family: var(--font-heading); font-size: 1.3rem; color: var(--gold-pale);
  letter-spacing: 6px; text-transform: uppercase; margin-bottom: 30px;
}
.preloader-bar {
  width: 200px; height: 2px; background: rgba(255, 255, 255, 0.1);
  border-radius: 2px; overflow: hidden; position: relative; margin: 0 auto;
}
.preloader-bar-fill, .preloader-bar::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  animation: preloaderSlide 1.2s ease-in-out infinite;
}
@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
}
@keyframes preloaderSlide { 0% { left: -100%; } 100% { left: 100%; } }

/* ============================================================
   3. NAVIGATION
   ============================================================ */
#navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000; padding: 20px 0;
  transition: all var(--transition-normal);
  background: transparent;
}
#navbar.scrolled {
  background: rgba(44, 24, 16, 0.97);
  padding: 12px 0;
  box-shadow: 0 2px 30px rgba(44, 24, 16, 0.3);
  backdrop-filter: blur(12px);
}
#navbar.nav-hidden { transform: translateY(-100%); }

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 12px; z-index: 1001; }
.nav-logo-om {
  font-size: 1.8rem; color: var(--gold-bright);
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.3));
  transition: transform var(--transition-fast);
}
.nav-logo:hover .nav-logo-om { transform: rotate(15deg); }
.nav-logo-text {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem;
  color: var(--white); letter-spacing: 0.5px;
}

.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links li { display: flex; align-items: center; }
.nav-link {
  font-size: 0.88rem; font-weight: 500; color: rgba(255, 255, 255, 0.85);
  padding: 6px 12px; position: relative; transition: color var(--transition-fast);
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 12px; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--saffron));
  border-radius: 2px; transition: width var(--transition-fast);
}
.nav-link:hover, .nav-link.active { color: var(--gold-bright); }
.nav-link:hover::after, .nav-link.active::after { width: calc(100% - 24px); }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; z-index: 1001; padding: 4px;
  background: none; border: none;
}
.hamburger-line {
  display: block; width: 26px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: all var(--transition-fast); transform-origin: center;
}
.nav-toggle.active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
body.menu-open { overflow: hidden; }

/* ============================================================
   4. HERO
   ============================================================ */
.hero {
  position: relative; width: 100%; height: 100vh; min-height: 650px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background-color: var(--dark-brown);
}
.hero-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center;
  background-repeat: no-repeat; transform: scale(1.05);
  transition: transform 8s ease; will-change: transform;
}
.hero:hover .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(44,24,16,0.55) 0%, rgba(44,24,16,0.35) 30%, rgba(44,24,16,0.45) 60%, rgba(44,24,16,0.85) 100%);
  z-index: 1;
}
.hero-particles {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none; overflow: hidden;
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  max-width: 850px; padding: 0 24px;
}
.hero-badge {
  display: inline-block; padding: 8px 24px;
  background: rgba(255, 215, 0, 0.12); border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 50px; font-size: 1rem; color: var(--gold-bright);
  margin-bottom: 24px; letter-spacing: 2px;
}
.hero-title {
  font-family: var(--font-heading); font-size: 4.5rem; font-weight: 800;
  color: var(--white); line-height: 1.1; margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3); letter-spacing: 1px;
}
.hero-subtitle {
  font-family: var(--font-heading); font-style: italic;
  font-size: 1.25rem; color: var(--gold-pale);
  margin-bottom: 12px; letter-spacing: 1px; min-height: 1.8em;
}
.hero-location {
  font-size: 1rem; color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px; display: flex; align-items: center;
  justify-content: center; gap: 8px;
}
.hero-location svg { flex-shrink: 0; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-scroll-indicator {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: scrollBounce 2s ease-in-out infinite;
}
.hero-scroll-indicator span {
  font-size: 0.7rem; color: rgba(255, 255, 255, 0.5);
  letter-spacing: 3px; text-transform: uppercase;
}
.scroll-arrow {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent);
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 14px 34px; border-radius: 50px; cursor: pointer;
  transition: all var(--transition-fast); position: relative;
  overflow: hidden; border: none; letter-spacing: 0.3px;
}
.btn::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.5s ease;
}
.btn:hover::before { left: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--saffron), var(--deep-saffron));
  color: var(--white); box-shadow: 0 4px 20px rgba(255, 107, 0, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(255, 107, 0, 0.45); }
.btn-secondary {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold-bright); background: rgba(212, 160, 23, 0.1); }
.btn-full { width: 100%; }

/* ============================================================
   6. SECTION DIVIDERS
   ============================================================ */
.section-divider {
  text-align: center; padding: 30px 0; position: relative; overflow: hidden;
}
.divider-ornament {
  display: inline-block; font-size: 1.1rem; color: var(--gold);
  letter-spacing: 6px; opacity: 0.6; position: relative;
  padding: 0 20px;
}
.section-divider::before, .section-divider::after {
  content: ''; position: absolute; top: 50%; height: 1px;
  width: 30%; background: linear-gradient(90deg, transparent, var(--gold-pale), transparent);
}
.section-divider::before { left: 5%; }
.section-divider::after { right: 5%; }

/* ============================================================
   7. SECTION HEADERS
   ============================================================ */
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 4px;
  color: var(--saffron); margin-bottom: 12px;
  padding: 6px 18px; border-radius: 50px;
  background: rgba(255, 107, 0, 0.06); border: 1px solid rgba(255, 107, 0, 0.12);
}
.section-title {
  font-family: var(--font-heading); font-size: 2.75rem;
  font-weight: 700; color: var(--dark-brown);
  margin-bottom: 20px; letter-spacing: 0.5px;
}
.section-underline {
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.section-underline::before, .section-underline::after {
  content: ''; display: block; width: 60px; height: 2px;
}
.section-underline::before { background: linear-gradient(90deg, transparent, var(--gold)); }
.section-underline::after { background: linear-gradient(90deg, var(--gold), transparent); }
.section-underline span {
  width: 10px; height: 10px; background: var(--gold);
  transform: rotate(45deg); flex-shrink: 0;
}

/* ============================================================
   8. ABOUT
   ============================================================ */
.about-section { background: var(--warm-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text p { font-size: 1rem; color: var(--brown-medium); margin-bottom: 18px; line-height: 1.85; }
.about-intro { font-size: 1.05rem !important; }
.about-stats { display: flex; gap: 30px; margin-top: 32px; }
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700;
  color: var(--saffron); display: inline;
}
.stat-suffix { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700; color: var(--saffron); }
.stat-label { font-size: 0.82rem; color: var(--brown-soft); text-transform: uppercase; letter-spacing: 1px; display: block; margin-top: 4px; }

.about-image { position: relative; }
.about-img-wrapper {
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-warm-lg); position: relative;
}
.about-img-wrapper::before {
  content: ''; position: absolute; top: -12px; right: -12px;
  width: 100%; height: 100%; border: 2px solid var(--gold);
  border-radius: var(--radius-md); z-index: -1; opacity: 0.3;
}
.about-img-wrapper img { width: 100%; height: 480px; object-fit: cover; transition: transform var(--transition-slow); }
.about-img-wrapper:hover img { transform: scale(1.03); }
.about-img-badge {
  position: absolute; bottom: 20px; left: 20px;
  background: rgba(44, 24, 16, 0.85); backdrop-filter: blur(8px);
  color: var(--gold-bright); font-family: var(--font-heading);
  font-size: 0.9rem; padding: 10px 20px; border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold); display: flex; align-items: center; gap: 8px;
}
.about-img-badge span { font-size: 1.4rem; }

/* ============================================================
   9. HISTORY — Timeline
   ============================================================ */
.history-section { background: linear-gradient(180deg, var(--old-lace) 0%, var(--warm-white) 100%); }
.timeline { position: relative; padding: 20px 0; }
.timeline-line {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 2px; height: 100%;
  background: linear-gradient(180deg, var(--gold), var(--gold-muted), transparent);
}
.timeline-item { display: flex; align-items: flex-start; margin-bottom: 60px; position: relative; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-left { flex-direction: row; }
.timeline-right { flex-direction: row-reverse; }
.timeline-content {
  width: calc(50% - 40px); background: var(--white);
  border-radius: var(--radius-md); padding: 32px;
  box-shadow: var(--shadow-warm-md); transition: all var(--transition-fast);
}
.timeline-content:hover { box-shadow: var(--shadow-warm-lg); transform: translateY(-4px); }
.timeline-left .timeline-content::after {
  content: ''; position: absolute; top: 24px; right: calc(50% + 18px);
  width: 0; height: 0; border-top: 10px solid transparent;
  border-bottom: 10px solid transparent; border-left: 10px solid var(--white);
}
.timeline-right .timeline-content::after {
  content: ''; position: absolute; top: 24px; left: calc(50% + 18px);
  width: 0; height: 0; border-top: 10px solid transparent;
  border-bottom: 10px solid transparent; border-right: 10px solid var(--white);
}
.timeline-dot {
  position: absolute; left: 50%; transform: translateX(-50%); top: 24px;
  width: 16px; height: 16px; background: var(--gold);
  border: 3px solid var(--white); border-radius: var(--radius-full);
  box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.2); z-index: 2;
}
.timeline-era {
  font-family: var(--font-heading); font-size: 0.85rem;
  color: var(--saffron); font-weight: 600; text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 8px; display: block;
}
.timeline-content h3 { font-size: 1.35rem; color: var(--dark-brown); margin-bottom: 12px; }
.timeline-content p { font-size: 0.95rem; color: var(--brown-light); line-height: 1.75; }

/* ============================================================
   10. RELIGIOUS SIGNIFICANCE
   ============================================================ */
.significance-section { background: var(--warm-white); }
.significance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.significance-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 36px 28px; border-top: 4px solid var(--gold);
  box-shadow: var(--shadow-warm-sm); transition: all var(--transition-fast);
  position: relative; overflow: hidden;
}
.significance-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.03), transparent);
  opacity: 0; transition: opacity var(--transition-fast);
}
.significance-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-warm-lg); }
.significance-card:hover::before { opacity: 1; }
.significance-icon {
  width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; background: linear-gradient(135deg, var(--old-lace), var(--cream));
  border-radius: var(--radius-md); margin-bottom: 20px; transition: all var(--transition-fast);
}
.significance-card:hover .significance-icon { background: linear-gradient(135deg, var(--saffron), var(--deep-saffron)); transform: scale(1.08); }
.significance-card h3 { font-size: 1.2rem; color: var(--dark-brown); margin-bottom: 12px; }
.significance-card p { font-size: 0.92rem; color: var(--brown-light); line-height: 1.75; position: relative; z-index: 1; }

/* ============================================================
   11. DAILY RITUALS
   ============================================================ */
.rituals-section {
  background: linear-gradient(180deg, var(--old-lace), var(--cream) 50%, var(--old-lace));
}
.rituals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.ritual-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 28px; display: flex; align-items: flex-start; gap: 20px;
  box-shadow: var(--shadow-warm-sm); border-left: 4px solid var(--gold);
  transition: all var(--transition-fast);
}
.ritual-card:hover { box-shadow: var(--shadow-warm-md); transform: translateX(4px); border-left-color: var(--saffron); }
.ritual-time {
  flex-shrink: 0; font-family: var(--font-heading); font-size: 1.1rem;
  font-weight: 700; color: var(--saffron); min-width: 80px; text-align: center;
  padding: 8px 0; background: rgba(255, 107, 0, 0.06); border-radius: var(--radius-sm);
}
.ritual-info { flex: 1; }
.ritual-info h3 { font-size: 1.05rem; color: var(--dark-brown); margin-bottom: 6px; }
.ritual-info p { font-size: 0.88rem; color: var(--brown-light); line-height: 1.7; }
.ritual-icon { font-size: 1.4rem; flex-shrink: 0; opacity: 0.7; }

/* ============================================================
   12. FESTIVALS
   ============================================================ */
.festivals-section { background: var(--warm-white); }
.festivals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.festival-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-warm-lg);
  transition: all var(--transition-normal);
}
.festival-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-warm-xl); }
.festival-image { position: relative; height: 260px; overflow: hidden; }
.festival-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.festival-card:hover .festival-image img { transform: scale(1.1); }
.festival-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, transparent 30%, rgba(44, 24, 16, 0.4) 60%, rgba(44, 24, 16, 0.7) 100%);
}
.festival-content { padding: 28px; }
.festival-month {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 3px; color: var(--saffron); margin-bottom: 8px; display: block;
}
.festival-content h3 { font-size: 1.4rem; color: var(--dark-brown); margin-bottom: 10px; }
.festival-content p { font-size: 0.9rem; color: var(--brown-light); line-height: 1.7; margin-bottom: 16px; }
.festival-highlights { padding-left: 0; }
.festival-highlights li {
  font-size: 0.85rem; color: var(--brown-light); padding: 4px 0;
  display: flex; align-items: center; gap: 8px;
}
.festival-highlights li::before { content: '✦'; color: var(--gold); font-size: 0.6rem; }

/* ============================================================
   13. GALLERY
   ============================================================ */
.gallery-section { background: var(--dark-brown); }
.gallery-section .section-tag { color: var(--gold-bright); background: rgba(255, 215, 0, 0.1); border-color: rgba(255, 215, 0, 0.2); }
.gallery-section .section-title { color: var(--cream); }
.gallery-section .section-underline::before { background: linear-gradient(90deg, transparent, var(--gold-bright)); }
.gallery-section .section-underline::after { background: linear-gradient(90deg, var(--gold-bright), transparent); }
.gallery-section .section-underline span { background: var(--gold-bright); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.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: transform var(--transition-slow); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, transparent 40%, rgba(44, 24, 16, 0.7) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding: 20px; opacity: 0; transition: opacity var(--transition-fast);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-icon { font-size: 1.6rem; margin-bottom: 8px; }
.gallery-caption { color: var(--white); font-size: 0.85rem; font-weight: 500; text-align: center; }

/* ============================================================
   14. LIGHTBOX
   ============================================================ */
#lightbox, .lightbox {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.92); backdrop-filter: blur(10px);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all var(--transition-normal);
}
#lightbox.active { opacity: 1; visibility: visible; }
.lightbox-content { position: relative; max-width: 90%; max-height: 85vh; }
.lightbox-content img { max-width: 100%; max-height: 85vh; object-fit: contain; border-radius: var(--radius-sm); box-shadow: 0 0 60px rgba(0,0,0,0.5); }
.lightbox-caption { text-align: center; margin-top: 16px; color: rgba(255,255,255,0.7); font-size: 0.9rem; font-family: var(--font-heading); font-style: italic; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full); color: var(--white); font-size: 1.5rem;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition-fast); z-index: 10000;
}
.lightbox-close { top: 20px; right: 20px; font-size: 2rem; }
.lightbox-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); color: var(--gold-bright); }
body.lightbox-open { overflow: hidden; }

/* ============================================================
   15. VISITOR INFO
   ============================================================ */
.visitor-section { background: var(--warm-white); }
.visitor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.visitor-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 32px 28px; text-align: center;
  box-shadow: var(--shadow-warm-sm); transition: all var(--transition-fast);
  border-bottom: 3px solid transparent;
}
.visitor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-warm-md); border-bottom-color: var(--gold); }
.visitor-card-icon {
  font-size: 2rem; width: 72px; height: 72px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--old-lace), var(--cream-dark));
  border-radius: var(--radius-full); transition: all var(--transition-fast);
}
.visitor-card:hover .visitor-card-icon { background: linear-gradient(135deg, var(--saffron), var(--deep-saffron)); transform: scale(1.1); }
.visitor-card h3 { font-size: 1.15rem; color: var(--dark-brown); margin-bottom: 12px; }
.visitor-card ul { text-align: left; margin-top: 12px; }
.visitor-card ul li {
  font-size: 0.88rem; color: var(--brown-light); padding: 6px 0;
  border-bottom: 1px solid rgba(212, 160, 23, 0.1);
  display: flex; align-items: flex-start; gap: 8px; line-height: 1.6;
}
.visitor-card ul li:last-child { border-bottom: none; }
.visitor-card ul li::before { content: '✦'; color: var(--gold); font-size: 0.6rem; flex-shrink: 0; margin-top: 5px; }

/* ============================================================
   16. HOW TO REACH
   ============================================================ */
.reach-section { background: linear-gradient(180deg, var(--old-lace), var(--cream)); }
.reach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.reach-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 40px 32px; text-align: center;
  box-shadow: var(--shadow-warm-sm); transition: all var(--transition-fast);
}
.reach-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-warm-lg); }
.reach-icon {
  font-size: 2.2rem; width: 80px; height: 80px; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.08), rgba(212, 160, 23, 0.08));
  border-radius: var(--radius-full); border: 2px solid rgba(212, 160, 23, 0.15);
  transition: all var(--transition-fast);
}
.reach-card:hover .reach-icon { background: linear-gradient(135deg, var(--saffron), var(--deep-saffron)); border-color: transparent; transform: scale(1.05); }
.reach-card h3 { font-size: 1.25rem; color: var(--dark-brown); margin-bottom: 14px; }
.reach-card p { font-size: 0.92rem; color: var(--brown-light); line-height: 1.75; text-align: left; }

/* ============================================================
   17. NEARBY ATTRACTIONS
   ============================================================ */
.nearby-section { background: var(--warm-white); }
.nearby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.nearby-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 32px 24px; text-align: center;
  box-shadow: var(--shadow-warm-sm); transition: all var(--transition-fast);
  position: relative;
}
.nearby-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-warm-lg); }
.nearby-emoji { font-size: 2.5rem; margin-bottom: 16px; display: block; }
.nearby-card h3 { font-size: 1.15rem; color: var(--dark-brown); margin-bottom: 8px; }
.nearby-card p { font-size: 0.88rem; color: var(--brown-light); line-height: 1.7; margin-bottom: 12px; }
.nearby-distance {
  display: inline-block; padding: 4px 14px; font-size: 0.75rem; font-weight: 600;
  color: var(--saffron); background: rgba(255, 107, 0, 0.08);
  border-radius: 20px; letter-spacing: 0.5px;
}

/* ============================================================
   18. FAQ
   ============================================================ */
.faq-section { background: linear-gradient(180deg, var(--old-lace), var(--warm-white)); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white); border-radius: var(--radius-md);
  margin-bottom: 14px; box-shadow: var(--shadow-warm-sm);
  border-left: 3px solid var(--gold); overflow: hidden;
  transition: all var(--transition-fast);
}
.faq-item:hover { box-shadow: var(--shadow-warm-md); }
.faq-item.active { border-left-color: var(--saffron); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px; cursor: pointer; transition: all var(--transition-fast);
  text-align: left; gap: 16px;
}
.faq-question:hover { background: rgba(212, 160, 23, 0.03); }
.faq-question span:first-child { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: var(--dark-brown); flex: 1; }
.faq-toggle {
  width: 28px; height: 28px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.1), rgba(255, 107, 0, 0.05));
  color: var(--gold); font-size: 1.2rem; font-weight: 300;
  transition: all var(--transition-fast);
}
.faq-item.active .faq-toggle {
  background: linear-gradient(135deg, var(--saffron), var(--deep-saffron));
  color: var(--white);
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--transition-normal), padding var(--transition-normal); }
.faq-item.active .faq-answer { max-height: 400px; }
.faq-answer p { padding: 0 28px 24px; font-size: 0.92rem; color: var(--brown-light); line-height: 1.8; }

/* ============================================================
   19. CONTACT
   ============================================================ */
.contact-section { background: var(--warm-white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: flex-start; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
  display: flex; align-items: flex-start; gap: 18px; padding: 24px;
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-warm-sm); transition: all var(--transition-fast);
}
.contact-card:hover { box-shadow: var(--shadow-warm-md); transform: translateX(4px); }
.contact-card-icon {
  width: 52px; height: 52px; flex-shrink: 0; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.1), rgba(212, 160, 23, 0.1));
  border-radius: var(--radius-md); transition: all var(--transition-fast);
}
.contact-card:hover .contact-card-icon { background: linear-gradient(135deg, var(--saffron), var(--deep-saffron)); transform: scale(1.05); }
.contact-card h3 { font-size: 1rem; color: var(--dark-brown); margin-bottom: 4px; }
.contact-card p { font-size: 0.9rem; color: var(--brown-light); line-height: 1.6; }
.contact-name { font-weight: 600; color: var(--dark-brown) !important; }
.contact-card a { color: var(--saffron); font-weight: 500; }
.contact-card a:hover { color: var(--deep-saffron); }
.contact-map { margin-top: 16px; border-radius: var(--radius-md); overflow: hidden; }

.contact-form-wrapper {}
.contact-form {
  background: var(--white); border-radius: var(--radius-md);
  padding: 40px; box-shadow: var(--shadow-warm-md);
  border-top: 4px solid var(--gold);
}
.contact-form h3 { font-size: 1.4rem; color: var(--dark-brown); margin-bottom: 8px; }
.contact-form > p { font-size: 0.9rem; color: var(--brown-light); margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--brown-medium); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 14px 18px; background: var(--old-lace);
  border: 1.5px solid rgba(212, 160, 23, 0.15); border-radius: var(--radius-sm);
  font-size: 0.92rem; color: var(--dark-brown); transition: all var(--transition-fast);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--brown-soft); opacity: 0.7; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   20. FOOTER
   ============================================================ */
.footer { background: linear-gradient(180deg, var(--dark-brown), #1a0e08); position: relative; overflow: hidden; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.footer-top { padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; }
.footer-col {}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-om { font-size: 2rem; color: var(--gold-bright); }
.footer-logo h3 { font-family: var(--font-heading); font-size: 1.4rem; color: var(--gold-bright); }
.footer-col > p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.5); line-height: 1.8; }
.footer-col h4 {
  font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600;
  color: var(--gold-pale); margin-bottom: 20px; position: relative; padding-bottom: 12px;
}
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--saffron); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.88rem; color: rgba(255, 255, 255, 0.45);
  transition: all var(--transition-fast); display: flex; align-items: center; gap: 6px;
}
.footer-col ul li a::before { content: '›'; color: var(--gold-muted); opacity: 0; transform: translateX(-6px); transition: all var(--transition-fast); }
.footer-col ul li a:hover { color: var(--gold-bright); transform: translateX(4px); }
.footer-col ul li a:hover::before { opacity: 1; transform: translateX(0); }
.footer-col p a { color: var(--gold-muted); transition: color var(--transition-fast); }
.footer-col p a:hover { color: var(--gold-bright); }
.footer-bottom {
  padding: 24px 0; text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255, 255, 255, 0.3); }
.footer-mantra { color: var(--gold-muted) !important; margin-top: 8px; letter-spacing: 2px; }

/* ============================================================
   21. BACK TO TOP
   ============================================================ */
#backToTop, .back-to-top {
  position: fixed; bottom: 32px; right: 32px; width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--saffron), var(--deep-saffron));
  color: var(--white); border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 900;
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.35); border: none;
}
#backToTop.visible, .back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover, .back-to-top:hover { transform: translateY(-4px); box-shadow: 0 6px 30px rgba(255, 107, 0, 0.5); }

/* ============================================================
   22. SCROLL ANIMATIONS (JS adds these)
   ============================================================ */
.anim-fade-up { opacity: 0; transform: translateY(50px); transition: opacity 0.7s ease, transform 0.7s ease; }
.anim-fade-left { opacity: 0; transform: translateX(-50px); transition: opacity 0.7s ease, transform 0.7s ease; }
.anim-fade-right { opacity: 0; transform: translateX(50px); transition: opacity 0.7s ease, transform 0.7s ease; }
.anim-fade-in { opacity: 0; transition: opacity 0.7s ease; }
.anim-scale-up { opacity: 0; transform: scale(0.85); transition: opacity 0.7s ease, transform 0.7s ease; }
.animate-on-scroll.animated { opacity: 1 !important; transform: none !important; }

/* ============================================================
   23. RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  :root { --section-padding: 80px 0; }
  .section-title { font-size: 2.3rem; }
  .hero-title { font-size: 3.5rem; }
  .about-grid { gap: 40px; }
  .about-img-wrapper img { height: 400px; }
  .significance-grid { grid-template-columns: repeat(2, 1fr); }
  .festivals-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .reach-grid { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .contact-grid { gap: 40px; }
  /* Timeline single column */
  .timeline-line { left: 30px; }
  .timeline-left, .timeline-right { flex-direction: row; padding-left: 60px; }
  .timeline-content { width: 100%; }
  .timeline-dot { left: 30px; }
  .timeline-left .timeline-content::after, .timeline-right .timeline-content::after {
    left: -10px; right: auto;
    border-left: none; border-right: 10px solid var(--white);
    border-top: 10px solid transparent; border-bottom: 10px solid transparent;
  }
}

/* ============================================================
   24. RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  :root { --section-padding: 70px 0; --container-padding: 0 20px; }

  /* Nav mobile */
  .nav-links {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(44,24,16,0.98), rgba(62,39,35,0.98));
    backdrop-filter: blur(20px); display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 0; z-index: 999;
    opacity: 0; visibility: hidden; transition: all var(--transition-normal);
  }
  .nav-links.active { opacity: 1; visibility: visible; }
  .nav-links li { transform: translateY(20px); opacity: 0; transition: all 0.3s ease; }
  .nav-links.active li { transform: translateY(0); opacity: 1; }
  .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
  .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
  .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
  .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }
  .nav-links.active li:nth-child(6) { transition-delay: 0.35s; }
  .nav-links.active li:nth-child(7) { transition-delay: 0.4s; }
  .nav-links.active li:nth-child(8) { transition-delay: 0.45s; }
  .nav-links.active li:nth-child(9) { transition-delay: 0.5s; }
  .nav-link { font-size: 1.4rem; padding: 12px 0; color: var(--cream); }
  .nav-link::after { display: none; }
  .nav-link:hover, .nav-link.active { color: var(--gold-bright); }
  .nav-toggle { display: flex; }

  .hero-title { font-size: 2.6rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .section-title { font-size: 2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image { order: -1; }
  .about-img-wrapper img { height: 320px; }
  .about-img-wrapper::before { display: none; }
  .about-stats { justify-content: center; }
  .significance-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .reach-grid { grid-template-columns: 1fr; gap: 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .footer-col h4::after { left: 50%; transform: translateX(-50%); }
  .footer-col ul li a { justify-content: center; }
  .rituals-grid { grid-template-columns: 1fr; }
  .visitor-grid { grid-template-columns: 1fr 1fr; }
  .back-to-top { width: 42px; height: 42px; bottom: 24px; right: 24px; }
}

/* ============================================================
   25. RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
  :root { --section-padding: 60px 0; --container-padding: 0 16px; }
  html { font-size: 15px; }
  .section-header { margin-bottom: 40px; }
  .section-title { font-size: 1.7rem; }
  .hero { min-height: 100svh; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 0.92rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 280px; }
  .about-stats { flex-direction: column; gap: 16px; }
  .about-img-wrapper img { height: 260px; }
  .significance-grid { grid-template-columns: 1fr; }
  .significance-card { padding: 28px 22px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 10px; }
  .timeline-line { left: 16px; }
  .timeline-left, .timeline-right { padding-left: 44px; }
  .timeline-dot { left: 16px; width: 12px; height: 12px; }
  .timeline-content { padding: 22px 18px; }
  .faq-question { padding: 18px 20px; }
  .faq-question span:first-child { font-size: 0.95rem; }
  .faq-answer p { padding: 0 20px 18px; }
  .ritual-card { flex-direction: column; gap: 12px; padding: 22px 18px; }
  .ritual-time { text-align: left; }
  .visitor-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 18px; }
  .nav-logo-text { font-size: 1.15rem; }
  .footer { padding-top: 0; }
  .footer-grid { gap: 28px; }
}

/* ============================================================
   26. PRINT & REDUCED MOTION
   ============================================================ */
@media print {
  #navbar, .hero-particles, .back-to-top, #preloader, #lightbox, .nav-toggle { display: none !important; }
  body { color: #000; background: #fff; }
  section { padding: 30px 0; }
  .hero { height: auto; min-height: auto; padding: 40px 0; }
  .hero-overlay { background: none; }
  .hero-title { color: #000; text-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .hero-bg { transform: none; }
}
