:root{
  --olivewood:#210706;
  --tuscan:#891D1A;
  --slate:#5E657B;
  --cream:#F1E6D2;
  --text:#210706;
}

*{box-sizing:border-box;margin:0;padding:0}
body{
  font-family:'Work Sans', sans-serif;
  background:var(--cream);
  color:var(--text);
  overflow-x:hidden;
  scroll-behavior:smooth;
}


/* NAV */
.nav{
  position:fixed;top:0;left:0;right:0;z-index:50;
  background:rgba(241,230,210,0.8);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(0,0,0,0.05);
}
.nav-inner{
  max-width:1200px;
  margin:auto;
  padding:14px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.logo{
  font-family:'Playwrite ES', serif;
  font-size:20px;
  font-weight:700;
  color:var(--tuscan);
}
.nav-links a{
  color:var(--olivewood);
  text-decoration:none;
  font-weight:600;
  margin-left:20px;
  position:relative;
  transition:color .3s ease;
}
.nav-links a::after{
  content:"";
  position:absolute;
  left:0;bottom:-4px;
  width:0;height:2px;
  background:var(--tuscan);
  transition:width .3s ease;
}
.nav-links a:hover{color:var(--tuscan)}
.nav-links a:hover::after{width:100%}

/* HERO */
.hero{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:0 24px;
  background:linear-gradient(160deg, var(--cream) 0%, rgba(241,230,210,0.5) 100%);
}
.hero-content{
  max-width:700px;
  color:var(--olivewood);
}
.hero .eyebrow{
  color:var(--slate);
  letter-spacing:2px;
  text-transform:uppercase;
}
.hero h1{
  font-family:'Playwrite ES', serif;
  font-size:64px;
  color:var(--tuscan);
  margin:12px 0;
}
.hero p{
  font-size:20px;
  line-height:1.6;
}

/* PROJECT SPLITS */
.project-split{
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:100vh;
  overflow:hidden;
}
.project-split.reverse{
  grid-template-columns:1fr 1fr;
  direction:rtl;
}
.project-split.reverse .text-side{
  direction:ltr;
}

/* Foto */
.image-side{
  background-size:cover;
  background-position:center;
  transition:transform 1s ease;
}
.project-split:hover .image-side{
  transform:scale(1.05);
}

/* Teksthelft */
.text-side{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:60px;
  transition:background-color 0.6s ease;
}
.text-side a{
  text-decoration:none;
  max-width:480px;
  transition:transform .4s ease;
}
.text-side a:hover{transform:translateY(-6px)}
.text-side h2{
  font-family:'Playwrite ES', serif;
  font-size:44px;
  margin:10px 0;
}
.text-side p{
  font-size:19px;
  line-height:1.6;
  margin-bottom:10px;
}
.read-more{
  font-weight:600;
  text-decoration:underline;
  margin-top:10px;
  display:inline-block;
}

/* Achtergrondkleuren per project */
.color-cream{background:var(--cream);color:var(--olivewood);}
.color-tuscan{background:var(--tuscan);color:var(--cream);}
.color-slate{background:var(--slate);color:var(--cream);}
.color-olivewood{background:var(--olivewood);color:var(--cream);}
.text-side.color-tuscan a,
.text-side.color-slate a,
.text-side.color-olivewood a{color:var(--cream);}
.text-side.color-cream a{color:var(--olivewood);}
.text-side.color-tuscan .read-more,
.text-side.color-slate .read-more,
.text-side.color-olivewood .read-more{color:var(--cream);opacity:0.9}
.text-side.color-cream .read-more{color:var(--slate)}

/* FOOTER */
.footer{
  text-align:center;
  padding:60px 0;
  color:var(--olivewood);
  background:linear-gradient(180deg, rgba(241,230,210,0.8), var(--cream));
  font-weight:500;
}

/* ANIMATIONS */
.fade-up{
  opacity:0;
  transform:translateY(40px);
  transition:all 1s cubic-bezier(.2,.9,.3,1);
}
.fade-up.visible{
  opacity:1;
  transform:translateY(0);
}

/* RESPONSIVE */
@media (max-width:900px){
  .project-split, .project-split.reverse{
    grid-template-columns:1fr;
    direction:ltr;
  }
  .text-side{padding:40px}
  .hero h1{font-size:42px}
  .text-side h2{font-size:32px}
}
.image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1s ease;
}

