/* ============================================================
   O Jagannath — style.css
   A single stylesheet powering all pages.
   ============================================================ */

/* ── Google Font ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --sky:        #38bdf8;
  --sky-deep:   #0ea5e9;
  --sky-light:  #e0f2fe;
  --white:      #ffffff;
  --ink:        #0f172a;
  --ink-deep:   #060b14;
  --ink-soft:   #334155;
  --muted:      #64748b;
  --border:     rgba(15,23,42,.08);
  --glass-bg:   rgba(255,255,255,.12);
  --glass-border: rgba(255,255,255,.25);
  --shadow-sm:  0 2px 12px rgba(15,23,42,.07);
  --shadow-md:  0 8px 32px rgba(15,23,42,.10);
  --shadow-lg:  0 20px 60px rgba(15,23,42,.14);
  --radius:     24px;
  --radius-sm:  12px;
  --radius-xs:  8px;
  --transition: .4s cubic-bezier(.25,.8,.25,1);
  --font:       'Poppins', sans-serif;
}

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

html { 
  scroll-behavior: smooth; 
  font-size: 16px; 
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

button { cursor: pointer; font-family: var(--font); border: none; outline: none; }

/* ── Loading Screen ── */
#loader {
  position: fixed;
  inset: 0;
  background: var(--ink-deep);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}

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

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loader-favicon {
  height: 120px;
  width: auto;
  animation: pulse-glow 1s ease-in-out infinite alternate;
}

.loader-progress {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,.15);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.loader-progress::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 50%;
  background: var(--sky);
  border-radius: 4px;
  animation: load-bar 1s ease-in-out infinite alternate;
}

.loader-text {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 5px;
  animation: text-pulse-glow 1.5s ease-in-out infinite alternate;
}

@keyframes text-pulse-glow {
  from {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.4), 0 0 10px rgba(255, 255, 255, 0.2);
    opacity: 0.8;
  }
  to {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px var(--sky), 0 0 30px var(--sky-deep);
    opacity: 1;
  }
}

@keyframes pulse-glow {
  from { filter: drop-shadow(0 0 8px rgba(255,255,255,0.4)); transform: scale(0.95); }
  to { filter: drop-shadow(0 0 32px rgba(255,255,255,1)); transform: scale(1.05); }
}

@keyframes load-bar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* ── Utility Classes ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 100px 0; }

.section-sm { padding: 64px 0; }

.section-dark {
  background: var(--ink);
  color: var(--white);
}

.section-tint { background: #f8fafd; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin-bottom: 16px;
}

.eyebrow i { font-size: .85rem; }

.section-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-dark .section-heading,
.section-dark .eyebrow { color: var(--white); }

.section-dark .eyebrow { color: var(--sky); }

.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.8;
}

.section-dark .section-sub { color: rgba(255,255,255,.65); }

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

.text-center .section-sub { margin-inline: auto; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

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

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



/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--sky-deep);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(14,165,233,.35);
}

.btn-primary:hover {
  background: var(--sky);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(14,165,233,.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--sky-deep);
  border: 2px solid var(--sky-deep);
}

.btn-outline-dark:hover {
  background: var(--sky-deep);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 22px; font-size: .82rem; }

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  word-break: break-word;
  display: flex;
  flex-direction: column;
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body > a, .card-body > .btn, .card > .btn, .involve-card > .btn {
  margin-top: auto;
  align-self: center;
}


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

.card-glass {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card-glass > .news-link {
  margin-top: auto;
  align-self: flex-start;
}

.card-glass:hover {
  background: rgba(255,255,255,.14);
  transform: translateY(-4px);
}

/* ── Tag / Badge ── */
.tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  background: var(--sky-light);
  color: var(--sky-deep);
}

/* ── ───────────────────────── HEADER ──────────────────────── ── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 8px 0;
  transition: background .4s ease, backdrop-filter .4s ease,
              border .4s ease, padding .3s ease, box-shadow .4s ease;
}

#site-header.scrolled {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.35);
  padding: 6px 0;
  box-shadow: 0 4px 24px rgba(15,23,42,.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}


/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  transition: color .3s;
  flex-shrink: 0;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--sky-deep);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
  flex-shrink: 0;
}

#site-header.scrolled .logo { color: var(--ink); }
#site-header.scrolled .logo img {
  content: url("../assets/icons/logo-scrolled.png");
}

/* Nav */
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 100px;
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,.15);
}

#site-header.scrolled .nav-link { color: var(--ink-soft); }

#site-header.scrolled .nav-link:hover,
#site-header.scrolled .nav-link.active {
  color: var(--sky-deep);
  background: var(--sky-light);
}

