/* ========================================
   CSS Custom Properties
   ======================================== */
:root {
  --color-bg: #0a0a0f;
  --color-bg-secondary: #12121a;
  --color-bg-card: #16161f;
  --color-bg-card-hover: #1c1c28;
  --color-surface: #1e1e2a;
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-hover: rgba(255, 255, 255, 0.12);
  --color-text: #e8e8f0;
  --color-text-secondary: #9898a8;
  --color-text-muted: #6a6a7a;
  --color-primary: #6c5ce7;
  --color-primary-light: #a29bfe;
  --color-accent: #00cec9;
  --color-accent-light: #81ecec;
  --gradient-primary: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #00cec9 100%);
  --gradient-glow: linear-gradient(135deg, #6c5ce7 0%, #00cec9 100%);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(108, 92, 231, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

/* ========================================
   Animations - Keyframes
   ======================================== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  33% { transform: translateY(-20px); }
  66% { transform: translateY(10px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes checkmark-draw {
  0% { stroke-dashoffset: 166; }
  100% { stroke-dashoffset: 0; }
}

@keyframes checkmark-circle {
  0% { stroke-dashoffset: 166; }
  100% { stroke-dashoffset: 0; }
}

@keyframes ring-pulse {
  0% { transform: scale(0.8); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 0.2; }
  100% { transform: scale(0.8); opacity: 0.6; }
}

@keyframes badge-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: all var(--transition);
}

.nav-logo:hover .nav-logo-img {
  filter: brightness(1.15);
  transform: scale(1.03);
}

.hero-logo-showcase {
  margin-bottom: 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 320px;
  height: 320px;
  margin-left: auto;
  margin-right: auto;
}

.logo-aura {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.aura-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(108, 92, 231, 0.15);
  animation: aura-expand 4s ease-out infinite;
}

.aura-ring.a2 { animation-delay: 1.3s; }
.aura-ring.a3 { animation-delay: 2.6s; }

@keyframes aura-expand {
  0% { transform: scale(0.7); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

.hero-logo-img {
  height: 280px;
  width: auto;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 60px rgba(108, 92, 231, 0.3)) drop-shadow(0 0 120px rgba(0, 206, 201, 0.12));
  animation: float 6s ease-in-out infinite;
}

.hero-canvas-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition);
  border-radius: 2px;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px;
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 100px;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  border: none;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.4);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: rgba(108, 92, 231, 0.15);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: rgba(0, 206, 201, 0.1);
  bottom: -150px;
  left: -100px;
  animation-delay: -7s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: rgba(162, 155, 254, 0.08);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

.particle-field {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: float 15s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary-light);
  margin-bottom: 32px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: badge-dot-pulse 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 28px;
}

.gradient-text {
  background: var(--gradient-primary);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s ease-in-out infinite;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 100px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(108, 92, 231, 0.4);
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-primary);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  filter: blur(12px);
  transition: opacity var(--transition);
}

.btn-glow:hover::before {
  opacity: 0.6;
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border-hover);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-text-muted);
  transform: translateY(-3px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-suffix {
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 2px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 2px;
  animation: scroll-line 2s ease-in-out infinite;
}

/* Fade-up animation classes */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fade-in-up 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Section Common Styles
   ======================================== */
.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-primary-light);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
}

/* ========================================
   About Section
   ======================================== */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 92, 231, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-primary-light);
}

.about-feature h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.about-feature p {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Network Constellation Visual */
.network-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 500px;
  margin: 0 auto;
}

#networkCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ========================================
   Impact Section
   ======================================== */
.impact-section {
  background: var(--color-bg-secondary);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.impact-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
}

.impact-card:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-hover);
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

.impact-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 92, 231, 0.08);
  border-radius: 50%;
  color: var(--color-primary-light);
}

.impact-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.impact-label {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.impact-desc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ========================================
   Our Story Section
   ======================================== */
.story-section {
  background: var(--color-bg-secondary);
  position: relative;
  overflow: hidden;
}

.story-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-hover), transparent);
}

