:root {
  --bg: #000;
  --panel: #0a0a0a;
  --border: #1a1a1a;
  --fg: #ececec;
  --muted: #dedede;
  --link: #fff;
  --ring: #ffffff33;
  --radius: 18px;
  --pad: clamp(16px, 3vw, 28px);
  --maxw: 1120px;
  --bronze: #659e96;
  --navH: 72px;
  --toTopOffset: 32px;
  /* afstand tot de randen voor de 'naar boven' knop */
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

a {
  color: var(--link);
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0 0 .4em;
  line-height: 1.15
}

h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  font-family: ui-serif, Georgia, 'Times New Roman', serif
}

h2 {
  font-size: clamp(26px, 4.5vw, 36px);
  font-weight: 700;
  font-family: ui-serif, Georgia, 'Times New Roman', serif
}

h3 {
  font-size: 20px;
  font-weight: 600
}

p {
  margin: 0 0 1em;
  color: var(--muted)
}

.text-effect {
  mix-blend-mode: difference;
}

/* alleen voor H1 gebruiken */

/* H1: fade-in + slide-up; Lead (p) hetzelfde; Knoppen pop-in */
@media (prefers-reduced-motion: no-preference) {
  .text-effect {
    opacity: 0;
    transform: translateY(26px);
    animation: h1FadeUp 900ms ease-out 200ms forwards;
    will-change: transform, opacity;
  }

  .fade-up {
    opacity: 0;
    transform: translateY(26px);
    animation: h1FadeUp 900ms ease-out 320ms forwards;
    /* iets later dan H1 */
    will-change: transform, opacity;
  }

  .hero-actions a {
    opacity: 0;
    transform: translateY(10px) scale(.94);
    animation: popIn .60s cubic-bezier(.22, 1, .36, 1) forwards;
    will-change: transform, opacity;
  }

  .hero-actions a:nth-child(1) {
    animation-delay: 500ms;
  }

  .hero-actions a:nth-child(2) {
    animation-delay: 600ms;
  }

  @keyframes h1FadeUp {
    from {
      opacity: 0;
      transform: translateY(26px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes popIn {
    0% {
      opacity: 0;
      transform: translateY(10px) scale(.94);
    }

    60% {
      opacity: 1;
      transform: translateY(0) scale(1.02);
    }

    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

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

.section {
  padding: clamp(56px, 8vw, 96px) 0
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--pad)
}

.btn {
  transition: all ease-in-out 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-weight: 600
}

.btn.primary {
  background: var(--bronze);
  color: #111;
  border-color: var(--bronze)
}

.btn.ghost {
  background-color: rgba(0, 0, 0, 0.1);
  color: #fff
}

.btn:hover {
  transform: scale(1.02)
}

.muted {
  color: var(--link)
}

.primary-text-color {
  color: var(--bronze)
}

.greyoverlay {
  filter: grayscale(100%);
  transition: filter 0.2s ease-in-out;
}

.greyoverlay:hover {
  filter: grayscale(0%);
}

/* Header / Nav — fixed */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navH);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.7);
}

.header-spacer {
  height: var(--navH)
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px
}

.brand img {
  height: 56px;
  width: auto;
  margin-top: 8px;
  margin-bottom: 8px;
}

/* Menu */
nav.primary {
  display: flex;
  gap: 28px
}

nav.primary a {
  color: var(--link);
  font-size: 14px;
  position: relative;
  padding-bottom: 4px;
  transition: color .2s ease;
}

nav.primary a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

nav.primary a:hover,
nav.primary a:focus {
  color: var(--link)
}

nav.primary a:hover::after,
nav.primary a:focus::after {
  transform: scaleX(.6)
}

nav.primary a.active {
  color: var(--link)
}

nav.primary a.active::after {
  transform: scaleX(1)
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  appearance: none;
  background: #0f0f0f;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  align-items: center;
  gap: 10px;
  color: #fff
}

.menu-toggle:focus-visible {
  outline: 3px solid var(--ring)
}

.hamburger {
  position: relative;
  width: 22px;
  height: 14px
}

.hamburger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease
}

.hamburger span:nth-child(1) {
  top: 0
}

.hamburger span:nth-child(2) {
  top: 6px
}

.hamburger span:nth-child(3) {
  bottom: 0
}

.menu-toggle.is-open .hamburger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg)
}

.menu-toggle.is-open .hamburger span:nth-child(2) {
  opacity: 0
}

.menu-toggle.is-open .hamburger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg)
}

/* Mobile dropdown panel */
.mobile-panel {
  display: none;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.7);
}

.mobile-panel a {
  padding: 14px 0;
  color: var(--muted);
  display: block
}

@media (max-width: 820px) {
  nav.primary {
    display: none
  }

  .menu-toggle {
    display: inline-flex;
    border-color: var(--link);
  }

  .label {
    color: var(--muted)
  }

  .mobile-panel {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height .35s ease, opacity .25s ease, transform .25s ease;
  }

  .mobile-panel.open {
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
  }

  /* Alleen H1 wat groter/gebalanceerd op mobiel */
  .hero-wrap {
    min-height: 86vh;
  }

  .hero h1.text-effect {
    text-wrap: balance;
    font-size: clamp(34px, 9.5vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.01em;
    text-align: left;
  }
}

/* Hero vibe */
.hero-wrap {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  overflow: hidden
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: black;
  opacity: .99;
}

.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* video vult achtergrond */
.hero-gradient {
  position: absolute;
  inset: 100;
  background: radial-gradient(10% 5% at 10% 5%, rgba(0, 0, 0, .0), rgba(0, 0, 0, .78)),
    linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .85) 100%);
}

.hero {
  position: relative
}

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 12px
}

