/* ── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #151b2c;
  --bg-card: #1a2137;
  --bg-header: #172030;
  --accent: #d4a45c;
  --accent-dim: rgba(212, 164, 92, 0.12);
  --text: #ededf0;
  --text-mid: #d5d5da;
  --text-muted: #8a8a96;
  --border: rgba(255, 255, 255, 0.07);
  --font: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', ui-monospace, monospace;
  --radius: 8px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

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

::selection {
  background: rgba(212, 164, 92, 0.3);
  color: #fff;
}

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

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

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  background: rgba(12, 16, 28, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.nav-logo {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-mid);
  letter-spacing: -0.01em;
}

.nav-logo span { color: var(--accent); }

.nav-links { display: flex; list-style: none; gap: 24px; }

.nav-links a {
  font-size: 0.85rem;
  color: var(--text);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--accent); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 84px 0 48px;
}

.hero-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.hero-text { flex: 1; }

.hero-title {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.35;
}

.hero-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-body {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.hero-body + .hero-body {
  margin-bottom: 24px;
}

.hero-links { display: flex; gap: 16px; }

.hero-links a {
  font-size: 0.85rem;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color var(--transition);
}

.hero-links a:hover { border-bottom-color: var(--accent); }

.headshot {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.headshot img { width: 100%; height: 100%; object-fit: cover; }

.headshot-placeholder {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
  padding: 12px;
}

/* ── Section shared ───────────────────────────────────────── */
.section-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 28px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Skills ───────────────────────────────────────────────── */
.skills-section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.skills-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.skills-box-header {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-header);
}

.skills-box-header h3 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.skills-box-body {
  padding: 14px 16px;
}

.skill-group {
  margin-bottom: 14px;
}

.skill-group:last-child { margin-bottom: 0; }

.skill-group-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.skills-list li {
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 0.8rem;
  border: 1px solid rgba(212, 164, 92, 0.2);
  background: var(--accent-dim);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.skills-list li:hover {
  color: #e8ba70;
  border-color: rgba(212, 164, 92, 0.35);
  background: rgba(212, 164, 92, 0.18);
}

/* ── Experience ───────────────────────────────────────────── */
.experience {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.exp-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.exp-box-header {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-header);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.exp-item {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.exp-item:last-child { border-bottom: none; }

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

.exp-role {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}

.exp-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.exp-org {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.exp-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Projects ─────────────────────────────────────────────── */
.projects {
  padding: 48px 0 100px;
  border-top: 1px solid var(--border);
}

.projects-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.projects-box-header {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-header);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-card {
  background: var(--bg-card);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  transition: background var(--transition);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

.project-card:last-child { border-bottom: none; }

.project-card:hover { background: #1f2840; }

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

.project-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.project-arrow {
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: color var(--transition), transform var(--transition);
}

.project-card:hover .project-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

.project-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 3px;
  color: var(--accent);
  background: var(--accent-dim);
}

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

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

.footer-links { display: flex; gap: 20px; }

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.12);
}

/* ── Fade-in animation ────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .nav-links { gap: 16px; }
  .hero { padding: 80px 0 40px; }
  .hero-layout { flex-direction: column-reverse; gap: 24px; }
  .headshot { width: 110px; height: 110px; }
  .footer-inner { flex-direction: column; gap: 12px; }
  .exp-header { flex-direction: column; gap: 2px; }
}
