/* ========================================
   विराट पंचमुखी हनुमान मंदिर
   Devotional Temple Design System
   ======================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Sacred Temple Colors */
  --saffron: #FF6B00;
  --saffron-light: #FF8C38;
  --saffron-dark: #E55A00;
  --maroon: #800020;
  --maroon-deep: #5C0015;
  --gold: #D4AF37;
  --gold-light: #E8C44D;
  --gold-dark: #B8962E;
  --cream: #FFF8E7;
  --cream-dark: #F5EBD6;
  --temple-stone: #D4A574;
  --temple-brown: #8B4513;
  --sacred-red: #C41E3A;
  --sacred-green: #228B22;
  --divine-white: #FFFEF5;
  --deep-maroon: #4A0010;

  /* Text Colors */
  --text-primary: #2C1810;
  --text-secondary: #5C4033;
  --text-light: #FFFFFF;
  --text-gold: #D4AF37;

  /* Gradients */
  --gradient-saffron: linear-gradient(135deg, #FF6B00 0%, #FF8C38 50%, #FFB347 100%);
  --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F4D03F 50%, #E8C44D 100%);
  --gradient-maroon: linear-gradient(135deg, #800020 0%, #A52A2A 50%, #C41E3A 100%);
  --gradient-divine: linear-gradient(180deg, #FFF8E7 0%, #FFE4B5 50%, #FFD39B 100%);
  --gradient-sunset: linear-gradient(180deg, #FF6B00 0%, #FF8C38 25%, #FFB347 50%, #D4AF37 100%);
  --gradient-temple: linear-gradient(180deg, #2C1810 0%, #5C4033 50%, #8B4513 100%);

  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(139, 69, 19, 0.15);
  --shadow-medium: 0 8px 30px rgba(139, 69, 19, 0.25);
  --shadow-divine: 0 0 40px rgba(212, 175, 55, 0.4);
  --shadow-glow: 0 0 60px rgba(255, 107, 0, 0.3);

  /* Typography */
  --font-hindi: 'Noto Sans Devanagari', 'Tiro Devanagari Hindi', serif;
  --font-heading: 'Playfair Display', 'Noto Serif Devanagari', serif;
  --font-body: 'Open Sans', 'Noto Sans Devanagari', sans-serif;

  /* Spacing - Unified 8px Grid System */
  --space-xs: 0.5rem;
  /* 8px */
  --space-sm: 1rem;
  /* 16px */
  --space-md: 1.5rem;
  /* 24px */
  --space-lg: 2.5rem;
  /* 40px */
  --space-xl: 5rem;
  /* 80px - Section padding */
  --space-xxl: 7.5rem;
  /* 120px */

  /* Component Spacing */
  --gap-card: 2rem;
  --gap-grid: 2.5rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-round: 50%;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.6s ease;
  --transition-divine: 0.8s cubic-bezier(0.4, 0, 0.2, 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);
  background-color: var(--cream);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--maroon);
}

.hindi-text {
  font-family: var(--font-hindi);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: var(--space-sm);
}

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

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

/* ---------- Utility Classes ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.container-wide {
  max-width: 1400px;
}

.section {
  padding: var(--space-xl) 0;
  position: relative;
}

/* Consistent section spacing */
.section+.section {
  border-top: 1px solid rgba(139, 69, 19, 0.08);
}

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

.section-dark h2,
.section-dark h3 {
  color: var(--gold);
}

.text-center {
  text-align: center;
}

.text-saffron {
  color: var(--saffron);
}

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

.text-maroon {
  color: var(--maroon);
}

.bg-saffron {
  background-color: var(--saffron);
}

.bg-gold {
  background-color: var(--gold);
}

.bg-maroon {
  background-color: var(--maroon);
}

/* ---------- Section Title ---------- */
.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
  padding: 0 var(--space-md);
}

.section-title h2 {
  display: inline-block;
  position: relative;
  padding-bottom: var(--space-sm);
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-saffron);
  border-radius: 2px;
}

.section-title .subtitle {
  font-family: var(--font-hindi);
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-top: var(--space-sm);
}

/* ---------- Decorative Elements ---------- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.divider-line {
  width: 100px;
  height: 2px;
  background: var(--gradient-gold);
}

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

.om-symbol {
  font-size: 2rem;
  color: var(--gold);
  text-shadow: var(--shadow-divine);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 1rem 2rem;
  font-family: var(--font-hindi);
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-medium);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-saffron);
  color: var(--text-light);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  color: var(--text-light);
}

.btn-secondary {
  background: transparent;
  color: var(--saffron);
  border: 2px solid var(--saffron);
}

.btn-secondary:hover {
  background: var(--saffron);
  color: var(--text-light);
}

.btn-gold {
  background: var(--gradient-gold);
  color: var(--maroon-deep);
  box-shadow: var(--shadow-divine);
}

.btn-gold:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.6);
}

.btn-large {
  padding: 1.25rem 3rem;
  font-size: 1.25rem;
}

/* ---------- Cards ---------- */
.card {
  background: var(--divine-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-medium);
}

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

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: var(--space-md);
}

