/* ============================================================
   DESIGN SYSTEM — श्री 1008 भगवान महावीर दिगम्बर जैन मंदिर
   Next-Gen Redesign | 2026
   ============================================================ */

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

/* ===== CSS VARIABLES ===== */
:root {
  /* Sacred color palette */
  --obsidian:       #080407;
  --deep-crimson:   #150303;
  --ivory:          #FAF7F2;
  --offwhite:       #F5F0E8;
  --beige:          #E8DCC8;
  --sandalwood:     #D4B896;
  --saffron:        #E8732A;
  --saffron-light:  #F09050;
  --saffron-dark:   #C5571A;
  --maroon:         #8B1A1A;
  --maroon-deep:    #5C0E0E;
  --maroon-light:   #A52020;
  --gold:           #C5A028;
  --gold-bright:    #E8C040;
  --gold-light:     #D4B040;
  --gold-glow:      rgba(197,160,40,0.4);
  --stone:          #9E9589;
  --stone-light:    #C8C2B8;
  --text-dark:      #1E1810;
  --text-mid:       #3A3020;
  --text-light:     #5A5040;

  /* Glass effects */
  --glass-bg:       rgba(250,247,242,0.08);
  --glass-border:   rgba(197,160,40,0.25);
  --shadow:         rgba(44,36,22,0.12);
  --shadow-deep:    rgba(44,36,22,0.35);

  /* Transitions */
  --transition:        0.4s cubic-bezier(0.4,0,0.2,1);
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34,1.56,0.64,1);
  --border-radius-card: 24px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; }
body {
  font-family: 'Lato', sans-serif;
  background: var(--ivory);
  color: var(--text-dark);
  line-height: 1.85;
  overflow-x: hidden;
  cursor: none;
}
h1,h2,h3,h4 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.35;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: 'Lato', sans-serif; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--beige); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--gold-bright), var(--saffron));
  border-radius: 3px;
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--gold-bright);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 99999;
  transform: translate(-50%,-50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 2px solid rgba(197,160,40,0.6);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 99998;
  transform: translate(-50%,-50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}
body:hover .cursor-ring { opacity: 1; }
.cursor-hover .cursor-ring {
  width: 60px; height: 60px;
  border-color: rgba(232,115,42,0.8);
  background: rgba(197,160,40,0.05);
}
.cursor-hover .cursor-dot {
  width: 4px; height: 4px;
  background: var(--saffron);
}

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed; inset: 0; z-index: 100000;
  background: var(--obsidian);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-mandala {
  width: 140px; height: 140px;
  animation: rotateMandala 2.5s linear infinite;
  filter: drop-shadow(0 0 20px rgba(197,160,40,0.5));
}
.preloader-bar {
  width: 200px; height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px; margin-top: 2.5rem;
  overflow: hidden;
}
.preloader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--maroon), var(--gold-bright), var(--saffron));
  animation: preloaderFill 1.8s ease-in-out forwards;
}
@keyframes preloaderFill { from { width: 0% } to { width: 100% } }
@keyframes rotateMandala { to { transform: rotate(360deg); } }
@keyframes omPulse {
  0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 0.9; }
  50% { transform: translate(-50%,-50%) scale(1.08); opacity: 1; }
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--maroon), var(--gold-bright), var(--saffron));
  z-index: 10001;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(197,160,40,0.6);
}

/* ============================================================
   GLASSMORPHIC FLOATING PILL NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 1100px;
  z-index: 1000;
  background: rgba(250,247,242,0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(197,160,40,0.3);
  border-radius: 60px;
  box-shadow: 0 8px 40px rgba(139,26,26,0.12), 0 2px 8px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
#navbar.scrolled {
  background: rgba(250,247,242,0.97);
  box-shadow: 0 12px 50px rgba(139,26,26,0.2), 0 4px 16px rgba(0,0,0,0.12);
  top: 0.5rem;
}
.nav-inner {
  max-width: 100%; display: flex; align-items: center;
  justify-content: space-between; padding: 0.6rem 1.2rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.nav-logo {
  width: 40px; height: 40px;
  background: radial-gradient(circle at 40% 40%, var(--gold-bright) 0%, var(--gold) 40%, var(--maroon) 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; color: #fff; font-weight: 700;
  border: 2px solid rgba(197,160,40,0.5);
  box-shadow: 0 0 16px rgba(197,160,40,0.4);
  flex-shrink: 0;
  transition: box-shadow 0.3s ease;
  animation: logoGlow 3s ease-in-out infinite;
}
@keyframes logoGlow {
  0%, 100% { box-shadow: 0 0 16px rgba(197,160,40,0.4); }
  50%       { box-shadow: 0 0 28px rgba(197,160,40,0.7), 0 0 40px rgba(232,115,42,0.3); }
}
.nav-logo:hover { box-shadow: 0 0 28px rgba(197,160,40,0.7); }
.nav-title-block { display: flex; flex-direction: column; }
.nav-title { font-family: 'Playfair Display', serif; font-size: 0.95rem; font-weight: 700; color: var(--maroon); line-height: 1.1; }
.nav-subtitle { font-size: 0.65rem; color: var(--stone); letter-spacing: 0.06em; }
.nav-links {
  display: flex; align-items: center; gap: 0.1rem;
}
.nav-links a {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--text-mid); padding: 0.35rem 0.7rem;
  border-radius: 30px; transition: all 0.25s ease;
  text-transform: uppercase; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--maroon), var(--saffron-dark));
  box-shadow: 0 4px 16px rgba(139,26,26,0.3);
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px; cursor: pointer;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--maroon); border-radius: 2px;
  transition: var(--transition-smooth);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 900px) {
  #navbar { border-radius: 16px; top: 0.6rem; }
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 72px; left: 1rem; right: 1rem;
    background: rgba(250,247,242,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column; align-items: stretch;
    padding: 1rem; gap: 0.2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 16px 40px rgba(44,36,22,0.18);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.9rem 1rem; border-radius: 10px; font-size: 1rem; }
}

/* ============================================================
   TILT CARD
   ============================================================ */
.tilt-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt-card:hover { box-shadow: 0 20px 60px rgba(44,36,22,0.25); }

/* ============================================================
   SECTION 1: HERO — Cinematic Multi-layer
   ============================================================ */
