/* DEPTH: studio-structuur + neon-karakter, gebalanceerd in een 3D-thema.
   geëxtrudeerde kaarten, indrukbare knoppen, gelaagde lichtdiepte. Pure CSS. */

:root {
  --bg: #1b2030;
  --bg-soft: #252c3e;
  --card: #242b3b;
  --card-edge: #121725;      /* donkere "zijkant" van kaarten */
  --ink: #f0f2f5;
  --muted: #c1c8d5;
  --line: #414b62;
  --accent: #8b7cff;         /* violet: tussen studio-lime en neon-paars */
  --accent-deep: #5b4bcc;    /* onderrand van de 3D-knop */
  --accent-2: #4dd6e8;       /* cyan, getemd */
  --gold: #e2b455;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1920px; margin: 0 auto; padding: 0 1.5rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: var(--bg);
  padding: 0.6rem 1rem; z-index: 100; font-weight: 700;
}
.skip-link:focus { left: 0; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--ink); }

.mono { font-family: var(--mono); }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(27, 32, 48, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1.5rem; }
.wordmark { font-weight: 700; font-size: 1.05rem; color: var(--ink); letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.nav-links li { display: flex; align-items: center; }
.nav-links a { display: inline-flex; align-items: center; color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
/* .nav-links a is specificer dan .btn-accent en overschrijft anders de tekstkleur */
.nav-links a.btn-accent, .nav-links a.btn-accent:hover { color: var(--bg); }
.nav-links i { display: block; font-size: 1.1rem; line-height: 1; transform: translateY(2px); }
/* Ronde pictogramknop, overgenomen uit de atomic-design .a-icon-link */
.nav-links a.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border: 0.125rem solid var(--line);
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 1.25rem;
}
.nav-links a.nav-icon:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.nav-links a.nav-icon i { font-size: 1.25rem; transform: none; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--ink); }

/* ============ Knoppen: fysiek indrukbaar ============ */
.btn-accent {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--bg); /* donkere tekst: wit op dit violet haalt AA niet (3.3:1) */
  font-weight: 600; font-size: 0.95rem;
  background: linear-gradient(180deg, #b0a6ff, var(--accent));
  padding: 0.75rem 1.3rem; border-radius: 8px;
  box-shadow: 0 4px 0 var(--accent-deep);
  transition: filter 0.15s ease, box-shadow 0.1s ease, transform 0.1s ease;
}
.btn-accent:hover { filter: brightness(1.07); color: var(--bg); }
.btn-accent:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-deep); }
.btn-accent i { font-size: 1rem; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--ink);
  font-weight: 600; font-size: 0.95rem;
  background: linear-gradient(180deg, #2d3548, var(--card));
  border: 1px solid var(--line);
  padding: 0.75rem 1.3rem; border-radius: 8px;
  box-shadow: 0 3px 0 var(--card-edge);
  transition: border-color 0.15s ease, box-shadow 0.1s ease, transform 0.1s ease;
}
.btn-outline:hover { border-color: #59647b; color: var(--ink); }
.btn-outline:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--card-edge); }
.btn-outline i { font-size: 1rem; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.88rem; box-shadow: 0 3px 0 var(--accent-deep); }
.btn-sm:active { box-shadow: 0 1px 0 var(--accent-deep); }

