/* ============================================
   ABHISHREE FOUNDATION — ULTRA PREMIUM UI
   Awwwards-level cinematic immersive design
   Custom cursor, scroll-driven motion, 3D effects,
   glassmorphism, animated borders, letter reveals
   ============================================ */

:root {
  --primary: #ff6b35;
  --primary-dark: #e55a2b;
  --primary-light: #ff8c5a;
  --accent: #ffb347;
  --neon: #ff6b35;
  --dark: #141432;
  --dark-2: #1a1a42;
  --dark-3: #222258;
  --dark-surface: #262660;
  --text: #f0f0ff;
  --text-light: #c8c8e0;
  --text-dark: #5a5a80;
  --white: #ffffff;
  --glass: rgba(255,255,255,0.08);
  --glass-strong: rgba(255,255,255,0.15);
  --glass-border: rgba(255,255,255,0.15);
  --shadow-glow: 0 0 60px rgba(255,107,53,0.25);
  --shadow-glow-strong: 0 0 80px rgba(255,107,53,0.4);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
  cursor: none;
}

body, h1, h2, h3, h4, h5, h6, p, li, a, span, input, textarea, button, div {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

::selection { background: var(--primary); color: var(--white); }

a { color: var(--primary); text-decoration: none; transition: all 0.4s var(--ease); }
a:hover { color: var(--primary-light); text-decoration: none; }

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transition: transform 0.15s var(--ease), opacity 0.3s;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed;
  width: 40px; height: 40px;
  border: 1.5px solid rgba(255,107,53,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transition: width 0.4s var(--ease-expo), height 0.4s var(--ease-expo),
              border-color 0.4s, background 0.4s, transform 0.08s linear;
  transform: translate(-50%, -50%);
}
.cursor-ring.hover {
  width: 60px; height: 60px;
  background: rgba(255,107,53,0.08);
  border-color: var(--primary);
}
.cursor-ring.click {
  transform: translate(-50%, -50%) scale(0.8);
}
@media (max-width: 991px) {
  .cursor-dot, .cursor-ring { display: none !important; }
  body { cursor: auto; }
}

/* ============================================
   PAGE INTRO ANIMATION
   ============================================ */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-expo), visibility 0.8s;
}
.page-transition-overlay.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-transition-overlay .loader-logo {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 3px solid rgba(255,107,53,0.15);
  border-top-color: var(--primary);
  animation: spinLoader 0.8s linear infinite;
}
@keyframes spinLoader { to { transform: rotate(360deg); } }

/* Legacy loader override */
#ftco-loader { display: none !important; }

/* ============================================
   SCROLL REVEAL SYSTEM
   ============================================ */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale,
.reveal-rotate {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease-expo), transform 0.8s var(--ease-expo);
  will-change: opacity, transform;
}

/* Only apply hidden state when JS has loaded and observer is ready */
.js-reveal-ready .reveal {
  opacity: 0;
  transform: translateY(40px);
}
.js-reveal-ready .reveal-left {
  opacity: 0;
  transform: translateX(-60px);
}
.js-reveal-ready .reveal-right {
  opacity: 0;
  transform: translateX(60px);
}
.js-reveal-ready .reveal-scale {
  opacity: 0;
  transform: scale(0.9);
}
.js-reveal-ready .reveal-rotate {
  opacity: 0;
  transform: translateY(30px) rotate(2deg);
}

.js-reveal-ready .reveal.active,
.js-reveal-ready .reveal-left.active,
.js-reveal-ready .reveal-right.active,
.js-reveal-ready .reveal-scale.active,
.js-reveal-ready .reveal-rotate.active {
  opacity: 1;
  transform: none;
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }
.stagger-7 { transition-delay: 0.35s; }
.stagger-8 { transition-delay: 0.4s; }

/* ============================================
   PREMIUM NAVBAR — GLASSMORPHISM
   ============================================ */
.ftco-navbar-light {
  background: transparent !important;
  position: fixed !important;
  left: 0; right: 0; top: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.6s var(--ease-expo);
  border-bottom: 1px solid transparent;
}
.ftco-navbar-light.scrolled {
  background: rgba(20,20,50,0.85) !important;
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.ftco-navbar-light.scrolled.sleep {
  transform: translateY(-100%);
}
.ftco-navbar-light.scrolled.awake {
  transform: translateY(0);
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--white) !important;
  letter-spacing: -0.02em;
  transition: all 0.4s var(--ease);
}
.navbar-brand img {
  width: 44px; height: 44px;
  margin-right: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  transition: all 0.4s var(--ease);
}
.navbar-brand:hover img {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(255,107,53,0.3);
}
.navbar-brand span { color: var(--white); transition: all 0.4s var(--ease); }

.ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 10px 18px;
  position: relative;
  transition: color 0.4s var(--ease);
}
.ftco-navbar-light .navbar-nav > .nav-item > .nav-link:hover,
.ftco-navbar-light .navbar-nav > .nav-item.active > .nav-link {
  color: var(--white);
}
.ftco-navbar-light .navbar-nav > .nav-item > .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 18px; right: 18px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-expo);
}
.ftco-navbar-light .navbar-nav > .nav-item > .nav-link:hover::after,
.ftco-navbar-light .navbar-nav > .nav-item.active > .nav-link::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Donate button — glowing */
.nav-item.donate .nav-link {
  background: linear-gradient(135deg, var(--primary), #ff4500) !important;
  color: var(--white) !important;
  border-radius: 50px;
  padding: 10px 26px !important;
  margin-left: 8px;
  font-weight: 700;
  box-shadow: 0 4px 25px rgba(255,107,53,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.nav-item.donate .nav-link::after { display: none !important; }
.nav-item.donate .nav-link::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.6s;
}
.nav-item.donate .nav-link:hover::before {
  transform: rotate(45deg) translateX(100%);
}
.nav-item.donate .nav-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(255,107,53,0.5);
}

@media (max-width: 991.98px) {
  .ftco-navbar-light {
    background: var(--dark) !important;
    position: relative !important;
    padding: 10px 0;
  }
  .ftco-navbar-light .navbar-nav > .nav-item > .nav-link { padding: 12px 0; }
  .ftco-navbar-light .navbar-nav > .nav-item > .nav-link::after { display: none; }
  .nav-item.donate .nav-link { margin-left: 0; margin-top: 10px; display: inline-block; }
  
  /* Mobile Hamburger Menu Button */
  .ftco-navbar-light .navbar-toggler {
    border: none;
    padding: 10px;
    background: transparent;
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .ftco-navbar-light .navbar-toggler:focus {
    outline: none;
    box-shadow: none;
  }
  
  .ftco-navbar-light .navbar-toggler .toggler-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    position: relative;
    transition: all 0.3s ease;
  }
  
  .ftco-navbar-light .navbar-toggler .toggler-icon::before,
  .ftco-navbar-light .navbar-toggler .toggler-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--white);
    left: 0;
    transition: all 0.3s ease;
  }
  
  .ftco-navbar-light .navbar-toggler .toggler-icon::before {
    top: -7px;
  }
  
  .ftco-navbar-light .navbar-toggler .toggler-icon::after {
    top: 7px;
  }
  
  /* Animated X when open */
  .ftco-navbar-light .navbar-toggler[aria-expanded="true"] .toggler-icon {
    background: transparent;
  }
  
  .ftco-navbar-light .navbar-toggler[aria-expanded="true"] .toggler-icon::before {
    top: 0;
    transform: rotate(45deg);
  }
  
  .ftco-navbar-light .navbar-toggler[aria-expanded="true"] .toggler-icon::after {
    top: 0;
    transform: rotate(-45deg);
  }
}

/* Scrolled state overrides for light pages */
.ftco-navbar-light.scrolled .navbar-brand span { color: var(--white); }
.ftco-navbar-light.scrolled .nav-link { color: rgba(255,255,255,0.85) !important; }
.ftco-navbar-light.scrolled .nav-link:hover,
.ftco-navbar-light.scrolled .nav-item.active .nav-link { color: var(--white) !important; }

/* ============================================
   CINEMATIC HERO — EXTREME LEVEL
   ============================================ */
.video-hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  overflow: hidden;
}

/* Animated gradient mesh background */
.hero-gradient-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 60%, rgba(255,107,53,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 30%, rgba(120,60,255,0.18) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 50% 80%, rgba(255,69,0,0.15) 0%, transparent 50%);
  animation: meshShift 20s ease-in-out infinite alternate;
}
@keyframes meshShift {
  0% { transform: scale(1) rotate(0deg); opacity: 0.9; }
  50% { transform: scale(1.1) rotate(2deg); opacity: 1; }
  100% { transform: scale(1.05) rotate(-1deg); opacity: 0.95; }
}

/* Animated grid */
.hero-grid {
  position: absolute;
  inset: -50%;
  width: 200%; height: 200%;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 100px 100px;
  animation: gridDrift 30s linear infinite;
  transform: perspective(500px) rotateX(60deg);
  transform-origin: center center;
}
@keyframes gridDrift {
  0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
  100% { transform: perspective(500px) rotateX(60deg) translateY(100px); }
}

