/* === 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;
  min-height: 320px; /* Changed height to min-height so content won't overflow */
  display: flex;
  flex-direction: column;
  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;
  box-sizing: border-box;
}

.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 (FULL VERTICAL STACK) === */
@media (max-width: 768px) {
  html, body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    position: relative !important;
  }


  .mobile-banner {
    display: flex;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  .mobile-banner h1 {
    font-size: 20px;
    margin: 0;
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }


  /* Reset all full-screen slides into normal vertical sections */
  .screen {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    transition: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 40px 20px !important;
    box-sizing: border-box;
  }

  /* --- 1. HOME & PROJECTS (SCREEN 2) --- */
  #screen2 {
    padding-top: 50px !important;
  }

  .logo {
    font-size: 42px;
    margin-bottom: 15px;
  }

  .description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .project-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    width: 100% !important;
    align-items: center !important;
  }

  .project-card {
    width: 100% !important;
    max-width: 400px !important;
    height: auto !important;
    min-height: initial !important;
    box-sizing: border-box;
  }

  /* --- 2 & 3. GALLERIES (SCREEN 1 & SCREEN 3) --- */
  .content-box {
    position: relative !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 25px 20px !important;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .gallery {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* 2-column image grid */
    gap: 10px !important;
    margin-top: 20px !important;
    width: 100% !important;
  }

  .gallery img {
    width: 100% !important;
    height: 120px !important;
    object-fit: cover !important;
  }

  /* --- 4. INFORMATION (SCREEN 4) --- */
  #screen4 {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  /* Images inside Info placed neatly under the text box */
  .info-images {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .info-img.top,
  .info-img.right {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 300px !important;
    object-fit:cover ;
    opacity: 1 !important;
    border-radius: 12px;
  }

  /* Hide Desktop navigation arrows & unused containers */
  .arrow,
  .close-btn,
  .information-box {
    display: none !important;
  }

  .gallery {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch;
    gap: 15px !important;
    padding: 10px 0 20px 0 !important;
    width: 100% !important;

    /* Hide scrollbars for a clean UI */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .gallery::-webkit-scrollbar {
    display: none;
  }

  .gallery img {
    /* 80% width leaves 20% showing the NEXT image edge, making scrolling obvious */
    flex: 0 0 80% !important;
    scroll-snap-align: center !important;

    /* Display full image proportions without cropping/squishing */
    height: auto !important;
    max-height: 350px !important;
    object-fit: contain !important; /* Preserves exact aspect ratio */

    background: rgba(0, 0, 0, 0.4); /* Subtle backing for vertical/tall photos */
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
  }

.lightbox {
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.95) !important;
  }

  .lightbox img {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: contain !important; /* Fills as much of the screen as possible without cropping */
    border-radius: 0 !important;   /* Edge-to-edge look */
    box-shadow: none !important;
  }

  /* Reposition close & arrow buttons so they overlay nicely over the large image */
  .lightbox-close {
    top: 20px !important;
    right: 20px !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 32px !important;
    line-height: 42px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    z-index: 1002 !important;
  }

  .lightbox-arrow {
    width: 48px !important;
    height: 48px !important;
    line-height: 44px !important;
    font-size: 26px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
  }

  .lightbox-arrow.left {
    left: 10px !important;
  }

  .lightbox-arrow.right {
    right: 10px !important;
  }
}
