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

:root {
  --bg: #08090c;
  --surface: #0f1117;
  --border: #1c2030;
  --text: #c8cdd8;
  --text-muted: #6b7289;
  --heading: #eef0f6;
  --accent: #3dd6c3;
  --accent-dim: rgba(61, 214, 195, 0.12);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Inter", system-ui, sans-serif;
  --max-w: 720px;
  --header-h: 64px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

strong {
  color: var(--heading);
  font-weight: 500;
}

/* Subtle grid background */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(61, 214, 195, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 214, 195, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
}

.accent {
  color: var(--accent);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 24px;
  max-width: calc(var(--max-w) + 48px);
  margin: 0 auto;
  background: rgba(8, 9, 12, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--heading);
  letter-spacing: -0.02em;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: lowercase;
}

nav a:hover {
  color: var(--accent);
  opacity: 1;
}

/* Main layout */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* Hero */
.hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  color: var(--heading);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-links a {
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--heading);
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s;
}

.hero-links a:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  opacity: 1;
}

.hero-location {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.section-body p + p {
  margin-top: 16px;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.skill-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.25s;
}

.skill-card:hover {
  border-color: rgba(61, 214, 195, 0.3);
}

.skill-icon {
  display: block;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 12px;
}

.skill-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
}

.skill-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

/* Tags */
.skill-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tags li {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(61, 214, 195, 0.15);
}

/* Projects */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.project-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}

.project-badge {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 3px;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.accent-badge {
  color: var(--accent);
  border-color: rgba(61, 214, 195, 0.25);
  background: var(--accent-dim);
}

.project-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 10px;
}

.project-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
}

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

.timeline-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--heading);
}

.timeline-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}

.timeline-org {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 8px;
}

.timeline-item p:last-child {
  font-size: 14px;
  color: var(--text-muted);
}

.subheading {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.edu-list {
  list-style: none;
}

.edu-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.edu-list li strong {
  font-weight: 500;
}

.edu-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}

.edu-award {
  font-size: 13px !important;
  color: var(--text-muted) !important;
  justify-content: flex-start !important;
  gap: 8px !important;
}

.edu-award::before {
  content: "→";
  color: var(--accent);
  font-family: var(--mono);
}

/* Contact */
.contact-lead {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 14px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 480px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s;
}

.contact-link:hover {
  border-color: rgba(61, 214, 195, 0.35);
  opacity: 1;
}

.contact-key {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: lowercase;
}

.contact-val {
  font-size: 14px;
  color: var(--heading);
}

/* Footer */
.site-footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px 56px;
  text-align: center;
}

.site-footer p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-copy {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px !important;
}

/* Mobile nav */
@media (max-width: 520px) {
  nav {
    gap: 12px;
  }

  nav a {
    font-size: 11px;
  }

  .hero {
    padding-top: 48px;
  }
}
