/* ============================================================
   STYLE.CSS — Moazzin Hussain Portfolio
   ------------------------------------------------------------
   TABLE OF CONTENTS
   1.  Design tokens (edit colors/fonts here)
   2.  Reset & base
   3.  Utility / animation classes
   4.  Loader
   5.  Ambient background + cursor
   6.  Navigation
   7.  Hero
   8.  About
   9.  Experience timeline
   10. MUN centerpiece
   11. Volunteer
   12. Projects + modal
   13. Skills
   14. Music / Sports / Certifications
   15. Contact
   16. Footer
   17. Responsive
   ============================================================ */

/* ---------------------------------------------------------
   1. DESIGN TOKENS
   Change these and the whole site re-themes itself.
--------------------------------------------------------- */
:root {
  /* surfaces */
  --bg-0: #020617;
  --bg-1: #04091a;
  --surface: #0f172a;
  --surface-soft: #111d34;
  --glass: rgba(15, 23, 42, 0.55);
  --glass-light: rgba(148, 163, 184, 0.06);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);

  /* brand accents */
  --blue: #3b6cff;
  --blue-soft: #6f8fff;
  --purple: #8b5cf6;
  --cyan: #22d3ee;
  --gradient-main: linear-gradient(135deg, var(--blue) 0%, var(--purple) 55%, var(--cyan) 100%);
  --gradient-text: linear-gradient(100deg, #8fb1ff 0%, #c4b5fd 45%, #67e8f9 100%);

  /* text */
  --white: #f8fafc;
  --muted: #94a3b8;
  --muted-dim: #5d6c84;

  /* type */
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* layout */
  --max-width: 1180px;
  --section-pad: clamp(64px, 10vw, 140px);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------------------------------------------------------
   2. RESET & BASE
--------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--bg-0);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: default;
}

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

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

ul, ol {
  list-style: none;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  background: var(--blue);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 999;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------------------------------------
   3. UTILITY / ANIMATION CLASSES
--------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--cyan);
  display: inline-block;
}

.section {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-pad) 24px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.15;
  background: linear-gradient(180deg, #ffffff 0%, #c9d3e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1rem;
  max-width: 52ch;
}

.about-sub-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 18px;
}

/* scroll reveal — JS toggles .in-view */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out), background 0.3s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-main);
  color: #051022;
  box-shadow: 0 8px 30px -8px rgba(59, 108, 255, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 40px -10px rgba(139, 92, 246, 0.6);
}
.btn-ghost {
  background: var(--glass-light);
  border: 1px solid var(--border-strong);
  color: var(--white);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.12);
  transform: translateY(-2px);
}

.glass-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

/* ---------------------------------------------------------
   4. LOADER
--------------------------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s var(--ease-out);
}
.loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-mark {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  display: flex;
  gap: 2px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.loader-mark span {
  opacity: 0;
  transform: translateY(10px);
  animation: loaderLetter 0.6s var(--ease-spring) forwards;
}
.loader-mark span:nth-child(2) { animation-delay: 0.12s; }
@keyframes loaderLetter {
  to { opacity: 1; transform: translateY(0); }
}
.loader-bar {
  width: 160px;
  height: 2px;
  background: rgba(148, 163, 184, 0.15);
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-main);
  animation: loaderFill 1.1s var(--ease-out) 0.2s forwards;
}
@keyframes loaderFill {
  to { width: 100%; }
}

/* ---------------------------------------------------------
   5. AMBIENT BACKGROUND + CURSOR
--------------------------------------------------------- */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  display: none;
}
.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--cyan);
}
.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-strong);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), border-color 0.25s, background 0.25s;
}
.cursor-ring.cursor-active {
  width: 56px;
  height: 56px;
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}
@media (hover: hover) and (pointer: fine) {
  .cursor-dot, .cursor-ring { display: block; }
}

