@import url('https://fonts.googleapis.com/css2?family=Gagalin&family=Nunito:wght@400;600;700;800&display=swap');

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

:root {
  --pink:       #FF79C6;
  --pink-light: #ffb3e1;
  --pink-dark:  #e055a8;
  --black:      #0a0a0a;
  --dark:       #111111;
  --card:       #181818;
  --border:     #2a2a2a;
  --white:      #ffffff;
  --text:       #e0e0e0;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
}

/* ─── Gagalin Stroke Headers ─── */
.gagalin {
  font-family: 'Gagalin', sans-serif;
  color: var(--pink);
  -webkit-text-stroke: 3px #000;
  paint-order: stroke fill;
  letter-spacing: 0.04em;
}
h1.gagalin { font-size: clamp(2.2rem, 6vw, 4.5rem); }
h2.gagalin { font-size: clamp(1.6rem, 4vw, 2.8rem); }
h3.gagalin { font-size: clamp(1.2rem, 2.5vw, 1.8rem); -webkit-text-stroke: 2px #000; }

/* ─── Nav ─── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: #000;
  border-bottom: 3px solid var(--pink);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 2rem;
  gap: 1rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none;
}
.nav-logo img {
  height: 40px; width: auto;
  border-radius: 4px;
  filter: brightness(0.95);
}
.nav-logo .logo-text {
  font-family: 'Gagalin', sans-serif;
  font-size: 1.5rem;
  color: var(--pink);
  -webkit-text-stroke: 2px #000;
  paint-order: stroke fill;
}
.nav-logo .team-num {
  font-family: 'Gagalin', sans-serif;
  font-size: 0.9rem;
  color: #fff;
  background: var(--pink);
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  border: 2px solid #000;
}
nav ul { list-style: none; display: flex; gap: 0.3rem; flex-wrap: wrap; }
nav ul a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: all 0.2s;
}
nav ul a:hover, nav ul a.active {
  color: var(--pink);
  border-color: var(--pink);
  background: rgba(255,31,155,0.08);
}

/* ─── Hero ─── */
.hero {
  min-height: 55vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 4rem 2rem 3rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,31,155,0.18) 0%, transparent 70%),
              linear-gradient(180deg, #0a0a0a 0%, #111 100%);
  border-bottom: 3px solid var(--pink);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FF1F9B' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-tag {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.15em;
  color: var(--pink); text-transform: uppercase;
  border: 2px solid var(--pink); border-radius: 20px;
  padding: 0.25rem 1rem; margin-bottom: 1rem;
  display: inline-block;
}
.hero p {
  font-size: 1.15rem; color: #aaa; max-width: 650px; margin: 1rem auto 0;
}
.hero .tagline {
  font-family: 'Gagalin', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: #fff; margin-top: 0.4rem;
  letter-spacing: 0.06em;
}

/* ─── Sections ─── */
section { padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.18em;
  color: var(--pink); text-transform: uppercase;
  margin-bottom: 0.4rem; display: block;
}
.section-divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--pink), transparent);
  margin: 0.8rem 0 2.5rem;
  border-radius: 2px;
}

/* ─── Cards ─── */
.card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.25s, transform 0.2s;
}
.card:hover { border-color: var(--pink); transform: translateY(-3px); }

.pink-border { border-color: var(--pink) !important; }