/* Noise texture overlay */
.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Floating orbs with glow */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  will-change: transform;
}
.hero-orb-1 {
  width: 400px; height: 400px;
  background: rgba(255,107,53,0.14);
  top: -10%; left: -5%;
  animation: orbDrift1 25s ease-in-out infinite;
}
.hero-orb-2 {
  width: 300px; height: 300px;
  background: rgba(120,60,255,0.1);
  top: 50%; right: -5%;
  animation: orbDrift2 30s ease-in-out infinite;
}
.hero-orb-3 {
  width: 200px; height: 200px;
  background: rgba(255,183,71,0.08);
  bottom: 10%; left: 30%;
  animation: orbDrift3 20s ease-in-out infinite;
}
@keyframes orbDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.1); }
  66% { transform: translate(-30px, 30px) scale(0.95); }
}
@keyframes orbDrift2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-50px, 40px); }
}
@keyframes orbDrift3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -30px); }
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 3px; height: 3px;
  background: rgba(255,107,53,0.6);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}
.particle:nth-child(1) { left: 10%; animation-duration: 15s; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; animation-duration: 20s; animation-delay: 3s; width: 2px; height: 2px; }
.particle:nth-child(3) { left: 40%; animation-duration: 18s; animation-delay: 1s; }
.particle:nth-child(4) { left: 55%; animation-duration: 22s; animation-delay: 5s; width: 2px; height: 2px; background: rgba(120,60,255,0.5); }
.particle:nth-child(5) { left: 70%; animation-duration: 16s; animation-delay: 2s; }
.particle:nth-child(6) { left: 85%; animation-duration: 25s; animation-delay: 4s; width: 2px; height: 2px; }
.particle:nth-child(7) { left: 15%; animation-duration: 19s; animation-delay: 6s; background: rgba(255,183,71,0.5); }
.particle:nth-child(8) { left: 60%; animation-duration: 21s; animation-delay: 1s; }
@keyframes particleFloat {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; transform: translateY(90vh) scale(1); }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(0); opacity: 0; }
}

/* Hero content */
.video-hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  color: var(--white);
  padding: 40px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 10px 28px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 1s var(--ease-expo) 0.5s forwards;
}
.hero-badge .badge-dot {
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--primary); }
  50% { opacity: 0.4; box-shadow: 0 0 20px var(--primary); }
}

/* Hero title — letter-by-letter reveal */
.hero-title {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  color: var(--white);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line-inner {
  display: block;
  opacity: 0;
  transform: translateY(100%);
  animation: lineReveal 1.2s var(--ease-expo) forwards;
}
.hero-title .line:nth-child(1) .line-inner { animation-delay: 0.6s; }
.hero-title .line:nth-child(2) .line-inner { animation-delay: 0.75s; }
@keyframes lineReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--primary-light) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 4s ease-in-out infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Light sweep on title */
.hero-title .sweep {
  position: relative;
  display: inline-block;
}
.hero-title .sweep::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  animation: lightSweep 4s ease-in-out infinite;
}
@keyframes lightSweep {
  0% { left: -100%; }
  50%, 100% { left: 200%; }
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto 44px;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 1s var(--ease-expo) 1s forwards;
}
@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Hero CTA */
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 1s var(--ease-expo) 1.2s forwards;
}

/* Premium buttons */
.btn-premium {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 38px;
  border-radius: 60px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: none;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-expo);
}
.btn-premium::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s var(--ease-expo), height 0.6s var(--ease-expo);
}
.btn-premium:hover::before { width: 300px; height: 300px; }

.btn-primary-glow {
  background: linear-gradient(135deg, var(--primary), #ff4500);
  color: var(--white);
  box-shadow: 0 8px 35px rgba(255,107,53,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary-glow:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 50px rgba(255,107,53,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
  color: var(--white);
}

.btn-glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  color: var(--white);
}
.btn-glass:hover {
  background: var(--glass-strong);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-4px);
  color: var(--white);
}

/* Video play button */
.video-play-container { display: inline-block; }
.video-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  color: var(--white);
  text-decoration: none;
  padding: 18px 38px;
  border-radius: 60px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.5s var(--ease-expo);
  box-shadow: none;
  animation: none;
  cursor: none;
}
.video-play-btn:hover {
  background: var(--glass-strong);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-4px);
  color: var(--white);
  text-decoration: none;
  box-shadow: none;
}
.play-icon-wrapper {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0;
  border: none;
  backdrop-filter: none;
  box-shadow: 0 0 15px rgba(255,107,53,0.4);
}
.play-icon { font-size: 12px; margin-left: 2px; animation: none; color: var(--white); }
.play-btn-text { font-size: inherit; font-weight: inherit; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: heroFadeUp 1s var(--ease-expo) 1.8s forwards;
}
.scroll-indicator .scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* Legacy floating elements override */
.floating-element { display: none; }

/* ============================================
   SECTION SYSTEM — DARK THEME
   ============================================ */
