/* ============================================
   Ronald Veth — Bio Site
   Dark theme with blue accent
   ============================================ */

:root {
  --bg-primary: #0a0f1a;
  --bg-secondary: #111827;
  --bg-card: #1a2332;
  --bg-card-hover: #1e293b;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-subtle: #1e3a5f;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --border: #1e293b;
  --border-accent: #2563eb;
  --nav-height: 64px;
  --max-width: 1100px;
  --radius: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

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

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

img {
  max-width: 100%;
  height: auto;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 15, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

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

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

.nav-links a {
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--accent-glow);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* ---- Main Content ---- */
.main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 48px) 24px 80px;
}

/* ---- Hero Section ---- */
.hero {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 64px;
}

.hero-photo {
  flex-shrink: 0;
}

.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 52% 12%;
  border: 3px solid var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.hero-text h1 span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---- Sections ---- */
.section {
  margin-bottom: 56px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  letter-spacing: -0.02em;
}

.section-title span {
  color: var(--accent);
}

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.card-grid .card {
  margin-bottom: 0;
}

/* ---- Tags / Badges ---- */
.tag {
  display: inline-block;
  background: var(--accent-subtle);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 6px;
  margin-top: 8px;
}

.tag-muted {
  background: var(--bg-secondary);
  color: var(--text-muted);
}

/* ---- Timeline ---- */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---- Quote / Callout ---- */
.callout {
  background: var(--accent-glow);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ---- Prose ---- */
.prose p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

.prose ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.prose ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.prose ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---- Link buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.1s;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* ---- Package Card Specific ---- */
.package-card h3 .package-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.badge-npm {
  background: #cb3837;
  color: #fff;
}

.badge-nuget {
  background: #512bd4;
  color: #fff;
}

/* ---- Feature List (Clinic) ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-item:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
}

/* ---- SPARTA Hero ---- */
.sparta-hero {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 64px;
}

.sparta-hero-img {
  flex-shrink: 0;
}

.spartan-pic {
  width: 220px;
  height: 220px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}

.sparta-hero-text h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.sparta-hero-text h1 span {
  color: var(--accent);
}

/* ---- SPARTA Diagram ---- */
.sparta-layers {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 24px 0;
}

.sparta-layer {
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.layer-spartaficial {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
}

.layer-guardrails {
  background: #1e3a5f;
  color: var(--accent-hover);
}

.layer-accelerators {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.layer-building-blocks {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.layer-playwright {
  background: var(--bg-primary);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .hero-meta {
    justify-content: center;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .profile-pic {
    width: 160px;
    height: 160px;
  }

  .sparta-hero {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .sparta-hero-text h1 {
    font-size: 1.8rem;
  }

  .spartan-pic {
    width: 180px;
    height: 180px;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 15, 26, 0.98);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .btn-group {
    justify-content: center;
  }

  .timeline {
    padding-left: 24px;
  }

  .timeline-item::before {
    left: -21px;
  }
}

@media (max-width: 480px) {
  .main {
    padding: calc(var(--nav-height) + 32px) 16px 60px;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

  .card {
    padding: 20px;
  }
}
