/* ============================================================
   Variables & Reset
============================================================ */
:root {
  --bg:           #0d1117;
  --surface:      #161b22;
  --surface-hi:   #1f2937;
  --border:       #30363d;
  --text:         #e6edf3;
  --muted:        #8b949e;
  --accent:       #4f9cf9;
  --accent-dim:   rgba(79, 156, 249, 0.12);
  --accent-glow:  rgba(79, 156, 249, 0.25);
  --accent-hover: #79b8ff;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius:    8px;
  --radius-lg: 16px;
  --ease:      0.2s ease;

  --max-w:     1100px;
  --pad-x:     24px;
  --pad-sec:   100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--accent-hover); }
img, video { max-width: 100%; display: block; }


/* ============================================================
   Layout
============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section { padding: var(--pad-sec) 0; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-sub {
  color: var(--muted);
  font-size: 1.0625rem;
  margin-top: -20px;
  margin-bottom: 48px;
  max-width: 520px;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 40px;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 10px;
}


/* ============================================================
   Navigation
============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background var(--ease), box-shadow var(--ease);
}

.nav.scrolled {
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--accent);
  color: #0d1117;
  padding: 6px 12px;
  border-radius: 5px;
  letter-spacing: 0.04em;
  transition: opacity var(--ease);
}
.nav-logo:hover { color: #0d1117; opacity: 0.82; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color var(--ease), background var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--surface); }

.nav-links .nav-cta {
  color: var(--accent);
  border: 1px solid rgba(79, 156, 249, 0.5);
}
.nav-links .nav-cta:hover {
  color: var(--accent-hover);
  background: var(--accent-dim);
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================
   Hero
============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 75% 50%, rgba(79, 156, 249, 0.09) 0%, transparent 100%),
    radial-gradient(ellipse 40% 40% at 15% 75%, rgba(79, 156, 249, 0.06) 0%, transparent 100%);
  pointer-events: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(79, 156, 249, 0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 80% at 75% 50%, rgba(0,0,0,0.5) 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 50%, rgba(0,0,0,0.5) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 120px var(--pad-x) 80px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.15s;
}

.hero-name {
  font-size: clamp(3.5rem, 11vw, 7.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.35s;
}

.hero-tagline {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--muted);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 52px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.55s;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.75s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  transition: all var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #0d1117;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #0d1117;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--muted);
  background: var(--surface);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.1s;
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}


/* ============================================================
   About
============================================================ */
.about {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 80px;
  align-items: start;
}

.about-text h2 { margin-bottom: 28px; }

.about-text p {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.85;
  margin-bottom: 20px;
}
.about-text p:last-child { margin-bottom: 0; }
.about-text em {
  color: var(--text);
  font-style: normal;
  font-weight: 500;
}

.about-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 8px;
}

.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition: border-color var(--ease);
}
.stat-card:hover { border-color: rgba(79, 156, 249, 0.5); }

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-number span {
  font-size: 1.6rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}


/* ============================================================
   Skills
============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--ease), transform var(--ease);
}
.skill-card:hover {
  border-color: rgba(79, 156, 249, 0.5);
  transform: translateY(-4px);
}

.skill-card--highlight {
  border-color: rgba(79, 156, 249, 0.35);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(79, 156, 249, 0.06) 100%);
}

.skill-icon {
  font-size: 1.6rem;
  margin-bottom: 16px;
  line-height: 1;
}

.skill-card h3 { margin-bottom: 14px; }

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pills span {
  display: inline-block;
  padding: 4px 11px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--muted);
  transition: border-color var(--ease), color var(--ease);
}
.skill-card:hover .skill-pills span {
  border-color: rgba(79, 156, 249, 0.3);
  color: var(--text);
}


/* ============================================================
   Leadership
============================================================ */
.leadership {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.lead-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--ease);
}
.lead-card:hover { border-color: rgba(79, 156, 249, 0.5); }

.lead-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.lead-card p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.75;
}


/* ============================================================
   Interests
============================================================ */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.interest-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  transition: border-color var(--ease), transform var(--ease);
}
.interest-card:hover {
  border-color: rgba(79, 156, 249, 0.5);
  transform: translateY(-4px);
}

.interest-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1;
}

.interest-card p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.75;
}


/* ============================================================
   Contact
============================================================ */
.contact { text-align: center; }

.contact .section-label { justify-content: center; display: flex; }
.contact .section-sub {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.contact-inner { max-width: 600px; margin: 0 auto; }

.contact-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all var(--ease);
  min-width: 140px;
  justify-content: center;
}
.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}


/* ============================================================
   Footer
============================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-loc {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}


/* ============================================================
   Scroll Reveal
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   Keyframes
============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 0.7; }
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1);   opacity: 0.4; }
  50%       { transform: scaleY(1.1); opacity: 0.9; }
}


/* ============================================================
   Responsive — Tablet
============================================================ */
@media (max-width: 960px) {
  :root { --pad-sec: 72px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-aside {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .stat-card { flex: 1; min-width: 130px; }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .interests-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .leadership-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   Responsive — Mobile
============================================================ */
@media (max-width: 600px) {
  :root { --pad-sec: 56px; --pad-x: 18px; }

  /* Mobile nav */
  .nav-toggle { display: flex; }

  .nav-inner { position: relative; }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }

  .skills-grid { grid-template-columns: 1fr; }
  .interests-grid { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }

  .contact-links { flex-direction: column; align-items: center; }
  .contact-link { width: 100%; max-width: 300px; }

  .footer-inner { flex-direction: column; gap: 6px; text-align: center; }

  h2 { margin-bottom: 28px; }
}