/* Story Image Rows */
.story-row-h,
.story-row-v {
  display: grid;
  gap: 16px;
}

.story-row-h {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  margin-bottom: 40px;
}

.story-row-v {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  max-width: 60%;
  margin: 40px auto 0;
}

.story-img-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.story-row-h .story-img-wrapper {
  aspect-ratio: auto;
  max-height: 420px;
}

.story-row-v .story-img-wrapper {
  aspect-ratio: auto;
  max-height: 520px;
}

.story-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
  filter: brightness(0.85);
}

.story-img-wrapper:hover .story-img {
  transform: scale(1.05);
  filter: brightness(1);
}

.story-img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 10, 15, 0.4) 100%);
  pointer-events: none;
}

.story-clickable {
  cursor: pointer;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.6);
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.story-text {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.story-text p {
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--color-text-secondary);
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .story-row-v {
    max-width: 80%;
  }

  .story-text p {
    font-size: 1rem;
    line-height: 1.75;
  }
}

@media (max-width: 480px) {
  .story-row-h,
  .story-row-v {
    grid-template-columns: 1fr;
  }

  .story-row-v {
    max-width: 70%;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
}

/* ========================================
   Get Involved Section
   ======================================== */
.involvement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.involvement-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 44px 32px 36px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.involvement-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-8px);
}

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

.involvement-card.featured {
  border-color: rgba(108, 92, 231, 0.3);
  background: linear-gradient(180deg, rgba(108, 92, 231, 0.06) 0%, var(--color-bg-card) 100%);
}

.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 14px;
  background: var(--gradient-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.card-icon-wrapper {
  margin-bottom: 24px;
}

.card-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.15);
  border-radius: var(--radius-lg);
  color: var(--color-primary-light);
  transition: all var(--transition);
}

.involvement-card:hover .card-icon {
  background: rgba(108, 92, 231, 0.15);
  transform: scale(1.05);
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.card-perks {
  margin-bottom: 32px;
}

.card-perks li {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-perks li:last-child {
  border-bottom: none;
}

.card-perks li::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.8rem;
}

.btn-card {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  background: rgba(108, 92, 231, 0.1);
  color: var(--color-primary-light);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: var(--radius-md);
  font-weight: 600;
}

.btn-card:hover {
  background: rgba(108, 92, 231, 0.2);
  border-color: rgba(108, 92, 231, 0.4);
  transform: translateY(-2px);
}

.btn-featured {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.btn-featured:hover {
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.4);
  transform: translateY(-2px);
}

/* ========================================
   Stories Section
   ======================================== */
.stories {
  background: var(--color-bg-secondary);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.story-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all var(--transition);
}

.story-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
}

.story-quote {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: -10px;
}

.story-text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.story-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
}

.author-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.author-role {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ========================================
   Events Gallery Section
   ======================================== */
.events-section {
  background: var(--color-bg-secondary);
}

.events-stack {
  position: relative;
  width: 100%;
  max-width: 700px;
  aspect-ratio: 16 / 10;
  margin: 0 auto;
  cursor: pointer;
}

.ev-card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  will-change: transform, opacity;
}

.ev-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}

.ev-card[data-pos="0"] img:hover {
  filter: brightness(1);
}

.ev-card[data-pos="0"] {
  z-index: 6;
  transform: translateX(0) scale(1);
  opacity: 1;
}

.ev-card[data-pos="1"] {
  z-index: 5;
  transform: translateX(36px) translateY(6px) scale(0.95);
  opacity: 0.7;
}

.ev-card[data-pos="2"] {
  z-index: 4;
  transform: translateX(72px) translateY(12px) scale(0.90);
  opacity: 0.45;
}

.ev-card[data-pos="3"] {
  z-index: 3;
  transform: translateX(108px) translateY(18px) scale(0.85);
  opacity: 0.25;
}