.chip {
  border: 1px solid var(--border);
  background: #0c0c0c;
  color: #d4d4d4;
  border-radius: 999px;
  padding: .45rem .8rem;
  font-size: 12px
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px
}

/* Grids */
.grid {
  display: grid;
  gap: 20px
}

.grid.cols-3 {
  grid-template-columns: repeat(1, minmax(0, 1fr))
}

@media (min-width: 900px) {
  .grid.cols-3 {
    grid-template-columns: repeat(3, 1fr)
  }
}

/* Project thumbs vierkant */
.work-card .thumb,
.work-card img.preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
}

/* Reviews */
.review-card {
  display: grid;
  gap: 12px
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #111;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #bdbdbd
}

.quote {
  font-style: italic;
  color: var(--fg)
}

.meta {
  font-size: 14px;
  color: var(--muted)
}

.reviews-wrap {
  position: relative;
  margin-top: 18px
}

.reviews-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.reviews-track::-webkit-scrollbar {
  height: 10px
}

.reviews-track::-webkit-scrollbar-thumb {
  background: #1d1d1d;
  border-radius: 6px
}

.reviews-track::-webkit-scrollbar-track {
  background: #0a0a0a
}

.reviews-track .review-card {
  scroll-snap-align: start;
  flex: 0 0 86%;
  max-width: 86%;
}

.review-link {
  text-decoration: underline;
  color: rgb(255, 255, 255); 
}

@media (min-width: 700px) {
  .reviews-track .review-card {
    flex-basis: 48%;
    max-width: 48%
  }
}

@media (min-width: 1000px) {
  .reviews-track .review-card {
    flex-basis: 32%;
    max-width: 32%
  }
}

/* Review-nav pijltjes (links & rechts, in brons) */
.reviews-nav {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.check {
  color: var(--bronze);
}

.reviews-btn {
  pointer-events: all;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bronze);
  color: #0a0a0a;
  border: 0px solid var(--bronze);
  border-radius: 8px;
  padding: .6rem .8rem;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
  height:32px;
  width:32px;
  align-items:center;
  justify-content:center;
  display:flex;
}

.reviews-btn.prev {
  left: -6px;
}

.reviews-btn.next {
  right: -6px;
}

@media (max-width: 720px) {
  .reviews-btn.prev {
    left: 6px;
  }

  .reviews-btn.next {
    right: 6px;
  }
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, .9);
  z-index: 9999
}

#lightbox.open {
  display: grid
}

#lbImg {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 14px;
  border: 0px solid #2a2a2a;
  cursor: zoom-in;
  transition: transform .25s ease
}

#lbClose,
#lbPrev,
#lbNext {
  position: absolute;
  background-color: var(--muted);
  color: #000000;
  border: 0px solid #2a2a2a;
  border-radius: 8px;
  padding: .6rem .8rem;
  cursor: pointer;
  height:32px;
  width:32px;
  align-items:center;
  justify-content:center;
  display:flex;
}

#lbClose {
  top: 14px;
  right: 14px
}

#lbPrev {
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99999;
}

#lbNext {
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99999;
}

#lbThumbs {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  overflow: auto;
  max-width: 92vw
}

#lbThumbs img {
  height: 56px;
  width: auto;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  opacity: .6;
  cursor: pointer
}

#lbThumbs img.active {
  opacity: 1
}

#work,
#contact,
#services,
#about {
  scroll-margin-top: 40px;
  /* hoogte van je vaste header */
}

/* Back-to-top button — rond en op 32px offset */
.to-top {
  position: fixed;
  right: var(--toTopOffset);
  bottom: var(--toTopOffset);
  z-index: 1200;
  width: 48px;
  height: 48px;
  background: var(--bronze);
  color: #0a0a0a;
  border: 0px solid #2a2a2a;
  border-radius: 8px;
  display: grid;
  place-items: center;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px) scale(.92);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease, background .25s ease;
  height:32px;
  width:32px;
  align-items:center;
  justify-content:center;
  display:flex;
}

.to-top.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.to-top:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}

.to-top:focus-visible {
  outline: 3px solid var(--ring);
}

/* Footer – compact, met genoeg ruimte en wrap op mobiel */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 0
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

footer .muted {
  font-size: 13px
}

/* Privacy Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(3px);
}

.modal-content {
  background: #111;
  color: #fff;
  max-width: 600px;
  margin: 5% auto;
  padding: 24px;
  border-radius: 12px;
  line-height: 1.6;
  position: relative;
}

.modal-content h2, .modal-content h3 {
  margin-top: 16px;
  color: #fff;
}

.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
/* Privacy link in footer */
.privacy-link {
  text-decoration: underline;
  color: inherit; /* dezelfde kleur als de andere muted tekst */
  font-size: 13px;
}

.privacy-link:hover {
  opacity: 0.8;
}

@media (max-width:700px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px
  }
}

/* ============================
   Over mij – sectiestyling
   ============================ */
.about-grid {
  display: grid;
  gap: 32px;
  align-items: center;
  grid-template-columns: repeat(1, 1fr);
}

.about-img img {
  border-radius: 50%;
  border: 1px solid var(--border);
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 20%; /* iets meer focus bovenkant */
  
  /* Start in zwart-wit en zonder schaduw */
  filter: grayscale(100%);
  transition: 
    filter 0.4s ease-in-out,
    transform 0.4s ease-in-out,
    box-shadow 0.4s ease-in-out;
}

.about-img img:hover {
  filter: grayscale(0%); /* kleur verschijnt */
  transform: scale(1.05); /* subtiel inzoomen */
  box-shadow: 0 0 50px rgba(101, 158, 150, 0.55); /* bronze glow */
}

.about-text p {
  color: var(--muted);
}

@media (min-width: 820px) {
  .about-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
  }
}