#hero {
  min-height: 100vh;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: url('photo2.png') center center / cover no-repeat;
  background-attachment: fixed;
}
/* Dark gradient overlay */
#hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(8,4,7,0.88) 0%,
    rgba(21,3,3,0.82) 40%,
    rgba(12,4,2,0.85) 100%
  );
}
/* Aurora layer */
.hero-aurora {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 40%,
    rgba(139,26,26,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%,
    rgba(197,160,40,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 30% 30% at 20% 20%,
    rgba(232,115,42,0.1) 0%, transparent 60%);
  transition: background 0.15s ease;
}
/* Noise texture */
.hero-noise {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4; mix-blend-mode: overlay;
}
/* Animated sacred rings */
.hero-rings {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.hero-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(197,160,40,0.08);
  animation: ringExpand 8s ease-in-out infinite;
}
.hero-ring:nth-child(1) { width: 200px; height: 200px; animation-delay: 0s; border-color: rgba(197,160,40,0.12); }
.hero-ring:nth-child(2) { width: 400px; height: 400px; animation-delay: 1s; border-color: rgba(197,160,40,0.08); }
.hero-ring:nth-child(3) { width: 600px; height: 600px; animation-delay: 2s; border-color: rgba(197,160,40,0.05); }
.hero-ring:nth-child(4) { width: 800px; height: 800px; animation-delay: 3s; border-color: rgba(197,160,40,0.03); }
@keyframes ringExpand {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.6; }
}
/* Original decorative elements */
.hero-mandala {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(700px, 95vw); height: min(700px, 95vw);
  border-radius: 50%; z-index: 2;
  border: 1px solid rgba(197,160,40,0.12);
  animation: rotateSlow 120s linear infinite;
}
.hero-mandala::before {
  content: '';
  position: absolute; inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(232,115,42,0.10);
  animation: rotateSlow 80s linear infinite reverse;
}
.hero-mandala::after {
  content: '';
  position: absolute; inset: 28%;
  border-radius: 50%;
  border: 1px solid rgba(197,160,40,0.15);
  animation: rotateSlow 50s linear infinite;
}
@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.hero-particles {
  position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none;
}
.hero-particles::before {
  content: 'ॐ';
  position: absolute; top: 15%; left: 8%;
  font-size: 7rem; font-family: 'Cormorant Garamond', serif;
  color: rgba(197,160,40,0.07);
  animation: floatParticle 10s ease-in-out infinite;
}
.hero-particles::after {
  content: 'ॐ';
  position: absolute; top: 60%; right: 6%;
  font-size: 5rem; font-family: 'Cormorant Garamond', serif;
  color: rgba(232,115,42,0.06);
  animation: floatParticle 13s ease-in-out infinite reverse;
  animation-delay: -4s;
}
.hero-float-decor {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
}
.hero-float-decor::before {
  content: '☸';
  position: absolute; top: 25%; right: 10%;
  font-size: 6rem;
  color: rgba(197,160,40,0.06);
  animation: floatParticle 9s ease-in-out infinite;
  animation-delay: -2s;
}
.hero-float-decor::after {
  content: '☸';
  position: absolute; bottom: 20%; left: 5%;
  font-size: 4rem;
  color: rgba(232,115,42,0.05);
  animation: floatParticle 11s ease-in-out infinite reverse;
  animation-delay: -6s;
}
@keyframes floatParticle {
  0%   { transform: translateY(0px) rotate(0deg);   opacity: 0.8; }
  33%  { transform: translateY(-28px) rotate(8deg); opacity: 1;   }
  66%  { transform: translateY(14px) rotate(-5deg); opacity: 0.6; }
  100% { transform: translateY(0px) rotate(0deg);   opacity: 0.8; }
}
/* Hero content */
.hero-content {
  position: relative; z-index: 10; text-align: center;
  padding: 2rem 1.5rem; max-width: 900px; margin: 0 auto;
}
.hero-eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem; letter-spacing: 0.3em;
  color: rgba(197,160,40,0.8); text-transform: uppercase;
  margin-bottom: 1.2rem;
  animation: fadeSlideUp 1s ease 0.3s both;
}
.hero-om {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 10vw, 8rem);
  color: transparent;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 50%, var(--saffron) 100%);
  -webkit-background-clip: text; background-clip: text;
  line-height: 1; display: block; margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 30px rgba(197,160,40,0.5));
  animation: omGlow 3s ease-in-out infinite;
}
@keyframes omGlow {
  0%,100% { filter: drop-shadow(0 0 20px rgba(197,160,40,0.4)); }
  50% { filter: drop-shadow(0 0 50px rgba(197,160,40,0.8)); }
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 300; color: #fff;
  line-height: 1.12; letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
  animation: fadeSlideUp 1s ease 0.5s both;
}
.hero-title strong {
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 20px rgba(197,160,40,0.4));
}
.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: rgba(255,255,255,0.85); font-style: italic;
  letter-spacing: 0.02em; margin-bottom: 0.3rem;
  animation: fadeSlideUp 1s ease 0.7s both;
}
.hero-tagline-en {
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem; letter-spacing: 0.2em;
  color: rgba(197,160,40,0.7); text-transform: uppercase;
  margin-bottom: 2rem;
  animation: fadeSlideUp 1s ease 0.9s both;
}
.hero-welcome {
  max-width: 620px; margin: 0 auto 2.5rem;
  font-size: 1.05rem; line-height: 1.9;
  color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(197,160,40,0.15);
  border-radius: 16px; padding: 1.2rem 1.5rem;
  animation: fadeSlideUp 1s ease 1.1s both;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  justify-content: center;
  animation: fadeSlideUp 1s ease 1.3s both;
}
.hero-cta .btn {
  padding: 0.8rem 1.8rem; border-radius: 50px;
  font-size: 0.92rem; font-weight: 700;
  letter-spacing: 0.05em; border: none;
  cursor: pointer; transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.hero-cta .btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0; transition: opacity 0.3s;
  border-radius: inherit;
}
.hero-cta .btn:hover::after { opacity: 1; }
.hero-cta .btn:hover { transform: translateY(-3px) scale(1.04); }
/* Scroll cue */
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%); z-index: 10;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.4rem; color: rgba(255,255,255,0.5);
  font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fadeSlideUp 1s ease 1.5s both;
}
.hero-scroll-arrow {
  width: 24px; height: 24px;
  border-right: 2px solid rgba(197,160,40,0.5);
  border-bottom: 2px solid rgba(197,160,40,0.5);
  transform: rotate(45deg);
  animation: arrowBounce 1.5s ease infinite;
}
@keyframes arrowBounce {
  0%,100% { transform: rotate(45deg) translateY(0); opacity: 0.6; }
  50% { transform: rotate(45deg) translateY(6px); opacity: 1; }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   BUTTON SYSTEM
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.8rem 1.7rem; border-radius: 50px;
  font-size: 0.88rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; border: 2px solid transparent;
  transition: var(--transition-smooth);
}
.btn-primary {
  background: linear-gradient(135deg, var(--maroon) 0%, #C52020 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(139,26,26,0.4), 0 2px 6px rgba(0,0,0,0.2);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 32px rgba(139,26,26,0.6);
}
.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff; border-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(197,160,40,0.6);
  transform: translateY(-3px);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #B8900A);
  color: #fff;
  box-shadow: 0 8px 24px rgba(197,160,40,0.4);
}
.btn-gold:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 32px rgba(197,160,40,0.6);
}