/* ============ Hero ============ */
.hero { padding: 6.5rem 0 5rem; }
.hero .container { text-align: center; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--accent);
  font-weight: 700;
}
.lede { color: var(--muted); font-size: 1.12rem; max-width: 34rem; }
.hero .lede { margin-inline: auto; margin-bottom: 2.2rem; }
.hero-links { list-style: none; display: flex; justify-content: center; gap: 0.9rem; flex-wrap: wrap; }
.hero-stats {
  list-style: none; display: flex; justify-content: center;
  gap: 0; margin-top: 2.5rem;
}
.hero-stats li {
  display: flex; align-items: baseline; gap: 0.45rem;
  padding-inline: 1.25rem;
}
.hero-stats li + li { border-left: 1px solid var(--line); }
.hero-stats strong {
  font-size: 1.4rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hero-stats span { color: var(--muted); font-size: 1rem; }
/* Stats in de projectensectie: direct onder de titel */
.section .hero-stats { margin-top: -1.2rem; margin-bottom: 2rem; }

/* ============ Secties ============ */
.section { padding: 4.5rem 0; }
.section-title { font-size: clamp(2.3rem, 5.5vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 2.4rem; text-align: center; }

/* ============ Projectkaarten: dikte + hover-tilt ============ */
.group-label {
  font-family: var(--mono); font-size: 1.35rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin: 0;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.group-label i { font-size: 1.5rem; }
.group-label-private { color: var(--muted); }
.work-split {
  display: grid; grid-template-columns: 1fr;
  gap: 2.5rem; align-items: start;
  max-width: 54rem; margin-inline: auto;
}
.work-col {
  display: grid; gap: 1.25rem; min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1rem 1.75rem;
}
.projects {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem;
}
.project {
  position: relative;
  background: linear-gradient(180deg, #293144, var(--card));
  border: 1px solid var(--line);
  border-radius: 12px; padding: 1.1rem 1.15rem;
  display: flex; flex-direction: column; gap: 0.55rem;
  /* geëxtrudeerde onderrand + valschaduw = echte dikte */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 5px 0 -1px var(--card-edge),
    0 14px 28px rgba(0, 0, 0, 0.38);
}
@media (prefers-reduced-motion: no-preference) {
  .project { transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease; }
  .project:hover {
    transform: perspective(900px) translateY(-5px) rotateX(1.6deg);
    border-color: #59647b;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.07),
      0 5px 0 -1px var(--card-edge),
      0 26px 48px rgba(0, 0, 0, 0.5);
  }
}
.p-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; }
.project h3 { font-size: 1.02rem; font-weight: 700; }
.p-badge {
  font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: #b8aeff;
  background: linear-gradient(180deg, rgba(139, 124, 255, 0.16), rgba(139, 124, 255, 0.08));
  border: 1px solid rgba(139, 124, 255, 0.28);
  padding: 0.22rem 0.55rem; border-radius: 99px; white-space: nowrap;
}
.p-badge-private { color: var(--gold); background: linear-gradient(180deg, rgba(226, 180, 85, 0.14), rgba(226, 180, 85, 0.07)); border-color: rgba(226, 180, 85, 0.28); }
.project p { color: var(--muted); font-size: 1rem; line-height: 1.55; flex: 1; }
.p-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.p-tags li {
  font-family: var(--mono); font-size: 0.8rem; color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line); padding: 0.22rem 0.55rem; border-radius: 99px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.p-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.p-link {
  font-weight: 600; font-size: 0.9rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.p-link i { font-size: 1rem; }

/* ============ About ============ */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3.5rem; align-items: start; max-width: 72rem; margin-inline: auto; }
.about-lede {
  font-size: clamp(1.3rem, 3.2vw, 1.6rem); font-weight: 700; letter-spacing: -0.01em;
  line-height: 1.35; margin-bottom: 1.4rem; color: var(--ink);
}
.about-grid > div > p { color: var(--muted); margin-bottom: 1.1rem; }
.about-grid > div > p:last-child { margin-bottom: 0; }
.about-card-wrap { position: relative; }
.sleeping-cat {
  position: absolute;
  bottom: calc(100% - 1px); /* kat ligt op de witte bovenrand van de kaart */
  right: 1.2rem;
  width: 5.5rem; height: auto;
  pointer-events: none;
}
.about-card {
  position: relative;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 12px; padding: 1.5rem;
  box-shadow: 0.4rem 0.4rem 0 var(--accent);
}
.card-label {
  font-family: var(--mono); font-size: 1.35rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted); margin-bottom: 1.2rem;
}
.plain-list { list-style: none; display: grid; gap: 1rem; }
.plain-list li {
  display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.65rem;
  align-items: start; color: var(--muted); font-size: 0.92rem; line-height: 1.45;
}
.plain-list i { color: var(--accent); font-size: 1.15rem; }

/* ============ Experience ============ */
.timeline {
  list-style: none; max-width: 54rem;
  margin-inline: auto; padding: 0;
}
.timeline li {
  padding: 0.25rem 0 0.25rem 1.4rem;
  border-left: 2px solid var(--accent);
}
.timeline li + li { margin-top: 2rem; }
.t-when {
  font-family: var(--mono); font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); margin-bottom: 0.3rem;
}
.t-role { font-size: 1.02rem; font-weight: 700; }
.t-role-accent { color: var(--accent); }
.t-desc { color: var(--muted); font-size: 0.95rem; margin-top: 0.25rem; max-width: 40rem; }

/* ============ Hackathons en uitdagingen ============ */
.award-list { max-width: 36rem; margin-inline: auto; list-style: none; padding: 0; }
.award-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  column-gap: 1rem; padding-block: 0.9rem;
}
.award-list li + li { border-top: 1px solid var(--line); }
.award-list h3 { font-size: 1rem; font-weight: 600; line-height: 1.4; }
.award-list p { margin-top: 0.15rem; color: var(--muted); font-size: 0.9rem; }
.award-list span { flex: none; color: var(--muted); font-family: var(--mono); font-size: 0.8rem; text-align: right; }

/* ============ Contact ============ */
.contact { padding-bottom: 6.5rem; }
.contact-title { font-size: clamp(2.3rem, 5.5vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.9rem; text-align: center; }
.contact .lede { margin-inline: auto; margin-bottom: 2.2rem; }
.contact-list { list-style: none; display: flex; justify-content: center; gap: 0.9rem; flex-wrap: wrap; }
/* Paarse hover, net als de icoonknoppen in de header */
.contact-list .btn-outline:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
/* De titel licht op zodra hij na een klik op Contact in beeld komt. */
.contact-title.pulse-actief { animation: contact-pulse 0.9s ease 0.2s 1; }
@keyframes contact-pulse {
  0%   { transform: scale(1); color: var(--ink); }
  40%  { transform: scale(1.28); color: var(--accent); text-shadow: 0 0 42px rgba(139, 124, 255, 0.9); }
  70%  { transform: scale(1); color: var(--accent); }
  100% { transform: scale(1); color: var(--ink); text-shadow: 0 0 0 rgba(139, 124, 255, 0); }
}

/* ============ Footer ============ */
.site-footer { border-top: 1px solid var(--line); padding: 1.4rem 0; }
.site-footer p { font-size: 0.85rem; color: var(--muted); text-align: center; }

/* ============ Scroll-reveal ============ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .reveal.visible { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .projects { grid-template-columns: 1fr; }
}

/* ============ Mobiel ============ */
@media (max-width: 700px) {
  .hero { padding: 4.5rem 0 3.5rem; }
  .section { padding: 3.25rem 0; }
  .projects { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: row; align-items: center; justify-content: center; gap: 0.85rem;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 0.85rem 1rem;
  }
  .nav-links.open { display: flex; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; align-items: center; gap: 0.5rem; }
  .hero-stats li + li { border-left: 0; }
}

/* Achtergrond: regenlijnen met Three.js (zie js/bg-rain.js) */
#bg-app {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
#bg-app canvas {
  position: absolute;
  top: 0;
  left: 0;
}