.nav-cta {
  background: var(--sky-deep) !important;
  color: var(--white) !important;
  padding: 9px 22px !important;
  box-shadow: 0 4px 16px rgba(14,165,233,.35);
}

.nav-cta:hover {
  background: var(--sky) !important;
  color: var(--white) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  padding: 6px;
  border-radius: 8px;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

#site-header.scrolled .hamburger span { background: var(--ink); }

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--ink);
  z-index: 999;
  padding: 120px 32px 40px;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.25,.8,.25,1);
  overflow-y: auto;
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav .nav-link {
  color: rgba(255,255,255,.75);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: block;
  font-size: 1rem;
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.active {
  background: rgba(255,255,255,.1);
  color: var(--white);
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 998;
  backdrop-filter: blur(4px);
}

.mobile-overlay.open { display: block; }

/* ── ───────────────────────── HERO ──────────────────────────── ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 40px;
  overflow: hidden;
  background: var(--ink-deep);
}

.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.5s ease-in-out, transform 10s ease-out;
  will-change: opacity, transform;
}

.hero-slide.active {
  opacity: .35;
  transform: scale(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6,11,20,.85) 0%, rgba(15,23,42,.5) 100%);
}

.hero-gradient {
  background: linear-gradient(135deg, rgba(6,11,20,0.9) 0%, rgba(14,165,233,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56,189,248,.18);
  border: 1px solid rgba(56,189,248,.3);
  padding: 6px 18px;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -.01em;
}

.hero h1 span { color: var(--sky); }

.hero p {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,.72);
  line-height: 1.85;
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.5);
  font-size: .75rem;
  letter-spacing: .08em;
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-8px); }
}

.hero-scroll i { font-size: 1.3rem; color: var(--sky); }

/* Page Hero (inner pages) */
.page-hero {
  min-height: 52vh;
  background: var(--ink-deep);
  display: flex;
  align-items: flex-end;
  padding-top: 160px;
  padding-bottom: 72px;
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .25;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(6,11,20,.6), rgba(6,11,20,.9));
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero-content .eyebrow { color: var(--sky); }

.page-hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-hero-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.65);
  max-width: 520px;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--sky); }
.breadcrumb i { font-size: .65rem; }

/* ── STATS ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.stat-item {
  background: var(--white);
  padding: 48px 32px;
  text-align: center;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--sky-deep);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── PROGRAMS ── */
.program-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.program-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--sky-light), #bae6fd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--sky-deep);
}

.program-body { padding: 28px; }

.program-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}

.program-body p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

/* ── TESTIMONIALS ── */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.testimonial-quote {
  font-size: 2.5rem;
  color: var(--sky);
  line-height: 1;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: .92rem;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--sky-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.author-name { font-weight: 700; font-size: .9rem; color: var(--ink); }

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

/* ── PARTNERS ── */
.partners-marquee {
  display: flex;
  overflow: hidden;
  gap: 24px;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-track {
  display: flex;
  flex-shrink: 0;
  gap: 24px;
  animation: marquee 30s linear infinite;
}

.partners-marquee:hover .partners-track {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100% - 24px)); }
}

.partner-logo {
  flex-shrink: 0;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  font-weight: 700;
  font-size: .95rem;
  color: var(--muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.partner-logo:hover {
  border-color: var(--sky);
  color: var(--sky-deep);
  box-shadow: var(--shadow-sm);
}

/* ── NEWS CARDS ── */
.news-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.news-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--sky-light), #bae6fd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--sky-deep);
  flex-shrink: 0;
}

.news-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.news-date {
  font-size: .75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-body h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 12px;
  color: var(--ink);
}

.news-body p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 20px;
}

.news-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--sky-deep);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  transition: gap .25s;
}

.news-body .news-link {
  justify-content: center;
  align-self: center;
}

.news-link:hover { gap: 10px; }

/* ── CTA SECTION ── */
.cta-section {
  background: var(--ink);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,.12) 0%, transparent 70%);
}

.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-inner h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.cta-inner h2 span { color: var(--sky); }

.cta-inner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.65);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

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

/* ── ──────────────────────── FOOTER ─────────────────────────── ── */
#site-footer {
  background: var(--ink-deep);
  color: rgba(255,255,255,.65);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand .logo { color: var(--white); margin-bottom: 16px; }

.footer-brand p {
  font-size: .875rem;
  line-height: 1.8;
  color: rgba(255,255,255,.5);
  margin-bottom: 24px;
}

.footer-socials { display: flex; gap: 10px; }

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.55);
  font-size: .9rem;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--sky-deep);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: .875rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-link {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .25s, gap .25s;
}