/* ============================================================
   STATS SECTION — Dark with Animated counters
   ============================================================ */
.stats-section {
  background: linear-gradient(135deg, #0D0505 0%, #1A0808 50%, #0A0404 100%);
  padding: 5rem 2rem; position: relative; overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  width: 380px; height: 380px;
  background: url('dharma.png') center center / contain no-repeat;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none; opacity: 0.06;
  animation: slowRotate 60s linear infinite;
}
@keyframes slowRotate { to { transform: translate(-50%,-50%) rotate(360deg); } }
.stats-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem;
  position: relative; z-index: 1;
}
.stat-item {
  text-align: center; padding: 2.5rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(197,160,40,0.15);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  position: relative; overflow: hidden;
}
.stat-item::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  opacity: 0.6;
}
.stat-item:hover { transform: translateY(-8px); border-color: rgba(197,160,40,0.4); }
.stat-item:hover { box-shadow: 0 20px 60px rgba(197,160,40,0.1); }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem; font-weight: 700; line-height: 1;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block; margin-bottom: 0.3rem;
}
.stat-item > span:not(.stat-num) {
  font-size: 2rem; color: var(--gold); margin-left: 2px;
  font-family: 'Cormorant Garamond', serif; font-weight: 700;
}
.stat-item p {
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em; text-transform: uppercase;
  font-family: 'Lato', sans-serif; margin: 0.5rem 0 0;
  line-height: 1.4;
}
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 440px) { .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; } .stat-item { padding: 1.5rem 1rem; } }

/* ============================================================
   SECTION BASE
   ============================================================ */
section { padding: 6rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
  display: inline-block; padding: 0.35rem 1.2rem;
  background: linear-gradient(135deg, var(--maroon), var(--saffron-dark));
  color: #fff; border-radius: 30px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(139,26,26,0.25);
}
h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 600; color: var(--maroon);
  line-height: 1.2; margin-bottom: 1rem;
}
.subtitle {
  font-size: 1.05rem; color: var(--text-light); max-width: 600px;
  margin: 0 auto; line-height: 1.8; font-style: italic;
}
/* Reveal animations */
.fade-in {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1),
              transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.12s; }
.fade-in-delay-2 { transition-delay: 0.24s; }
.fade-in-delay-3 { transition-delay: 0.36s; }
.fade-in-delay-4 { transition-delay: 0.48s; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* ============================================================
   MANDALA DIVIDER
   ============================================================ */
.mandala-divider {
  height: 60px;
  background: linear-gradient(135deg, var(--maroon-deep), var(--maroon));
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.mandala-divider::before, .mandala-divider::after {
  content: '';
  display: inline-block;
  width: 100px; height: 1px;
  background: linear-gradient(to right, transparent, rgba(197,160,40,0.5));
  vertical-align: middle; margin: 0 1rem;
  position: absolute;
}
.mandala-divider::before { left: 10%; }
.mandala-divider::after {
  right: 10%;
  background: linear-gradient(to left, transparent, rgba(197,160,40,0.5));
}
.mandala-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-bright), var(--gold), var(--saffron));
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: 0 0 0 6px rgba(197,160,40,0.15), 0 0 24px rgba(197,160,40,0.4);
  animation: mandalaRotate 20s linear infinite;
}
.mandala-icon::before {
  content: '☸'; font-size: 1.5rem; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
@keyframes mandalaRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about {
  background: var(--offwhite);
  position: relative; overflow: hidden;
}
#about::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(197,160,40,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem; align-items: center;
}
.about-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.about-visual img {
  width: 100%; border-radius: 28px;
  box-shadow: 0 24px 80px rgba(44,36,22,0.25);
  object-fit: cover; max-height: 480px;
  transition: transform 0.6s ease;
}
.about-visual:hover img { transform: scale(1.02); }
.about-visual::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 32px;
  border: 2px solid rgba(197,160,40,0.2);
  pointer-events: none;
  z-index: -1;
  transition: all 0.4s ease;
}
.about-visual:hover::after { border-color: rgba(197,160,40,0.5); inset: -12px; }
.about-text h2 { text-align: left; color: var(--maroon); margin-bottom: 1rem; font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
.about-text .section-tag { display: inline-block; margin-bottom: 1rem; }
.about-text p { color: var(--text-mid); margin-bottom: 1.1rem; }
.about-pillars {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem;
}
.pillar-card {
  background: linear-gradient(135deg, rgba(139,26,26,0.05), rgba(197,160,40,0.05));
  border: 1px solid rgba(197,160,40,0.2);
  border-radius: 16px; padding: 1.2rem 1.5rem;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.pillar-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--maroon), var(--gold-bright));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(197,160,40,0.12);
  border-color: rgba(197,160,40,0.4);
}
.pillar-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; color: var(--maroon); margin-bottom: 0.4rem;
}
.pillar-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; margin: 0; }
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-visual { margin-bottom: 0.5rem; }
  .about-pillars { grid-template-columns: 1fr; }
}

/* ============================================================
   MANTRAS SECTION — Dark Glassmorphic
   ============================================================ */
#mantras {
  background: linear-gradient(135deg, #080207 0%, #160408 40%, #0C0306 100%);
  position: relative; overflow: hidden;
}
#mantras::before {
  content: '';
  position: absolute;
  width: 60vw; height: 60vw; max-width: 700px; max-height: 700px;
  background: url('dharma.png') center center / contain no-repeat;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none; opacity: 0.04;
  animation: slowRotate 120s linear infinite;
}
#mantras .section-tag { background: linear-gradient(135deg, var(--gold), var(--saffron)); }
#mantras h2 { color: var(--gold-bright); }
#mantras .subtitle { color: rgba(255,255,255,0.5); }
.mantras-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem;
  position: relative; z-index: 1;
}
.mantra-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(197,160,40,0.2);
  backdrop-filter: blur(16px);
  border-radius: 20px; padding: 2rem 1.8rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative; overflow: hidden;
}
.mantra-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(197,160,40,0.08), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.mantra-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197,160,40,0.6), transparent);
}
.mantra-card:hover { border-color: rgba(197,160,40,0.7); transform: translateY(-6px); }
.mantra-card:hover::before { opacity: 1; }
.mantra-card:hover { box-shadow: 0 0 40px rgba(197,160,40,0.15), 0 20px 60px rgba(0,0,0,0.3); }
.mantra-num {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(197,160,40,0.6); display: block; margin-bottom: 0.8rem;
  font-weight: 700;
}
.mantra-sanskrit {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 600;
  color: var(--gold-bright);
  text-shadow: 0 0 30px rgba(197,160,40,0.4);
  line-height: 1.4; margin-bottom: 1rem;
}
.mantra-divider {
  width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--saffron), transparent);
  margin: 0 auto 1.2rem;
}
.mantra-translation {
  font-size: 0.92rem; color: rgba(255,255,255,0.55);
  font-style: italic; line-height: 1.75;
}