.section-premium {
  padding: 140px 0;
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
.section-premium.bg-surface { background: var(--dark-2); }
.section-premium.bg-gradient {
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);
}

/* Force all sections to full visibility — override any inline styles from JS */
.section-premium,
.section-premium > .container,
.stats-section,
.stats-section > .container,
#team-section,
.block-31,
.footer,
.footer > .container {
  opacity: 1 !important;
  transform: none !important;
}
.section-glow {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.9;
}
.section-glow.glow-left {
  background: rgba(255,107,53,0.12);
  top: -20%; left: -10%;
}
.section-glow.glow-right {
  background: rgba(120,60,255,0.1);
  bottom: -20%; right: -10%;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
}
.section-label .label-line {
  width: 30px; height: 1px;
  background: var(--primary);
}

.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 550px;
  line-height: 1.8;
}

.section-divider {
  width: 50px; height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border: none;
  margin: 0 auto 30px;
}

/* ============================================
   IMPACT STATS — ANIMATED GLOW CARDS
   ============================================ */
.stats-section {
  background: var(--dark-2);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(255,107,53,0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(120,60,255,0.12) 0%, transparent 50%);
}
.stats-section h2 { color: var(--white) !important; }

.stat-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px 16px;
  text-align: center;
  position: relative;
  overflow: visible;
  transition: all 0.6s var(--ease-expo);
}
/* Animated border glow */
.stat-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: conic-gradient(from 0deg, transparent 0%, var(--primary) 10%, transparent 20%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  animation: borderRotate 4s linear infinite;
  z-index: -1;
}
.stat-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius) - 1px);
  background: var(--dark-2);
  z-index: -1;
}
@keyframes borderRotate { to { transform: rotate(360deg); } }
.stat-card:hover::before { opacity: 1; }
.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

.stat-icon {
  font-size: 1.8rem;
  color: var(--primary);
  width: 56px; height: 56px;
  background: rgba(255,107,53,0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: all 0.5s var(--ease-expo);
}
.stat-card:hover .stat-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px rgba(255,107,53,0.3);
}

.stat-number {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  display: block;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

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

/* Legacy stat-item override */
.stat-item { text-align: center; padding: 0; }

/* ============================================
   PROJECT CARDS — 3D TILT + GLOW
   ============================================ */
.project-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.6s var(--ease-expo);
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-expo);
}
.project-card:hover {
  border-color: rgba(255,107,53,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), var(--shadow-glow);
}
.project-card:hover::before { transform: scaleX(1); }

.project-card .card-body {
  background: transparent;
  padding: 2rem;
  position: relative;
  z-index: 1;
}
.project-card .card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.project-card .card-title i {
  color: var(--primary);
  font-size: 1rem;
  width: 40px; height: 40px;
  background: rgba(255,107,53,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s var(--ease-expo);
  flex-shrink: 0;
}
.project-card:hover .card-title i {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 0 20px rgba(255,107,53,0.3);
}
.project-card .card-text {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.7;
}

.learn-more-btn {
  background: linear-gradient(135deg, var(--primary), #ff4500);
  color: var(--white) !important;
  border: none;
  border-radius: 50px;
  padding: 8px 24px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: none;
  transition: all 0.4s var(--ease);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.learn-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,107,53,0.3);
}

/* ============================================
   TEAM — PREMIUM HOVER
   ============================================ */
.block-38 { transition: all 0.6s var(--ease-expo); }
.block-38:hover { transform: translateY(-10px); }

/* Team row - equal height cards */
#team-section .row {
  display: flex;
  flex-wrap: wrap;
}

#team-section .row > [class*="col-"] {
  display: flex;
}

/* Team card glow background */
#team-section .block-38 {
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 28px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  opacity: 1 !important;
  transform: none !important;
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

#team-section .block-38 .block-38-img {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#team-section .block-38 .block-38-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#team-section .block-38 .block-38-heading {
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
}

#team-section .block-38 .block-38-subheading,
#team-section .block-38 .block-36-subheading {
  min-height: 1.8em;
  display: flex;
  align-items: center;
  justify-content: center;
}

#team-section .block-38 .block-38-body {
  margin-top: auto;
}
#team-section .block-38:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,107,53,0.2);
  box-shadow: 0 8px 50px rgba(255,107,53,0.12), 0 4px 30px rgba(0,0,0,0.3);
}

