@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #0f0a1a;
  --bg-alt: #1a1128;
  --bg-card: #221836;
  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --purple-dark: #7c3aed;
  --coral: #f472b6;
  --coral-light: #f9a8d4;
  --coral-dark: #ec4899;
  --teal: #2dd4bf;
  --text: #f8fafc;
  --text-muted: #a5a0b3;
  --text-dim: #6b6580;
  --border: #2d2440;
  --border-light: #3d3450;
  --shadow: 0 8px 32px rgba(139,92,246,0.15);
  --shadow-lg: 0 16px 48px rgba(139,92,246,0.2);
  --radius: 24px;
  --radius-sm: 16px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y proximity; }
body {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* SIDE NAV */
.side-nav {
  position: fixed; left: 0; top: 0; bottom: 0; width: 72px;
  background: rgba(15,10,26,0.95); backdrop-filter: blur(12px);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 0; z-index: 1000;
}
.side-nav .logo {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), var(--coral));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; margin-bottom: 40px; color: #fff;
}
.side-nav .nav-links {
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.side-nav .nav-links a {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: 0.7rem; font-weight: 600;
  transition: var(--transition); letter-spacing: 0.5px;
}
.side-nav .nav-links a:hover, .side-nav .nav-links a.active {
  background: var(--bg-card); color: var(--purple-light);
}
.side-nav .nav-links a .icon { display: none; }
.side-nav .nav-links a .label { writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg); }
.side-nav .donate-btn {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), var(--coral));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.7rem; cursor: pointer;
}
.side-nav .donate-btn .label { writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg); }

/* MAIN CONTENT */
.main-content { margin-left: 72px; }

/* SECTION */
.section {
  min-height: 100vh; padding: 80px 64px;
  display: flex; align-items: center; position: relative;
  scroll-snap-align: start;
}
.section-dark { background: var(--bg); }
.section-alt { background: var(--bg-alt); }
.section-gradient {
  background: linear-gradient(135deg, var(--bg) 0%, #1a0f2e 50%, #1f1230 100%);
}

/* HERO */
.hero {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px;
  align-items: center; width: 100%;
}
.hero-text .tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 50px;
  background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.3);
  color: var(--purple-light); font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 28px;
}
.hero-text .tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.hero-text h1 {
  font-size: 4rem; font-weight: 700; line-height: 1.05;
  margin-bottom: 24px; letter-spacing: -1px;
}
.hero-text h1 .gradient {
  background: linear-gradient(135deg, var(--purple-light), var(--coral));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text p {
  font-size: 1.1rem; color: var(--text-muted); max-width: 480px;
  margin-bottom: 36px; line-height: 1.7;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border-radius: 14px; font-weight: 600;
  font-size: 0.9rem; cursor: pointer; border: none;
  transition: var(--transition); font-family: 'Space Grotesk', sans-serif;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--coral));
  color: #fff;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139,92,246,0.3); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover { border-color: var(--purple); color: var(--purple-light); }
.hero-visual {
  position: relative; display: flex; justify-content: center;
}
.hero-orb {
  width: 320px; height: 320px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--coral-dark));
  position: relative; animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 60px rgba(139,92,246,0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 80px rgba(244,114,182,0.3); }
}
.hero-orb::before {
  content: ''; position: absolute; inset: -20px; border-radius: 50%;
  border: 2px dashed rgba(139,92,246,0.3);
  animation: spin 20s linear infinite;
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.hero-orb .orb-text {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: #fff; text-align: center;
}
.hero-orb .orb-text .big { font-size: 3.5rem; font-weight: 700; line-height: 1; }
.hero-orb .orb-text .small { font-size: 0.85rem; opacity: 0.8; margin-top: 4px; }

/* STATS ROW */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  width: 100%;
}
.stat-card {
  padding: 32px 24px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  text-align: center; transition: var(--transition);
}
.stat-card:hover { transform: translateY(-4px); border-color: var(--purple); box-shadow: var(--shadow); }
.stat-card .num {
  font-size: 2.2rem; font-weight: 700; line-height: 1;
  background: linear-gradient(135deg, var(--purple-light), var(--coral));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 6px;
}
.stat-card .label { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }

