/* ---------- Design tokens ---------- */
:root {
  --bg: #f8fafc;
  --bg-alt: #eef2f7;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #475569;
  --text-faint: #64748b;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-soft: #dbeafe;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.06);
  --radius: 10px;
  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-alt: #0f172a;
    --surface: #111c33;
    --border: #1e293b;
    --text: #f1f5f9;
    --text-muted: #cbd5e1;
    --text-faint: #94a3b8;
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
    --accent-soft: #17233d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

.bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  background: var(--bg);
  pointer-events: none;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-brand:hover { color: var(--accent); }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  transition: right 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }

.nav-links a.active { color: var(--text); }
.nav-links .nav-cta::after { content: none; }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent-hover); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff !important;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--text) !important;
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent) !important; }

.btn-small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 80px;
}

.hero-inner { max-width: 760px; }

.eyebrow {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.hero-lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-meta {
  list-style: none;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-faint);
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }

.section-title {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
}

.section-lede {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
}

/* ---------- Timeline (experience/education) ---------- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.timeline-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.timeline-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.08), 0 12px 28px rgba(15, 23, 42, 0.1);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.timeline-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.timeline-org {
  margin: 4px 0 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-faint);
  white-space: nowrap;
}

.timeline-gpa {
  font-weight: 600;
  color: var(--text-muted);
  margin: 4px 0 12px;
}

.timeline-list {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--text-muted);
}
.timeline-list li { margin-bottom: 8px; }
.timeline-list li:last-child { margin-bottom: 0; }

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.08), 0 12px 28px rgba(15, 23, 42, 0.1);
}

.skill-card h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.tag-list li::before {
  content: "▹ ";
  color: var(--accent);
}

.cert-line {
  margin-top: 28px;
  color: var(--text-muted);
}

/* ---------- Projects ---------- */
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.08), 0 12px 28px rgba(15, 23, 42, 0.1);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.project-card-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.project-role {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-faint);
  margin: 0 0 16px;
}

.project-card p:last-child { color: var(--text-muted); margin: 0; }

/* ---------- Contact ---------- */
.section-contact { text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

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

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  z-index: 60;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-to-top:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .back-to-top { transition: opacity 0.01s linear; }
  .timeline-item, .skill-card, .project-card { transition: none; }
}

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

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-right: 56px;
  color: var(--text-faint);
  font-size: 0.85rem;
}

.huntersvlogFoot {
  margin-right: 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 10px 0; }
  .nav-cta { display: inline-block; margin-top: 8px; }

  .hero { padding: 100px 0 60px; }
  .section { padding: 56px 0; }
  .timeline-item, .project-card { padding: 22px; }

  .back-to-top { width: 40px; height: 40px; right: 16px; bottom: 16px; }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-right: 0;
    padding-bottom: 48px;
  }
}
