body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Playfair';
}

/* nav section */
  
nav {
    display: flex;
    background-color: #414141;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    color: white;
    margin-left: 5rem;
}

nav ul {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 2.5rem;
    list-style-type: none;
    margin-right: 5rem;
}

nav ul li a {
    text-decoration: none;
    color: white;
}

/* intro section */

    .slideshow-intro {
      position: relative;
      height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 25rem;
      overflow: hidden;
      background-color: white;
      
    }

    /* Hover achtergrondkleuren als echte divs */
    .hover-bg {
      position: absolute;
      top: 0;
      bottom: 0;
      width: 50%;
      opacity: 0;
      transition: opacity 0.3s ease;
      z-index: 0;
    }

    .left-bg {
      left: 0;
      background-color: #eaeaea;
    }

    .right-bg {
      right: 0;
      background-color:  #b8b8b8;
    }

    /* Verticale lijn */
    .vertical-line {
      position: absolute;
      top: 0;
      bottom: 0;
      left: 50%;
      width: 2px;
      background-color: #ACACAC;
      opacity: 0.4;
      transform: translateX(-50%);
      z-index: 1;
      display: none;
    }

    .slideshow-container {
      position: relative;
      height: 100vh;
      width: 20vw;
      overflow: hidden;
      background-color: transparent;
      z-index: 1; /* hoger dan hover-bg */
    }

    .slide-track {
      display: flex;
      flex-direction: column;
      gap: 2rem;
      animation-timing-function: linear;
      animation-iteration-count: infinite;
      height: calc(2 * (80vh + 6rem));
    }

    .slide-track.up {
      animation-name: scrollUp;
      animation-duration: 10s;
    }

    .slide-track.down {
      animation-name: scrollDown;
      animation-duration: 10s;
    }

    .slide-track img {
      height: 20vh;
      width: 100%;
      object-fit: cover;
      border-radius: 10px;
      position: relative;
      z-index: 2;
    }

    @keyframes scrollUp {
      0% {
        transform: translateY(0);
      }
      100% {
        transform: translateY(calc(-80vh - 6rem));
      }
    }

    @keyframes scrollDown {
      0% {
        transform: translateY(calc(-80vh - 6rem));
      }
      100% {
        transform: translateY(0);
      }
    }

    .text-overlay {
      position: absolute;
      top: 40%;
      left: 50%;
      transform: translate(-50%, -50%);
      text-align: center;
      color: black;
      z-index: 10;
      user-select: none;
      text-shadow: 0 0 10px rgba(255 255 255 / 0.7);
    }

    .text-overlay h1 {
      font-size: 3rem;
      margin-bottom: 1rem;
    }

    .extra-text {
      opacity: 0;
    }

    .extra-text1 {
      opacity: 0;
    }

    .left-text {
      opacity: 0;
    }

    .text-overlay h2 {
      font-size: 3rem;
      margin: 0.5rem 0;
      position: relative;
      height: 3.5rem;
      overflow: visible;
    }

    .hover-left,
    .hover-right {
      position: absolute;
      top: 0;
      bottom: 0;
      width: 50%;
      pointer-events: auto;
      z-index: 5;
    }

    .hover-left {
      left: 0;
    }

    .hover-right {
      right: 0;
    }

    /* Hovertekst */
    .hover-left-text,
    .hover-right-text {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translateX(-50%);
      opacity: 0;
      transition: opacity 0.3s ease;
      pointer-events: none;
      color: #000;
      font-weight: 600;
      font-size: 3rem;
    }

    .hover-left:hover ~ .text-overlay .hover-left-text {
      opacity: 1;
    }

    .hover-right:hover ~ .text-overlay .hover-right-text {
      opacity: 1;
    }

    /* Hover activeren achtergrondkleur via echte divs */
    .hover-left:hover ~ .left-bg,
    .hover-right:hover ~ .right-bg {
      opacity: 1;
    }

/* my work */

