/* ------------------------------------------
   hero.css - Premium Hero Section Fix + Animasi
------------------------------------------- */

.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: #000;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.6);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.85));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 40px 20px;
  max-width: 700px;
  margin-top: -60px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.2;
  opacity: 0;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: #e0e0e0;
  margin-bottom: 30px;
  opacity: 0;
}

.countdown-boxes {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  opacity: 0;
}

.countdown-boxes .box {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 1.2rem;
  min-width: 75px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.countdown-boxes .box span {
  display: block;
  font-size: 0.8rem;
  color: #ccc;
  margin-top: 4px;
}

/* Hero muncul */
#hero.fade-in-hero {
  display: flex !important;
  animation: fadeHero 1.2s ease-in-out forwards;
}

@keyframes fadeHero {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Manual fallback animasi */
.hero-title.fade-slide-right {
  animation: slideRight .8s ease forwards;
}
.hero-subtitle.fade-slide-left {
  animation: slideLeft .8s ease forwards;
}
.countdown-boxes.fade-fade-in {
  animation: fadeIn .8s ease forwards;
}

@keyframes slideRight {
  from { transform: translateX(60px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideLeft {
  from { transform: translateX(-60px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive */
@media (max-width: 576px) {
  .hero-title {
    font-size: 2.4rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .countdown-boxes .box {
    padding: 10px 14px;
    font-size: 1rem;
  }
}