/* ============================================================
   DEITIES — 3D Flip Cards
   ============================================================ */
#deities {
  background: var(--ivory);
  position: relative;
}
#deities::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--saffron), var(--gold), transparent);
}
.deities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.deity-card-3d { perspective: 1200px; height: 420px; cursor: pointer; }
.deity-card-inner {
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}
.deity-card-3d:hover .deity-card-inner { transform: rotateY(180deg); }
.deity-card-front, .deity-card-back {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 24px; overflow: hidden;
  padding: 2rem 1.5rem;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
}
.deity-card-front {
  background: linear-gradient(160deg, var(--ivory), #EDE6D8);
  border: 1px solid rgba(197,160,40,0.2);
  box-shadow: 0 12px 40px var(--shadow);
}
.deity-card-back {
  background: linear-gradient(160deg, var(--maroon-deep), #2D0808);
  border: 1px solid rgba(197,160,40,0.3);
  transform: rotateY(180deg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.deity-figure {
  width: 120px; height: 120px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(197,160,40,0.2), rgba(139,26,26,0.1));
  border: 3px solid rgba(197,160,40,0.4);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin: 0 auto 1.2rem;
  box-shadow: 0 8px 32px rgba(197,160,40,0.2), inset 0 0 20px rgba(197,160,40,0.05);
  transition: box-shadow 0.3s;
}
.deity-card-3d:hover .deity-figure { box-shadow: 0 12px 40px rgba(197,160,40,0.35); }
.deity-figure-inner {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
}
.deity-figure.mahavir .deity-figure-inner {
  background: radial-gradient(circle at 40% 30%, #FFF4E0, #E8732A 80%);
}
.deity-figure.adinath .deity-figure-inner {
  background: radial-gradient(circle at 40% 30%, #FFF8E8, #C5A028 80%);
}
.deity-figure.parshvanath .deity-figure-inner {
  background: radial-gradient(circle at 40% 30%, #E8F4FF, #4A90C4 80%);
}
.deity-figure.neminath .deity-figure-inner {
  background: radial-gradient(circle at 40% 30%, #F4FFE8, #5A9A3A 80%);
}
.deity-num {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--saffron); display: block; margin-bottom: 0.4rem; font-weight: 700;
}
.deity-card-front h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--maroon); margin-bottom: 0.2rem;
}
.deity-hindi { font-family: 'Cormorant Garamond', serif; font-size: 1rem; color: var(--gold); margin-bottom: 0.8rem; font-style: italic; }
.deity-card-front p { font-size: 0.82rem; color: var(--text-light); line-height: 1.6; }
.deity-flip-hint {
  font-size: 0.72rem; color: var(--stone);
  margin-top: 1rem; letter-spacing: 0.05em;
  text-transform: uppercase; opacity: 0.7;
}
.deity-card-back h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; color: var(--gold-bright); margin-bottom: 0.5rem;
}
.deity-card-back .deity-hindi-back {
  color: var(--saffron-light); font-style: italic;
  font-size: 1rem; margin-bottom: 1.2rem;
}
.deity-card-back p { font-size: 0.88rem; color: rgba(255,255,255,0.7); line-height: 1.7; }
.deity-card-back .deity-back-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.8; }
@media (max-width: 480px) { .deity-card-3d { height: 460px; } }

/* ============================================================
   FOUNDERS SECTION
   ============================================================ */
#founders {
  background: linear-gradient(135deg, var(--offwhite) 0%, #EDE8DC 100%);
  position: relative;
}
.founders-inner {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 3.5rem; align-items: start;
}
.founders-emblem-wrap { display: flex; justify-content: center; }
.founders-emblem {
  width: 230px; height: 230px;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 30%, var(--saffron) 60%, var(--maroon) 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 50px rgba(197,160,40,0.45), 0 0 0 8px rgba(197,160,40,0.12);
  position: relative;
  animation: emblemFloat 6s ease-in-out infinite;
}
@keyframes emblemFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
.founders-emblem::before {
  content: '';
  position: absolute; inset: 12px;
  border-radius: 50%; border: 2px dashed rgba(255,255,255,0.45);
}
.founders-emblem-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; color: #fff; text-align: center;
  line-height: 1.5; font-style: italic;
}
.founders-text h2 { color: var(--maroon); margin-bottom: 1rem; }
.founders-text p { color: var(--text-mid); margin-bottom: 1rem; }
.founders-quote {
  border-left: 3px solid var(--gold); padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(197,160,40,0.06), rgba(139,26,26,0.03));
  border-radius: 0 12px 12px 0; margin-top: 1.5rem;
  font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; font-style: italic;
  color: var(--text-mid); line-height: 1.7;
  box-shadow: 0 4px 20px rgba(44,36,22,0.07);
}
@media (max-width: 700px) {
  .founders-inner { grid-template-columns: 1fr; gap: 2rem; }
  .founders-emblem-wrap { display: none; }
}

/* ============================================================
   MANAGEMENT SECTION
   ============================================================ */
#management { background: var(--ivory); }
.mgmt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem; margin-bottom: 2rem;
}
.mgmt-card {
  background: #fff; border-radius: 20px;
  padding: 1.8rem 1.5rem; text-align: center;
  border: 1px solid var(--beige);
  box-shadow: 0 4px 20px rgba(44,36,22,0.06);
  transition: all 0.4s var(--transition);
  position: relative; overflow: hidden;
}
.mgmt-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--maroon), var(--gold-bright));
  transform: scaleX(0); transition: transform 0.4s;
}
.mgmt-card:hover::after { transform: scaleX(1); }
.mgmt-card:hover { transform: translateY(-8px); box-shadow: 0 16px 48px rgba(44,36,22,0.14); }
.mgmt-avatar {
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--saffron-dark));
  color: #fff; font-weight: 700; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.8rem;
  box-shadow: 0 6px 20px rgba(139,26,26,0.3);
  border: 2px solid rgba(197,160,40,0.3);
  transition: var(--transition-smooth);
}
.mgmt-card:hover .mgmt-avatar {
  box-shadow: 0 6px 24px rgba(197,160,40,0.4);
  transform: scale(1.06);
}
.mgmt-role { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--saffron); margin-bottom: 0.4rem; font-weight: 700; }
.mgmt-card h4 { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--maroon); margin-bottom: 0.3rem; }
.mgmt-card p { font-size: 0.82rem; color: var(--text-light); margin: 0; line-height: 1.5; }
.mgmt-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; color: var(--text-mid);
  text-align: center; margin: 3rem 0 1.5rem;
  position: relative;
}
.mgmt-section-title::after {
  content: ''; display: block; height: 2px; width: 60px;
  background: linear-gradient(90deg, var(--gold), var(--saffron));
  margin: 0.5rem auto 0;
}