.card-title {
  font-family: var(--font-hindi);
  color: var(--maroon);
  margin-bottom: var(--space-xs);
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---------- Header / Navigation ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
  transition: var(--transition-medium);
}

/* Top decorative bar */
.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
      transparent 0%,
      var(--saffron) 20%,
      var(--gold) 50%,
      var(--saffron) 80%,
      transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.header.scrolled::before {
  opacity: 1;
}

.header .container {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  transition: var(--transition-medium);
}

.header.scrolled {
  background: linear-gradient(180deg,
      rgba(26, 10, 5, 0.98) 0%,
      rgba(44, 24, 16, 0.95) 100%);
  backdrop-filter: blur(20px);
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.3),
    0 1px 0 rgba(212, 175, 55, 0.1) inset;
}

.header.scrolled .container {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  position: relative;
}

.nav-logo img {
  height: 55px;
  width: auto;
  transition: var(--transition-fast);
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3));
}

.header.scrolled .nav-logo img {
  height: 45px;
}

.nav-logo:hover img {
  filter: drop-shadow(0 4px 15px rgba(212, 175, 55, 0.5));
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem;
  border-radius: 50px;
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.nav-links li {
  position: relative;
}

.nav-links a {
  font-family: var(--font-hindi);
  color: var(--cream);
  font-size: 0.95rem;
  padding: 0.6rem 1.1rem;
  position: relative;
  transition: var(--transition-fast);
  border-radius: 50px;
  display: inline-block;
}

.nav-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.15), rgba(212, 175, 55, 0.1));
  border-radius: 50px;
  opacity: 0;
  transition: var(--transition-fast);
}

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

.nav-links a:hover::before {
  opacity: 1;
}

.nav-donate {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%) !important;
  color: var(--maroon-deep) !important;
  font-weight: 700 !important;
  padding: 0.7rem 1.5rem !important;
  box-shadow:
    0 4px 15px rgba(212, 175, 55, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.nav-donate::before {
  display: none !important;
}

.nav-donate:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 6px 25px rgba(212, 175, 55, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.3) inset;
  color: var(--maroon-deep) !important;
}

/* Mobile Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  cursor: pointer;
  padding: 12px;
  transition: var(--transition-fast);
}

.nav-toggle:hover {
  background: rgba(212, 175, 55, 0.2);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ---------- Modern Hero Section ---------- */
.hero-modern {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg,
      #1a0808 0%,
      #2d1212 30%,
      #4a1a1a 60%,
      #5c2020 100%);
  padding: 120px 0 80px;
}

