:root {
  --bg: #0a0c10;
  --bg-elevated: #12151c;
  --bg-elevated-2: #171b24;
  --border: #22262f;
  --text: #edeff3;
  --text-muted: #9aa1ae;
  --text-faint: #5b6270;
  --accent: #22d3b4;
  --accent-2: #5b8def;
  --accent-soft: rgba(34, 211, 180, 0.12);
  --accent-2-soft: rgba(91, 141, 239, 0.14);
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 920px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--accent);
  color: #04140f;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}

::selection {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(10, 12, 16, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled {
  border-bottom-color: var(--border);
}
.nav-mark {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.nav-mark span {
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-muted);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-resume {
  font-size: 13px;
  padding: 8px 16px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 20px;
  height: 1.5px;
  background: var(--text);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: var(--font-body);
  border: 1px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--accent);
  color: #04140f;
}
.btn-primary:hover {
  background: #3ee0c3;
}
.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px clamp(20px, 5vw, 0px) 80px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -180px;
  right: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  filter: blur(10px);
  z-index: -1;
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-40px, 40px) scale(1.08); }
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.01em;
}
.hero-name {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 560px;
  font-size: 17px;
  color: var(--text-muted);
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.hero-social {
  display: flex;
  gap: 18px;
  margin-top: 28px;
  color: var(--text-muted);
}
.hero-social a {
  transition: color 0.15s ease;
}
.hero-social a:hover {
  color: var(--accent);
}

/* ---------- sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px clamp(20px, 5vw, 0px);
  border-top: 1px solid var(--border);
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  margin-top: 24px;
}
.about-text {
  font-size: 16.5px;
  color: var(--text-muted);
}
.edu-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.edu-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
}
.edu-school {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 4px;
}
.edu-degree {
  font-size: 14px;
  color: var(--text);
  margin: 0 0 4px;
}
.edu-meta {
  font-size: 12.5px;
  color: var(--text-faint);
  margin: 0;
}

/* ---------- skills ---------- */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 24px;
}
.skill-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags span {
  font-size: 13px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ---------- projects ---------- */
.project {
  display: block;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.project:first-of-type {
  padding-top: 24px;
}
.project:last-of-type {
  border-bottom: none;
}
.project-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.project-head h3 {
  font-size: 22px;
}
.status {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.status-progress {
  background: var(--accent-2-soft);
  color: var(--accent-2);
}
.status-done {
  background: var(--accent-soft);
  color: var(--accent);
}
.project p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 640px;
  margin: 0 0 14px;
}
.project-links {
  margin-top: 14px;
}
.project-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}
.project-links a:hover {
  color: var(--accent-2);
}

/* ---------- experience ---------- */
.exp {
  margin-top: 24px;
  padding: 22px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.exp-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.exp-role {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin: 0;
}
.exp-org {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 2px 0 0;
}
.exp-dates {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
  margin: 0;
}
.exp-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 14.5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- contact ---------- */
.contact {
  text-align: center;
}
.contact-title {
  font-size: clamp(30px, 5vw, 44px);
  margin-top: 18px;
}
.contact-sub {
  color: var(--text-muted);
  margin: 12px 0 26px;
}
.contact .hero-actions {
  justify-content: center;
}

.footer {
  text-align: center;
  padding: 32px 20px 40px;
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px clamp(20px, 5vw, 64px) 28px;
    gap: 18px;
    font-size: 16px;
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-resume {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
}