/* ---------------------------------------------------------
   6. NAVIGATION
--------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 48px);
  background: rgba(2, 6, 23, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s, padding 0.4s;
}
.site-nav.scrolled {
  border-bottom-color: var(--border);
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(2, 6, 23, 0.72);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.nav-logo-dot {
  color: var(--cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.92rem;
  color: var(--muted);
}
.nav-links a {
  position: relative;
  transition: color 0.25s;
  padding: 4px 0;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 0;
  background: var(--cyan);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-cta {
  background: var(--glass-light);
  border: 1px solid var(--border-strong);
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  z-index: 210;
}
.nav-toggle span {
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(2, 6, 23, 0.97);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.scroll-dots {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.scroll-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.3);
  transition: all 0.3s var(--ease-out);
}
.scroll-dots button.active {
  background: var(--cyan);
  transform: scale(1.4);
  box-shadow: 0 0 12px var(--cyan);
}
@media (max-width: 900px) {
  .scroll-dots { display: none; }
}

/* ---------------------------------------------------------
   7. HERO
--------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 140px 24px 80px;
  gap: 40px;
}

.hero-inner {
  position: relative;
  z-index: 5;
}

.hero-name {
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.96;
  font-weight: 700;
  margin: 18px 0 24px;
}
.hero-name-line {
  display: block;
}
.hero-name-accent {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--muted);
}
.hero-tagline strong {
  color: var(--white);
  font-weight: 600;
}

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

.hero-photo-wrap {
  position: relative;
  justify-self: center;
  width: min(360px, 80vw);
  aspect-ratio: 4 / 5;
  perspective: 1000px;
}
.hero-photo-glow {
  position: absolute;
  inset: -30px;
  background: var(--gradient-main);
  filter: blur(70px);
  opacity: 0.35;
  border-radius: 50%;
  z-index: 0;
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.28; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.08); }
}
.hero-photo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transform: rotateY(0deg) rotateX(0deg);
  transition: transform 0.15s ease-out;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  will-change: transform;
}
.hero-photo-frame {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: calc(var(--radius-lg) - 10px);
  z-index: 3;
  pointer-events: none;
}

.hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 50px;
  position: relative;
  z-index: 5;
}
.hero-stat {
  padding: 20px 18px;
  text-align: left;
}
.hero-stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dim);
  z-index: 5;
}
.scroll-cue-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--cyan), transparent);
  animation: scrollCue 2s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------------------------------------------------------
   8. ABOUT
--------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
}
.about-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.7;
  color: #d6deee;
}
.about-lede strong {
  color: var(--cyan);
  font-weight: 600;
}
.about-education-item {
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.about-education-item:last-child {
  border-bottom: 1px solid var(--border);
}
.edu-level {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--cyan);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.edu-institution {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 6px 0 10px;
}
.edu-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------------------------------------------------------
   9. EXPERIENCE TIMELINE
--------------------------------------------------------- */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(var(--border-strong), transparent 95%);
}
.timeline-item {
  position: relative;
  padding-bottom: 44px;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-node {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 2px solid var(--muted-dim);
}
.timeline-item.is-current .timeline-node {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}
.timeline-item.is-current .timeline-node::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  animation: nodePulse 2.4s ease-out infinite;
}
@keyframes nodePulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}
.timeline-card {
  padding: 26px 28px;
}
.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.timeline-role {
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.timeline-org {
  color: var(--blue-soft);
  font-weight: 500;
}
.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted-dim);
  white-space: nowrap;
}
.timeline-summary {
  color: var(--muted);
  margin-bottom: 14px;
  max-width: 60ch;
}
.timeline-points {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.timeline-points li {
  position: relative;
  padding-left: 18px;
  color: #c4cde0;
  font-size: 0.93rem;
}
.timeline-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 1px;
  background: var(--cyan);
}
.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------------------------------------------------------
   10. MUN CENTERPIECE
--------------------------------------------------------- */
.mun-section {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(59, 108, 255, 0.05), transparent 30%), var(--bg-1);
  border: 1px solid var(--border);
  padding-top: var(--section-pad);
  overflow: hidden;
}
.mun-bg-network {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}
.mun-section > * {
  position: relative;
  z-index: 1;
}
.mun-intro {
  margin-top: 14px;
  color: var(--muted);
  max-width: 56ch;
}

.mun-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 48px;
}
.mun-stat {
  background: var(--surface);
  padding: 30px 22px;
  text-align: left;
}
.mun-stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mun-stat-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 8px;
}

.mun-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.mun-panel {
  padding: 30px;
  margin-bottom: 24px;
}
.mun-row .mun-panel {
  margin-bottom: 0;
}
.mun-panel-title {
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.mun-panel-sub {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 60ch;
  margin-bottom: 22px;
}

.mun-leadership {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.mun-leadership-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
}
.mun-leadership-item:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.045);
  transform: translateX(4px);
}
.mun-leadership-rank {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  width: 26px;
  flex-shrink: 0;
}
.mun-leadership-role {
  font-family: var(--font-display);
  font-size: 0.98rem;
}
.mun-leadership-org {
  color: var(--muted);
  font-size: 0.86rem;
}

.mun-metrics {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}
.mun-metric-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.mun-metric-track {
  height: 6px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.12);
  overflow: hidden;
}
.mun-metric-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: var(--gradient-main);
  transition: width 1.2s var(--ease-out);
}

.mun-panel-wide {
  width: 100%;
}
.mun-svg-wrap {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.mun-svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}
.mun-node circle {
  transition: r 0.3s var(--ease-out);
}
.mun-node:hover circle {
  r: 9;
}
.mun-node text {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--muted);
}
.mun-link {
  stroke: rgba(139, 92, 246, 0.35);
  stroke-width: 1;
}

.mun-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.mun-role-chip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--blue-soft);
  background: rgba(59, 108, 255, 0.06);
}