/* Abstract decorative shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--saffron) 100%);
  top: -200px;
  right: -100px;
  animation: float 20s ease-in-out infinite;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--gold) 100%);
  bottom: -100px;
  left: -100px;
  animation: float 15s ease-in-out infinite reverse;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--gold);
  top: 40%;
  left: 30%;
  animation: float 12s ease-in-out infinite;
}

.shape-circle {
  width: 80px;
  height: 80px;
  border: 2px solid var(--gold);
  background: transparent;
  top: 20%;
  right: 20%;
  opacity: 0.15;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-30px) rotate(5deg);
  }
}

.hero-modern-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-grid);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  max-width: 600px;
}

.hero-tag {
  display: inline-block;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-family: var(--font-hindi);
  margin-bottom: var(--space-md);
}

.hero-modern-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.hero-modern-title .highlight {
  color: var(--gold);
  text-shadow: 0 0 40px rgba(212, 175, 55, 0.4);
}

.hero-modern-subtitle {
  font-family: var(--font-hindi);
  font-size: 1.15rem;
  color: rgba(255, 248, 231, 0.8);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.hero-stats-row {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.hero-mini-stat {
  text-align: left;
}

.mini-stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.mini-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 248, 231, 0.7);
  font-family: var(--font-hindi);
}

.hero-modern-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-gold);
  color: var(--maroon-deep);
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-hindi);
  transition: var(--transition-medium);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
  color: var(--maroon-deep);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--cream);
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 1.1rem;
  font-family: var(--font-hindi);
  border: 2px solid rgba(255, 248, 231, 0.3);
  transition: var(--transition-medium);
}

.btn-hero-secondary:hover {
  background: rgba(255, 248, 231, 0.1);
  border-color: var(--cream);
  color: var(--cream);
}

/* Hero Visual Section */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image-frame {
  position: relative;
  width: fit-content;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  border: 5px solid #e5c04970;
  border-radius: 100px;
  justify-content: center;
  box-shadow: 0px 12px 20px 0px #d4af37c4;
}

.hero-image-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.hero-image-frame.no-image {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 107, 0, 0.1));
  border: 2px dashed rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
}

.hero-image-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.82) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.hero-visual-badge {
  position: absolute;
  bottom: 20px;
  right: 0;
  background: var(--gradient-gold);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.badge-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--maroon-deep);
  line-height: 1;
}

.badge-text {
  font-size: 0.85rem;
  color: var(--maroon);
  font-family: var(--font-hindi);
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.hero-scroll-indicator a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 248, 231, 0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: var(--transition-medium);
}

.hero-scroll-indicator a:hover {
  color: var(--gold);
}

.hero-scroll-indicator svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold);
  animation: bounce 2s infinite;
}

/* Hero Animations */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(5deg);
  }
}

/* Responsive Hero */
@media (max-width: 992px) {
  .hero-modern-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-stats-row {
    justify-content: center;
  }

  .hero-modern-buttons {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero-modern {
    padding: 100px 0 60px;
  }

  .hero-stats-row {
    gap: var(--space-md);
  }

  .mini-stat-number {
    font-size: 2rem;
  }
}


/* ---------- About Section ---------- */
.about {
  background: var(--cream);
  position: relative;
}

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

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-content h2 {
  margin-bottom: var(--space-md);
}

.about-highlight {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--gradient-saffron);
  color: var(--text-light);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  font-family: var(--font-hindi);
}

.about-text {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

/* ---------- Project Section ---------- */
.project-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
  position: relative;
}

.project-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-card);
  margin-bottom: var(--space-lg);
}

.project-stat-card {
  background: linear-gradient(135deg, var(--maroon-deep) 0%, var(--maroon) 100%);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.project-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-gold);
}

.project-stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(128, 0, 32, 0.4);
}

.project-stat-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.project-stat-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.5);
  line-height: 1.1;
}

.project-stat-value span {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.8;
  margin-left: 0.25rem;
}

.project-stat-label {
  font-family: var(--font-hindi);
  font-size: 1rem;
  color: var(--cream);
  margin-top: 0.25rem;
  font-weight: 500;
}

.project-stat-desc {
  font-size: 0.8rem;
  color: rgba(255, 248, 231, 0.6);
  margin-top: 0.25rem;
}

.project-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-grid);
  align-items: stretch;
}

