/* ─────────────────────────────────────────
   RESET & ROOT
───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:       #001845;
  --blue:       #0466c8;
  --light:      #e7e7e7;
  --bg:         #f5f5f5;
  --surface:    #ffffff;
  --border:     #dcdcdc;
  --text:       #111111;
  --muted:      #777777;
  --blue-light: #e8f1fb;
  --blue-dim:   #b3d0f5;
  --nav-h:      64px;
  --radius:     12px;
  --max-w:      860px;
  --font:       'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(245, 245, 245, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 200;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--navy);
  background: var(--light);
}

.nav-links a.active {
  color: var(--blue);
  background: var(--blue-light);
}

/* ── Hamburger — hidden on desktop ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--navy);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile dropdown ── */
.nav-dropdown {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px 18px;
  z-index: 199;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

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

.nav-dropdown a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  transition: color 0.18s, background 0.18s;
}

.nav-dropdown a:hover {
  color: var(--navy);
  background: var(--bg);
}

.nav-dropdown a.active {
  color: var(--blue);
  background: var(--blue-light);
}

/* ─────────────────────────────────────────
   CONTAINER
───────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

/* ─────────────────────────────────────────
   SECTIONS
───────────────────────────────────────── */
section {
  padding: 90px 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type { border-bottom: none; }

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 36px;
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
#hero {
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  min-height: 75vh;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  border: 1px solid var(--blue-dim);
  border-radius: 100px;
  padding: 5px 14px;
  width: fit-content;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.1s forwards;
}

.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.hero-name {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--navy);
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}

.hero-desc {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--muted);
  max-width: 480px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.35s forwards;
}

.hero-desc strong {
  color: var(--navy);
  font-weight: 600;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.5s forwards;
}

.hero-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.hero-icon-link:hover { color: var(--blue); }
.hero-icon-link svg { flex-shrink: 0; }

.hero-links-sep {
  width: 1px;
  height: 16px;
  background: var(--border);
}

/* Photo column */
.hero-photo {
  opacity: 0;
  animation: fadeUp 0.6s ease 0.3s forwards;
}

.hero-img {
  width: 220px;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.hero-photo img {
  width: 220px;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* ─────────────────────────────────────────
   ABOUT
───────────────────────────────────────── */
.about-text p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  color: #555;
  margin-bottom: 16px;
}

.about-text p:last-child { margin-bottom: 0; }

.about-text strong {
  color: var(--navy);
  font-weight: 600;
}

/* ────────────────────────────────
   VERTICAL TIMELINE
──────────────────────────────────── */

.timeline {
  position: relative;
  margin-top: 1.5rem;
}

/* De verticale lijn */
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; /* Centreert de lijn perfect met een bolletje van 16px */
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #e2e8f0; /* Lichte grijze kleur voor de lijn. Pas aan indien je een donker thema hebt. */
}

/* Container voor elk afzonderlijk item */
.timeline-item {
  position: relative;
  padding-left: 32px; /* Ruimte vrijmaken voor het bolletje en de lijn */
  margin-bottom: 2rem;
}

/* Verwijder de margin bij het laatste item */
.timeline-item:last-child {
  margin-bottom: 0;
}

/* Het bolletje op de tijdlijn */
.timeline-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #3b82f6; /* Dit is een blauwe accentkleur. Verander dit naar jouw thema-kleur! */
}

/* Typografie binnen de tijdlijn */
.timeline-content h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

.timeline-content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
}

.timeline-content strong {
  color: var(--navy);
  font-weight: 600;
}

/* ─────────────────────────────────────────
   HOBBIES
───────────────────────────────────────── */
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.hobby-icon {
  font-size: 2rem;
  color: #3b82f6; /* Verander dit naar jouw specifieke accentkleur */
  margin-bottom: 1rem;
  display: block;
}

.hobby-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Voeg deze regel toe om alles horizontaal te centreren */
  text-align: center;  /* Zorgt dat de tekst ook netjes gecentreerd is */
  gap: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hobby-card:hover {
  border-color: var(--blue-dim);
  box-shadow: 0 4px 16px rgba(4, 102, 200, 0.07);
}


.hobby-card h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.hobby-card p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ─────────────────────────────────────────
   WHY ICT
───────────────────────────────────────── */
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--blue);
}

.why-card p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 14px;
}

.why-card p:last-child { margin-bottom: 0; }

.why-card strong {
  color: var(--navy);
  font-weight: 600;
}

/* ─────────────────────────────────────────
   SKILLS
───────────────────────────────────────── */
.skills-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.skill-group-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-tag {
  font-size: 0.85rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 13px;
  border-radius: 8px;
  transition: border-color 0.18s, color 0.18s;
}

.tool-tag:hover {
  border-color: var(--blue-dim);
  color: var(--blue);
}

.soft-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.soft-tag {
  font-size: 0.85rem;
  color: var(--blue);
  background: var(--blue-light);
  border: 1px solid var(--blue-dim);
  padding: 5px 13px;
  border-radius: 100px;
}

/* ─────────────────────────────────────────
   CV
───────────────────────────────────────── */
.cv-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cv-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 3px;
}

.cv-info p {
  font-size: 0.82rem;
  color: var(--muted);
}

.cv-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 9px;
  text-decoration: none;
  transition: all 0.18s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 3px 10px rgba(4, 102, 200, 0.22);
}

.btn-primary:hover {
  background: #0358af;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg);
  border-color: #bbb;
  transform: translateY(-1px);
}

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
.contact-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
}

.contact-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.18s;
}

.contact-link:hover {
  border-color: var(--blue-dim);
  color: var(--blue);
  box-shadow: 0 4px 14px rgba(4, 102, 200, 0.08);
  transform: translateY(-1px);
}

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

/* ─────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────
   SPACING HELPERS
───────────────────────────────────────── */
.mt-48 { margin-top: 48px; }
.mt-56 { margin-top: 56px; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 680px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .container { padding: 0 20px; }

  section { padding: 64px 0; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 0 48px;
  }

  /* Photo above text on mobile */
  .hero-photo { order: -1; }

  .hero-photo img {
    height: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-img {
    object-fit: cover;
    object-position: center top;
  }


  .hero-name { font-size: 2.6rem; }

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

  .cv-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 900px) {
  .hero-photo img {
    height: 350px;
    width: 260px;
  }

}

/* Grotere tekst voor laptops en desktops */
@media (min-width: 1024px) {

}

/* ─────────────────────────────────────────
   PROJECT HUB (TILES GRID)
───────────────────────────────────────── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.project-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.project-tile:hover {
  transform: translateY(-4px);
  border-color: var(--blue-dim);
  box-shadow: 0 10px 24px rgba(4, 102, 200, 0.08);
}

.project-tile-img {
  width: 100%;
  height: 200px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.project-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-tile-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-tile-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.project-tile-content p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1; /* Duwt de 'read more' link naar beneden */
}

.read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

/* ─────────────────────────────────────────
   PROJECT DETAIL PAGE
───────────────────────────────────────── */
.back-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--blue);
}

.project-detail-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
}

.detail-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 36px;
  margin-bottom: 12px;
}

.detail-heading:first-child {
  margin-top: 0;
}

.detail-text {
  font-size: 1.05rem; /* Goed leesbaar formaat */
  line-height: 1.8;
  color: #555;
}

.project-visual-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-image-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  margin-top: 10px;
  margin-bottom: 10px;
}

.detail-image-box img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

.image-caption {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  margin-bottom: 4px;
}

.mt-10 { margin-top: 10px; }

/* Responsive Detail Layout */
@media (max-width: 900px) {
  .project-detail-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}