/* ==========================================================
   Adriano Passetti – portfolio
   Kleuren en maten staan bovenaan als variabelen:
   pas ze hier aan, de rest volgt vanzelf.
   Donkere modus volgt de instelling van de bezoeker.
   ========================================================== */
:root {
  --navy: #2f3a4c;
  --text: #2f3a4c;
  --muted: #5f6b7a;
  --line: #dde1e6;
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --card: #ffffff;
  --chip: #e6e9ee;
  --accent: #2f3a4c;
  --accent-text: #ffffff;

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;

  --max: 1040px;
  --nav-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6e9ee;
    --muted: #a3adba;
    --line: #2e3744;
    --bg: #161b22;
    --bg-alt: #1c222b;
    --card: #212833;
    --chip: #2c3542;
    --accent: #e6e9ee;
    --accent-text: #161b22;
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
}

a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; line-height: 1.2; }
p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* ---------- Navigatie ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}
/* menu mag krimpen en scrolt dan zijwaarts op smalle schermen */
.nav__inner nav { min-width: 0; }
.nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav__links::-webkit-scrollbar { display: none; }
.nav__links a {
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
  color: var(--muted);
}
.nav__links a:hover { color: var(--text); }
.nav__links .nav__cv {
  color: var(--text);
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(4rem, 12vw, 8rem) 0 clamp(3rem, 8vw, 5rem); }
.hero__kicker { color: var(--muted); margin-bottom: 0.5rem; font-size: 1.05rem; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 4.8rem); }
.hero__lead {
  max-width: 38rem;
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  transition: transform 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--muted); }
.btn--primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }

/* ---------- Secties ---------- */
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); margin-bottom: 2rem; }

/* Over mij: titel links, tekst rechts op grote schermen */
.about { display: grid; grid-template-columns: 1fr; }
@media (min-width: 860px) {
  .about { grid-template-columns: 14rem 1fr; gap: 2rem; }
}
.facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.4rem; }
.facts strong { display: inline-block; min-width: 7rem; font-family: var(--font-head); }

/* ---------- Projecten (kaarten schalen mee met het aantal) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .tags { margin-top: auto; }
.card__links { display: flex; gap: 1rem; margin-top: 1rem; font-weight: 500; font-size: 0.9rem; }

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags li {
  font-size: 0.75rem;
  background: var(--chip);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}
.tags--lg li { font-size: 0.9rem; padding: 0.35rem 0.9rem; }

/* ---------- Skills ---------- */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.skill-group h3 { font-size: 1rem; margin-bottom: 0.9rem; color: var(--muted); font-weight: 600; }

/* ---------- Traject (tijdlijn) ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.5rem; border-left: 2px solid var(--line); }
.timeline__item { position: relative; padding-bottom: 2rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 7px);
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-alt);
}
.timeline__date { font-size: 0.85rem; color: var(--muted); }
.timeline h3 { font-size: 1.1rem; margin: 0.2rem 0 0.4rem; }
.timeline .where { font-weight: 600; color: var(--muted); font-size: 0.95rem; }
.timeline p { color: var(--muted); margin: 0; max-width: 40rem; }

/* ---------- Contact & footer ---------- */
.contact p { max-width: 36rem; color: var(--muted); }
.footer { border-top: 1px solid var(--line); padding: 1.5rem 0; color: var(--muted); font-size: 0.85rem; }
.footer p { margin: 0; }

/* Minder beweging voor wie dat zo ingesteld heeft */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