.project-details-card {
  background: var(--divine-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  display: flex;
  flex-direction: column;
}

.project-specs {
  padding: var(--space-md);
  flex: 1;
}

.project-card-header {
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.project-card-icon {
  font-size: 2rem;
}

.project-card-header h3 {
  color: var(--text-light);
  margin: 0;
  font-size: 1.5rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(139, 69, 19, 0.1);
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-label {
  font-weight: 500;
  color: var(--maroon);
  font-family: var(--font-hindi);
}

.spec-value {
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(212, 175, 55, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.9rem;
}

.spec-value.highlight {
  background: var(--gradient-saffron);
  color: var(--text-light);
}

.project-card-footer {
  background: rgba(128, 0, 32, 0.05);
  padding: var(--space-md);
  text-align: center;
  border-top: 2px dashed rgba(212, 175, 55, 0.3);
}

.project-card-footer p {
  color: var(--maroon);
  font-weight: 500;
  margin: 0;
  font-size: 0.95rem;
}

.project-image-card {
  background: var(--divine-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.project-image-wrapper {
  position: relative;
  overflow: hidden;
}

.project-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-medium);
}

.project-image-card:hover .project-image-wrapper img {
  transform: scale(1.05);
}

.project-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(128, 0, 32, 0.9), transparent);
  padding: var(--space-md);
  padding-top: var(--space-lg);
}

.project-image-overlay span {
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 600;
}

.project-image-caption {
  padding: var(--space-md);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
}

.project-image-caption p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Responsive Project Section */
@media (max-width: 992px) {
  .project-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .project-stats-grid {
    grid-template-columns: 1fr;
  }

  .project-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    padding: 1rem 1.5rem;
  }

  .project-stat-icon {
    font-size: 2rem;
    margin-bottom: 0;
  }
}

/* ---------- Leadership Section ---------- */
.leadership-section {
  background: linear-gradient(180deg,
      var(--maroon-deep) 0%,
      #3d1a15 50%,
      var(--maroon) 100%);
  position: relative;
  overflow: hidden;
}

.leadership-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-gold);
}

.leadership-section .section-title h2,
.leadership-section .section-title .subtitle {
  color: var(--cream);
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto;
}

.leadership-card {
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-medium);
}

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

.leadership-image-wrapper {
  position: relative;
  padding: var(--space-md);
  padding-bottom: 0;
  display: flex;
  justify-content: center;
}

.leadership-image-wrapper img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-round);
  border: 4px solid var(--gold);
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(212, 175, 55, 0.3);
}

.leadership-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.leadership-content {
  padding: var(--space-md);
  text-align: center;
}