.project-split:hover .image-side img {
  transform: scale(1.05);
}

.logo-link:active .logo {
  transform: scale(1.15);
}
/* Klikbare naam met animatie (bovenin navigatie) */
.logo-link {
  text-decoration: none;
}
.logo-link .logo {
  transition: transform 0.4s ease, color 0.4s ease;
  display: inline-block;
  cursor: pointer;
}
.logo-link:hover .logo {
  transform: scale(1.1);
  color: var(--tuscan);
}
.logo-link:active .logo {
  transform: scale(1.15);
}

/* Klikbare naam in de hero-sectie */
.hero-name-link {
  text-decoration: none;
  color: var(--tuscan);
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}
.hero-name-link:hover {
  color: var(--olivewood);
  transform: scale(1.05);
}
.hero-name-link:active {
  transform: scale(1.1);
}
/* Projectpagina layout */
.project-page {
  background: var(--cream);
  color: var(--olivewood);
}

/* Hero */
.project-hero {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 100px;
}
.project-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.project-hero-inner {
  position: relative;
  z-index: 2;
  color: var(--cream);
  max-width: 700px;
}
.project-hero-inner h1 {
  font-family: 'Playwrite ES', serif;
  font-size: 56px;
  color: #5E657B;
  margin: 12px 0;
}
.project-hero-inner .lead {
  font-size: 20px;
  line-height: 1.6;
  color: #5E657B;
}

/* Scroll-layout */
.project-scroll-layout {
  display: flex;
  position: relative;
  min-height: 200vh;
  background: var(--cream);
}

/* Linkerzijde met scrollende foto's */
.scroll-images {
  width: 50%;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.scroll-images img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

/* Actieve afbeelding zichtbaar */
.scroll-images img.active {
  opacity: 1;
}

/* Rechterzijde met vaste tekst */
.scroll-text {
  width: 50%;
  padding: 100px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 18px;
  line-height: 1.7;
}
.scroll-text h2 {
  font-family: 'Playwrite ES', serif;
  font-size: 36px;
  color: var(--tuscan);
  margin-bottom: 20px;
}

/* Footer */
.project-footer {
  text-align: center;
  padding: 60px 0;
  background: var(--cream);
}

/* Responsive */
@media (max-width: 900px) {
  .project-scroll-layout {
    flex-direction: column;
  }
  .scroll-images, .scroll-text {
    width: 100%;
    position: relative;
  }
  .scroll-images img {
    position: relative;
    height: 70vh;
  }
}

/* --- Sticky project layout: left images (scroll), right sticky text --- */
.project-page { background: var(--cream); color: var(--olivewood); }

/* Hero */
.project-hero{
  min-height:56vh;
  background-size:cover;
  background-position:center;
  display:flex;
  align-items:flex-end;
  padding:80px 6vw;
  position:relative;
}
.project-hero::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.02));
}
.project-hero-inner{ position:relative; z-index:2; max-width:760px; color:var(--cream); }

/* Layout container */
.project-sticky-layout{
  display:flex;
  gap:48px;
  align-items:flex-start;
  padding:60px 6vw 120px;
  /* ensure enough height so sticky can stick across many images */
}

/* Left column: scrollable images stacked vertically */
.scroll-gallery{
  flex:1;
  max-width:720px;
  display:flex;
  flex-direction:column;
  gap:40px;
}

/* Each image figure controls spacing and aspect */
.gallery-item{
  width:100%;
  border-radius:12px;
  overflow:hidden;
  box-shadow: 0 10px 30px rgba(33,7,6,0.06);
  background:#fff;
}
.gallery-item img{
  display:block;
  width:100%;
  height:auto;
  object-fit:cover;
  transition: transform .6s ease, opacity .6s ease;
  will-change: transform, opacity;
}

/* Right column: sticky text */
.sticky-text{
  width:420px;
  flex:0 0 420px;
  position:relative; /* parent for sticky-inner */
}
.sticky-inner{
  position:sticky;
  top:120px; /* set how far from top it should stick */
  padding:12px 8px 24px 8px;
  align-self:flex-start;
  background: linear-gradient(180deg, rgba(241,230,210,0.98), rgba(241,230,210,0.9));
  border-radius:8px;
  box-shadow: 0 10px 30px rgba(33,7,6,0.04);
}
.sticky-inner h2{
  margin-top:0;
  font-family:'Playwrite ES', serif;
  font-size:32px;
  color:var(--tuscan);
}
.sticky-inner p{
  color:var(--olivewood);
  line-height:1.7;
  font-size:16.5px;
  margin-bottom:1rem;
}

