/* =========================
   Meet Neo. Let's follow the white rabbit :)
   Author: Qbit
   Build Date: 14/07/2026
   Version: 1.0.1

   File path: /css/custom.min.css

   Updated on 14/07/2026: Made the carousel match the detected viewport height on desktop and mobile.
========================= */

/* =========================
   Carousel variables
========================= */

:root {
  --viewport-height: 100vh;
  --carousel-height: var(--viewport-height);
  --carousel-overlay: rgba(0, 0, 0, .42);
  --carousel-control: rgba(0, 0, 0, .45);
  --carousel-control-hover: rgba(0, 0, 0, .7);
}

/* =========================
   Carousel styles
========================= */

.carousel {
  width: 100%;
  height: var(--carousel-height);
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  margin-bottom: 50px;
  color: #fff;
  position: relative;
  isolation: isolate;
  background: #171717;
}

.banners {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .65s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.banner {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.banner-media,
.banner-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.banner-media img {
  object-fit: cover;
}

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--carousel-overlay);
  z-index: 1;
}

.content {
  width: min(90%, 900px);
  line-height: 1.5;
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 24px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s ease .18s, transform .45s ease .18s;
}

.banner.is-active .content {
  opacity: 1;
  transform: none;
}

.content h1 {
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.05;
  margin: 0 0 18px;
  color: #fff;
  text-wrap: balance;
}

.content p {
  font-size: clamp(1rem, 2vw, 1.45rem);
  margin: 0 auto 30px;
  max-width: 760px;
}

.content .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: background .2s, color .2s, transform .2s;
}

.content .btn:hover,
.content .btn:focus-visible {
  background: #fff;
  color: #111;
  transform: translateY(-2px);
}

/* =========================
   Carousel controls
========================= */

.carousel-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--carousel-control);
  color: #fff;
  font-size: 25px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s, transform .2s;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  background: var(--carousel-control-hover);
  transform: translateY(-50%) scale(1.06);
}

.carousel-arrow--prev {
  left: 20px;
}

.carousel-arrow--next {
  right: 20px;
}

.carousel-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.carousel-dot.is-active {
  background: #fff;
  transform: scale(1.18);
}

.carousel :focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* =========================
   Responsive styles
========================= */

@media (max-width: 768px) {

  .content {
    width: 92%;
    padding: 20px 52px;
  }

  .content h1 {
    font-size: clamp(1.8rem, 8vw, 2.7rem);
  }

  .content p {
    font-size: 1rem;
  }

  .carousel-arrow {
    width: 42px;
    height: 42px;
  }

  .carousel-arrow--prev {
    left: 10px;
  }

  .carousel-arrow--next {
    right: 10px;
  }

}

@media (max-width: 480px) {

  .content {
    padding: 20px 42px;
  }

  .carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .carousel-dots {
    bottom: 18px;
  }

}

/* =========================
   Reduced motion styles
========================= */

@media (prefers-reduced-motion: reduce) {

  .banners,
  .content,
  .carousel-arrow,
  .carousel-dot,
  .content .btn {
    transition: none !important;
  }

}