.leadership-badge {
  display: inline-block;
  background: var(--gradient-gold);
  color: var(--maroon-deep);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.leadership-name {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.leadership-alias {
  color: var(--cream);
  opacity: 0.9;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.leadership-divider {
  width: 60px;
  height: 2px;
  background: var(--gradient-gold);
  margin: 0 auto 0.75rem;
}

.leadership-designation {
  color: rgba(255, 248, 231, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.leadership-tag {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.leadership-tag span {
  background: rgba(255, 107, 0, 0.15);
  border: 1px solid rgba(255, 107, 0, 0.3);
  color: var(--saffron-light);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

.leadership-footer {
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.leadership-footer p {
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 500;
}

/* Responsive Leadership */
@media (max-width: 768px) {
  .leadership-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .leadership-image-wrapper img {
    width: 150px;
    height: 150px;
  }
}

/* ---------- Stats Section (Premium) ---------- */
.stats-section {
  background: linear-gradient(180deg,
      #1a0a05 0%,
      #2d1510 30%,
      #4a2520 60%,
      #5c2d25 100%);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

/* Decorative borders */
.stats-decoration-top,
.stats-decoration-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg,
      transparent 0%,
      var(--saffron) 15%,
      var(--gold) 35%,
      var(--gold-light) 50%,
      var(--gold) 65%,
      var(--saffron) 85%,
      transparent 100%);
}

.stats-decoration-top {
  top: 0;
}

.stats-decoration-bottom {
  bottom: 0;
}

/* Background pattern */
.stats-section::before {
  content: 'ॐ';
  position: absolute;
  font-size: 30vw;
  color: rgba(212, 175, 55, 0.03);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-hindi);
  pointer-events: none;
}

.stats-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.stats-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(255, 107, 0, 0.15));
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

.stats-grid-premium {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-card);
  position: relative;
  z-index: 1;
}

.stat-card {
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-medium);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
  opacity: 0.7;
}

.stat-card:hover {
  transform: translateY(-10px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(212, 175, 55, 0.15);
}

.stat-card-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: var(--transition-medium);
}

.stat-card:hover .stat-card-glow {
  opacity: 1;
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.stat-card .stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow:
    0 2px 20px rgba(212, 175, 55, 0.5),
    0 0 40px rgba(212, 175, 55, 0.3);
  display: block;
  line-height: 1;
}

.stat-unit {
  display: block;
  font-size: 0.9rem;
  color: var(--gold-light);
  opacity: 0.8;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.stat-card .stat-label {
  font-family: var(--font-hindi);
  font-size: 1rem;
  color: var(--cream);
  opacity: 0.9;
  display: block;
}

.stat-tag {
  display: inline-block;
  background: rgba(255, 107, 0, 0.2);
  border: 1px solid rgba(255, 107, 0, 0.3);
  color: var(--saffron-light);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-top: 0.75rem;
}

/* Responsive Stats */
@media (max-width: 992px) {
  .stats-grid-premium {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .stats-grid-premium {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .stat-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.25rem 1rem;
    text-align: left;
    padding: 1.25rem;
  }

  .stat-icon {
    grid-row: span 2;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
  }

  .stat-card .stat-number {
    font-size: 2rem;
  }

  .stat-unit {
    display: inline;
    margin-left: 0.25rem;
  }

  .stat-card .stat-label {
    grid-column: 2;
  }

  .stat-tag {
    grid-column: 2;
    justify-self: start;
    margin-top: 0.5rem;
  }

  .stat-card-glow {
    display: none;
  }
}

/* ---------- Facilities Section (Premium) ---------- */
.facilities-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.facilities-premium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-card);
}

.facility-premium-card {
  background: var(--divine-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-medium);
  border: 1px solid rgba(139, 69, 19, 0.1);
}

.facility-premium-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(128, 0, 32, 0.15);
  border-color: var(--saffron);
}

.facility-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.facility-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

.facility-premium-card:hover .facility-image img {
  transform: scale(1.1);
}

.facility-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(128, 0, 32, 0.7) 0%,
      rgba(128, 0, 32, 0.2) 40%,
      transparent 100%);
}

.facility-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gradient-gold);
  color: var(--maroon-deep);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.facility-content {
  padding: var(--space-md);
  position: relative;
}

.facility-icon-badge {
  position: absolute;
  top: -28px;
  left: 1.5rem;
  width: 56px;
  height: 56px;
  background: var(--gradient-saffron);
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
  border: 3px solid var(--divine-white);
}

.facility-content .facility-title {
  font-family: var(--font-hindi);
  font-size: 1.3rem;
  color: var(--maroon);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.facility-content .facility-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.facility-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.facility-features span {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--maroon);
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-weight: 500;
}

/* Responsive Facilities */
@media (max-width: 992px) {
  .facilities-premium-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .facilities-premium-grid {
    grid-template-columns: 1fr;
  }

  .facility-image {
    height: 180px;
  }
}

/* ---------- Gallery Section ---------- */
.gallery {
  background: var(--cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(128, 0, 32, 0.8), transparent);
  opacity: 0;
  transition: var(--transition-medium);
  display: flex;
  align-items: flex-end;
  padding: var(--space-sm);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: var(--text-light);
  font-family: var(--font-hindi);
  font-size: 0.9rem;
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

/* ---------- Donation Section ---------- */
.donate-section {
  background: linear-gradient(135deg,
      var(--maroon-deep) 0%,
      var(--maroon) 50%,
      var(--sacred-red) 100%);
  position: relative;
  overflow: hidden;
}

.donate-section::before {
  content: 'ॐ';
  position: absolute;
  font-size: 40vw;
  color: rgba(255, 255, 255, 0.03);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-hindi);
}

.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-grid);
  align-items: center;
  position: relative;
  z-index: 1;
}