.block-38-img img,
.block-38 .block-38-header img {
  width: 150px !important; height: 150px !important;
  object-fit: cover;
  object-position: top;
  border-radius: 50% !important;
  border: 3px solid rgba(255,107,53,0.5) !important;
  transition: all 0.6s var(--ease-expo);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  filter: none;
  background: #fff;
}
.block-38:hover .block-38-img img,
.block-38:hover .block-38-header img {
  border-color: var(--primary) !important;
  box-shadow: 0 0 30px rgba(255,107,53,0.25), 0 8px 30px rgba(0,0,0,0.3);
  filter: brightness(1.05);
}
.block-38-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 16px;
}
.block-38-subheading, .block-36-subheading {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.block-38-body p {
  font-size: 0.88rem;
  color: var(--text-light);
  font-style: italic;
}

/* ============================================
   GALLERY — MASONRY + REVEAL
   ============================================ */
.img-hover {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.img-hover img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.1) saturate(1.1);
  transition: transform 0.8s var(--ease-expo), filter 0.6s;
}
.img-hover:hover img {
  transform: scale(1.08);
  filter: brightness(1.2) saturate(1.15);
}
.img-hover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.3) 100%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  z-index: 1;
}
.img-hover:hover::before { opacity: 1; }
.img-hover .icon-search {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  color: var(--white);
  font-size: 1.5rem;
  opacity: 0;
  transition: all 0.5s var(--ease-bounce);
  z-index: 2;
}
.img-hover:hover .icon-search {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ============================================
   DONATE — HIGH CONVERSION DARK
   ============================================ */

/* QR Code Hero Card */
.donate-qr-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 4px;
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary));
  background-size: 200% 200%;
  animation: qrGradientShift 4s ease infinite;
}
@keyframes qrGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.donate-qr-glow {
  position: absolute;
  inset: -20px;
  border-radius: var(--radius-xl);
  background: radial-gradient(ellipse at center, rgba(255,107,53,0.25) 0%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  animation: qrPulse 3s ease-in-out infinite;
}
@keyframes qrPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.donate-qr-inner {
  background: var(--dark);
  border-radius: calc(var(--radius-xl) - 4px);
  padding: 50px 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.donate-qr-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,107,53,0.15);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 24px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.donate-qr-badge i {
  animation: heartBeat 1.5s ease-in-out infinite;
}
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
}

/* QR Frame with scanning effect */
.donate-qr-frame {
  position: relative;
  display: inline-block;
  padding: 20px;
  margin: 10px auto 28px;
}
.donate-qr-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: var(--primary);
  border-style: solid;
  border-width: 0;
}
.donate-qr-corner.tl { top: 0; left: 0; border-top-width: 4px; border-left-width: 4px; border-radius: 6px 0 0 0; }
.donate-qr-corner.tr { top: 0; right: 0; border-top-width: 4px; border-right-width: 4px; border-radius: 0 6px 0 0; }
.donate-qr-corner.bl { bottom: 0; left: 0; border-bottom-width: 4px; border-left-width: 4px; border-radius: 0 0 0 6px; }
.donate-qr-corner.br { bottom: 0; right: 0; border-bottom-width: 4px; border-right-width: 4px; border-radius: 0 0 6px 0; }

.donate-qr-scan-line {
  position: absolute;
  left: 20px;
  right: 20px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  border-radius: 2px;
  box-shadow: 0 0 15px rgba(255,107,53,0.5);
  animation: scanMove 2.5s ease-in-out infinite;
  z-index: 2;
}
@keyframes scanMove {
  0%, 100% { top: 20px; opacity: 0.3; }
  50% { top: calc(100% - 23px); opacity: 1; }
}

.donate-qr-img {
  width: 320px;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  filter: brightness(1.05);
  display: block;
}
.donate-qr-label {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

/* UPI App Tags */
.donate-qr-apps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.donate-qr-apps > span:first-child {
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 600;
}
.app-tag {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.1);
}

.donate-qr-trust {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.donate-qr-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  font-size: 0.82rem;
  font-weight: 600;
}
.donate-qr-trust span i {
  color: #4ade80;
  font-size: 0.9rem;
}

.donate-impact-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: all 0.6s var(--ease-expo);
  position: relative;
  overflow: hidden;
}
.donate-impact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.6s var(--ease-expo);
}
.donate-impact-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,107,53,0.2);
  box-shadow: var(--shadow-glow);
}
.donate-impact-card:hover::before { transform: scaleX(1); }

.highlight-amount {
  color: var(--primary);
  font-weight: 900;
  font-size: 1.5em;
  letter-spacing: -0.02em;
}

/* Floating donate CTA */
.floating-donate {
  position: fixed;
  bottom: 30px; right: 90px;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.6s var(--ease-expo);
}
.floating-donate.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.floating-donate a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), #ff4500);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  box-shadow: 0 8px 35px rgba(255,107,53,0.4);
  transition: all 0.4s var(--ease);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: none;
}
.floating-donate a:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 45px rgba(255,107,53,0.6);
  color: var(--white);
}

/* ============================================
   CONTACT — DARK PREMIUM
   ============================================ */
