.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

body {
  min-height: max(884px, 100dvh);
}

.nav-item {
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.4s ease;
}

.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: #006633;
  transition: 0.3s;
}

.nav-item:hover::after {
  width: 100%;
}

/* ==========================
      SCROLL TO TOP
    ========================== */

#scrollTopBtn {
  transform: translateY(20px);
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scrollTopBtn:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* HEADER SCROLL */
#mainHeader {
  transition: transform 0.3s ease;
}

#mainHeader.header-hidden {
  transform: translateY(-100%);
}

#heroSection {
  transition: margin-top 0.3s ease;
}

#heroSection.hero-top {
  margin-top: 0;
}

/* HEADER SCROLL */
#mainHeader {
  transition: transform 0.3s ease;
}

#mainHeader.header-hidden {
  transform: translateY(-100%);
}

#heroSection.hero-top {
  margin-top: 0;
}

.hero-title {
  --hero-slide-distance: clamp(2rem, 8vw, 6rem);
  --hero-slide-exit: clamp(-6rem, -8vw, -2rem);
  display: block;
  width: fit-content;
  max-width: 100%;
  font-size: clamp(1.65rem, 6vw, 3rem);
  overflow-wrap: anywhere;
  text-wrap: balance;
  animation: slideLoop 8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  will-change: transform, opacity;
}

/* Masuk → Diam 3 detik → Keluar → Ulang */
@keyframes slideLoop {
  0% {
    opacity: 0;
    transform: translate3d(var(--hero-slide-distance), 0, 0);
  }

  14%,
  58% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  76%,
  100% {
    opacity: 0;
    transform: translate3d(var(--hero-slide-exit), 0, 0);
  }
}

@media (max-width: 480px) {
  .hero-title {
    width: 100%;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title {
    animation: none;
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}

.text-justify {
  text-align: justify;
}

#heroSection {
  transition: margin-top 0.3s ease;
}

#heroSection.hero-top {
  margin-top: 0;
}