.donate-content h2 {
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.donate-content p {
  color: var(--cream);
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
}

.donate-quote {
  font-family: var(--font-hindi);
  font-style: italic;
  color: var(--gold-light);
  font-size: 1.25rem;
  padding-left: var(--space-md);
  border-left: 4px solid var(--gold);
  margin-bottom: var(--space-lg);
}

.donate-qr-container {
  background: var(--divine-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-divine);
}

.donate-qr-title {
  font-family: var(--font-hindi);
  color: var(--maroon);
  margin-bottom: var(--space-md);
}

.donate-qr-image {
  width: 220px;
  height: auto;
  margin: 0 auto var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.donate-qr-label {
  font-family: var(--font-hindi);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ---------- Contact Section ---------- */
.contact {
  background: var(--cream-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.contact-info h3 {
  color: var(--maroon);
  margin-bottom: var(--space-md);
}

.contact-item {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-saffron);
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

.contact-details h4 {
  font-family: var(--font-hindi);
  color: var(--maroon);
  margin-bottom: 4px;
}

.contact-details p {
  color: var(--text-secondary);
  margin: 0;
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

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

/* ---------- Social Links ---------- */
.social-links {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.social-link {
  width: 45px;
  height: 45px;
  background: var(--gradient-saffron);
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-link:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: var(--shadow-glow);
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: white;
}

/* ---------- Footer ---------- */
.footer {
  background: linear-gradient(180deg,
      #1a0a05 0%,
      #2c1810 30%,
      #3d2517 70%,
      #4a2d1d 100%);
  color: var(--cream);
  padding: 0;
  position: relative;
}

/* Decorative top border */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
      var(--saffron) 0%,
      var(--gold) 25%,
      var(--saffron) 50%,
      var(--gold) 75%,
      var(--saffron) 100%);
}

/* Footer top section with Om symbol */
.footer-top {
  text-align: center;
  padding: var(--space-lg) 0 var(--space-md);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.footer-om {
  font-size: 3rem;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-family: var(--font-hindi);
  font-size: 1.1rem;
  color: var(--cream);
  opacity: 0.8;
}

.footer-main {
  padding: var(--space-lg) 0;
}

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

.footer-brand {
  max-width: 380px;
}

.footer-logo {
  height: 70px;
  margin-bottom: var(--space-md);
  filter: drop-shadow(0 2px 10px rgba(212, 175, 55, 0.3));
}

.footer-desc {
  color: rgba(255, 248, 231, 0.8);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

/* Footer social links in brand area */
.footer-brand .social-links {
  margin-top: var(--space-md);
  gap: 0.75rem;
}

.footer-brand .social-link {
  width: 42px;
  height: 42px;
  background: transparent;
  border: 2px solid rgba(212, 175, 55, 0.4);
  border-radius: 10px;
}

.footer-brand .social-link:hover {
  background: var(--gradient-gold);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.footer-brand .social-link svg {
  width: 18px;
  height: 18px;
  fill: var(--gold);
  stroke: var(--gold);
  stroke-width: 0;
  transition: var(--transition-fast);
}

.footer-brand .social-link:hover svg {
  fill: var(--maroon-deep);
  stroke: var(--maroon-deep);
}

/* Footer columns */
.footer-column h4 {
  color: var(--gold);
  font-family: var(--font-hindi);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
  display: inline-block;
}

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

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

.footer-links a {
  color: rgba(255, 248, 231, 0.75);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  position: relative;
  padding-left: 1rem;
}

.footer-links a::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--saffron);
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 1.25rem;
}

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

/* Footer bottom */
.footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  padding: var(--space-md) 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-copyright {
  font-size: 0.9rem;
  color: rgba(255, 248, 231, 0.6);
}

.footer-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-family: var(--font-hindi);
  font-size: 0.85rem;
  color: var(--gold);
}

.footer-trust::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--gold);
  color: var(--maroon-deep);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: bold;
}

/* ---------- Music Toggle Button ---------- */
.music-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9998;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: linear-gradient(135deg, var(--maroon-deep), var(--maroon));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(212, 175, 55, 0.2);
  transition: var(--transition-medium);
}

.music-toggle:hover {
  transform: scale(1.1);
  box-shadow: 
    0 6px 25px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(212, 175, 55, 0.4);
}

.music-toggle.playing {
  animation: musicPulse 1s ease-in-out infinite;
}

@keyframes musicPulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 175, 55, 0.2);
  }
  50% {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4), 0 0 40px rgba(212, 175, 55, 0.5);
  }
}

