/* Accentkleur: verander #1A9E9C hieronder om een andere kleur te kiezen */
/* ===== Kleuren en lettertypes uit het Figma-ontwerp ===== */
:root {
  --accent: #1A9E9C;
  --ink: #25282B;
  --gray-1: #333333;
  --gray: #828282;
  --bg: #F9FAFF;
  --white: #FFFFFF;
  --line: #E8ECF4;
  --surface: #FFFFFF;
  --header-bg: rgba(249, 250, 255, .92);
  --shadow: 0 6px 32px rgba(112, 144, 176, 0.1);
  --max: 1200px;
  color-scheme: light;
}

/* ===== Donkere modus ===== */
:root[data-theme="dark"] {
  --ink: #EDEFF2;
  --gray-1: #F4F5F7;
  --gray: #A3A9B1;
  --bg: #111315;
  --surface: #1B1E22;
  --line: #2E333A;
  --header-bg: rgba(17, 19, 21, .92);
  --shadow: 0 6px 32px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
body { transition: background .3s, color .3s; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* ===== Knoppen ===== */
.btn {
  display: inline-block;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.5;
  padding: 8px 24px;
  border-radius: 0;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 3px;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: #13807E; }
.btn-secondary { border-color: var(--ink); background: transparent; }
.btn-secondary:hover { background: var(--ink); color: var(--bg); }
.btn-outline { border: 1px solid var(--ink); border-radius: 0; background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--bg); }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
  padding: 0 max(120px, calc((100% - var(--max)) / 2));
  transition: background .3s, box-shadow .3s;
}
.header.scrolled { background: var(--header-bg); backdrop-filter: blur(8px); box-shadow: var(--shadow); }
.logo { font-family: "Bebas Neue", sans-serif; font-size: 30px; letter-spacing: .04em; }
.nav { display: flex; gap: 48px; }
.nav a {
  font-family: "Oswald", sans-serif; font-weight: 500; font-size: 17px; line-height: 28px; text-transform: uppercase; letter-spacing: .08em;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.nav a:hover, .nav a.active { border-color: var(--ink); }
.nav { margin-left: auto; }
.controls { display: flex; gap: 8px; margin-left: 32px; }
.ctrl-btn {
  min-width: 44px; height: 40px; padding: 0 10px; display: grid; place-items: center;
  background: transparent; color: var(--ink); border: 1px solid var(--ink); border-radius: 0;
  font-family: "Oswald", sans-serif; font-weight: 500; font-size: 15px; letter-spacing: .08em; cursor: pointer;
  transition: background .2s, color .2s;
}
.ctrl-btn:hover { background: var(--ink); color: var(--bg); }
.ctrl-btn svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto; transition: transform .3s, opacity .3s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 573px; /* 629px minus header */
  display: flex; align-items: flex-start;
  padding: 54px max(120px, calc((100% - var(--max)) / 2)) 0;
}
.hero-text { position: relative; z-index: 2; max-width: 486px; }
.eyebrow { color: var(--accent); font-family: "Oswald", sans-serif; font-weight: 600; font-size: 20px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
h1 {
  font-family: "Bebas Neue", sans-serif; font-weight: 400; letter-spacing: .01em;
  font-size: clamp(56px, 7vw, 96px); line-height: .95; color: var(--gray-1);
}
.lead { color: var(--gray); font-size: 24px; line-height: 36px; margin: 32px 0; }
.buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-image {
  position: absolute; top: -56px; right: 0;
  width: 50%; max-width: 720px; height: 629px;
}
.hero-image .blob { width: 100%; height: 100%; }

/* ===== Sectietitel ===== */
.section-title { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 80px; }
h2 { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 72px; line-height: 1; letter-spacing: .02em; text-align: center; }
.underline { width: 100px; height: 4px; border-radius: 0; background: var(--accent); }

/* ===== Projecten ===== */
.projects { max-width: 992px; margin: 144px auto 0; padding: 0 20px; }
.project {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 524px; margin-bottom: 80px;
  border-radius: 0; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
}
.project.reverse .project-info { order: 2; }
.project-info { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; padding: 48px 39px 48px 50px; }
h3 { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 52px; line-height: 1; letter-spacing: .02em; }
.project-info p { color: var(--gray); }
.project-img { position: relative; overflow: hidden; background: #e9edf3; min-height: 240px; }
.project-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project:hover .project-img img { transform: scale(1.04); }

/* ===== Over mij ===== */
.about {
  display: grid; grid-template-columns: minmax(0, 588px) minmax(0, 524px);
  justify-content: space-between; align-items: center; gap: 48px;
  max-width: var(--max); margin: 144px auto 0; padding: 0 20px;
}
.about h2 { text-align: left; font-size: 80px; line-height: 1; color: var(--gray-1); margin-bottom: 32px; }
.about p { color: var(--gray); font-size: 24px; line-height: 1.5; }
.skills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 32px; }
.skills li { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 4px 16px; font-size: 16px; font-weight: 600; }
.about-photo svg { width: 100%; height: auto; }

/* ===== Contact ===== */
.contact { margin-top: 160px; padding: 0 20px; }
.form { display: flex; flex-direction: column; align-items: flex-end; gap: 24px; width: 100%; max-width: 400px; margin: 0 auto; }
.form-group { display: flex; flex-direction: column; gap: 8px; width: 100%; }
label { font-family: "Oswald", sans-serif; font-weight: 500; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; }
input, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 8px 12px;
}
input { height: 40px; }
textarea { height: 160px; resize: vertical; }
input.invalid, textarea.invalid { border-color: #d64545; }
.error { color: #d64545; font-size: 14px; min-height: 1em; }
.form-status { width: 100%; text-align: center; font-weight: 600; font-size: 16px; }

.copyright a { color: var(--accent); }

/* ===== Footer ===== */
.footer { position: relative; margin-top: 56px; padding-bottom: 260px; text-align: center; }
.socials { display: flex; justify-content: center; gap: 24px; position: relative; z-index: 2; }
.socials a { width: 48px; height: 48px; display: grid; place-items: center; transition: transform .2s; }
.socials a:hover { transform: translateY(-3px); }
.socials svg { width: 40px; height: 40px; fill: var(--ink); }
.copyright { color: var(--gray); font-size: 16px; margin-top: 32px; position: relative; z-index: 2; }
.wave { position: absolute; left: 0; bottom: 0; width: 100%; height: 345px; }

/* ===== Animatie bij scrollen ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Tablet ===== */
@media (max-width: 1024px) {
  .header, .hero { padding-left: 40px; padding-right: 40px; }
  .hero-text { max-width: 48%; }
  h3 { font-size: 44px; }
  .about { padding: 0 40px; }
}

/* ===== Mobiel ===== */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .header { padding: 0 12px 0 20px; background: var(--header-bg); }
  .controls { margin-left: auto; }
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 56px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg); box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.open { max-height: 240px; }
  .nav a { padding: 14px 20px; border: 0; }
  .hero { flex-direction: column; padding: 0; min-height: 0; }
  .hero-image { position: relative; top: 0; width: 100%; height: 320px; order: -1; }
  .hero-text { max-width: none; padding: 32px 20px 0; }
  .lead { font-size: 18px; line-height: 1.6; margin: 20px 0 24px; }
  .projects, .about { margin-top: 96px; }
  h2 { font-size: 52px; }
  .section-title { margin-bottom: 48px; }
  .project { grid-template-columns: 1fr; min-height: 0; margin-bottom: 40px; }
  .project.reverse .project-info { order: 0; }
  .project-img { order: -1; height: 240px; }
  .project-info { padding: 28px 24px 32px; gap: 16px; }
  h3 { font-size: 40px; }
  .about { grid-template-columns: 1fr; padding: 0 20px; }
  .about-photo { order: -1; max-width: 320px; margin: 0 auto; }
  .about h2 { font-size: 56px; margin-bottom: 20px; }
  .about p { font-size: 18px; }
  .contact { margin-top: 96px; }
  .contact-intro { margin: -24px auto 24px; }
  .form { align-items: stretch; }
  .footer { padding-bottom: 150px; }
  .wave { height: 180px; }
}