/* ============================================================
   TIMELINE — Cinematic
   ============================================================ */
#timeline { background: linear-gradient(180deg, #FAF7F2, #F0EBE0); }
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute;
  left: 50%; top: 0; bottom: 0; width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, var(--gold), var(--saffron), var(--maroon), var(--saffron), var(--gold));
  opacity: 0.4;
  border-radius: 2px;
}
.timeline-item {
  display: flex; justify-content: flex-end;
  padding-right: calc(50% + 2.5rem);
  margin-bottom: 3rem; position: relative; align-items: flex-start;
}
.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0; padding-left: calc(50% + 2.5rem);
}
.timeline-card {
  background: #fff;
  border-radius: 20px; padding: 2rem;
  max-width: 320px;
  box-shadow: 0 8px 40px rgba(44,36,22,0.08);
  border: 1px solid var(--beige);
  position: relative; transition: all 0.4s ease;
}
.timeline-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--gold), var(--saffron));
  opacity: 0; transition: opacity 0.4s;
}
.timeline-item:hover .timeline-card { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(44,36,22,0.14); }
.timeline-item:hover .timeline-card::after { opacity: 1; }
.timeline-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem; font-weight: 700; line-height: 1;
  background: linear-gradient(135deg, var(--maroon), var(--saffron));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 0.5rem;
}
.timeline-card h4 { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--text-dark); margin-bottom: 0.5rem; }
.timeline-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.75; margin: 0; }
.timeline-dot {
  position: absolute; left: 50%; top: 1.4rem;
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--saffron));
  border: 3px solid #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px var(--gold), 0 4px 12px rgba(197,160,40,0.4);
  z-index: 2;
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,100% { box-shadow: 0 0 0 4px var(--gold), 0 4px 12px rgba(197,160,40,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(197,160,40,0.3), 0 4px 20px rgba(197,160,40,0.5); }
}
.timeline-item:hover .timeline-dot {
  box-shadow: 0 0 0 6px rgba(197,160,40,0.3), 0 0 24px rgba(197,160,40,0.6);
  transform: translateX(-50%) scale(1.2);
}
@media (max-width: 640px) {
  .timeline::before { left: 18px; }
  .timeline-item, .timeline-item:nth-child(even) {
    padding-right: 0; padding-left: 3.8rem; justify-content: flex-start;
  }
  .timeline-dot { left: 18px; }
  .timeline-card { max-width: 100%; }
}

/* ============================================================
   SCHEDULE TABLE
   ============================================================ */
#schedule {
  background: linear-gradient(135deg, #FBF5EA 0%, var(--ivory) 100%);
  position: relative;
}
.schedule-table-wrap { overflow-x: auto; border-radius: 20px; box-shadow: 0 12px 50px var(--shadow); }
.schedule-table { width: 100%; border-collapse: collapse; background: #fff; }
.schedule-table thead tr {
  background: linear-gradient(135deg, var(--maroon-deep), var(--maroon));
  color: #fff;
}
.schedule-table th {
  padding: 1.2rem 1.5rem; text-align: left;
  font-family: 'Lato', sans-serif; font-size: 0.82rem;
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
}
.schedule-table th:first-child { border-radius: 20px 0 0 0; }
.schedule-table th:last-child  { border-radius: 0 20px 0 0; }
.schedule-table tbody tr {
  border-bottom: 1px solid var(--beige);
  transition: background 0.2s;
}
.schedule-table tbody tr:nth-child(even) td { background: rgba(232,220,200,0.18); }
.schedule-table tbody tr:hover td { background: rgba(197,160,40,0.05); }
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table td { padding: 1.1rem 1.5rem; vertical-align: middle; font-size: 0.95rem; color: var(--text-mid); }
.schedule-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 700; color: var(--maroon);
  white-space: nowrap;
}
.schedule-activity { color: var(--maroon); font-weight: 700; font-family: 'Playfair Display', serif; font-size: 1rem; }
.schedule-desc { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; margin-top: 0.2rem; }
.schedule-badge {
  display: inline-block; padding: 0.2rem 0.7rem; border-radius: 30px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge-morning   { background: rgba(255,180,0,0.15); color: #B8900A; }
.badge-afternoon { background: rgba(232,115,42,0.12); color: var(--saffron-dark); }
.badge-evening   { background: rgba(139,26,26,0.1); color: var(--maroon); }

/* ============================================================
   GALLERY — Dark Bento + Lightbox
   ============================================================ */
#gallery {
  background: linear-gradient(135deg, #0A0404, #160808, #0A0404);
  padding: 6rem 2rem;
}
#gallery h2 { color: var(--gold-bright); }
#gallery .subtitle { color: rgba(255,255,255,0.5); }
#gallery .section-tag { background: linear-gradient(135deg, var(--gold), var(--saffron)); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  grid-auto-rows: 220px;
  gap: 12px; border-radius: 20px; overflow: hidden;
}
.gallery-item { position: relative; overflow: hidden; border-radius: 12px; cursor: pointer; }
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(5) { grid-column: span 2; }
.gallery-item:nth-child(9) { grid-column: span 2; }
.gallery-tile {
  width: 100%; height: 100%;
  background-size: cover; background-position: center;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.gallery-item:hover .gallery-tile { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  display: flex; align-items: flex-end; padding: 1.2rem;
  opacity: 0; transition: opacity 0.4s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: #fff; font-family: 'Playfair Display', serif;
  font-size: 1rem; font-style: italic;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.gallery-item::after {
  content: '⛶'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0);
  color: rgba(255,255,255,0.9); font-size: 2rem;
  transition: transform 0.3s ease; pointer-events: none;
}
.gallery-item:hover::after { transform: translate(-50%,-50%) scale(1); }
/* Lightbox */
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,0.95); backdrop-filter: blur(20px);
  align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }
.lightbox-img-wrap {
  max-width: 90vw; max-height: 85vh;
  position: relative;
}
.lightbox-img-wrap img {
  max-width: 90vw; max-height: 80vh;
  object-fit: contain; border-radius: 12px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}
