/* ============================================
   MIDDLE: VOICE FOR PEACE — style.css
   Author: Hrishik Mahadware | WebVerse 2026
   ============================================ */

/* ---------- CSS Custom Properties (Theme) ---------- */
:root {
  /* Indian tricolour palette: Saffron · White · India Green · Ashoka Blue */
  --primary: #FF6B1A;           /* Deep saffron */
  --primary-rgb: 255, 107, 26;
  --accent: #138808;             /* India green */
  --accent-rgb: 19, 136, 8;
  --third: #0047AB;              /* Ashoka Chakra blue */
  --third-rgb: 0, 71, 171;
  --harmony-h: 25;               /* Saffron hue default */
  --bg: #FFFAF4;                 /* Warm ivory */
  --bg-alt: #FFF0D9;             /* Saffron-cream */
  --surface: rgba(255, 255, 255, 0.22);
  --surface-strong: rgba(255, 255, 255, 0.35);
  --text: #1C0800;               /* Deep maroon-black */
  --text-muted: rgba(28, 8, 0, 0.58);
  --border: rgba(255, 107, 26, 0.18);
  --shadow: 0 8px 32px rgba(255, 107, 26, 0.12);
  --shadow-lg: 0 20px 60px rgba(255, 107, 26, 0.2);
  --font-body: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;
}

html.dark {
  --bg: #1C0800;                 /* Deep maroon night */
  --bg-alt: #2D1000;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-strong: rgba(255, 255, 255, 0.13);
  --text: #FFF8F0;               /* Warm ivory text */
  --text-muted: rgba(255, 248, 240, 0.55);
  --border: rgba(255, 107, 26, 0.18);
  --shadow: 0 8px 32px rgba(255, 107, 26, 0.2);
  --shadow-lg: 0 20px 60px rgba(255, 107, 26, 0.3);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* ---------- Glassmorphism Utilities ---------- */
.glass {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.glass-strong {
  background: var(--surface-strong);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.glass-dark {
  background: rgba(5, 15, 40, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

/* ---------- Gradient Text — Tricolour: Saffron → Green ---------- */
.gradient-text {
  background: linear-gradient(135deg, #FF6B1A 0%, #FF9933 35%, #138808 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Ashoka Blue gradient variant */
.gradient-text-blue {
  background: linear-gradient(135deg, #FF6B1A 0%, #0047AB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Navbar ---------- */
#navbar {
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
  background: var(--surface-strong);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  opacity: 0.65;
  text-decoration: none;
  transition: opacity 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link.active-nav { opacity: 1; }

.nav-link:hover::after,
.nav-link.active-nav::after { width: 100%; }

.theme-toggle-btn {
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text);
  border: none;
  font-size: 1.1rem;
}

.theme-toggle-btn:hover {
  transform: rotate(25deg) scale(1.15);
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.45);
}

/* Mobile Menu */
#mobileMenu {
  animation: slideDown 0.28s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-nav-link {
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-link:last-child { border-bottom: none; }

/* ---------- Hero Section ---------- */
#hero {
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-alt) 55%, var(--bg) 100%);
  transition: background 0.8s ease;
}

.hero-overlay {
  background: radial-gradient(ellipse 80% 70% at 50% 60%, transparent 40%, var(--bg) 100%);
  pointer-events: none;
}

#peaceWave {
  opacity: 0.55;
  transition: opacity 0.5s ease;
}

html.dark #peaceWave { opacity: 0.38; }

/* Floating orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: float 9s ease-in-out infinite;
}

.orb-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.28), transparent 70%);
  top: -120px; right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.22), transparent 70%);
  bottom: 80px; left: -80px;
  animation-delay: -3.5s;
}

.orb-3 {
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.18), transparent 70%);
  bottom: -60px; right: 28%;
  animation-delay: -6s;
}

/* Hero badge */
.hero-badge {
  color: var(--text);
  font-size: 0.8125rem;
}

.pulse-dot {
  animation: pulseDot 2.2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.75); }
}

/* Hero headlines */
.hero-line-1 {
  opacity: 0;
  animation: heroReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.hero-line-2 {
  opacity: 0;
  animation: heroReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.85s forwards;
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CTA Buttons */
.glass-btn {
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text);
}

.primary-btn {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.85), rgba(var(--accent-rgb), 0.85));
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  animation: pulseGlow 3.2s ease-in-out infinite;
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(var(--primary-rgb), 0.55);
  animation: none;
}

.secondary-btn {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
}

.secondary-btn:hover {
  transform: translateY(-3px);
  background: var(--surface-strong);
  box-shadow: var(--shadow-lg);
}

/* Ripple effect injected by JS */
.glass-btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  transform: scale(0);
  animation: rippleEffect 0.65s linear;
  pointer-events: none;
}

