/* Hero Section */
.hero-section {
  height: 70vh;
  background: url('assets/images/hero-bg.jpg') no-repeat center center/cover;
  position: relative;
  overflow: visible; /* penting agar meteor & gambar tidak terpotong */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}

/* Konten Hero */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Teks Hero */
.welcome-title {
  font-size: 3rem;
  font-weight: 700;
  color: #d4af37;
  position: relative;
  display: inline-block;
  text-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700;
}

/* Meteor bergerak */
.meteor-text::before, .meteor-text::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 60px;
  background: linear-gradient(45deg, #fff, rgba(255,255,255,0));
  transform: rotate(45deg);
  opacity: 0.8;
}

.meteor-text::before {
  top: -20px;
  left: -50px;
  animation: meteorMove 2s linear infinite;
}

.meteor-text::after {
  top: -30px;
  left: -70px;
  animation: meteorMove 2.5s linear infinite;
  animation-delay: 1s;
}

@keyframes meteorMove {
  0% { transform: translate(0,0) rotate(45deg); opacity:0; }
  10% { opacity:1; }
  50% { transform: translate(300px,150px) rotate(45deg); opacity:0.8; }
  100% { transform: translate(600px,300px) rotate(45deg); opacity:0; }
}

/* Tombol Hero */
.btn-gold {
  background-color: #d4af37;
  color: #000;
  font-weight: bold;
  border: none;
  padding: 0.75rem 1.5rem;
  transition: 0.3s;
}

.btn-gold:hover {
  background-color: #ffd700;
  color: #000;
  transform: scale(1.05);
}

/* Gambar Hero */
.animated-hero {
  opacity: 0;
  animation: heroImageIntro 2s forwards;
}

.rotating-hero {
  width: 350px;
  max-width: 100%;
  border-radius: 15px;
  transform-origin: center center;
  animation: rotateHero 20s linear infinite;
}

.floating-hero {
  animation: floatHero 4s ease-in-out infinite alternate, rotateHero 20s linear infinite;
}

/* Animasi Fade-In Gambar */
@keyframes heroImageIntro {
  0% { opacity:0; transform: translateX(50px) scale(0.9); }
  100% { opacity:1; transform: translateX(0) scale(1); }
}

/* Animasi Floating */
@keyframes floatHero {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Rotasi Gambar */
@keyframes rotateHero {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
  }
  .welcome-title {
    font-size: 2.2rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
}
.hero-image img {
  position: relative; /* pastikan di atas overlay */
  z-index: 2;         /* hero-content sudah z-index 2, gambar ikut */
  width: 350px;
  max-width: 100%;
  border-radius: 15px;
  opacity: 0;
  animation: heroImageIntro 2s forwards;
}