.form-contact {
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  padding: 3rem !important;
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--glass-border);
}
.form-contact h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white) !important;
}
.form-contact p { color: var(--text-light); }
.form-contact .form-control {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.95rem;
  color: var(--white) !important;
  transition: all 0.4s var(--ease);
}
.form-contact .form-control::placeholder { color: var(--text-light) !important; }
.form-contact .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255,107,53,0.1);
  background: rgba(255,255,255,0.06) !important;
}
.form-contact select.form-control {
  color: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23c8c8e0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.form-contact .select-wrapper.has-value select.form-control {
  color: var(--white) !important;
}
.form-contact select.form-control option { background: var(--dark); color: var(--white) !important; }
.form-contact .select-wrapper {
  position: relative;
}
.form-contact .select-placeholder {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
  font-size: 0.95rem;
}
.form-contact .select-wrapper.has-value .select-placeholder {
  display: none;
}

.form-contact .btn-primary {
  background: linear-gradient(135deg, var(--primary), #ff4500) !important;
  border: none !important;
  border-radius: 60px;
  padding: 16px 44px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 8px 30px rgba(255,107,53,0.3);
  transition: all 0.5s var(--ease-expo);
  color: var(--white) !important;
  cursor: none;
}
.form-contact .btn-primary:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 15px 45px rgba(255,107,53,0.5) !important;
  background: linear-gradient(135deg, var(--primary-dark), #e03e00) !important;
}

.contact-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  transition: all 0.6s var(--ease-expo);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 220px;
}
.contact-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,107,53,0.2);
  box-shadow: var(--shadow-glow);
}
.contact-card .icon {
  font-size: 1.8rem;
  color: var(--primary);
  width: 56px; height: 56px;
  background: rgba(255,107,53,0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: all 0.5s var(--ease-expo);
}
.contact-card:hover .icon {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 0 25px rgba(255,107,53,0.3);
}
.contact-card h4 { font-size: 1.15rem; font-weight: 700; color: var(--white); }
.contact-card p { color: var(--text-light); font-size: 0.92rem; }

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}
.map-container iframe { border-radius: var(--radius); }

/* ============================================
   FOOTER — DARK PREMIUM
   ============================================ */
.footer {
  background: var(--dark);
  padding: 100px 0 40px;
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,107,53,0.2), transparent);
}
.footer .heading-section {
  color: var(--white) !important;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 14px;
}
.footer .heading-section::after {
  content: '';
  width: 30px; height: 2px;
  background: var(--primary);
  position: absolute;
  bottom: 0; left: 0;
}
.footer p, .footer .text, .footer .lead {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.8;
}
.footer a {
  color: var(--text-light);
  transition: all 0.4s var(--ease);
}
.footer a:hover { color: var(--primary); }
.footer .block-23 ul { list-style: none; padding: 0; }
.footer .block-23 ul li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 14px;
  color: var(--text-light);
}
.footer .block-23 ul li .icon {
  color: var(--primary);
  margin-right: 14px;
  font-size: 1rem;
  margin-top: 3px;
}
.footer .social-icons {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.footer .social-icons a {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  color: #fff;
  font-size: 1.1rem;
  transition: all 0.5s var(--ease-expo);
}
.footer .social-icons a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(255,107,53,0.3);
  color: #fff;
}
.footer .text-center p {
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 30px;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 46px; height: 46px;
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  color: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  font-size: 0.9rem;
  cursor: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s var(--ease-expo);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(255,107,53,0.3);
}

/* ============================================
   PAGE BANNERS — DARK CINEMATIC
   ============================================ */
.block-31 { margin-top: 0; }

/* ---- Page Hero (sub-pages) ---- */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  overflow: hidden;
}
.page-hero .hero-gradient-mesh,
.page-hero .hero-grid,
.page-hero .hero-noise,
.page-hero .hero-orb,
.page-hero .hero-particles {
  position: absolute;
  inset: 0;
}
.page-hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 80px 20px 60px;
}
.page-hero-content .hero-title {
  margin-bottom: 16px;
}
.page-hero-content .hero-subtitle {
  max-width: 550px;
  margin: 0 auto;
}
.block-30 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  background-size: 100% auto;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: var(--dark);
}
.block-30::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,10,30,0.75);
  z-index: 1;
}
.block-30 h2.heading, .block-30 .heading {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--white) !important;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.block-30 > .container {
  position: relative;
  z-index: 2;
}

/* ============================================
   ABOUT PAGE — TIMELINE
   ============================================ */