/* ABOUT */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; width: 100%; }
.about-tag {
  display: inline-block; color: var(--coral); font-size: 0.75rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 16px;
}
.about-layout h2 {
  font-size: 2.4rem; font-weight: 700; margin-bottom: 20px;
  line-height: 1.15; letter-spacing: -0.5px;
}
.about-layout p { color: var(--text-muted); margin-bottom: 14px; font-size: 0.95rem; }
.about-info { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-box {
  padding: 20px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); transition: var(--transition);
}
.about-box:hover { border-color: var(--purple); }
.about-box .lbl { font-size: 0.68rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px; }
.about-box .val { font-weight: 600; font-size: 0.9rem; }
.about-box.wide { grid-column: span 2; }

/* SERVICES */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  width: 100%;
}
.svc-card {
  padding: 36px 28px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: var(--transition); position: relative; overflow: hidden;
}
.svc-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--coral));
  opacity: 0; transition: var(--transition);
}
.svc-card:hover { transform: translateY(-4px); border-color: var(--purple); box-shadow: var(--shadow); }
.svc-card:hover::before { opacity: 1; }
.svc-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(139,92,246,0.12); color: var(--purple-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 20px;
}
.svc-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.svc-card p { color: var(--text-muted); font-size: 0.88rem; }

/* TEAM */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; width: 100%; }
.tm-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: var(--transition);
}
.tm-card:hover { transform: translateY(-4px); border-color: var(--purple); box-shadow: var(--shadow); }
.tm-avatar {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(244,114,182,0.2));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; font-weight: 700; color: var(--purple-light);
}
.tm-info { padding: 20px; text-align: center; }
.tm-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.tm-info .pos { color: var(--coral); font-weight: 500; font-size: 0.8rem; margin-bottom: 6px; }
.tm-info p { color: var(--text-dim); font-size: 0.8rem; }

/* DONATE */
.donate-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; width: 100%; }
.donate-layout h2 {
  font-size: 2.4rem; font-weight: 700; margin-bottom: 16px;
  line-height: 1.15; letter-spacing: -0.5px;
}
.donate-layout > div:first-child p { color: var(--text-muted); font-size: 1rem; margin-bottom: 28px; }
.donate-checks { display: flex; flex-direction: column; gap: 10px; }
.donate-check {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.donate-check .ck { color: var(--teal); font-weight: 700; font-size: 1rem; }
.donate-check span { font-size: 0.88rem; }
.donate-form-wrap {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 32px; position: relative;
}
.donate-form-wrap::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--coral));
  border-radius: var(--radius) var(--radius) 0 0;
}
.donate-form-wrap h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; }
.amounts-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.amt-btn {
  padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: transparent; color: var(--text); font-weight: 600;
  font-size: 0.9rem; cursor: pointer; transition: var(--transition);
  font-family: 'Space Grotesk', sans-serif;
}
.amt-btn:hover, .amt-btn.active {
  border-color: var(--purple); background: rgba(139,92,246,0.12); color: var(--purple-light);
}
.ff { margin-bottom: 12px; }
.ff input, .ff select, .ff textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-size: 0.88rem; font-family: 'Space Grotesk', sans-serif;
  transition: var(--transition);
}
.ff input::placeholder, .ff textarea::placeholder { color: var(--text-dim); }
.ff input:focus, .ff select:focus, .ff textarea:focus { outline: none; border-color: var(--purple); }
.ff select option { color: var(--text); background: var(--bg-card); }
.btn-submit {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, var(--purple), var(--coral));
  color: #fff; border: none; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: var(--transition); font-family: 'Space Grotesk', sans-serif; margin-top: 4px;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139,92,246,0.3); }
