:root {
  --bg: #0d1117;
  --surface: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #58a6ff;
  --green: #3fb950;
  --orange: #f0883e;
}

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

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--text); font-weight: 600; }

code {
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
  background: rgba(110,118,129,0.15);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  font-size: 0.88em;
}

/* ── Nav ── */
nav {
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-brand { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.nav-brand span { color: var(--accent); }
.nav-brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 1.5rem; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 0.9rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── Layout ── */
main {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem;
  flex: 1;
}

/* ── Hero Section — full bleed ── */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #0d1117;
  background-image: url('./hero.jpg');
  background-size: cover;
  background-position: center 40%;
}

/* Dark gradient + dot grid overlay — combined on ::before */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(88,166,255,0.06) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(160deg, rgba(13,17,23,0.78) 0%, rgba(26,16,64,0.72) 50%, rgba(13,17,23,0.82) 100%);
  pointer-events: none;
}

/* Vignette fade at bottom */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 2rem;
  max-width: 680px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: rgba(88,166,255,0.1);
  border: 1px solid rgba(88,166,255,0.2);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  text-shadow: 0 0 40px rgba(88,166,255,0.35), 0 2px 8px rgba(0,0,0,0.8);
}
.hero-content h1 span { color: var(--accent); }

.hero-content p {
  font-size: 1.1rem;
  color: #c9d1d9;
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.82; text-decoration: none; }
.btn-primary { background: var(--accent); color: #0d1117; }
.btn-secondary { background: rgba(22,27,34,0.85); color: var(--text); border: 1px solid var(--border); backdrop-filter: blur(4px); }
.btn-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ── Section label ── */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.intro-block { margin-bottom: 3rem; }
.intro-block p { color: var(--muted); margin-bottom: 0.75rem; }

h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }

/* ── Project cards ── */
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.15s;
}
.project-card:hover { border-color: #484f58; }

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.project-meta { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.project-meta h3 { font-size: 1.05rem; font-weight: 600; margin: 0; }
.project-link { font-size: 0.84rem; white-space: nowrap; }
.project-card p { color: var(--muted); font-size: 0.93rem; margin-bottom: 0; }

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-live    { background: rgba(63,185,80,0.15); color: var(--green); }
.badge-wip     { background: rgba(240,136,62,0.15); color: var(--orange); }
.badge-past    { background: rgba(139,148,158,0.12); color: var(--muted); }
.badge-planned { background: rgba(88,166,255,0.12); color: var(--accent); }

/* ── Tags ── */
.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.tag {
  display: inline-block;
  background: rgba(88,166,255,0.08);
  color: var(--accent);
  border: 1px solid rgba(88,166,255,0.15);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  font-size: 0.73rem;
}

/* ── Quick nav (about page TOC) ── */
.quicknav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2.5rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.quicknav-label { font-size: 0.78rem; color: var(--muted); margin-right: 0.25rem; }
.quicknav a { font-size: 0.82rem; color: var(--muted); padding: 0.2rem 0.5rem; border-radius: 4px; }
.quicknav a:hover { color: var(--accent); background: rgba(88,166,255,0.08); text-decoration: none; }

/* ── Project detail pages ── */
.back-link { display: inline-block; font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; }
.back-link:hover { color: var(--accent); text-decoration: none; }

.project-page-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.project-page-header h2 { margin-bottom: 0.5rem; }

.header-meta { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.4rem; }
.header-meta a { font-size: 0.88rem; }

.detail-section { margin-bottom: 2rem; }
.detail-section h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.detail-section p { color: var(--muted); margin-bottom: 0.75rem; }
.detail-section p:last-child { margin-bottom: 0; }

ul { padding-left: 1.2rem; color: var(--muted); font-size: 0.93rem; }
ul li { margin-bottom: 0.35rem; }

/* ── Footer ── */
footer { text-align: center; padding: 1.5rem; color: var(--muted); font-size: 0.78rem; border-top: 1px solid var(--border); }

@media (max-width: 600px) {
  nav { padding: 0.9rem 1rem; }
  main { padding: 2rem 1rem; }
  .hero-section { min-height: 55vh; }
  .hero-content h1 { font-size: 2.4rem; }
  .project-header { flex-direction: column; }
}
