/* ── Variables ── */
:root {
  --bg: #09090B;
  --surface: #111114;
  --card: #18181B;
  --cream: #FAFAFA;
  --text: #D4D4D8;
  --text-muted: #71717A;
  --brand: #3B82F6;
  --brand-glow: rgba(59,130,246,0.15);
  --green: #22C55E;
  --amber: #F59E0B;
  --purple: #A855F7;
  --rose: #F43F5E;
  --sky: #0EA5E9;
  --orange: #F97316;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Outfit', -apple-system, sans-serif;
}

/* ── Theme: Ember (dark) ── */
.theme-ember {
  --bg: #0C0808; --surface: #141010; --card: #1C1515;
  --cream: #FAF5F5; --text: #D4C8C8; --text-muted: #7A6E6E;
  --brand: #F43F5E; --brand-glow: rgba(244,63,94,0.15);
}
.theme-ember .nav-cta { background: #F43F5E; box-shadow: 0 0 20px rgba(244,63,94,0.25); }
.theme-ember .nav-cta:hover { background: #E11D48; }
.theme-ember .btn-primary { background: #F43F5E; box-shadow: 0 4px 24px rgba(244,63,94,0.3); }
.theme-ember .btn-primary:hover { background: #E11D48; box-shadow: 0 6px 32px rgba(244,63,94,0.4); }
.theme-ember .hero { background: radial-gradient(ellipse at 50% 0%, rgba(244,63,94,0.08) 0%, transparent 60%); }

/* ── Theme: Forest (dark) ── */
.theme-forest {
  --bg: #060C08; --surface: #0C1410; --card: #131C16;
  --cream: #F5FAF7; --text: #B8D4C4; --text-muted: #6E8A78;
  --brand: #22C55E; --brand-glow: rgba(34,197,94,0.15);
}
.theme-forest .nav-cta { background: #22C55E; box-shadow: 0 0 20px rgba(34,197,94,0.25); color: #000; }
.theme-forest .nav-cta:hover { background: #16A34A; }
.theme-forest .btn-primary { background: #22C55E; box-shadow: 0 4px 24px rgba(34,197,94,0.3); color: #000; }
.theme-forest .btn-primary:hover { background: #16A34A; box-shadow: 0 6px 32px rgba(34,197,94,0.4); }
.theme-forest .hero { background: radial-gradient(ellipse at 50% 0%, rgba(34,197,94,0.08) 0%, transparent 60%); }

/* ── Theme: Ivory (light) ── */
.theme-ivory {
  --bg: #F5F3EF; --surface: #ECEAE4; --card: #FFFFFF;
  --cream: #1A1A1A; --text: #4A4A4A; --text-muted: #8A8A8A;
  --brand: #2563EB; --brand-glow: rgba(37,99,235,0.1);
}
.theme-ivory nav { background: rgba(245,243,239,0.9); border-bottom-color: rgba(0,0,0,0.06); }
.theme-ivory .nav-brand { color: #1A1A1A; }
.theme-ivory .nav-toggle { color: #1A1A1A; }
.theme-ivory .nav-cta { background: #2563EB; box-shadow: 0 0 20px rgba(37,99,235,0.2); }
.theme-ivory .btn-primary { background: #2563EB; box-shadow: 0 4px 24px rgba(37,99,235,0.2); }
.theme-ivory .btn-secondary { border-color: rgba(0,0,0,0.12); color: #1A1A1A; }
.theme-ivory .btn-secondary:hover { border-color: rgba(0,0,0,0.3); background: rgba(0,0,0,0.03); }
.theme-ivory .hero { background: radial-gradient(ellipse at 50% 0%, rgba(37,99,235,0.06) 0%, transparent 60%); }
.theme-ivory .project-card { border-color: rgba(0,0,0,0.06); box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.theme-ivory .project-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.theme-ivory .tech-card { border-color: rgba(0,0,0,0.06); box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.theme-ivory .social-links a { border-color: rgba(0,0,0,0.08); background: rgba(0,0,0,0.02); }
.theme-ivory .social-links a:hover { border-color: rgba(37,99,235,0.3); background: rgba(37,99,235,0.04); }
.theme-ivory footer { border-top-color: rgba(0,0,0,0.06); }
.theme-ivory .impact-bar { background: #ECEAE4; border-color: rgba(0,0,0,0.04); }

/* ── Theme: Dawn (light warm) ── */
.theme-dawn {
  --bg: #FBF7F0; --surface: #F3EDE4; --card: #FFFFFF;
  --cream: #2C1810; --text: #5C4A3E; --text-muted: #9A8878;
  --brand: #C2590A; --brand-glow: rgba(194,89,10,0.1);
}
.theme-dawn nav { background: rgba(251,247,240,0.9); border-bottom-color: rgba(0,0,0,0.06); }
.theme-dawn .nav-brand { color: #2C1810; }
.theme-dawn .nav-toggle { color: #2C1810; }
.theme-dawn .nav-cta { background: #C2590A; box-shadow: 0 0 20px rgba(194,89,10,0.2); }
.theme-dawn .nav-cta:hover { background: #A34B08; }
.theme-dawn .btn-primary { background: #C2590A; box-shadow: 0 4px 24px rgba(194,89,10,0.2); }
.theme-dawn .btn-primary:hover { background: #A34B08; box-shadow: 0 6px 32px rgba(194,89,10,0.3); }
.theme-dawn .btn-secondary { border-color: rgba(0,0,0,0.1); color: #2C1810; }
.theme-dawn .btn-secondary:hover { border-color: rgba(0,0,0,0.25); background: rgba(0,0,0,0.03); }
.theme-dawn .hero { background: radial-gradient(ellipse at 50% 0%, rgba(194,89,10,0.06) 0%, transparent 60%); }
.theme-dawn .project-card { border-color: rgba(0,0,0,0.06); box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.theme-dawn .project-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.theme-dawn .tech-card { border-color: rgba(0,0,0,0.06); box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.theme-dawn .social-links a { border-color: rgba(0,0,0,0.08); background: rgba(0,0,0,0.02); }
.theme-dawn .social-links a:hover { border-color: rgba(194,89,10,0.3); background: rgba(194,89,10,0.04); }
.theme-dawn footer { border-top-color: rgba(0,0,0,0.06); }

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans); background: var(--bg); color: var(--text);
  font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.85; }
img { max-width: 100%; height: auto; display: block; }

/* ── Skip Link ── */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 8px 16px;
}
.skip-link:focus { left: 0; }

/* ── Nav ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 50;
  background: rgba(9,9,11,0.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 64px;
}
.nav-brand {
  font-family: var(--serif); font-size: 18px; font-weight: 700;
  color: var(--cream); letter-spacing: 3px; text-decoration: none;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 14px; color: var(--text-muted); text-decoration: none;
  font-weight: 400; letter-spacing: 0.5px; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--cream); }
.nav-cta {
  font-size: 13px; font-weight: 600; color: #fff;
  background: var(--brand); padding: 9px 22px; border-radius: 8px;
  text-decoration: none; letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 0 20px rgba(59,130,246,0.25);
}
.nav-cta:hover { background: #2563EB; transform: translateY(-1px); opacity: 1; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.theme-dots { display: flex; gap: 6px; align-items: center; }
.theme-dot {
  width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.15);
  cursor: pointer; transition: transform 0.2s, border-color 0.2s; padding: 0;
}
.theme-dot:hover { transform: scale(1.25); border-color: rgba(255,255,255,0.5); }
.theme-ivory .theme-dot, .theme-dawn .theme-dot { border-color: rgba(0,0,0,0.15); }
.theme-ivory .theme-dot:hover, .theme-dawn .theme-dot:hover { border-color: rgba(0,0,0,0.4); }
.nav-toggle {
  display: none; background: none; border: none; color: var(--cream);
  font-size: 24px; cursor: pointer;
}

/* ── Hero ── */
.hero {
  padding: 180px 24px 120px; text-align: center;
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(59,130,246,0.08) 0%, transparent 60%);
}
.hero-badge {
  font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--brand); border: 1px solid rgba(59,130,246,0.3);
  padding: 8px 24px; border-radius: 24px; margin-bottom: 36px;
  display: inline-block; background: rgba(59,130,246,0.06);
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(40px, 7vw, 76px);
  font-weight: 700; color: var(--cream); line-height: 1.08;
  max-width: 850px; margin: 0 auto 28px;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--brand), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .subtitle {
  font-size: 20px; color: var(--text); max-width: 620px;
  margin: 0 auto 16px; line-height: 1.7;
}
.hero .tagline {
  font-size: 14px; color: var(--text-muted); font-weight: 400;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 44px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ── Buttons ── */
.btn-primary {
  display: inline-block; padding: 15px 36px; border-radius: 10px;
  background: var(--brand); color: #fff; font-weight: 600;
  font-size: 15px; letter-spacing: 0.3px; text-decoration: none;
  transition: all 0.2s; box-shadow: 0 4px 24px rgba(59,130,246,0.3);
}
.btn-primary:hover { background: #2563EB; transform: translateY(-2px); box-shadow: 0 6px 32px rgba(59,130,246,0.4); opacity: 1; }
.btn-secondary {
  display: inline-block; padding: 15px 36px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12); color: var(--cream);
  font-weight: 500; font-size: 15px; letter-spacing: 0.3px;
  text-decoration: none; transition: all 0.2s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.04); opacity: 1; }

/* ── Impact Stats ── */
.impact-bar {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  padding: 60px 24px; background: var(--surface);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.impact-stat { text-align: center; }
.impact-number {
  font-family: var(--serif); font-size: 48px; font-weight: 700;
  line-height: 1;
}
.impact-number.blue { color: var(--brand); }
.impact-number.green { color: var(--green); }
.impact-number.amber { color: var(--amber); }
.impact-number.purple { color: var(--purple); }
.impact-label { font-size: 13px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; margin-top: 8px; }

/* ── Section Common ── */
section { padding: 100px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--brand); margin-bottom: 12px; text-align: center; font-weight: 500;
}
.accent-line {
  width: 48px; height: 2px; background: var(--brand);
  margin: 0 auto 28px; border-radius: 2px;
}
.section-title {
  font-family: var(--serif); font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; color: var(--cream); margin-bottom: 16px;
  text-align: center; line-height: 1.15;
}
.section-subtitle {
  text-align: center; max-width: 600px; margin: 0 auto;
  font-size: 17px; color: var(--text); line-height: 1.8;
}

/* ── Mission ── */
.mission-text {
  max-width: 720px; margin: 0 auto; font-size: 18px;
  color: var(--text); line-height: 1.85; text-align: center;
}

/* ── Project Cards ── */
.project-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; margin-top: 48px;
}
.project-card {
  background: var(--card); border-radius: 16px; padding: 36px;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(255,255,255,0.04);
  position: relative; overflow: hidden;
}
.project-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.project-card .icon { font-size: 40px; margin-bottom: 20px; display: block; }
.project-card h3 {
  font-size: 20px; font-weight: 600; color: var(--cream); margin-bottom: 10px;
}
.project-card p { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

/* Card accent colors */
.project-card:nth-child(1)::before { background: var(--green); }
.project-card:nth-child(1) .icon { color: var(--green); }
.project-card:nth-child(1):hover { border-color: rgba(34,197,94,0.2); box-shadow: 0 12px 40px rgba(34,197,94,0.08); }

.project-card:nth-child(2)::before { background: var(--brand); }
.project-card:nth-child(2) .icon { color: var(--brand); }
.project-card:nth-child(2):hover { border-color: rgba(59,130,246,0.2); box-shadow: 0 12px 40px rgba(59,130,246,0.08); }

.project-card:nth-child(3)::before { background: var(--amber); }
.project-card:nth-child(3) .icon { color: var(--amber); }
.project-card:nth-child(3):hover { border-color: rgba(245,158,11,0.2); box-shadow: 0 12px 40px rgba(245,158,11,0.08); }

.project-card:nth-child(4)::before { background: var(--purple); }
.project-card:nth-child(4) .icon { color: var(--purple); }
.project-card:nth-child(4):hover { border-color: rgba(168,85,247,0.2); box-shadow: 0 12px 40px rgba(168,85,247,0.08); }

.project-card:nth-child(5)::before { background: var(--orange); }
.project-card:nth-child(5) .icon { color: var(--orange); }
.project-card:nth-child(5):hover { border-color: rgba(249,115,22,0.2); box-shadow: 0 12px 40px rgba(249,115,22,0.08); }

.project-card:nth-child(6)::before { background: var(--sky); }
.project-card:nth-child(6) .icon { color: var(--sky); }
.project-card:nth-child(6):hover { border-color: rgba(14,165,233,0.2); box-shadow: 0 12px 40px rgba(14,165,233,0.08); }

/* ── Tech Section ── */
.tech-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px; margin-top: 48px;
}
.tech-card {
  background: var(--card); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px; padding: 40px; text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.tech-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 0%, var(--brand-glow), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.tech-card:hover::before { opacity: 1; }
.tech-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(59,130,246,0.1); }
.tech-card > * { position: relative; z-index: 1; }
.tech-card h3 {
  font-family: var(--serif); font-size: 30px; font-weight: 700;
  color: var(--cream); margin-bottom: 6px;
}
.tech-card .tech-sub {
  font-size: 12px; color: var(--brand); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 20px; font-weight: 500;
}
.tech-card p { font-size: 15px; color: var(--text); line-height: 1.7; margin-bottom: 24px; }
.tech-card .btn-secondary { font-size: 13px; padding: 10px 24px; }

/* ── Leader ── */
.leader-section { text-align: center; }
.leader-photo {
  width: 160px; height: 160px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 24px;
  border: 3px solid rgba(59,130,246,0.3);
  box-shadow: 0 0 40px rgba(59,130,246,0.15);
}
.leader-name {
  font-family: var(--serif); font-size: 32px; font-weight: 700;
  color: var(--cream); margin-bottom: 4px;
}
.leader-title {
  font-size: 13px; color: var(--brand); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 20px; font-weight: 500;
}
.leader-bio {
  max-width: 640px; margin: 0 auto; font-size: 17px;
  color: var(--text); line-height: 1.85;
}

/* ── Donate ── */
.donate-section {
  text-align: center; position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(59,130,246,0.04) 50%, var(--surface) 100%);
  border-top: 1px solid rgba(59,130,246,0.1);
  border-bottom: 1px solid rgba(59,130,246,0.1);
}
.donate-section p {
  max-width: 600px; margin: 0 auto 36px;
  font-size: 17px; color: var(--text); line-height: 1.8;
}

/* ── Contact ── */
.contact-section { text-align: center; }
.contact-section p {
  max-width: 500px; margin: 0 auto 24px;
  font-size: 16px; color: var(--text);
}
.social-links { display: flex; gap: 16px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.social-links a {
  font-size: 14px; color: var(--text-muted); text-decoration: none;
  border: 1px solid rgba(255,255,255,0.08); padding: 10px 24px;
  border-radius: 10px; transition: all 0.2s;
  background: rgba(255,255,255,0.02);
}
.social-links a:hover { border-color: rgba(59,130,246,0.3); color: var(--cream); background: rgba(59,130,246,0.06); opacity: 1; }

/* ── Footer ── */
footer {
  padding: 48px 24px; text-align: center;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-brand {
  font-family: var(--serif); font-size: 16px; font-weight: 700;
  color: var(--cream); letter-spacing: 3px; margin-bottom: 16px;
}
.footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.footer-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--cream); }
.footer-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.footer-tagline {
  font-family: var(--serif); font-size: 15px; font-style: italic;
  color: var(--brand); opacity: 0.6; margin-top: 16px;
}

/* ── Fade Up Animation ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Mobile ── */
@media (max-width: 768px) {
  nav { padding: 0 16px; }
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 64px; left: 0; width: 100%; background: rgba(9,9,11,0.98);
    padding: 16px; gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .theme-dots { display: none; }
  .nav-links.open .theme-dots { display: flex; justify-content: center; padding: 8px 0; }
  .hero { padding: 140px 16px 80px; }
  section { padding: 72px 16px; }
  .impact-bar { gap: 32px; padding: 48px 16px; }
  .impact-number { font-size: 36px; }
  .social-links { flex-wrap: wrap; }
  .project-grid { grid-template-columns: 1fr; }
  .tech-cards { grid-template-columns: 1fr; }
}