.lightbox-close {
  position: absolute; top: -60px; right: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 1.4rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: #fff; font-size: 1.4rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.lightbox-nav:hover { background: rgba(197,160,40,0.2); border-color: rgba(197,160,40,0.5); }
.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }
.lightbox-caption {
  text-align: center; color: rgba(255,255,255,0.6);
  font-family: 'Playfair Display', serif; font-style: italic;
  margin-top: 1rem; font-size: 0.95rem;
}
@media (max-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .gallery-item:nth-child(1) { grid-column: span 2; }
  .gallery-item:nth-child(5), .gallery-item:nth-child(9) { grid-column: span 1; }
  .lightbox-prev { left: -55px; }
  .lightbox-next { right: -55px; }
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2,1fr); grid-auto-rows: 160px; }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .gallery-item:nth-child(5) { grid-column: span 1; }
  .gallery-item:nth-child(9) { grid-column: span 1; }
  .lightbox-prev { left: 1rem; }
  .lightbox-next { right: 1rem; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; gap: 8px; }
}

/* ============================================================
   DHARAMSHALA SECTION
   ============================================================ */
#dharamshala { background: var(--ivory); }
.dharamshala-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}
.room-cards { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.room-card {
  background: #fff; border-radius: 12px; padding: 1.3rem 1.5rem;
  border-left: 4px solid var(--gold);
  box-shadow: 0 4px 16px rgba(44,36,22,0.07);
  transition: var(--transition-smooth);
}
.room-card:hover { transform: translateX(4px); box-shadow: 0 8px 30px rgba(44,36,22,0.13); }
.room-card h4 { color: var(--maroon); margin-bottom: 0.4rem; font-size: 1rem; }
.room-card p { font-size: 0.92rem; color: var(--text-mid); margin: 0; }
.room-features { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
.room-feature-tag {
  font-size: 0.78rem; background: var(--beige); color: var(--text-mid);
  padding: 0.25rem 0.75rem; border-radius: 20px; font-weight: 700;
}
.booking-form {
  background: #fff; border-radius: 18px;
  padding: 2rem 1.8rem;
  box-shadow: 0 8px 36px rgba(44,36,22,0.1);
  border-top: 4px solid var(--saffron);
}
.booking-form h3 { color: var(--maroon); margin-bottom: 1.5rem; font-size: 1.3rem; }
@media (max-width: 768px) { .dharamshala-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
#contact { background: var(--ivory); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info {
  padding: 2.5rem; background: #fff; border-radius: 24px;
  box-shadow: 0 12px 50px var(--shadow);
  border: 1px solid rgba(197,160,40,0.15);
}
.contact-items { display: flex; flex-direction: column; gap: 1.3rem; margin-bottom: 1.5rem; }
.contact-item { display: flex; gap: 1.2rem; margin-bottom: 0; align-items: flex-start; }
.contact-item-icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(139,26,26,0.1), rgba(197,160,40,0.1));
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  border: 1px solid rgba(197,160,40,0.2);
}
.contact-item-text h4 {
  font-family: 'Playfair Display', serif; font-size: 0.95rem;
  color: var(--maroon); margin-bottom: 0.3rem;
}
.contact-item-text p { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; margin: 0; }
.contact-hours {
  background: linear-gradient(135deg, rgba(139,26,26,0.05), rgba(197,160,40,0.05));
  border-radius: 16px; padding: 1.2rem 1.5rem;
  border: 1px solid rgba(197,160,40,0.15); margin-top: 1.5rem;
}
.contact-hours h4 { font-size: 0.9rem; color: var(--maroon); margin-bottom: 0.8rem; }
.hours-row { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; font-size: 0.85rem; border-bottom: 1px dashed rgba(232,220,200,0.6); padding-bottom: 0.45rem; }
.hours-row:last-child { border-bottom: none; margin-bottom: 0; }
.hours-day { color: var(--text-mid); }
.hours-time { color: var(--saffron); font-weight: 700; text-align: right; }
/* Form wrap */
.contact-form-wrap {
  background: #fff; border-radius: 24px;
  box-shadow: 0 12px 50px var(--shadow); overflow: hidden;
  border: 1px solid rgba(197,160,40,0.15);
}
/* Tab buttons */
.tab-btn-row { display: flex; border-bottom: 1px solid var(--beige); }
.tab-btn {
  flex: 1; padding: 1.1rem; font-size: 0.92rem; font-weight: 700;
  font-family: 'Lato', sans-serif; border: none; cursor: pointer;
  transition: all 0.3s ease; letter-spacing: 0.03em;
}
.tab-btn.active { background: var(--maroon); color: #fff; }
.tab-btn:not(.active) { background: var(--offwhite); color: var(--maroon); }
/* Form inputs */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block; font-size: 0.82rem; font-weight: 700;
  color: var(--text-dark); letter-spacing: 0.04em;
  margin-bottom: 0.4rem; text-transform: uppercase;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.8rem 1rem; border-radius: 12px;
  border: 1.5px solid var(--beige); background: var(--ivory);
  font-size: 0.92rem; color: var(--text-dark);
  font-family: 'Lato', sans-serif; transition: all 0.3s ease;
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(197,160,40,0.12);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 80px; }
.btn-form {
  width: 100%; padding: 1rem; border-radius: 50px;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
  color: #fff; font-size: 1rem; font-weight: 700;
  border: none; cursor: pointer; letter-spacing: 0.05em;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(139,26,26,0.3);
  margin-top: 0.5rem;
}
.btn-form:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(139,26,26,0.4); }
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   MAP SECTION
   ============================================================ */
#map-section {
  background: var(--offwhite);
  padding: 4rem 2rem 5rem;
}
#map-section .section-header { margin-bottom: 2rem; }
.map-frame-wrap {
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 16px 60px var(--shadow-deep);
  border: 3px solid rgba(197,160,40,0.2);
}
.map-cta { text-align: center; margin-top: 1.5rem; }
.map-cta .btn {
  padding: 0.75rem 2rem; border-radius: 50px;
  background: linear-gradient(135deg, var(--maroon), var(--saffron-dark));
  color: #fff; font-size: 0.92rem; font-weight: 700;
  border: none; cursor: pointer; display: inline-block;
  box-shadow: 0 8px 24px rgba(139,26,26,0.25);
  transition: all 0.3s ease;
}
.map-cta .btn:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(139,26,26,0.4); }

/* ============================================================
   FESTIVALS, SEVA, GUIDELINES, TESTIMONIALS (preserved)
   ============================================================ */
