/* ============================================================
   simondevegt.nl — personal site styles
   ============================================================ */

:root {
  --bg: #0e1116;
  --bg-alt: #141922;
  --surface: #1a212c;
  --text: #e8ecf1;
  --text-muted: #9aa6b5;
  --accent: #c2483c;        /* nod to the CV's signature red */
  --accent-soft: #e0695d;
  --border: #28303d;
  --max-width: 1080px;
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container.narrow { max-width: 780px; }

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

a { color: var(--accent-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(14, 17, 22, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---------- Hero ---------- */

.hero {
  padding: 7rem 0 6rem;
  background:
    radial-gradient(ellipse 80% 60% at 70% 10%, rgba(194, 72, 60, 0.12), transparent),
    var(--bg);
}

.hero-full {
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-kicker {
  color: var(--accent-soft);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--text-muted);
  font-weight: 500;
  margin: 0.5rem 0 1.5rem;
}

.hero-lead {
  max-width: 620px;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.97rem;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

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

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent-soft); }

.btn-lg { padding: 0.9rem 2.2rem; font-size: 1.05rem; }

/* ---------- Sections ---------- */

.section { padding: 5rem 0; scroll-margin-top: 64px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
}

.section-number {
  color: var(--accent-soft);
  font-size: 0.95rem;
  font-weight: 700;
  vertical-align: middle;
  margin-right: 0.6rem;
  letter-spacing: 0.08em;
}

.section p + p { margin-top: 1rem; }

.section-intro { color: var(--text-muted); margin-bottom: 2.5rem; }

/* ---------- Cards ---------- */

.grid.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }

.card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}

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

.tech-line {
  margin-top: 2.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

/* ---------- Timeline ---------- */

.timeline {
  list-style: none;
  position: relative;
  padding-left: 1.75rem;
}

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

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
}

.timeline-date {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.timeline-item h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.timeline-item p { color: var(--text-muted); font-size: 0.97rem; }

/* ---------- Education ---------- */

.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.edu-grid h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--accent-soft);
}

.plain-list { list-style: none; }
.plain-list li { margin-bottom: 1.25rem; color: var(--text-muted); }
.plain-list strong { color: var(--text); }

/* ---------- Contact ---------- */

.section-contact {
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(194, 72, 60, 0.12), transparent),
    var(--bg);
  padding: 6rem 0;
}

.center { text-align: center; }

.section-contact h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin-bottom: 1rem; }
.section-contact p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .nav-links { gap: 1rem; }
  .nav-links li:nth-child(n+4) { display: none; } /* keep nav compact on phones */
  .hero { padding: 4.5rem 0 4rem; }
  .section { padding: 3.5rem 0; }
  .edu-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
