/* === BASIS === */
body {
  margin: 0;
  overflow: hidden;
  background: #121212;
  font-family: 'Arial', sans-serif;
  color: white;
}


/* === SCHERMEN === */
.screen {
  position: absolute;
  top: 0;
  left: 100vw;
  width: 100vw;
  height: 100vh;
  transition: left 0.6s ease, top 0.6s ease, transform 0.6s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  box-sizing: border-box;
  text-align: center;
}

.screen.active {
  left: 0;
  top: 0;
}

.screen.left {
  left: -100vw;
  top: 0;
}

.screen.right {
  left: 100vw;
  top: 0;
}

.screen.down {
  top: 100vh;
  left: 0;
  transition: top 0.6s cubic-bezier(.22,.8,.36,1);
}

/* wanneer actief - schuif omhoog */
.screen.down.visible {
  top: 0;
}

/* === ACHTERGRONDEN === */
#screen1 {
  background-image: url("images/kelder.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #111; /* fallback kleur */
}

#screen2 {
  background: linear-gradient(135deg, #1e1e1e, #3e3e3e);
  flex-direction: column;
}

#screen3 {
  background-image: url("images/werkplaats.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #222;
}

#screen4 {
  background: linear-gradient(135deg, #2a2a2a, #1e1e1e);
}

/* === INFO SCREEN IMAGES === */
#screen4 {
  position: relative;
  overflow: hidden;
}

/* Desktop layout: top-centered + right image */
.info-images {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  padding: 20px;
  box-sizing: border-box;
  z-index: 1;
}

.info-img {
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  opacity: 0.85;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.info-img.top {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  max-width: 15%;
}

.info-img.right {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  max-width: 30%;
}

/* === CONTENT === */
.content-box {
  background: rgba(0, 0, 0, 0.8);
  padding: 30px;
  border-radius: 15px;
  max-width: 700px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  line-height: 1.5;
  position: absolute;
  left: 10%;
  top: 90%;
  transform: translate(-10%, -90%);
}

/* === LOGO EN TEKST === */
.logo {
  font-size: 72px;
  font-weight: bold;
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glow 1.5s infinite alternate;
  text-shadow: 0 0 10px rgba(255, 126, 95, 0.7);
  margin-bottom: 10px;
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px rgba(255, 126, 95, 0.7);
  }
  to {
    text-shadow: 0 0 25px rgba(255, 126, 95, 0.9);
  }
}

.description {
  font-size: 18px;
  color: #ccc;
  max-width: 600px;
  margin-bottom: 20px;
}



/* === PROJECTEN === */
.project-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.project-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 20px;
  width: 380px;
  height: 320px;
  display: flex;
  flex-direction: column; /* stack vertically */
  justify-content: flex-start;
  align-items: center;
  color: #ddd;
  font-size: 16px;
  transition: transform 0.3s ease, background 0.3s ease;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  text-align: center;
}

.project-card img{
    width: 100%;
    height: auto;
    object-fit: cover;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.project-card h3 {
    font-size: 20px;
    margin: 15px 0 10px;
    color: #ffb574;
}

.project-card p {
    font-size: 14px;
    color: #ccc;
    margin: 0 15px;
    line-height: 1.4;
}

.project-card:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}



/* === PIJLEN === */
.arrow {
  position: absolute;
  font-size: 20px;
  color: white;
  cursor: pointer;
  user-select: none;
  display: none;
  background: linear-gradient(135deg, #333, #555);
  border: 2px solid #fff;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background 0.3s ease;
  z-index: 10;
  touch-action: manipulation; /* voor mobiel tikken */
}

.arrow.visible {
  display: block;
}

.arrow.left {
    top: 80%;
    left: 10px;
    transform: translateY(-50%);
}

.arrow.right {
    top: 80%;
    right: 10px;
    transform: translateY(-50%);
}

.arrow.down {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.arrow.left:hover {
  background: linear-gradient(135deg, #555, #777);
  transform: translateY(-50%) scale(1.05);
}

.arrow.right:hover {
  background: linear-gradient(135deg, #555, #777);
  transform: translateY(-50%) scale(1.05);
}

.arrow.down:hover {
  background: linear-gradient(135deg, #555, #777);
  transform: translateX(-50%) scale(1.05);
}

.arrow svg {
  width: 20px;
  height: 20px;
  fill: white;
}



/* === CLOSE BUTTON ON INFO SCREEN === */
.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s ease, transform 0.2s ease;
  z-index: 20;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.close-btn:active {
  transform: scale(0.95);
}


/* === GALLERY === */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 25px;
  width: 100%;
  max-width: 800px;
}

.gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0,0,0,0.6);
}



/* === LIGHTBOX === */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.lightbox.visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.lightbox img:hover {
  transform: scale(1.02);
}

/* Close (X) button inside lightbox */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}


/* Lightbox navigation arrows */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  text-align: center;
  line-height: 55px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  z-index: 1001;
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-arrow.left {
  left: 40px;
}

.lightbox-arrow.right {
  right: 40px;
}


body.mobile-mode .screen {
  transition: none !important;
}

/* === MOBIELE WEERGAVE === */
@media (max-width: 768px) {
  body {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .screen {
    position: static;
    width: 100%;
    height: auto;
    left: 0 !important;
    top: 0 !important;
    transform: none !important;
    transition: none !important;
    display: block;
    padding: 20px;
  }

  .content-box {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    max-width: 100%;
    margin: 20px auto;
    box-shadow: none;
  }

  .project-grid {
    flex-direction: column;
    align-items: center;
  }

  .project-card {
    width: 90%;
    height: auto;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .gallery img {
    height: auto;
    width: 100%;
  }

  /* Verberg navigatiepijlen */
  .arrow {
    display: none !important;
  }

  /* Info-afbeeldingen netjes stapelen */
  .info-images {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .info-img {
    max-width: 90% !important;
    position: static;
    transform: none;
  }

  /* Lichtbak overgangen uit */
  .lightbox {
    transition: none;
  }
}