@keyframes rippleEffect {
  to { transform: scale(4); opacity: 0; }
}

/* Scroll indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(var(--primary-rgb), 0.5);
  border-radius: 12px;
  position: relative;
}

.scroll-mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollBob 2s ease-in-out infinite;
}

@keyframes scrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50%       { transform: translateX(-50%) translateY(9px); opacity: 0; }
}

/* ---------- Section Labels ---------- */
.section-label {
  display: inline-block;
  font-size: 0.71875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.28);
  padding: 0.35rem 1rem;
  border-radius: 100px;
}

.section-label.light {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

/* ---------- Mission Section ---------- */
#mission {
  background: var(--bg);
  transition: background 0.5s ease;
}

html.dark #mission { background: var(--bg-alt); }

/* Flip Cards */
.flip-card {
  height: 290px;
  perspective: 1100px;
  cursor: pointer;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.72s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-inner,
.flip-card.flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-front {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.flip-back {
  background: linear-gradient(145deg, rgba(var(--primary-rgb), 0.88), rgba(var(--accent-rgb), 0.88));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transform: rotateY(180deg);
  color: #ffffff;
}

/* ---------- Manifesto Section — Deep Maroon/Indian Night ---------- */
.manifesto-bg {
  background: linear-gradient(145deg, #1A0500 0%, #2D0800 40%, #001A00 75%, #001228 100%);
  position: relative;
  overflow: hidden;
}

.manifesto-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 18% 50%, rgba(255, 107, 26, 0.1), transparent),
    radial-gradient(ellipse 55% 60% at 82% 50%, rgba(19, 136, 8, 0.1), transparent);
  pointer-events: none;
}

.manifesto-scroll {
  border-radius: 2rem;
  position: relative;
  overflow: hidden;
}

.manifesto-ornament {
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), var(--primary), transparent);
}

.manifesto-ornament.top  { border-radius: 2rem 2rem 0 0; }
.manifesto-ornament.bottom { border-radius: 0 0 2rem 2rem; }

.manifesto-line {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.manifesto-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 2.5rem;
  line-height: 1.65;
  flex-shrink: 0;
  opacity: 0.85;
}

.manifesto-text {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.85;
  font-size: 1.0625rem;
}

.manifesto-text strong { color: #ffffff; }

.manifesto-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  margin: 1.5rem 0;
}

.signature-line {
  width: 160px; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 0 auto;
  border-radius: 2px;
}

.signature-name  { color: #ffffff; text-align: center; }
.signature-title { color: rgba(255, 255, 255, 0.45); text-align: center; }

/* ---------- Harmony Slider Section ---------- */
#harmony {
  background: var(--bg);
  transition: background 0.8s ease;
}

.harmony-tool {
  border-radius: 2rem;
  transition: box-shadow 0.5s ease;
}

.harmony-labels {
  color: var(--text);
  opacity: 0.7;
}

/* Custom range slider — Indian tricolour gradient */
.harmony-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  /* Red conflict → Saffron (India) → Ivory centre → India Green → Ashoka Blue */
  background: linear-gradient(90deg,
    hsl(0,  85%, 42%),      /* Deep Red — Yuddha / Conflict */
    hsl(15, 85%, 48%),      /* Orange-red — Sangharsh */
    hsl(28, 92%, 52%),      /* Saffron — Khoj / India */
    hsl(50, 80%, 60%),      /* Golden — Madhya / Middle */
    hsl(120,65%, 38%),      /* India Green — Ahimsa */
    hsl(220,80%, 40%)       /* Ashoka Blue — Shanti / Unity */
  );
}

