/* Base Theme Variables */
:root {
  --bg: #0f1f3f;
  --bg-alt: #1a2d4d;
  --text: #ffffff;
  --muted: #7ba3d0;
  --accent: #4a90e2;
  --accent-dim: rgba(74, 144, 226, 0.15);
  --shadow: rgba(2,12,27,0.7);
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --content-max: 1000px;
}

/* Reset & Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Banner */
.banner { width: 100%; overflow: hidden; }
.banner-image { width: 100%; height: auto; max-height: 280px; object-fit: cover; display: block; }

.container { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 24px; }
.section { padding: 48px 0; }
.section h2 { font-size: 28px; margin: 0 0 24px; color: var(--text); }
.section .subtitle { color: var(--muted); margin-bottom: 24px; }

/* About Section */
.about-content { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; }
.headshot { width: 200px; height: 200px; border-radius: 12px; object-fit: cover; border: 2px solid var(--accent-dim); }

@media (max-width: 768px) {
  .about-content { grid-template-columns: 1fr; }
  .headshot { width: 150px; height: 150px; }
}

/* Header */
.header {
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(10, 25, 47, 0.8);
  border-bottom: 1px solid rgba(100,255,218,0.15);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; }
.logo-icon { width: 48px; height: 48px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14px; }
.nav-links a.active { color: var(--accent); }
.burger { display: none; border: 1px solid var(--accent); color: var(--accent); background: transparent; padding: 8px 12px; border-radius: 6px; font-family: var(--font-mono); }

/* Hero */
.hero { padding: 48px 0 64px; }
.hero-content { display: grid; grid-template-columns: 1fr 250px; gap: 40px; align-items: center; }
.hero .kicker { color: var(--accent); font-family: var(--font-mono); font-size: 14px; }
.headshot-hero { width: 250px; height: 250px; border-radius: 16px; object-fit: cover; border: 3px solid var(--accent); }

@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; }
  .headshot-hero { width: 200px; height: 200px; margin: 0 auto; }
}
.hero h1 { font-size: 48px; margin: 12px 0; }
.hero h2 { font-size: 28px; color: var(--muted); margin: 0 0 24px; }
.hero p { max-width: 700px; color: var(--muted); }
.cta { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 18px; border-radius: 6px; font-family: var(--font-mono); border: 1px solid var(--accent); color: var(--accent); background: transparent; }
.btn.primary { background: var(--accent-dim); }
.btn:hover { filter: brightness(1.1); }

/* Cards & Grids */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--bg-alt); padding: 20px; border-radius: 8px; box-shadow: 0 10px 30px -15px var(--shadow); border: 1px solid rgba(255,255,255,0.06); }
.card h3 { margin: 0 0 12px; font-size: 18px; }
.card p { color: var(--muted); }
.card .tags { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-family: var(--font-mono); font-size: 12px; color: var(--muted); background: rgba(255,255,255,0.05); padding: 4px 8px; border-radius: 12px; }

/* Timeline */
.timeline { border-left: 2px solid var(--accent-dim); padding-left: 24px; }
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-item::before { content: ""; position: absolute; left: -10px; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim); }
.timeline-item h3 { margin: 0; font-size: 18px; }
.timeline-item .meta { font-family: var(--font-mono); color: var(--muted); font-size: 13px; margin-bottom: 8px; }

/* Footer */
.footer { padding: 48px 0; color: var(--muted); text-align: center; border-top: 1px solid rgba(255,255,255,0.06); }

/* Reveal Animations */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* PDF Embed */
.pdf-wrap { background: var(--bg-alt); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; overflow: hidden; }
.pdf-embed { width: 100%; height: 80vh; }

/* Responsive */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .burger { display: inline-block; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; gap: 12px; position: absolute; right: 24px; top: 64px; background: var(--bg-alt); padding: 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); }
  .hero h1 { font-size: 36px; }
  .hero h2 { font-size: 22px; }
  .grid { grid-template-columns: 1fr; }
}

/* Media Section */
.media-list { display: flex; flex-direction: column; gap: 24px; }
.media-item { display: grid; grid-template-columns: 120px 1fr; gap: 24px; border-left: 3px solid var(--accent); padding-left: 20px; }
.media-date { color: var(--accent); font-family: var(--font-mono); font-size: 13px; font-weight: 600; padding-top: 4px; }
.media-content h3 { margin: 8px 0 12px; font-size: 20px; }
.media-content h3 a { color: var(--text); }
.media-content h3 a:hover { color: var(--accent); }
.media-source { color: var(--muted); font-size: 14px; margin: 0 0 4px; }
.media-item p { margin: 0; }

@media (max-width: 768px) {
  .media-item { grid-template-columns: 1fr; gap: 12px; padding-left: 12px; }
  .media-date { font-size: 12px; }
}