.bank-box {
  margin-top: 16px; padding: 16px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.bank-box p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 2px; }
.bank-box strong { color: var(--text); }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; width: 100%; }
.cc-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 32px;
}
.cc-form h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; }
.cc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cc-info { display: flex; flex-direction: column; gap: 14px; }
.cc-item {
  padding: 20px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); display: flex; gap: 14px; align-items: flex-start;
}
.cc-item .ic {
  width: 40px; height: 40px; min-width: 40px; border-radius: 10px;
  background: rgba(139,92,246,0.12); color: var(--purple-light);
  display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
}
.cc-item h4 { font-weight: 600; margin-bottom: 2px; font-size: 0.88rem; }
.cc-item p { color: var(--text-muted); font-size: 0.8rem; }
.cc-item a { color: var(--purple-light); font-weight: 500; }
.cc-item a:hover { color: var(--coral); }

/* LEGAL */
.legal-content { width: 100%; max-width: 760px; }
.legal-content h2 { font-size: 1.2rem; font-weight: 700; margin: 28px 0 10px; }
.legal-content p { color: var(--text-muted); margin-bottom: 10px; font-size: 0.9rem; }
.legal-content ul { padding-left: 20px; margin-bottom: 10px; }
.legal-content ul li { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 5px; list-style: disc; }
.legal-content a { color: var(--purple-light); font-weight: 500; }

/* FOOTER */
.footer {
  background: var(--bg-alt); border-top: 1px solid var(--border);
  padding: 60px 64px 0; margin-left: 72px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }
.footer-brand .logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), var(--coral));
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem;
}
.footer-brand p { color: var(--text-dim); font-size: 0.85rem; max-width: 280px; }
.footer-col h4 { font-weight: 600; margin-bottom: 14px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { color: var(--text-muted); font-size: 0.85rem; }
.footer-col ul a:hover { color: var(--purple-light); }
.footer-col ul li { color: var(--text-muted); font-size: 0.85rem; }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: var(--text-dim); font-size: 0.75rem; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--text-dim); font-size: 0.75rem; }
.footer-links a:hover { color: var(--purple-light); }
.footer-legal-bar { background: rgba(0,0,0,0.2); padding: 12px 0; margin: 0 -64px; padding-left: 64px; padding-right: 64px; }
.footer-legal-bar p { color: var(--text-dim); font-size: 0.7rem; opacity: 0.6; }

/* MOBILE NAV */
.mobile-nav {
  display: none; position: fixed; top: 0; left: 0; right: 0;
  height: 60px; background: rgba(15,10,26,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); z-index: 1001;
  padding: 0 20px; align-items: center; justify-content: space-between;
}
.mobile-nav .logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem; }
.mobile-nav .logo-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--purple), var(--coral));
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem;
}
.hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* RESPONSIVE */
@media (max-width: 1200px) {
  .section { padding: 60px 40px; }
  .hero-text h1 { font-size: 3rem; }
  .footer { padding: 48px 40px 0; }
  .footer-legal-bar { margin: 0 -40px; padding-left: 40px; padding-right: 40px; }
}
@media (max-width: 1024px) {
  .hero, .about-layout, .donate-layout { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-orb { width: 240px; height: 240px; }
  .stats-row, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .side-nav { display: none; }
  .mobile-nav { display: flex; }
  .main-content { margin-left: 0; padding-top: 60px; }
  .section { padding: 48px 20px; min-height: auto; }
  .hero-text h1 { font-size: 2.2rem; }
  .hero-btns { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .stats-row, .services-grid, .team-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-info { grid-template-columns: 1fr; }
  .about-box.wide { grid-column: span 1; }
  .cc-row { grid-template-columns: 1fr; }
  .footer { margin-left: 0; padding: 40px 20px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal-bar { margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
}