.myWork {
  display: flex;
  padding-top: 15rem;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.myWorkContainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.ElementSmall {
  position: relative;
  display: inline-block;
}

.ElementSmall img {
  height: 284px;
  width: 570px;
  object-fit: cover;
  border-radius: 10px;
  display: block; 
  transition: transform 0.5s ease;
  cursor: pointer;
}

.ElementSmall:hover img {
  transform: scale(1.1); /* Zoom in naar 110% */
}

.ElementSmall p {
  position: absolute;
  bottom: 20px;           /* iets boven de onderkant */
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 12px;
  font-weight: bold;
  font-size: 2rem;
  border-radius: 6px;
  pointer-events: none;
  user-select: none;
  white-space: nowrap; /* voorkom afbreken van tekst */
  transition: transform 0.5s ease, font-size 0.5s ease;
}

.ElementSmall:hover p {
  transform: translateX(-60%) translateY(30%) scale(1.1); /* Zoom in naar 110% */
  font-size: 2.2rem;
}

.ElementBig {
  position: relative;
  display: inline-block;
}

.ElementBig img {
  height: 442px;
  width: 570px;
  object-fit: cover;
  border-radius: 10px;
  display: block; 
  transition: transform 0.5s ease;
  cursor: pointer;
}

.ElementBig:hover img {
  transform: scale(1.1); /* Zoom in naar 110% */
}

.ElementBig p {
  position: absolute;
  bottom: 20px;           /* iets boven de onderkant */
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 12px;
  font-weight: bold;
  font-size: 2rem;
  border-radius: 6px;
  pointer-events: none;
  user-select: none;
  white-space: nowrap; /* voorkom afbreken van tekst */
  transition: transform 0.5s ease, font-size 0.5s ease;
}

.ElementBig:hover p {
  transform: translateX(-60%) translateY(30%) scale(1.1);
  font-size: 2.2rem;
}

.woonzorg {
  color: white;
}

.deccos {
  color: white;
}

.woonzorgImg {
  background-color: #b8b8b8;
}

.deccosImg {
  background-color: #b8b8b8;
}

.escaperoom {
  left: 5rem;
}

.filmshape {
  left: 7rem;
}

.woonzorg {
  left: 7rem;
}

.deccos {
  left: 6rem;
}

/* about me */

.aboutMe {
  display: flex;
  padding-top: 15rem;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.aboutMe h1 {
  font-size: 2rem;
  font-weight: normal;
}

.aboutMeContainer {
  display: flex;
  flex-direction: row;
  gap: 29rem;
  padding-bottom: 10rem;
  justify-content: center;
}

.pTekst {
  width: 30%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.pTekst p {
  font-size: 1.2rem;
  font-weight: lighter;
}

/* about me foto's */

.AboutMePictures {
  margin-left: 9.5rem;
}

.AboutMePicturesContainer {
  position: relative;
  width: max-content;
  height: 20rem;
}

.AboutMePicturesContainer img {
  position: absolute;
  height: 28rem;
  width: 20rem;
  object-fit: cover;
  transition: all 0.5s ease;
}

/* Positioneer de afbeeldingen met kleine offset */
.AboutMePicturesContainer img:nth-child(1) {
  left: 0;
  z-index: 3;
}

.AboutMePicturesContainer img:nth-child(2) {
  left: 6rem;
  z-index: 2;
}

.AboutMePicturesContainer img:nth-child(3) {
  left: 12rem;
  z-index: 1;
}

/* Bij hover op container, schuif de afbeeldingen uit elkaar */
.AboutMePicturesContainer:hover img:nth-child(1) {
  left: 0;
}

.AboutMePicturesContainer:hover img:nth-child(2) {
  left: 27rem;
}

.AboutMePicturesContainer:hover img:nth-child(3) {
  left: 54rem;
}

/* contact me */

.contactMe {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 20rem;
}

.contactMe h1 {
  font-size: 2.5rem;
  font-weight: normal;
}

.contactMeContainer {
  display: flex;
  flex-direction: row;
  padding-top: 3rem;
  padding-bottom: 3rem;
  gap: 3rem;
  justify-content: center;
}

.socialMedia {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  font-size: 2rem;
}

.socialMedia a {
  color: black;
}

.copyright {
  color: #878787;
}

@media (max-width: 768px) {
  .slideshow-intro {
  flex-direction: column;
  width: 100%;
  gap: 1rem;
  height: auto;
  padding: 2rem 0;
  justify-content: center;
  align-items: center;
  margin-top: 0rem;
}
  .text-overlay {
    position: static;
    transform: none;
    text-align: center;
    z-index: 2;
    margin-bottom: 4rem;
    margin-top: 2rem;
  }

  .text-overlay h1,
  .text-overlay h2 {
    font-size: 2rem;
  }

  .slideshow-container {
    width: 100%;
    height: auto;
  }

  .slide-track {
    flex-direction: row;
    display: flex;
    gap: 2rem;
    width: max-content;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    height: auto;
  }

  .slideshow-container.left .slide-track {
    animation-name: scrollLeft;
    animation-duration: 15s;
  }

  .slideshow-container.right .slide-track {
    animation-name: scrollRight;
    animation-duration: 15s;
  }

.slide-track img {
  height: 12rem;
  width: 15rem;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

  @keyframes scrollLeft {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-50%));
    }
  }

  @keyframes scrollRight {
    0% {
      transform: translateX(calc(-50%));
    }
    100% {
      transform: translateX(0);
    }
  }

  .hover-left,
  .hover-right,
  .hover-bg,
  .vertical-line,
  .hover-left-text,
  .hover-right-text {
    display: 1;
  }

  .hover-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .hover-left-text,
  .hover-right-text {
  opacity: 1 !important;
  position: static;
  transform: none;
  font-size: 1.5rem;
  font-weight: normal;
  }

  .extra-text {
    opacity: 1 !important;
    position: static;
    transform: none;
    font-size: 1.5rem;
    font-weight: normal;
  }

  .extra-text1 {
    opacity: 1 !important;
    position: static;
    transform: none;
    font-size: 1.5rem;
    font-weight: normal;
    margin-top: 1rem;
  }

  .hover-text1 {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .left-text {
    opacity: 1 !important;
    position: static;
    transform: none;
    font-size: 1.5rem;
  }

  .hover-left-text {
    display: none;
  }

  .a {
    display: none;
  }

    .myWork {
    flex-direction: column;
    padding-top: 5rem; /* minder padding bovenaan */
    gap: 2rem;
  }

  .myWorkContainer {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
  }

  /* Zorg dat containers onder elkaar kleiner worden en ruimte innemen */
  .myWorkContainer:nth-child(odd) {
    flex-wrap: nowrap;
  }

  /* Kleinere afbeeldingen en iets smaller */
  .ElementSmall img,
  .ElementBig img {
    width: 100%;
    height: auto;
    max-width: 300px;
    border-radius: 10px;
  }

  /* Zet de elementen onder elkaar in column richting */
    .myWorkContainer {
    flex-direction: column;
    gap: 2rem;
    max-width: 320px;
  }

  .ElementSmall, .ElementBig {
    flex: 1 1 100%;
    margin-bottom: 1rem;
    position: relative;
  }

  /* Tekst positionering eenvoudiger en centraal */
  .ElementSmall p,
  .ElementBig p {
    position: absolute;
    bottom: 10px;
    left: 23% !important;
    transform: translateX(-50%) translateY(0);
    font-size: 1.4rem;
    white-space: nowrap;
    padding: 4px 8px;
    pointer-events: none;
    user-select: none;
  }

  .ElementSmall p {
    position: absolute;
    bottom: 10px;
    left: 20% !important;
    transform: translateX(-50%) translateY(0);
    font-size: 1.4rem;
    white-space: nowrap;
    padding: 4px 8px;
    pointer-events: none;
    user-select: none;
  }

  .aboutMeContainer {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 0 2rem 5rem 2rem;
  }

  .aboutMe h1,
  .otherProjects h1,
  .contactMe h1 {
    margin-top: auto;
    font-size: 1.5rem;
    text-align: center;
  }

  .pTekst {
    width: 90%;
  }

    .AboutMePictures {
    margin-left: 0;
    display: flex;
    justify-content: center;
    padding: 2rem 0;
  }

  .AboutMePicturesContainer {
    position: static;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .AboutMePicturesContainer img {
    position: static !important; /* overschrijf absolute */
    width: 90vw;
    height: 50vh;
    object-fit: cover;
    transition: none !important;
    border-radius: 10px;
    left: auto !important; /* verwijder left offsets */
    z-index: auto !important;
  }

  .contactMe {
    padding-top: 10rem;
  }

  }