/* Back link */
.back-to-index{
  display:inline-block;
  margin-top:12px;
  color:var(--tuscan);
  text-decoration:underline;
}

/* Small hover tweak for images */
.gallery-item img:hover{
  transform:scale(1.03);
  opacity:0.98;
}

/* Fade-up helper (from your animations) */
.fade-up{ opacity:0; transform:translateY(20px); transition:all .8s cubic-bezier(.2,.9,.3,1); }
.fade-up.visible{ opacity:1; transform:translateY(0); }

/* Responsive: stack on mobile with text below images */
@media (max-width: 900px){
  .project-sticky-layout{
    display:block;
    padding:40px 4vw;
  }
  .scroll-gallery{ width:100%; }
  .gallery-item img{ height:60vh; width:100%; object-fit:cover; }
  .sticky-text{ width:100%; margin-top:24px; }
  .sticky-inner{ position:relative; top:auto; padding:20px; }
}

/* --- FIX: Sticky tekst blijft echt vast bij scroll --- */
.project-sticky-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  padding: 100px 80px;
}

/* Tekst rechts blijft sticky */
.sticky-text {
  flex: 0 0 420px;
  position: relative;
}
.sticky-inner {
  position: sticky;
  top: 120px;
  background: linear-gradient(180deg, rgba(241,230,210,0.97), rgba(241,230,210,0.9));
  padding: 32px 28px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.sticky-inner h2 {
  font-family: 'Playwrite ES', serif;
  color: var(--tuscan);
  font-size: 34px;
  margin-bottom: 16px;
}
.sticky-inner p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--olivewood);
}
/* Zorg dat sticky tekst blijft plakken tijdens scroll door lange galerij */
.project-sticky-layout {
  align-items: flex-start;
  min-height: 250vh; /* hoe groter deze waarde, hoe langer de sticky zichtbaar blijft */
}

/* Scrollende foto's links */
.scroll-gallery {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.scroll-gallery figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.4s ease;
}
.scroll-gallery figure:hover {
  transform: scale(1.02);
}
.scroll-gallery img {
  width: 100%;
  display: block;
  height: auto;
  object-fit: cover;
}

/* --- NIEUW: Lightbox effect voor vergroting van foto's --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: fadeIn 0.3s ease forwards;
}
.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
  animation: zoomIn 0.4s ease forwards;
}

/* Animaties voor lightbox */
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes zoomIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Lightbox sluiten bij klik */
.lightbox.active {
  display: flex;
}

/* --- RESPONSIVE FIX --- */
@media (max-width: 900px) {
  .project-sticky-layout {
    flex-direction: column-reverse;
    padding: 60px 24px;
  }
  .sticky-text {
    flex: 1;
    width: 100%;
  }
  .sticky-inner {
    position: relative;
    top: auto;
  }
}
/* --- DEFINITIEVE FIX: Sticky tekst blijft op zijn plek tijdens scrollen --- */
.project-sticky-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  padding: 100px 80px;
  position: relative;
  min-height: calc(100vh + 200%);
}

/* Belangrijk: de container moet hoog genoeg zijn om scroll mogelijk te maken */
.project-sticky-layout::after {
  content: "";
  display: block;
  height: 200vh; /* dit zorgt voor scrollruimte, pas aan als je meer/minder foto's hebt */
}

.scroll-gallery {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
  z-index: 1;
}

.scroll-gallery figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.4s ease;
}
.scroll-gallery figure:hover { transform: scale(1.02); }
.scroll-gallery img {
  width: 100%;
  display: block;
  height: auto;
  object-fit: cover;
}

/* Sticky tekst rechts */
.sticky-text {
  flex: 0 0 420px;
  position: relative;
  height: 100vh; /* sticky werkt binnen dit vaste venster */
}
.sticky-inner {
  position: sticky;
  top: 120px;
  background: linear-gradient(180deg, rgba(241,230,210,0.97), rgba(241,230,210,0.9));
  padding: 32px 28px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.sticky-inner h2 {
  font-family: 'Playwrite ES', serif;
  color: var(--tuscan);
  font-size: 34px;
  margin-bottom: 16px;
}
.sticky-inner p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--olivewood);
}