.timeline-line {
  position: relative;
  padding-left: 40px;
  border-left: 2px solid rgba(255,107,53,0.4);
}
.timeline-item {
  margin-bottom: 48px;
  position: relative;
}
.timeline-dot {
  position: absolute;
  left: -49px;
  width: 20px; height: 20px;
  background: var(--dark-2);
  border: 3px solid var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255,107,53,0.2);
  transition: all 0.5s var(--ease);
}
.timeline-item:hover .timeline-dot {
  background: var(--primary);
  box-shadow: 0 0 25px rgba(255,107,53,0.4);
}
.timeline-item h5 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1rem;
}
.timeline-item p {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ============================================
   LEGAL DOCS
   ============================================ */
#legal-docs { background: var(--dark-2); padding: 120px 0; }

/* ============================================
   MODAL — DARK
   ============================================ */
.modal-content {
  background: var(--dark-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 80px rgba(0,0,0,0.5);
}
.modal-header {
  background: transparent;
  border-bottom: 1px solid var(--glass-border);
  padding: 24px 32px;
}
.modal-title { font-size: 1.3rem; font-weight: 800; color: var(--white); }
.modal-body { padding: 32px; color: var(--text); line-height: 1.8; }
.modal-body h5 { color: var(--primary); font-weight: 700; margin-top: 24px; }
.modal-footer { border-top: 1px solid var(--glass-border); padding: 16px 32px; }
.close { color: var(--white); opacity: 0.5; text-shadow: none; }
.close:hover { color: var(--primary); opacity: 1; }

/* ============================================
   SITE SECTION OVERRIDES
   ============================================ */
.site-section { padding: 120px 0; background: var(--dark); }
.site-section.section-counter { background: var(--dark); }
h2, h3 { color: var(--white) !important; }
.highlighted-heading { color: var(--white); font-weight: 800; letter-spacing: -0.02em; }
.site-section strong, .footer strong { color: var(--primary) !important; }
.featured-section { background: var(--dark-2) !important; }

/* Full width image section */
.full-width-image-section { background: var(--dark); padding: 0; }
.full-width-image-section img { max-height: 200px; object-fit: contain; margin: 0 auto; display: block; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
  .section-premium { padding: 80px 0; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem !important; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-cta { flex-direction: column; }
  .btn-premium { width: 100%; justify-content: center; }
  .video-play-btn { width: 100%; justify-content: center; }
  .video-hero-section { min-height: 90vh; }
  .stat-number { font-size: 1.6rem; }
  .stats-section { padding: 60px 0; }
  .site-section { padding: 60px 0; }
  .block-38-img img,
  .block-38 .block-38-header img { width: 110px !important; height: 110px !important; object-position: top; }
  .floating-donate { right: 16px; bottom: 16px; }
  .floating-donate a { padding: 12px 20px; font-size: 0.78rem; }
  
  /* Team Section Mobile Fix */
  #team-section .block-38 {
    padding: 24px 16px;
    margin-bottom: 16px;
    min-height: 260px;
  }
  
  #team-section .row {
    margin-left: -10px;
    margin-right: -10px;
  }
  
  #team-section .row > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
  }
  
  .block-38-heading {
    font-size: 1rem;
    margin-top: 14px;
  }
  
  .block-38-subheading,
  .block-36-subheading {
    font-size: 0.7rem;
  }
  
  .block-38-body p {
    font-size: 0.85rem;
    padding: 0 8px;
  }
  .scroll-indicator { display: none; }
  .hero-particles { display: none; }
}
@media (max-width: 576px) {
  .form-contact { padding: 2rem !important; }
  .contact-card { padding: 24px 16px; }
  
  /* Team Section - 2 columns on small mobile */
  #team-section .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -6px;
    margin-right: -6px;
  }
  
  #team-section .col-md-6.col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 6px;
    padding-right: 6px;
    margin-bottom: 12px;
  }
  
  #team-section .block-38 {
    padding: 20px 10px;
    min-height: 200px;
    height: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  
  #team-section .block-38-img,
  #team-section .block-38-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  .block-38-img img,
  .block-38 .block-38-header img {
    width: 90px !important;
    height: 90px !important;
    border-width: 3px !important;
    margin-bottom: 12px;
  }
  
  .block-38-heading {
    font-size: 0.9rem;
    margin-top: 0;
    margin-bottom: 4px;
    line-height: 1.3;
    min-height: auto !important;
  }
  
  .block-38-subheading,
  .block-36-subheading {
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    min-height: auto !important;
    text-align: center;
    line-height: 1.4;
  }
  
  .block-38-body {
    display: none;
  }
}

/* ============================================
   FORM VALIDATION STYLES
   ============================================ */
.form-control.is-invalid {
  border-color: #ff4757 !important;
  box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.15) !important;
}

.form-control.is-valid {
  border-color: #2ed573 !important;
  box-shadow: 0 0 0 3px rgba(46, 213, 115, 0.15) !important;
}

.error-message {
  display: block;
  color: #ff4757;
  font-size: 0.8rem;
  margin-top: 6px;
  padding-left: 4px;
}