#festivals { background: var(--offwhite); }
.festivals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; }
.festival-card {
  background: #fff; border-radius: 16px; padding: 1.8rem 1.5rem;
  border-bottom: 4px solid var(--saffron);
  box-shadow: 0 5px 24px rgba(44,36,22,0.09); transition: var(--transition-smooth);
}
.festival-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(44,36,22,0.16); border-bottom-color: var(--gold); }
.festival-icon { font-size: 2.4rem; margin-bottom: 0.8rem; display: block; }
.festival-card h3 { color: var(--maroon); font-size: 1.05rem; margin-bottom: 0.3rem; }
.festival-date { font-size: 0.76rem; color: var(--saffron); font-weight: 700; margin-bottom: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em; }
.festival-card p { font-size: 0.85rem; color: var(--text-mid); line-height: 1.6; margin: 0; }
#seva { background: linear-gradient(135deg, #FAF3E8 0%, var(--offwhite) 100%); }
.seva-intro { text-align: center; max-width: 650px; margin: 0 auto 2.5rem; font-size: 0.95rem; color: var(--text-mid); font-style: italic; }
.seva-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.4rem; }
.seva-card { background: #fff; border-radius: 16px; padding: 1.8rem 1.3rem; text-align: center; border: 1.5px solid var(--beige); box-shadow: 0 4px 18px rgba(44,36,22,0.07); transition: var(--transition-smooth); }
.seva-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 14px 40px rgba(44,36,22,0.14); }
.seva-icon { font-size: 2.6rem; display: block; margin-bottom: 0.8rem; }
.seva-card h3 { color: var(--maroon); font-size: 1rem; margin-bottom: 0.5rem; }
.seva-card p { font-size: 0.82rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 1rem; }
.seva-contact-note { font-size: 0.76rem; color: var(--saffron); font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }
#guidelines { background: var(--offwhite); }
.guidelines-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.3rem; }
.guideline-item { display: flex; gap: 1.1rem; align-items: flex-start; background: #fff; border-radius: 12px; padding: 1.3rem 1.4rem; border-left: 3px solid var(--gold); box-shadow: 0 3px 14px rgba(44,36,22,0.07); transition: var(--transition-smooth); }
.guideline-item:hover { transform: translateX(4px); box-shadow: 0 8px 28px rgba(44,36,22,0.12); }
.guideline-icon { font-size: 1.8rem; flex-shrink: 0; margin-top: 0.1rem; }
.guideline-text h4 { color: var(--maroon); font-size: 0.95rem; margin-bottom: 0.3rem; }
.guideline-text p { font-size: 0.83rem; color: var(--text-mid); margin: 0; line-height: 1.55; }
#testimonials { background: var(--ivory); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.6rem; }
.testimonial-card { background: #fff; border-radius: 16px; padding: 2.2rem 1.6rem; position: relative; border-bottom: 3px solid var(--saffron); box-shadow: 0 5px 22px rgba(44,36,22,0.09); transition: var(--transition-smooth); }
.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0 16px 44px rgba(44,36,22,0.14); }
.testimonial-quote-icon { font-size: 3.5rem; color: rgba(232,115,42,0.15); font-family: Georgia, serif; line-height: 1; position: absolute; top: 0.8rem; left: 1.2rem; }
.testimonial-text { font-style: italic; color: var(--text-mid); font-size: 0.9rem; line-height: 1.75; margin-bottom: 1.3rem; padding-top: 0.8rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.8rem; }
.testimonial-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--beige), var(--sandalwood)); border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; color: var(--maroon); font-size: 1.1rem; box-shadow: 0 4px 12px rgba(197,160,40,0.2); }
.testimonial-name { font-weight: 700; color: var(--maroon); font-size: 0.9rem; }
.testimonial-city { font-size: 0.75rem; color: var(--stone); }
.testimonial-stars { color: var(--gold); font-size: 0.78rem; letter-spacing: 2px; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: linear-gradient(180deg, #0A0404 0%, #080207 100%);
  position: relative; overflow: hidden; padding: 5rem 2rem 3rem;
  color: rgba(255,255,255,0.85);
}
#footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--maroon), var(--gold-bright), var(--saffron), var(--gold-bright), var(--maroon));
}
.footer-grid {
  max-width: 1200px; margin: 0 auto 3rem;
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 2.5rem;
}
.footer-logo { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem; }
.footer-logo-circle {
  width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 35% 35%, var(--gold-bright), var(--gold), var(--maroon));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: #fff;
  box-shadow: 0 0 30px rgba(197,160,40,0.4);
  border: 2px solid rgba(197,160,40,0.4);
}
.footer-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 600; color: var(--gold-bright); line-height: 1.3;
}
.footer-brand-sub { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-top: 0.2rem; }
.footer-tagline { font-size: 0.9rem; color: rgba(255,255,255,0.45); line-height: 1.75; margin: 1.2rem 0; font-style: italic; max-width: 300px; }
.footer-closing { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--gold-bright); font-style: italic; margin-bottom: 0.2rem; text-shadow: 0 0 16px rgba(232,192,64,0.3); }
.footer-closing-en { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer-col h4 { font-family: 'Playfair Display', serif; color: var(--gold); font-size: 1rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(197,160,40,0.25); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a { font-size: 0.88rem; color: rgba(255,255,255,0.45); transition: color 0.3s, padding-left 0.3s; display: block; }
.footer-col ul li a:hover { color: var(--gold-bright); padding-left: 4px; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.8rem;
  font-size: 0.78rem; color: rgba(255,255,255,0.25);
}
.footer-mantra {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem; color: rgba(197,160,40,0.7); font-style: italic;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; text-align: center; } }

/* ============================================================
   BACK TO TOP
   ============================================================ */
#back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 900;
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--saffron-dark));
  color: #fff; font-size: 1.2rem; border: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(139,26,26,0.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  transform: translateY(16px) scale(0.8);
}
#back-to-top.visible {
  opacity: 1; pointer-events: all;
  transform: translateY(0) scale(1);
}
#back-to-top:hover { transform: translateY(-4px) scale(1.08); box-shadow: 0 12px 32px rgba(139,26,26,0.5); }

/* ============================================================
   GLASS CARD UTILITY
   ============================================================ */
.glass-card {
  background: rgba(250,247,242,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(197,160,40,0.2);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(44,36,22,0.1), inset 0 1px 0 rgba(255,255,255,0.6);
}

/* ============================================================
   PULSE GLOW ANIMATION (reusable)
   ============================================================ */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(197,160,40,0); }
  50%       { box-shadow: 0 0 0 8px rgba(197,160,40,0.2); }
}
.pulse-glow { animation: pulseGlow 2.5s ease-in-out infinite; }

/* ============================================================
   MEDIA / PRESS GRID
   ============================================================ */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.1rem; }
.media-figure { margin: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 20px rgba(44,36,22,0.13); transition: var(--transition-smooth); }
.media-figure:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(44,36,22,0.2); }
.media-figure img { width: 100%; height: 200px; object-fit: cover; display: block; }
.media-figure figcaption { background: var(--offwhite); padding: 0.55rem 0.8rem; font-size: 0.75rem; color: var(--text-mid); }

