/* =========================================================
   HIPMI Kalimantan Barat — Animations & transitions
   ========================================================= */

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spinSlow { to { transform: translateY(-50%) rotate(360deg); } }
@keyframes pulseGold { 0% { box-shadow: 0 0 0 0 rgba(201,164,92,.55); } 70% { box-shadow: 0 0 0 16px rgba(201,164,92,0); } 100% { box-shadow: 0 0 0 0 rgba(201,164,92,0); } }
@keyframes shine { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Hero entrance — plays on active slide */
.hero-slide .hero-badge, .hero-slide .hero-title, .hero-slide .lead, .hero-slide .hero-actions { opacity: 0; }
.hero-slide.swiper-slide-active .hero-badge { animation: fadeUp .8s var(--ease) .15s forwards; }
.hero-slide.swiper-slide-active .hero-title { animation: fadeUp .9s var(--ease) .3s forwards; }
.hero-slide.swiper-slide-active .lead { animation: fadeUp .9s var(--ease) .5s forwards; }
.hero-slide.swiper-slide-active .hero-actions { animation: fadeUp .9s var(--ease) .7s forwards; }
/* Fallback when Swiper is not available */
.no-swiper .hero-slide .hero-badge, .no-swiper .hero-slide .hero-title,
.no-swiper .hero-slide .lead, .no-swiper .hero-slide .hero-actions { opacity: 1; animation: fadeUp .9s var(--ease) both; }

.hero-deco { animation: spinSlow 80s linear infinite; }
.play-btn { animation: pulseGold 2.2s infinite; }
.wa-float { animation: pulseGold 2.6s infinite; }
.exp-badge { animation: floatY 5s ease-in-out infinite; }

.page-hero h1, .page-hero p, .page-hero .breadcrumb { animation: fadeUp .8s var(--ease) both; }
.page-hero p { animation-delay: .12s; }
.page-hero .breadcrumb { animation-delay: .22s; }

.btn-gold:hover { background-image: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); background-size: 200% 100%; background-repeat: no-repeat; animation: shine 1s var(--ease) both; }

/* Simple reveal used when AOS is unavailable */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

.fade-in { animation: fadeIn .5s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero-slide .hero-badge, .hero-slide .hero-title, .hero-slide .lead, .hero-slide .hero-actions { opacity: 1; }
}