.footer-link:hover { color: var(--sky); gap: 12px; }

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  align-items: flex-start;
  word-break: break-word;
}

.footer-contact-item i {
  color: var(--sky);
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.35); }

.footer-bottom a { color: var(--sky); }

/* ── SCROLL TO TOP ── */
#scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--sky-deep);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(14,165,233,.4);
  cursor: pointer;
  z-index: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  border: none;
}

#scroll-top.visible { opacity: 1; transform: translateY(0); }
#scroll-top:hover { background: var(--sky); transform: translateY(-2px); }

/* ── ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.from-left { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.scale-up { transform: scale(.92); }

.reveal.visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ─── ABOUT PAGE ─── */
.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.value-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--sky-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--sky-deep);
  margin-bottom: 20px;
}

.value-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.value-card p { font-size: .875rem; color: var(--muted); line-height: 1.75; }

/* Timeline */
.timeline { position: relative; padding-left: 40px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sky-deep);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--sky-light);
}

.timeline-year {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin-bottom: 6px;
}

.timeline-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.timeline-item p { font-size: .875rem; color: var(--muted); line-height: 1.75; }

/* Team */
.team-card {
  text-align: center;
  transition: var(--transition);
}

.team-card:hover { transform: translateY(-4px); }

.team-avatar {
  width: 100%;
  height: 260px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--sky-light), #bae6fd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--sky-deep);
  margin-bottom: 20px;
  overflow: hidden;
}

.team-name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: .82rem; color: var(--sky-deep); font-weight: 600; margin-bottom: 10px; }
.team-bio { font-size: .82rem; color: var(--muted); line-height: 1.7; }

/* Founder grid */
.founder-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 48px;
  align-items: stretch;
}

/* Founder quote */
.founder-quote {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 56px;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.founder-quote::before {
  content: '\201C';
  position: absolute;
  top: -20px;
  left: 32px;
  font-size: 12rem;
  font-family: Georgia, serif;
  color: rgba(56,189,248,.1);
  line-height: 1;
}

.founder-text {
  font-size: 1.2rem;
  color: rgba(255,255,255,.85);
  line-height: 1.85;
  font-style: italic;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.founder-info {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.founder-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--sky-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 700;
  flex-shrink: 0;
}

.founder-name { font-size: 1rem; font-weight: 700; color: var(--white); }
.founder-role { font-size: .82rem; color: var(--sky); }

/* ─── OUR WORK PAGE ─── */
.impact-stat {
  text-align: center;
  padding: 48px 24px;
}

.impact-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(56,189,248,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--sky);
  margin: 0 auto 20px;
}

.impact-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.impact-label {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.story-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 280px 1fr;
  transition: var(--transition);
}

.story-card:hover { box-shadow: var(--shadow-lg); }

.story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--sky-light), #bae6fd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--sky-deep);
}

.story-body { padding: 40px; }

.story-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.story-body p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ─── GALLERY PAGE ─── */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 9px 22px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--sky-deep);
  color: var(--white);
  border-color: var(--sky-deep);
}

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

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  position: relative;
  background: var(--sky-light);
  transition: var(--transition);
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item i.fas:not(.fa-expand) { font-size: 3rem; color: var(--sky-deep); transition: var(--transition); position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); }

.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6,11,20,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}

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

.gallery-overlay i { font-size: 2rem; color: var(--white); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(6,11,20,.95);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.lightbox.open { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: 880px;
  width: fit-content;
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}

.lightbox-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  transition: background .25s;
}

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

.lightbox-img {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-caption {
  padding: 20px 24px;
  color: rgba(255,255,255,.7);
  font-size: .875rem;
}

.lightbox-caption:empty {
  display: none;
}

/* ─── GET INVOLVED ─── */
.involve-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.involve-icon {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: var(--sky-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--sky-deep);
  margin: 0 auto 24px;
}

.involve-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.involve-card p { font-size: .875rem; color: var(--muted); line-height: 1.75; margin-bottom: 28px; }

/* Donate amounts */
.donate-amounts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 24px; }

.amount-btn {
  padding: 10px 22px;
  border-radius: 100px;
  border: 2px solid var(--border);
  background: var(--white);
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink);
  transition: var(--transition);
}

.amount-btn:hover,
.amount-btn.selected {
  border-color: var(--sky-deep);
  background: var(--sky-deep);
  color: var(--white);
}

/* ── FAQ ACCORDION ── */
.faq-item {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  overflow: hidden;
  transition: all .3s ease;
}

