.main-slider-two {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background: rgba(32, 119, 171, 0.377); */
  /* background: rgba(0, 0, 0, 0.575); */
  background-image: linear-gradient(
    to bottom,
    rgba(64,184,248,0)   0%,   /* 0‑40 %: full transparan */
    rgba(64,184,248,0)  40%,
    rgba(64,184,248,.18) 55%,  /* 40‑55 %: mulai tipis */
    rgba(64,184,248,.38) 70%,  /* 55‑70 %: opasitas asli */

    rgba(243, 243, 243,1) 100%   /* 70‑100 %: putih pekat */
  );
  z-index: 1;

}


.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  /* semua pakai animasi yang sama  */
  animation: slideshow var(--total-duration) linear infinite;
  animation-delay: calc(var(--i) * var(--slideDuration));
  transition: none;                /* tidak perlu lagi */
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* gradasi foreground (tetap) */
.slide::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(
    to bottom,
    rgba(64,184,248,0)   0%,
    rgba(64,184,248,0)  40%,
    rgba(64,184,248,.18) 55%,
    rgba(64,184,248,.38) 70%,
    rgba(243,243,243,1) 100%
  );
}

/* satu‑satunya keyframes */
@keyframes slideshow{
  /*  0‑20 %: slide terlihat   */
  0%   { opacity:1; }
  20%  { opacity:1; }
  /* 25 % mulai fade out */
  25%  { opacity:0; }
  /* 100 % tetap 0 — slide lain mengambil giliran */
  100% { opacity:0; }
}
.text-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  width: 90%;
  max-width: 900px;
  padding: 20px;
}

.main-title {
  font-size: 48px;
  font-weight: bold;
  color: var(--pitoon-white);
  /* text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8); */
  margin-bottom: 20px;
  line-height: 1.2;
  animation: fadeInUp 2s ease-out;
}

.sub-title {
  font-size: 2rem;
  color: var(--pitoon-white);
  /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); */
  font-weight: 300;
  margin-bottom: 40px;
  animation: fadeInUp 2s ease-out 0.5s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 768px) {
  .main-title {
    font-size: 2.8rem;
  }
  .sub-title {
    font-size: 1.5rem;
  }
}
.scroll-down{
  position: absolute;              /* tempel di slider */
  bottom: 10px;                    /* jarak dari dasar layar */
  left: 50%;
  transform: translateX(-50%);     /* pusatkan secara horizontal */
  z-index: 20;

  animation: bounceDown 2s infinite ease-in-out;
  cursor: pointer;
}

.scroll-down:hover{
  animation-play-state: paused;    /* berhenti saat hover */
  transform: translate(-50%, 6px) scale(1.05);
  transition: transform .3s;
}

@keyframes bounceDown{
  0%, 20%, 50%, 80%, 100%{
    transform: translate(-50%, 0);        /* posisi awal */
  }
  40%{
    transform: translate(-50%, 10px);     /* turun jauh */
  }
  60%{
    transform: translate(-50%, 6px);      /* sedikit naik */
  }
}