.form-control:focus.is-invalid {
  border-color: #ff4757 !important;
  box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.25) !important;
}

.form-control:focus.is-valid {
  border-color: #2ed573 !important;
  box-shadow: 0 0 0 3px rgba(46, 213, 115, 0.25) !important;
}


/* ============================================
   DONATE AMOUNT INPUT SECTION
   ============================================ */
.donate-amount-section {
  margin-bottom: 30px;
  text-align: center;
}

.amount-input-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 280px;
  margin: 0 auto 16px;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.amount-input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255,107,53,0.15);
}

.currency-symbol {
  padding: 16px 0 16px 20px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.amount-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 16px 20px 16px 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  outline: none;
  width: 100%;
  -moz-appearance: textfield;
  appearance: textfield;
}

.amount-input::-webkit-outer-spin-button,
.amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.amount-input::placeholder {
  color: var(--text-dark);
}

.quick-amounts {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.quick-amount-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quick-amount-btn:hover {
  background: rgba(255,107,53,0.15);
  border-color: rgba(255,107,53,0.3);
  color: var(--white);
}

.quick-amount-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

.generate-qr-btn {
  background: linear-gradient(135deg, var(--primary), #ff4500);
  border: none;
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(255,107,53,0.3);
}

.generate-qr-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255,107,53,0.4);
}

.generate-qr-btn:active {
  transform: translateY(-1px);
}

.qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  width: 200px;
  color: var(--text-dark);
}

.qr-placeholder i {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.qr-placeholder p {
  font-size: 0.85rem;
  margin: 0;
  text-align: center;
}

#qrCodeContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  min-width: 160px;
  min-height: 160px;
}

#qrCodeContainer img {
  display: block !important;
  max-width: 100% !important;
  height: auto !important;
}

/* Hide canvas if JS library is used as fallback */
#qrCodeContainer canvas {
  display: none !important;
}

@media (max-width: 480px) {
  #qrCodeContainer {
    padding: 10px;
    min-width: 140px;
    min-height: 140px;
  }
}

#qrCodeContainer.qr-generated {
  animation: qrPop 0.4s ease;
}

@keyframes qrPop {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

#qrAmountLabel strong {
  color: var(--primary);
}


/* ============================================
   QR CODE MODAL
   ============================================ */
.qr-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  padding: 20px;
}

.qr-modal.active {
  opacity: 1;
  visibility: visible;
}

.qr-modal-content {
  background: linear-gradient(145deg, var(--dark-2), var(--dark));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 30px;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s ease;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.qr-modal.active .qr-modal-content {
  transform: scale(1) translateY(0);
}

.qr-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-modal-close:hover {
  background: rgba(255, 71, 87, 0.2);
  color: #ff4757;
}

.qr-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.qr-modal-header h3 {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.qr-modal-amount {
  color: var(--text-light);
  font-size: 1.1rem;
}

.qr-modal-amount strong {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 800;
}

.qr-modal-body {
  text-align: center;
}

.qr-modal-frame {
  position: relative;
  display: inline-block;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  margin-bottom: 20px;
}

.qr-modal-frame .donate-qr-corner {
  width: 20px;
  height: 20px;
  border-color: var(--primary);
}

.qr-modal-instruction {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.qr-modal-instruction i {
  color: var(--primary);
  margin-right: 8px;
}

.qr-modal-footer {
  text-align: center;
  margin-top: 24px;
}

.change-amount-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.change-amount-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  color: var(--white);
}

.change-amount-btn i {
  margin-right: 8px;
}

@media (max-width: 480px) {
  .qr-modal-content {
    padding: 30px 20px;
    margin: 10px;
    max-height: 95vh;
  }
  
  .qr-modal-header h3 {
    font-size: 1.2rem;
  }
  
  .qr-modal-amount strong {
    font-size: 1.3rem;
  }
  
  .qr-modal-frame {
    padding: 15px;
  }
  
  .qr-modal-instruction {
    font-size: 0.85rem;
  }
}


/* ============================================
   UPI PAY BUTTON IN MODAL
   ============================================ */
.upi-pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 40px;
  background: linear-gradient(135deg, #5f259f, #7b3fa0);
  color: var(--white) !important;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(95, 37, 159, 0.3);
}

.upi-pay-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(95, 37, 159, 0.4);
  text-decoration: none;
  color: var(--white) !important;
}

.upi-pay-btn i {
  font-size: 1.1rem;
}

.upi-supported-apps {
  font-size: 0.8rem;
  color: var(--text-dark);
}

.upi-supported-apps span {
  color: var(--text-light);
}

@media (max-width: 400px) {
  .upi-pay-btn {
    padding: 14px 30px;
    font-size: 0.9rem;
  }
}