.ev-card[data-pos="4"],
.ev-card[data-pos="5"] {
  z-index: 2;
  transform: translateX(130px) translateY(22px) scale(0.82);
  opacity: 0;
  pointer-events: none;
}

.ev-card[data-pos="-1"] {
  z-index: 0;
  transform: translateX(-50px) scale(0.92);
  opacity: 0;
  pointer-events: none;
}

/* Events Nav */
.ev-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.ev-nav:hover {
  background: rgba(108, 92, 231, 0.5);
  border-color: rgba(108, 92, 231, 0.6);
}

.ev-prev { left: -64px; }
.ev-next { right: -64px; }

/* Events Dots */
.ev-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.ev-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  cursor: pointer;
}

.ev-dot.active {
  background: var(--color-accent);
  box-shadow: 0 0 8px rgba(0, 206, 201, 0.4);
}

@media (max-width: 768px) {
  .events-stack {
    max-width: 480px;
  }

  .ev-prev { left: -28px; }
  .ev-next { right: -28px; }
}

@media (max-width: 480px) {
  .events-stack {
    max-width: 320px;
  }

  .ev-prev { left: -10px; }
  .ev-next { right: -10px; }

  .ev-nav {
    width: 38px;
    height: 38px;
  }
}

/* ========================================
   CTA Section
   ======================================== */
.cta-box {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 80px 60px;
  text-align: center;
  overflow: hidden;
}

.cta-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.cta-orb-1 {
  width: 300px;
  height: 300px;
  background: rgba(108, 92, 231, 0.15);
  top: -100px;
  right: -50px;
  animation: float 15s ease-in-out infinite;
}

.cta-orb-2 {
  width: 250px;
  height: 250px;
  background: rgba(0, 206, 201, 0.1);
  bottom: -80px;
  left: -50px;
  animation: float 18s ease-in-out infinite reverse;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}

.cta-desc {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 500px;
  margin: 0 auto 36px;
  position: relative;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--color-bg-secondary);
  padding: 72px 0 32px;
  border-top: 1px solid var(--color-border);
}

.footer-grid-v2 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-logo-img-lg {
  height: 120px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(108, 92, 231, 0.15));
  transition: all var(--transition);
}

.footer-logo-link:hover .footer-logo-img-lg {
  filter: drop-shadow(0 0 40px rgba(108, 92, 231, 0.3));
  transform: scale(1.04);
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  max-width: 380px;
}

.footer-links-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-text);
  margin-bottom: 24px;
}

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

.footer-links-col li {
  margin-bottom: 14px;
}

.footer-links-col a {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  transition: color var(--transition);
}

.footer-links-col a:hover {
  color: var(--color-primary-light);
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin-bottom: 24px;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 420px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--color-text-muted);
}

.footer-bottom-links a:hover {
  color: var(--color-text-secondary);
}

/* ========================================
   Modal
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  animation: overlay-in 0.3s ease;
}

.modal {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px;
  position: relative;
  opacity: 0;
  transform: translateY(30px) scale(0.96);
}

.modal-overlay.active .modal {
  animation: modal-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

.modal::-webkit-scrollbar {
  width: 6px;
}

.modal::-webkit-scrollbar-track {
  background: transparent;
}

.modal::-webkit-scrollbar-thumb {
  background: var(--color-border-hover);
  border-radius: 3px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text-secondary);
  transition: all var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text);
}

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

.modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.volunteer-icon {
  background: rgba(108, 92, 231, 0.1);
  color: var(--color-primary-light);
}

.membership-icon {
  background: rgba(0, 206, 201, 0.1);
  color: var(--color-accent-light);
}

.sponsor-icon {
  background: rgba(0, 206, 201, 0.1);
  color: var(--color-accent-light);
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-header p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* Form Styles */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.9rem;
  transition: all var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239898a8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 16px 32px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 8px;
  transition: all var(--transition);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.4);
}