/* Responsief */
@media (max-width: 900px) {
  .project-sticky-layout {
    flex-direction: column;
    padding: 60px 24px;
  }
  .sticky-text {
    flex: 1;
    width: 100%;
    height: auto;
  }
  .sticky-inner {
    position: relative;
    top: auto;
  }
}

/* --- PERFECT STICKY TEKST FIX (blijft staan tijdens scroll) --- */
.project-sticky-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  padding: 100px 80px;
  position: relative;
}

/* De fotokolom scrolt normaal */
.scroll-gallery {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* Beperk fotohoogte zodat ze mooi passen */
.scroll-gallery img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.4s ease;
}
.scroll-gallery img:hover {
  transform: scale(1.02);
}

/* Tekst rechts sticky */
.sticky-text {
  flex: 0 0 420px;
  position: sticky;
  top: 120px;
  align-self: flex-start;
  height: fit-content;
}
.sticky-inner {
  background: linear-gradient(180deg, rgba(241,230,210,0.97), rgba(241,230,210,0.9));
  padding: 32px 28px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.sticky-inner h2 {
  font-family: 'Playwrite ES', serif;
  color: var(--tuscan);
  font-size: 34px;
  margin-bottom: 16px;
}
.sticky-inner p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--olivewood);
}

/* Responsive */
@media (max-width: 900px) {
  .project-sticky-layout {
    flex-direction: column;
    padding: 60px 24px;
  }
  .sticky-text {
    position: relative;
    top: auto;
    width: 100%;
  }
}
/* --- ABOUT PAGE (nieuwe versie) --- */
.about-page {
  background: var(--cream);
  color: var(--olivewood);
  padding-top: 100px; /* ruimte voor vaste navigatie */
}

/* Intro / hero */
.about-hero {
  max-width: 900px;
  margin: 40px auto 60px auto; /* compacter bovenaan */
  text-align: center;
  padding: 0 24px;
}
.about-hero img {
  width: 100%;
  max-width: 1000px; /* past goed bij de layout */
  height: auto;
  border-radius: 12px; /* houdt ronde hoeken, optioneel verwijderen als je dat wilt */
  margin-bottom: 24px;
  box-shadow: none; /* geen schaduw/rand */
}

.about-hero p {
  font-size: 20px;
  line-height: 1.7;
  color: var(--olivewood);
}

/* Grid met tekst en foto */
.about-grid {
  display: flex;
  align-items: flex-start; /* zet bovenkant gelijk */
  justify-content: flex-start; /* schuift alles naar links */
  gap: 0; /* geen ruimte tussen tekst en foto als je wilt */
  max-width: none; /* geen limiet meer */
  margin: 0; /* verwijder automatische marge */
  padding: 0; /* verwijder padding */
}


.about-text {
  flex: 1;
  padding-left: 80px; /* schuift de tekst 40px naar rechts */
   margin-top: 70px;    /* schuift de tekst 60px naar beneden */
}


.about-text h2 {
  font-family: 'Playwrite ES', serif;
  font-size: 36px;
  color: var(--tuscan);
  margin-bottom: 20px;
}

.about-text p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--olivewood);
}

.about-photo {
  flex: 0 0 auto; /* laat de afbeelding zo groot worden als hij kan */
  margin: 0;      /* geen extra marge */
}

/* Foto in About-sectie (jezelf) */
.about-photo img {
  width: 30vw;   /* volledige schermbreedte */
  max-width: none; /* geen beperking meer */
  height: auto;
  border-radius: 0; /* geen afgeronde hoeken */
  box-shadow: none; /* geen schaduw */
}

.about-photo img:hover {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 900px) {
  .about-grid {
    flex-direction: column-reverse;
    gap: 40px;
    padding: 0 24px;
  }

  .about-hero img {
    max-width: 280px;
  }

  .about-text h2 {
    font-size: 30px;
  }
}

@media (max-width: 600px) {
  .about-hero img {
    max-width: 240px;
  }
}

.back-button-container {
  text-align: center;
  margin: 60px 0;
}

.back-button {
  display: inline-block;
  padding: 14px 28px;
  font-size: 18px;
  font-weight: 600;
  color: var(--cream);
  background-color: var(--tuscan);
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.back-button:hover {
  background-color: var(--olivewood);
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .back-button {
    font-size: 16px;
    padding: 12px 24px;
  }
}