.harmony-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 14px rgba(0,0,0,0.22), 0 0 0 4px rgba(var(--primary-rgb), 0.35);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.harmony-slider::-webkit-slider-thumb:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 22px rgba(0,0,0,0.28), 0 0 0 7px rgba(var(--primary-rgb), 0.28);
}

.harmony-slider::-moz-range-thumb {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 14px rgba(0,0,0,0.22);
}

.harmony-state-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.5s ease;
}

.meter-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.15);
  border: 1.5px solid rgba(var(--primary-rgb), 0.3);
  transition: all 0.35s ease;
}

.meter-dot.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.55);
}

/* ---------- Resource Hub Section ---------- */
.resources-bg {
  background: var(--bg-alt);
  transition: background 0.5s ease;
}

html.dark .resources-bg { background: var(--bg-alt); }

/* Tab buttons */
.tab-btn {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.65;
  font-family: var(--font-body);
}

.tab-btn:hover { opacity: 0.9; }

.tab-btn.active {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.82), rgba(var(--accent-rgb), 0.82));
  border-color: transparent;
  color: #ffffff;
  opacity: 1;
  box-shadow: 0 8px 28px rgba(var(--primary-rgb), 0.38);
}

/* Resource cards */
.resource-card {
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.32s ease,
              border-color 0.32s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.resource-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--primary-rgb), 0.32);
}

.resource-icon { font-size: 2.5rem; line-height: 1; }
.resource-title { font-size: 1.125rem; font-weight: 600; }
.resource-desc  { font-size: 0.875rem; opacity: 0.62; line-height: 1.65; flex: 1; }

.resource-btn {
  margin-top: 0.5rem;
  padding: 0.55rem 1.4rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid rgba(var(--primary-rgb), 0.38);
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
  font-family: var(--font-body);
}

.resource-btn:hover {
  background: rgba(var(--primary-rgb), 0.16);
  box-shadow: 0 5px 18px rgba(var(--primary-rgb), 0.28);
  transform: translateY(-1px);
}

/* ---------- Footer ---------- */
.footer-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  transition: background 0.5s ease;
}

html.dark .footer-section { background: #040b17; }

.social-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.social-icon:hover {
  opacity: 1;
  transform: translateY(-4px);
  color: var(--primary);
  box-shadow: 0 10px 22px rgba(var(--primary-rgb), 0.32);
}

.back-to-top-btn {
  cursor: pointer;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  transition: all 0.3s ease;
}

.back-to-top-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(var(--primary-rgb), 0.4);
}

/* ---------- Keyframe Animations ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-22px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 8px 28px rgba(var(--primary-rgb), 0.32); }
  50%       { box-shadow: 0 8px 44px rgba(var(--primary-rgb), 0.65), 0 0 0 5px rgba(var(--primary-rgb), 0.1); }
}

/* ---------- Hidden utility (JS-controlled) ---------- */
.hidden { display: none !important; }

/* ---------- Smooth theme transition on ALL key elements ---------- */
body, #hero, #mission, .manifesto-bg, #harmony, .resources-bg, .footer-section,
.glass, .glass-strong, .glass-dark, .flip-front, .resource-card, .tab-btn,
.nav-link, .section-label, .scroll-mouse {
  transition: background-color 0.5s ease, color 0.5s ease,
              border-color 0.5s ease, box-shadow 0.45s ease;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .flip-card { height: 250px; }
  .manifesto-number { font-size: 1.2rem; min-width: 2rem; }
  .manifesto-text   { font-size: 0.9375rem; }
  .manifesto-line   { gap: 1rem; }
  .orb-1 { width: 280px; height: 280px; }
  .orb-2 { width: 220px; height: 220px; }
  .orb-3 { display: none; }
}

@media (max-width: 480px) {
  .flip-card { height: 230px; }
}

/* ══════════════════════════════════════════
   INDIA-SPECIFIC ADDITIONS
══════════════════════════════════════════ */

/* ---------- Peace Dove ---------- */
.hero-dove-wrap {
  position: absolute;
  top: 14%;
  right: 7%;
  width: 200px;
  opacity: 0;
  animation: heroReveal 1.4s ease 2.2s forwards, floatDove 7s ease-in-out 3.6s infinite;
  filter: drop-shadow(0 10px 28px rgba(255, 107, 26, 0.35));
  pointer-events: none;
  z-index: 5;
}