.faq-item.active {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.faq-question {
  padding: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  transition: color .3s ease;
}

.faq-item.active .faq-question {
  color: var(--sky-deep);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--sky-light);
  color: var(--sky-deep);
  transition: transform .3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  padding: 0 24px 24px;
  max-height: 400px;
}

/* ─── FORMS ─── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
  letter-spacing: .02em;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #f8fafd;
  font-family: var(--font);
  font-size: .9rem;
  color: var(--ink);
  transition: border .25s, box-shadow .25s, background .25s;
  outline: none;
}

.form-control:focus {
  border-color: var(--sky-deep);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(14,165,233,.12);
}

.form-control::placeholder { color: var(--muted); }

textarea.form-control { resize: vertical; min-height: 130px; }

select.form-control { appearance: none; cursor: pointer; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-error {
  font-size: .76rem;
  color: #ef4444;
  margin-top: 5px;
  display: none;
}

.form-control.invalid { border-color: #ef4444; }

.form-control.invalid + .form-error { display: block; }

.form-success {
  display: none;
}

.form-success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  border-radius: var(--radius);
  animation: fadeIn 0.4s ease forwards;
}

.success-icon-wrapper {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--sky), var(--sky-deep));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.4);
  animation: scaleBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleBounce {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ─── CONTACT ─── */
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  height: 100%;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--sky-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sky-deep);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item h4 { font-size: .85rem; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.contact-item p { font-size: .875rem; color: var(--muted); line-height: 1.65; word-break: break-word; }
.contact-item > div:not(.contact-icon) { min-width: 0; }

.social-grid {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-card {
  padding: 32px 40px;
  text-align: center;
  min-width: 140px;
  align-items: center;
  justify-content: center;
}

.map-placeholder {
  border-radius: var(--radius);
  overflow: hidden;
  height: 320px;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--sky-deep);
  position: relative;
}

.map-placeholder span {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .8rem;
  font-family: var(--font);
  color: var(--sky-deep);
  font-weight: 600;
  white-space: nowrap;
}

/* ─── EVENT CARDS ─── */
.event-card {
  display: flex;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  align-items: flex-start;
}

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

.event-date-box {
  min-width: 70px;
  height: 70px;
  border-radius: 16px;
  background: var(--sky-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.event-day {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--sky-deep);
  line-height: 1;
}

.event-month {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sky-deep);
}

.event-details h3 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.event-details p { font-size: .82rem; color: var(--muted); line-height: 1.65; margin-bottom: 10px; }
.event-meta { display: flex; gap: 14px; flex-wrap: wrap; }
.event-meta span { font-size: .75rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }

/* ── VIDEO WRAPPER ── */
.video-wrapper { position: relative; }

.video-play-btn {
  transition: transform .3s ease;
}

.video-play-btn:hover {
  transform: translate(-50%, -80%) scale(1.15) !important;
}

/* ── DEVELOPER LINK GLOW ── */
.developer-link {
  transition: var(--transition);
  text-shadow: 0 0 6px rgba(14, 165, 233, 0.4);
}

.developer-link:hover {
  text-shadow: 0 0 16px var(--sky);
}

/* ── RESPONSIVE ── */

@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > *:last-child { grid-column: span 3; }
}

@media (max-width: 992px) {
  .logo, .header-actions {
    flex: none;
  }
  .desktop-donate {
    display: none;
  }
  .section { padding: 72px 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .founder-grid { grid-template-columns: 1fr; gap: 32px; }
  .story-card { grid-template-columns: 1fr; }
  .story-img { height: 220px; }
  .founder-quote { padding: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > *:last-child { grid-column: auto; }
  .hamburger { display: flex; }
  .nav-menu { display: none; }
  .mobile-nav { display: flex; }
}

.mobile-only { display: none !important; }

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .mobile-reverse { display: flex; flex-direction: column-reverse; }
  .mobile-only { display: block !important; }
  .desktop-only { display: none !important; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  #site-footer { padding: 48px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid > *:last-child { grid-column: auto; }
  .hero h1 { font-size: clamp(1.9rem, 7vw, 3rem); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 576px) {
  .section { padding: 48px 0; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .social-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .social-card { width: calc(50% - 6px); flex: 0 0 calc(50% - 6px); padding: 24px 16px; min-width: 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .event-card { flex-direction: column; }
  .card, .card-glass, .contact-info-card { padding: 28px 22px; }
  .involve-card { padding: 36px 24px; }
  #scroll-top { bottom: 20px; right: 20px; }
}

@media (max-width: 400px) {
  .container { padding-inline: 16px; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-item { padding: 32px 16px; }
  .hero h1 { font-size: clamp(1.75rem, 8vw, 2.2rem); }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .hero-bg { animation: none; }
  .hero-scroll { animation: none; }
}
