/* =========================
   BASIS
   ========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  background: black;
  color: white;
  overflow-x: hidden;
}

/* =========================
   HEADER
   ========================= */

header {
  padding: 30px;
}

h1 {
  font-size: 32px;
  letter-spacing: 3px;
  margin: 0;
}

.home-link {
  text-decoration: none;
  color: inherit;
}

.home-link:hover {
  opacity: 0.8;
}

.header-logo {
  display: block;
  height: 80px;   /* zelfde visuele grootte als de h1 was */
  width: auto;
}

/* =========================
   HEADER LAYOUT
   ========================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 30px;
  pointer-events: none;
}

.site-header a {
  pointer-events: auto;
}

.header-title {
  justify-self: center;
  text-align: center;
}

.header-nav {
  justify-self: end;
  display: flex;
  gap: 30px;
}

.header-nav a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.8;
}

.header-nav a:hover {
  opacity: 1;
}

/* =========================
   LANDING – PURE CSS SLIDER
   ========================= */

/*
  Hoe het werkt:
  - .slider-wrapper is een venster dat de volle hoogte vult.
  - .slider-track is de bewegende band; deze is 200% breed (2× de originele set).
  - De animatie verschuift de track met -50%, wat precies de breedte van één set is.
  - Na 50% is de positie exact gelijk aan het begin → naadloze loop zonder sprongen.
*/

.slider-wrapper {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  display: flex;
  align-items: center;        /* verticaal centreren */
  padding-top: 12vh;          /* ruimte voor de header */
}

.slider-track {
  display: flex;
  align-items: center;
  gap: 80px;                  /* ruimte tussen foto's */
  width: max-content;

  /* Diagonaal gevoel: subtiele schuine stand van de hele band */
  transform-origin: center center;

  animation: scrollLeft 40s linear infinite;
  will-change: transform;
}

/* Pauzeer animatie bij hover op de hele band */
.slider-track:hover {
  animation-play-state: paused;
}

@keyframes scrollLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }  /* schuift precies één set op */
}

/* Elk plaatje als klikbare link */
.slide {
  display: block;
  flex-shrink: 0;             /* voorkomt dat plaatjes worden samengeperst */
  cursor: pointer;
}

.slide img {
  display: block;
  width: auto;
  height: auto;
  max-height: 70vh;           /* nooit groter dan het venster */
  max-width: 600px;

  transition: transform 0.35s ease, opacity 0.35s ease;
  will-change: transform;
}

.slide:hover img {
  transform: scale(1.06);
  opacity: 0.85;
}

/* =========================
   PORTFOLIO BASISLAYOUT
   ========================= */

.portfolio-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;

  max-width: 1400px;
  margin: 0 auto;

  padding: 40px;
  padding-top: 160px;
}

.portfolio-menu ul {
  list-style: none;
  padding: 0;
}

.portfolio-menu li {
  padding: 6px 0;
  cursor: pointer;
  opacity: 0.7;
}

.portfolio-menu li.active,
.portfolio-menu li:hover {
  opacity: 1;
}

.portfolio-menu a {
  color: inherit;
  text-decoration: none;
  display: block;
}

/* =========================
   PROJECT / DEAR LITTLE ME
   ========================= */

.project {
  width: 100%;
}

.project-intro {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 120px;
}

.intro-image img {
  width: 100%;
  max-width: 680px;
  display: block;
}

.intro-text {
  max-width: 380px;
  font-size: 14px;
  line-height: 1.6;
}

/* =========================
   VERHALENDE BEELDEN
   ========================= */

.project-image {
  max-width: 780px;
}

.project-image img {
  width: 100%;
  height: auto;
  max-height: 700px;
  object-fit: contain;
  display: block;
}

.project-image.left  { margin-left: 0; }
.project-image.center { margin: 0 auto; }
.project-image.right  { margin-left: auto; }

.spacer {
  height: 120px;
}

/* =========================
   INTERACTIE
   ========================= */

.image,
.project-image {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.image:hover,
.project-image:hover {
  transform: translateY(-6px);
}

/* =========================
   FULLSCREEN LIGHTBOX
   ========================= */

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

#lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

#lightbox-img,
#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

#lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;

  background: none;
  border: 2px solid white;
  color: white;
  font-size: 26px;
  width: 42px;
  height: 42px;
  line-height: 36px;
  border-radius: 50%;
  cursor: pointer;
  text-align: center;

  opacity: 0.8;
}

#lightbox-close:hover {
  opacity: 1;
}

.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);

  background: none;
  border: none;
  color: white;
  font-size: 60px;
  cursor: pointer;

  padding: 20px;
  opacity: 0.6;
}

.lightbox-arrow:hover {
  opacity: 1;
}

.lightbox-arrow.left  { left: 20px; }
.lightbox-arrow.right { right: 20px; }

/* =========================
   OVER MIJ – VIDEO
   ========================= */

.scroll-hint {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 60px;
  color: white;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.3s ease, color 0.3s ease;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.scroll-hint:hover {
  opacity: 1;
  color: #aaaaaa;
}

.scroll-hint:hover svg path {
  stroke: #aaaaaa;
}

.scroll-hint svg {
  animation: bounceDown 1.8s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

.video-sectie {
  width: 100%;
  margin-bottom: 120px;
  display: flex;
  justify-content: center;
}

.over-video {
  width: 100%;
  max-width: 900px;
  display: block;
  outline: none;
}

/* =========================
   LAATSTE FOTO – GEEN WITRUIMTE ONDER
   ========================= */

.project-image.last {
  margin-bottom: 0;
  padding-bottom: 0;
}

.project-image.last img {
  display: block;
}

/* Verwijder de onderste padding van main op portfolio pagina's */
.portfolio .portfolio-layout {
  padding-bottom: 0;
}

.portfolio main {
  padding-bottom: 0;
}

/* =========================
   TERUG NAAR TOP KNOP
   ========================= */

.back-to-top {
  position: fixed;
  bottom: 36px;
  right: 36px;
  z-index: 100;

  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  opacity: 1;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
}

.back-to-top svg {
  display: block;
}

/* =========================
   CONTACT
   ========================= */

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: white;
  text-decoration: none;
  font-size: 15px;
  opacity: 0.75;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-item:hover {
  opacity: 1;
  transform: translateX(4px);
}

.contact-item svg {
  flex-shrink: 0;
  opacity: 0.9;
}

/* Contact: geen ruimte onder de intro */
.project-intro.last {
  margin-bottom: 0;
}

.portfolio .portfolio-layout {
  padding-bottom: 0;
}