/* ============================================================
   RESPONSIVE — GENERAL
   ============================================================ */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  html { font-size: 16px; }
  section { padding: 4rem 1.2rem; }
  .hero-content { padding: 1.5rem 1rem; }
  .hero-welcome { padding: 0.9rem 1.2rem; font-size: 0.95rem; }
  .btn { padding: 0.72rem 1.3rem; font-size: 0.86rem; }
  .nav-subtitle { display: none; }
  .section-header h2 { font-size: 1.7rem; }
}
@media (max-width: 480px) {
  .hero-om { font-size: 5rem; }
  .nav-title { font-size: 0.8rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   MOBILE CURSOR FIX
   ============================================================ */
@media (pointer: coarse) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================================
   iOS SAFARI: background-attachment: fixed doesn't work
   ============================================================ */
@supports (-webkit-touch-callout: none) {
  #hero { background-attachment: scroll; }
}

/* ============================================================
   MOBILE — COMPREHENSIVE FIXES
   ============================================================ */

/* --- Prevent iOS input zoom (font-size must be >= 16px) --- */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* --- Navbar --- */
@media (max-width: 480px) {
  #navbar {
    top: 0; border-radius: 0 0 20px 20px;
    width: 100%; left: 0; transform: none;
    border-top: none;
  }
  .nav-inner { padding: 0.6rem 1rem; }
  .nav-title { font-size: 0.78rem; }
  .nav-links { top: 64px; left: 0.5rem; right: 0.5rem; }
}

/* --- Hero --- */
@media (max-width: 600px) {
  #hero { min-height: 100svh; /* use small viewport height on mobile */ }
  .hero-content { padding: 5rem 1.2rem 2rem; }
  .hero-om { font-size: 4.5rem; }
  .hero-title { font-size: 2.2rem; }
  .hero-tagline { font-size: 1.1rem; }
  .hero-welcome { font-size: 0.88rem; padding: 0.9rem 1rem; }
  .hero-cta {
    flex-direction: column; align-items: stretch;
    gap: 0.7rem; padding: 0 0.5rem;
  }
  .hero-cta .btn { text-align: center; padding: 0.9rem 1rem; font-size: 0.95rem; }
  /* Hide rings on small screens for performance */
  .hero-ring:nth-child(3), .hero-ring:nth-child(4) { display: none; }
  .hero-particles::before, .hero-particles::after { display: none; }
}

/* --- Stats --- */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .stat-item { padding: 1.4rem 0.8rem; }
  .stat-num { font-size: 2.5rem; }
}

/* --- About --- */
@media (max-width: 768px) {
  .about-visual::after { display: none; }
  .about-visual::before { display: none; }
  .about-pillars { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .about-pillars { grid-template-columns: 1fr; }
}

/* --- Deity 3D flip cards: tap to flip on touch --- */
@media (hover: none) {
  /* Disable hover flip — use .flipped class toggled by JS tap instead */
  .deity-card-3d:hover .deity-card-inner { transform: none; }
  .deity-card-3d.flipped .deity-card-inner { transform: rotateY(180deg); }
  .deity-flip-hint { display: block !important; }
}
@media (max-width: 900px) {
  .deities-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .deity-card-3d { height: 380px; }
}
@media (max-width: 480px) {
  .deities-grid { grid-template-columns: 1fr; gap: 1rem; }
  .deity-card-3d { height: 340px; }
}

/* --- Management grid --- */
@media (max-width: 600px) {
  .mgmt-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .mgmt-grid { grid-template-columns: 1fr; }
}

/* --- Timeline single column on mobile --- */
@media (max-width: 700px) {
  .timeline::before { display: none; }
  .timeline-item, .timeline-item:nth-child(even) {
    flex-direction: column; gap: 0.8rem;
  }
  .timeline-dot { display: none; }
  .timeline-card { border-left: 3px solid var(--gold); border-radius: 0 16px 16px 0; }
  .timeline-year { font-size: 1.8rem; }
}

/* --- Schedule table horizontal scroll --- */
@media (max-width: 700px) {
  .schedule-table-wrap { border-radius: 12px; }
  .schedule-table th:nth-child(3),
  .schedule-table td:nth-child(3) { display: none; } /* hide description col */
  .schedule-table th, .schedule-table td { padding: 0.8rem 0.9rem; }
  .schedule-time { font-size: 0.95rem; }
}

/* --- Gallery on mobile --- */
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 140px; gap: 6px;
  }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .gallery-item:nth-child(5) { grid-column: span 1; }
  .gallery-item:nth-child(9) { grid-column: span 1; }
}

/* --- Lightbox on mobile --- */
@media (max-width: 600px) {
  .lightbox-prev { left: 0.5rem; top: auto; bottom: 1rem; transform: none; }
  .lightbox-next { right: 0.5rem; top: auto; bottom: 1rem; transform: none; }
  .lightbox-close { top: 0.5rem; right: 0.5rem; }
  .lightbox-img-wrap { max-width: 100vw; padding: 0 0.5rem; }
  .lightbox-img-wrap img { max-height: 70vh; border-radius: 8px; }
  .lightbox-caption { font-size: 0.82rem; padding: 0 1rem; }
}

/* --- Contact forms --- */
@media (max-width: 600px) {
  .contact-info { padding: 1.5rem; }
  #panel-contact, #panel-dharamshala { padding: 1.4rem 1.2rem; }
  .tab-btn { font-size: 0.82rem; padding: 0.9rem 0.5rem; }
  .hours-row { flex-direction: column; gap: 0.1rem; margin-bottom: 0.8rem; }
  .hours-time { text-align: left; }
}

/* --- Map --- */
@media (max-width: 600px) {
  #map-section iframe { height: 280px; }
  .map-frame-wrap { border-radius: 16px; }
}

/* --- Footer --- */
@media (max-width: 480px) {
  #footer { padding: 3.5rem 1.2rem 2rem; }
  .footer-tagline { max-width: 100%; }
}

/* --- Mantras grid --- */
@media (max-width: 700px) {
  .mantras-grid { grid-template-columns: 1fr; }
}
@media (min-width: 701px) and (max-width: 1000px) {
  .mantras-grid { grid-template-columns: 1fr 1fr; }
}

/* --- Founders --- */
@media (max-width: 600px) {
  .founders-quote { font-size: 0.95rem; padding: 0.8rem 1rem; }
}

/* --- General touch: disable tilt and magnetic effects --- */
@media (hover: none) {
  .tilt-card { transform: none !important; }
  .hero-cta .btn, .btn-form, .map-cta .btn { transform: none !important; }
}

/* --- Tap highlight and touch targets --- */
@media (max-width: 768px) {
  a, button { -webkit-tap-highlight-color: rgba(197,160,40,0.2); }
  .nav-links a { min-height: 44px; display: flex; align-items: center; }
  .tab-btn { min-height: 48px; }
  .btn-form { min-height: 52px; font-size: 1rem; }
  .gallery-item { min-height: 44px; }
  #back-to-top { bottom: 1.2rem; right: 1rem; width: 46px; height: 46px; }
}