@keyframes floatDove {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-18px) rotate(2deg); }
}

@media (max-width: 768px) {
  .hero-dove-wrap { width: 120px; top: 7%; right: 2%; }
}

/* Sanskrit / Devanagari mantra line in hero */
.hero-mantra {
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #FF6B1A 0%, #FF9933 50%, #138808 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  opacity: 0;
  animation: heroReveal 1s ease 1.5s forwards;
}

/* ---------- India Legacy Section ---------- */
.india-bg {
  background: linear-gradient(160deg, var(--bg-alt) 0%, var(--bg) 100%);
  transition: background 0.5s ease;
  position: relative;
  overflow: hidden;
}

.india-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 5% 50%, rgba(255, 107, 26, 0.08), transparent),
    radial-gradient(ellipse 50% 70% at 95% 50%, rgba(19, 136, 8, 0.06), transparent);
  pointer-events: none;
}

/* Ashoka Chakra watermark */
.chakra-watermark {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22rem;
  opacity: 0.04;
  line-height: 1;
  animation: spin 40s linear infinite;
  pointer-events: none;
  user-select: none;
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* India concept cards */
.concept-card {
  border-radius: 1.5rem;
  padding: 1.75rem;
  border-left: 4px solid var(--primary);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.concept-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--accent);
}

.concept-card:nth-child(even) {
  border-left-color: var(--accent);
}

.concept-card:nth-child(even):hover {
  border-left-color: var(--third);
}

.concept-icon { font-size: 2.25rem; line-height: 1; }
.concept-title {
  font-size: 1.125rem;
  font-weight: 700;
}
.concept-sanskrit {
  font-size: 0.9375rem;
  color: var(--primary);
  font-weight: 500;
}
.concept-desc {
  font-size: 0.875rem;
  opacity: 0.65;
  line-height: 1.7;
}

/* India stats strip */
.india-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .india-stats { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  border-radius: 1.25rem;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8125rem;
  opacity: 0.6;
  margin-top: 0.3rem;
  line-height: 1.4;
}

/* Gandhi quote block */
.gandhi-quote-block {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  border-radius: 0 1rem 1rem 0;
}

.gandhi-quote-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.7;
}

.gandhi-attribution {
  font-size: 0.875rem;
  opacity: 0.55;
  margin-top: 0.5rem;
}

/* Tricolour stripe accent (horizontal) */
.tricolour-strip {
  height: 4px;
  background: linear-gradient(90deg, #FF6B1A 33.3%, #ffffff 33.3% 66.6%, #138808 66.6%);
  border-radius: 2px;
  margin: 2rem 0;
}

/* Manifesto Sanskrit epigraph */
.manifesto-epigraph {
  text-align: center;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 107, 26, 0.25);
}

.epigraph-devanagari {
  font-size: 1.75rem;
  font-weight: 600;
  color: #FF9933;
  letter-spacing: 0.1em;
  line-height: 1.6;
  display: block;
}

.epigraph-translation {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.4rem;
  display: block;
  font-style: italic;
}

/* ---------- Flag colours on mission flip card backs ---------- */
.flip-back.saffron {
  background: linear-gradient(145deg, rgba(255,107,26,0.88), rgba(255,153,51,0.88));
}

.flip-back.india-green {
  background: linear-gradient(145deg, rgba(19,136,8,0.88), rgba(39,174,96,0.88));
}

.flip-back.ashoka-blue {
  background: linear-gradient(145deg, rgba(0,71,171,0.88), rgba(0,100,200,0.88));
}

/* ---------- Orb colours updated to Indian palette ---------- */
.orb-1 {
  background: radial-gradient(circle, rgba(255, 107, 26, 0.25), transparent 70%) !important;
}
.orb-2 {
  background: radial-gradient(circle, rgba(19, 136, 8, 0.18), transparent 70%) !important;
}
.orb-3 {
  background: radial-gradient(circle, rgba(0, 71, 171, 0.15), transparent 70%) !important;
}