/* ─── Team Grid ─── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.4rem;
}
.member-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.2rem;
  text-align: center;
  transition: border-color 0.25s, transform 0.2s;
}
.member-card:hover { border-color: var(--pink); transform: translateY(-4px); }
.member-photo {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #000;
  margin: 0 auto 1rem;
  display: block;
  box-shadow: 0 0 0 3px var(--pink), 0 0 20px rgba(255,121,198,0.4);
}
.member-name {
  font-family: 'Gagalin', sans-serif;
  font-size: 1.15rem;
  color: var(--pink);
  -webkit-text-stroke: 1.5px #000;
  paint-order: stroke fill;
}
.member-role {
  font-size: 0.78rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--pink-light); margin: 0.2rem 0 0.7rem;
}
.member-year {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700;
  color: #000; background: var(--pink);
  border: 2px solid #000;
  padding: 0.1rem 0.6rem; border-radius: 10px;
  margin-bottom: 0.6rem;
}
.member-card p { font-size: 0.85rem; color: #aaa; }
.member-card .goal {
  font-size: 0.8rem; margin-top: 0.5rem;
  color: #ccc; border-top: 1px solid var(--border); padding-top: 0.5rem;
}
.member-card .goal span { color: var(--pink); font-weight: 700; }
.squad-captain { background: rgba(255,31,155,0.07); border-color: var(--pink); }

/* ─── Values Grid ─── */
.values-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.value-card {
  background: var(--card); border: 2px solid var(--border); border-radius: 12px;
  padding: 1.8rem 1.5rem; text-align: center;
  transition: border-color 0.25s;
}
.value-card:hover { border-color: var(--pink); }
.value-icon { font-size: 2.5rem; margin-bottom: 0.8rem; }
.value-card h3 { font-size: 1.05rem; color: #fff; font-weight: 800; margin-bottom: 0.5rem; }
.value-card p { font-size: 0.9rem; color: #888; }

/* ─── Stats Row ─── */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem; margin: 2rem 0;
}
.stat-box {
  background: var(--card); border: 2px solid var(--pink);
  border-radius: 10px; padding: 1.2rem; text-align: center;
}
.stat-num {
  font-family: 'Gagalin', sans-serif; font-size: 2.2rem;
  color: var(--pink); -webkit-text-stroke: 2px #000; paint-order: stroke fill;
}
.stat-label { font-size: 0.8rem; font-weight: 700; color: #aaa; text-transform: uppercase; letter-spacing: 0.08em; }

/* ─── Achievements ─── */
.awards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.award-card {
  background: var(--card); border: 2px solid var(--border); border-radius: 12px;
  padding: 1.4rem; display: flex; gap: 1rem; align-items: flex-start;
  transition: border-color 0.25s, transform 0.2s;
}
.award-card:hover { border-color: var(--pink); transform: translateY(-3px); }
.award-icon { font-size: 2rem; flex-shrink: 0; }
.award-card h3 { color: #fff; font-size: 1rem; font-weight: 800; margin-bottom: 0.3rem; }
.award-card p { font-size: 0.85rem; color: #888; }
.award-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--pink); color: #000; border: 2px solid #000;
  padding: 0.15rem 0.5rem; border-radius: 6px; margin-top: 0.4rem;
}

.scores-list { list-style: none; }
.scores-list li {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.6rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.scores-list li:last-child { border-bottom: none; }
.score-rank {
  font-family: 'Gagalin', sans-serif; font-size: 1.1rem;
  color: var(--pink); -webkit-text-stroke: 1px #000; paint-order: stroke fill;
  width: 28px; text-align: center; flex-shrink: 0;
}
.score-val { font-weight: 800; color: #fff; }
.score-note { font-size: 0.8rem; color: #888; margin-left: auto; }

/* ─── Nonprofit ─── */
.impact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.2rem; }
.impact-box {
  background: var(--card); border: 2px solid var(--pink); border-radius: 12px;
  padding: 1.5rem; text-align: center;
}
.impact-num {
  font-family: 'Gagalin', sans-serif; font-size: 2.8rem;
  color: var(--pink); -webkit-text-stroke: 2.5px #000; paint-order: stroke fill;
  display: block;
}
.impact-label { font-size: 0.85rem; font-weight: 700; color: #aaa; margin-top: 0.3rem; }

.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: linear-gradient(180deg, var(--pink), transparent);
  border-radius: 2px;
}
.timeline-item { position: relative; padding: 0 0 1.8rem 1.5rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -1.67rem; top: 0.3rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--pink); border: 2px solid #000;
}
.timeline-item h3 { color: var(--pink); font-weight: 800; font-size: 1rem; margin-bottom: 0.3rem; }
.timeline-item p { font-size: 0.88rem; color: #aaa; }

/* ─── Budget Table ─── */
.budget-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.budget-table th {
  background: var(--pink); color: #000; font-weight: 800;
  padding: 0.7rem 1rem; text-align: left; border: 2px solid #000;
}
.budget-table td { padding: 0.6rem 1rem; border-bottom: 1px solid var(--border); }
.budget-table tr:hover td { background: rgba(255,31,155,0.06); }
.budget-table .total-row td { font-weight: 800; color: var(--pink); border-top: 2px solid var(--pink); }
.positive { color: #4caf82 !important; }
.negative { color: #e05c5c !important; }

/* ─── Sponsor logos ─── */
.sponsors-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.sponsor-pill {
  background: var(--card); border: 2px solid var(--border); border-radius: 8px;
  padding: 0.5rem 1.2rem; font-weight: 800; font-size: 0.9rem; color: #ccc;
  transition: border-color 0.2s, color 0.2s;
}
.sponsor-pill:hover { border-color: var(--pink); color: #fff; }

/* ─── Footer ─── */
footer {
  background: #000; border-top: 3px solid var(--pink);
  text-align: center; padding: 2rem;
  font-size: 0.85rem; color: #555;
}
footer strong { color: var(--pink); }

/* ─── Utility ─── */
.pink { color: var(--pink); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 680px) { .grid-2 { grid-template-columns: 1fr; } }

.pill {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  border: 2px solid var(--pink); color: var(--pink);
  padding: 0.15rem 0.6rem; border-radius: 20px; margin: 0.15rem;
}