/* ---------------------------------------------------------
   11. VOLUNTEER
--------------------------------------------------------- */
.volunteer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.volunteer-card {
  padding: 26px 24px;
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}
.volunteer-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}
.volunteer-role {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.volunteer-org {
  color: var(--purple);
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.volunteer-focus {
  color: var(--muted);
  font-size: 0.88rem;
}
.volunteer-period {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted-dim);
}

/* ---------------------------------------------------------
   12. PROJECTS + MODAL
--------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}
.project-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s var(--ease-out), border-color 0.4s;
  transform-style: preserve-3d;
}
.project-card:hover {
  border-color: var(--border-strong);
}
.project-cover {
  height: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.project-cover-gradient {
  position: absolute;
  inset: 0;
}
.project-cover-label {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(2, 6, 23, 0.35);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.project-body {
  padding: 24px;
}
.project-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.project-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  margin: 8px 0 8px;
}
.project-tagline {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}
.project-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--blue-soft);
}
.project-open svg {
  transition: transform 0.3s var(--ease-spring);
}
.project-card:hover .project-open svg {
  transform: translateX(4px);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal {
  position: relative;
  width: min(720px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s var(--ease-spring);
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px 16px 0 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.modal-body {
  padding: 12px 40px 40px;
}
.modal-category {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--cyan);
  text-transform: uppercase;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  margin: 10px 0 6px;
}
.modal-year {
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-bottom: 24px;
}
.modal-section-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 26px 0 10px;
}
.modal-text {
  color: #c4cde0;
  line-height: 1.7;
}
.modal-features {
  display: grid;
  gap: 9px;
}
.modal-features li {
  position: relative;
  padding-left: 18px;
  color: #c4cde0;
}
.modal-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 1px;
  background: var(--cyan);
}
.modal-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}
.modal-note {
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--muted-dim);
  font-style: italic;
}

/* ---------------------------------------------------------
   13. SKILLS
--------------------------------------------------------- */
.skills-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.skill-group {
  padding: 28px 26px;
}
.skill-group-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.skill-tags .tag {
  transition: border-color 0.25s, color 0.25s, transform 0.25s;
}
.skill-tags .tag:hover {
  border-color: var(--cyan);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------------------------------------------------------
   14. MUSIC / SPORTS / CERTIFICATIONS
--------------------------------------------------------- */
.music-block {
  margin-bottom: 56px;
}
.music-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: center;
  padding: 32px;
}
.visualizer {
  height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-sm);
  background: radial-gradient(circle at 50% 100%, rgba(139, 92, 246, 0.15), transparent 70%);
  padding: 16px;
}
.visualizer span {
  width: 8px;
  border-radius: 4px;
  background: var(--gradient-main);
  animation: barBounce 1.4s ease-in-out infinite;
}
.visualizer span:nth-child(1) { height: 30%; animation-delay: -1.2s; }
.visualizer span:nth-child(2) { height: 60%; animation-delay: -0.9s; }
.visualizer span:nth-child(3) { height: 90%; animation-delay: -1.4s; }
.visualizer span:nth-child(4) { height: 45%; animation-delay: -0.6s; }
.visualizer span:nth-child(5) { height: 75%; animation-delay: -1.0s; }
.visualizer span:nth-child(6) { height: 35%; animation-delay: -0.3s; }
.visualizer span:nth-child(7) { height: 65%; animation-delay: -0.8s; }
.visualizer span:nth-child(8) { height: 25%; animation-delay: -1.6s; }
@keyframes barBounce {
  0%, 100% { height: 20%; }
  50% { height: 85%; }
}
.music-song {
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.music-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 8px 0 16px;
}
.music-roles {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.music-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.music-links a,
.music-links span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--muted-dim);
}
.music-links a {
  color: var(--blue-soft);
  border-color: var(--blue-soft);
  transition: background 0.25s;
}
.music-links a:hover {
  background: rgba(59, 108, 255, 0.1);
}

.more-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.more-list {
  display: grid;
  gap: 14px;
}
.more-item {
  padding: 18px 20px;
}
.more-item-title {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 4px;
}
.more-item-org {
  color: var(--purple);
  font-size: 0.84rem;
  margin-bottom: 8px;
}
.more-item-detail {
  color: var(--muted);
  font-size: 0.86rem;
}

/* ---------------------------------------------------------
   15. CONTACT
--------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}
.contact-card {
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.35s var(--ease-spring), border-color 0.35s, background 0.35s;
}
.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.04);
}
.contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient-main);
  margin-bottom: 10px;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  word-break: break-word;
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.contact-socials a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: border-color 0.25s, color 0.25s;
}
.contact-socials a:hover {
  border-color: var(--border-strong);
  color: var(--white);
}

/* ---------------------------------------------------------
   16. FOOTER
--------------------------------------------------------- */
.site-footer {
  text-align: center;
  padding: 40px 24px 60px;
  color: var(--muted-dim);
  font-size: 0.82rem;
  position: relative;
  z-index: 2;
}

/* ---------------------------------------------------------
   17. RESPONSIVE
--------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
    padding-top: 120px;
  }
  .hero-photo-wrap {
    justify-self: start;
    width: min(280px, 60vw);
    margin-top: 30px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .mun-row {
    grid-template-columns: 1fr;
  }
  .music-card {
    grid-template-columns: 1fr;
  }
  .visualizer {
    height: 90px;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .mun-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .more-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }
  .modal-body {
    padding: 12px 22px 32px;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .timeline {
    padding-left: 24px;
  }
  .timeline-node {
    left: -24px;
  }
}