.btn-submit.loading .btn-text { display: none; }
.btn-submit .btn-loading { display: none; }
.btn-submit.loading .btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  display: inline-block;
  animation: spinner 0.6s linear infinite;
}

/* Success State */
.modal-success {
  text-align: center;
  padding: 40px 0;
}

.success-animation {
  margin-bottom: 24px;
}

.checkmark {
  width: 80px;
  height: 80px;
}

.checkmark-circle {
  stroke: var(--color-accent);
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  animation: checkmark-circle 0.6s ease-in-out forwards;
}

.checkmark-check {
  stroke: var(--color-accent);
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: checkmark-draw 0.3s ease-in-out 0.5s forwards;
}

.modal-success h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.modal-success p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  max-width: 400px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.modal-success .btn {
  padding: 12px 36px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .section {
    padding: 80px 0;
  }

  .hero {
    padding: 100px 24px 60px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

  .hero-logo-img {
    height: 72px;
  }

  .nav-logo-img {
    height: 34px;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-divider {
    display: none;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .section-visual {
    order: -1;
  }

  .hero-logo-showcase {
    width: 220px;
    height: 220px;
  }

  .hero-logo-img {
    height: 180px;
  }

  .nav-logo-img {
    height: 56px;
  }

  .network-visual {
    max-width: 360px;
  }

  .involvement-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .footer-grid-v2 {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand-col {
    grid-column: span 2;
  }

  .footer-logo-img-lg {
    height: 80px;
  }

  .cta-box {
    padding: 48px 24px;
  }

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

  .modal {
    padding: 32px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

/* ========================================
   Floating Subscribe Widget
   ======================================== */
.subscribe-fab {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 999;
  padding: 10px 16px;
  border-radius: 28px 0 0 28px;
  background: linear-gradient(135deg, #6c5ce7, #00cec9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 24px rgba(108, 92, 231, 0.4);
  transition: transform 0.3s, opacity 0.3s;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  animation: subscribe-pulse 2s ease-out infinite;
}

.subscribe-fab:hover {
  transform: translateY(-50%) translateX(-4px);
  box-shadow: 0 6px 32px rgba(108, 92, 231, 0.55);
  animation-play-state: paused;
}

.subscribe-fab.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(100%);
  animation: none;
}

@keyframes subscribe-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.55);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(108, 92, 231, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(108, 92, 231, 0);
  }
}

.subscribe-panel {
  position: fixed;
  top: 50%;
  right: 24px;
  z-index: 1000;
  width: 340px;
  background: rgba(18, 18, 26, 0.96);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: 20px;
  padding: 28px 24px 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(108, 92, 231, 0.08);
  opacity: 0;
  transform: translateY(-50%) translateX(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s;
}

.subscribe-panel.open {
  opacity: 1;
  transform: translateY(-50%) translateX(0) scale(1);
  pointer-events: all;
}

.subscribe-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.subscribe-panel-header h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.subscribe-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.subscribe-close:hover {
  color: #fff;
}

.subscribe-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 18px;
  line-height: 1.5;
}

.subscribe-field {
  margin-bottom: 12px;
}

.subscribe-field input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}

.subscribe-field input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.subscribe-field input:focus {
  outline: none;
  border-color: rgba(108, 92, 231, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.subscribe-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #6c5ce7, #00cec9);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.subscribe-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.subscribe-success {
  text-align: center;
  padding: 16px 0 8px;
}

.subscribe-success p {
  color: #00cec9;
  font-weight: 600;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .subscribe-fab {
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .subscribe-fab span {
    display: none;
  }

  .subscribe-panel {
    right: 12px;
    left: 12px;
    width: auto;
    top: auto;
    bottom: 20px;
    transform: translateY(20px) scale(0.95);
  }

  .subscribe-panel.open {
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .footer-grid-v2 {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand-col {
    grid-column: 1;
  }
}
