/* ===== Skybox Section ===== */
.skybox-section {
  padding: 0;
  background: var(--black-soft);
  min-height: 70vh;
}

.skybox-container {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
}

.skybox-image {
  position: relative;
  height: 100%;
  min-height: 70vh;
  width: 100%;
  overflow: hidden;
}

.skybox-image,
.skybox-slideshow,
.slide {
  overflow: hidden;
  max-width: 100%;
}

/* Slideshow container */
.skybox-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 70vh;
}

/* Individual slides */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out; /* Snellere overgang voor consistentie */
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

/* Fade-overlay op de afbeelding */
.skybox-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(14, 14, 15, 0.7) 0%,
    rgba(14, 14, 15, 0) 100%
  );
  pointer-events: none;
  z-index: 3;
}

/* Slide dots/indicators */
.slide-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 4;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active {
  background: var(--orange);
  transform: scale(1.2);
}

.dot:hover {
  background: var(--orange);
}

/* Skybox Content */
.skybox-content {
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  margin: 0;
  backdrop-filter: none;
}

.skybox-title {
  font-size: clamp(2.88rem, 6.6vw, 4.8rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: var(--orange);
}

.skybox-text {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 1.2rem;
}

/* ===== Skybox Grid Boxen ===== */
.skybox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-top: 1.5rem;
  max-width: 480px;
}

.skybox-box {
  background: linear-gradient(160deg, rgba(245, 166, 35, 0.12), rgba(245, 166, 35, 0.03));
  border: 1px solid rgba(245, 166, 35, 0.22);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  cursor: default;
}

.skybox-box:hover {
  background: linear-gradient(160deg, rgba(245, 166, 35, 0.22), rgba(245, 166, 35, 0.06));
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(245, 166, 35, 0.18);
}

.box-content {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.box-content .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 0.7rem;
  background: rgba(245, 166, 35, 0.15);
  border-radius: 10px;
}

.box-content .icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.box-content .title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.35rem;
  letter-spacing: 0.2px;
}

.box-content .desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ===== Skybox Content Fade Animatie ===== */
.skybox-content .skybox-title,
.skybox-content .skybox-text,
.skybox-content .skybox-grid {
  opacity: 0;
  transform: translateX(60px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

/* Gestaffelde vertraging (rechts -> links voelt vloeiend) */
.skybox-content .skybox-title { transition-delay: 0s; }
.skybox-content .skybox-text  { transition-delay: 0.15s; }
.skybox-content .skybox-grid  { transition-delay: 0.3s; }

/* Zichtbaar - schuift van rechts naar zijn plek + fade in */
.skybox-content.visible .skybox-title,
.skybox-content.visible .skybox-text,
.skybox-content.visible .skybox-grid {
  opacity: 1;
  transform: translateX(0);
}

/* Respecteer gebruikersvoorkeur voor minder beweging */
@media (prefers-reduced-motion: reduce) {
  .skybox-content .skybox-title,
  .skybox-content .skybox-text,
  .skybox-content .skybox-grid {
    transition: opacity 0.4s ease;
    transform: none;
  }
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .skybox-container {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .skybox-section {
    min-height: auto;
  }

  .skybox-image {
    min-height: 300px;
    height: 300px;
  }

  .skybox-slideshow {
    min-height: 300px;
    height: 300px;
  }

  .slide {
    min-height: 300px;
    height: 300px;
  }

  .skybox-fade {
    background: linear-gradient(
      to bottom,
      rgba(14, 14, 15, 0) 0%,
      rgba(14, 14, 15, 0.7) 100%
    );
  }

  .skybox-content {
    padding: 3rem 1.5rem;
    margin: 0;
  }

  .slide-dots {
    bottom: 15px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .skybox-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    max-width: 100%;
  }

  .skybox-box {
    padding: 1.1rem 1rem;
  }

  .box-content .icon {
    width: 32px;
    height: 32px;
    margin-bottom: 0.6rem;
  }

  .box-content .icon img {
    width: 16px;
    height: 16px;
  }

  .box-content .title {
    font-size: 0.95rem;
  }

  .box-content .desc {
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .skybox-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }

  .skybox-box {
    padding: 0.9rem 0.8rem;
  }

  .box-content .icon {
    width: 28px;
    height: 28px;
    margin-bottom: 0.5rem;
  }

  .box-content .icon img {
    width: 14px;
    height: 14px;
  }

  .box-content .title {
    font-size: 0.85rem;
  }

  .box-content .desc {
    font-size: 0.72rem;
  }
}