/* ---------- Temple Gate Preloader ---------- */
.gate-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #1a0808 0%, #2d1212 100%);
}

.gate-loader.loaded {
  pointer-events: none;
}

.gate-loader.loaded .gate-left {
  transform: rotateY(-105deg);
}

.gate-loader.loaded .gate-right {
  transform: rotateY(105deg);
}

.gate-loader.loaded .gate-reveal {
  opacity: 1;
  transform: scale(1);
}

.gate-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Gate Doors */
.gate {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(180deg,
      #3d1a0a 0%,
      #5c2815 30%,
      #6b3520 50%,
      #5c2815 70%,
      #3d1a0a 100%);
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left center;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.5);
}

.gate-left {
  left: 0;
  transform-origin: left center;
  border-right: 4px solid #2a1005;
}

.gate-right {
  right: 0;
  transform-origin: right center;
  border-left: 4px solid #2a1005;
}

/* Gate Decorative Pattern */
.gate-pattern {
  position: absolute;
  inset: 20px;
  border: 3px solid var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate-left .gate-pattern {
  border-right: none;
  border-radius: 8px 0 0 8px;
}

.gate-right .gate-pattern {
  border-left: none;
  border-radius: 0 8px 8px 0;
}

/* Gate Design (Om pattern) */
.gate-design {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
}

.gate-design::before {
  content: 'ॐ';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.4;
  font-family: var(--font-hindi);
}

/* Gate Handles */
.gate-handle {
  position: absolute;
  width: 20px;
  height: 60px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold), var(--gold-dark));
  border-radius: 10px;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.4);
}

.gate-left .gate-handle {
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.gate-right .gate-handle {
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
}

/* Gate Reveal Content */
.gate-reveal {
  position: relative;
  z-index: -1;
  text-align: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease 0.8s, transform 0.8s ease 0.8s;
}

.gate-om {
  font-size: 5rem;
  color: var(--gold);
  text-shadow: 0 0 60px rgba(212, 175, 55, 0.5);
  animation: omPulse 2s ease-in-out infinite;
  margin-bottom: 1rem;
}

.gate-text {
  font-size: 2rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 20px rgba(212, 175, 55, 0.4);
}

.gate-subtext {
  font-size: 1rem;
  color: var(--cream);
  opacity: 0.8;
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-divine);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: var(--transition-divine);
}

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

.slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: var(--transition-divine);
}

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

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition-divine);
}

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

/* Stagger animations for children */
.stagger-children>*:nth-child(1) {
  transition-delay: 0.1s;
}

.stagger-children>*:nth-child(2) {
  transition-delay: 0.2s;
}

.stagger-children>*:nth-child(3) {
  transition-delay: 0.3s;
}

.stagger-children>*:nth-child(4) {
  transition-delay: 0.4s;
}

.stagger-children>*:nth-child(5) {
  transition-delay: 0.5s;
}

.stagger-children>*:nth-child(6) {
  transition-delay: 0.6s;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(44, 24, 16, 0.98);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-sm);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item.large {
    grid-column: span 1;
    grid-row: span 1;
  }

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

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

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

  .footer-brand {
    max-width: 100%;
  }

  .social-links {
    justify-content: center;
  }

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

@media (max-width: 480px) {
  :root {
    font-size: 14px;
  }

  .container {
    padding: 0 var(--space-sm);
  }

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

  .stat-number {
    font-size: 2rem;
  }

  .donate-qr-image {
    width: 200px;
    height: auto;
  }
}

/* ---------- Page Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--maroon-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-om {
  font-size: 4rem;
  color: var(--gold);
  animation: omPulse 1.5s ease-in-out infinite;
}

@keyframes omPulse {

  0%,
  100% {
    transform: scale(1);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
  }

  50% {
    transform: scale(1.1);
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.8);
  }
}

.loader-text {
  font-family: var(--font-hindi);
  color: var(--cream);
  margin-top: var(--space-sm);
  opacity: 0.8;
}