/* ============================================================
   LETAP FISHING — Animations
   animations.css
   ============================================================ */

/* ─── KEYFRAMES ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes wave {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(0.7); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes borderGlow {
  0%, 100% { border-color: rgba(197,151,62,0.15); }
  50%       { border-color: rgba(197,151,62,0.5); }
}

/* ─── HERO ENTRANCE ANIMATIONS ─── */
.anim-fade-up   { animation: fadeUp  0.8s ease both; }
.anim-fade-in   { animation: fadeIn  0.8s ease both; }
.anim-scale-in  { animation: scaleIn 0.8s ease both; }

.anim-delay-1 { animation-delay: 0.15s; }
.anim-delay-2 { animation-delay: 0.30s; }
.anim-delay-3 { animation-delay: 0.45s; }
.anim-delay-4 { animation-delay: 0.60s; }
.anim-delay-5 { animation-delay: 0.75s; }

/* ─── SCROLL REVEAL ─── */
/* Applied by main.js via IntersectionObserver */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays for grid children */
.stagger-children > *:nth-child(1) { transition-delay: 0.00s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.40s; }

/* ─── SCROLL INDICATOR ─── */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(122,143,166,0.8);
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, #C5973E, transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ─── WAVE ─── */
.wave-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  overflow: hidden;
  pointer-events: none;
}
.wave-wrap svg {
  width: 200%;
  animation: wave 14s linear infinite;
  height: 220px;
  display: block;
}

/* ─── GOLD LINE ACCENT ─── */
.gold-line {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.75rem 0;
}
.gold-line-center {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.75rem auto;
}

/* ─── HOVER UNDERLINE ─── */
.hover-gold {
  position: relative;
  display: inline-block;
}
.hover-gold::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 100%;
  height: 1px;
  background: var(--gold);
  transition: right 0.3s ease;
}
.hover-gold:hover::after { right: 0; }

/* ─── CARD HOVER ACCENT LINE ─── */
.card-accent {
  position: relative;
  overflow: hidden;
}
.card-accent::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.card-accent:hover::after { transform: scaleX(1); }

/* ─── FLOATING BADGE ─── */
.float-badge {
  animation: float 3.5s ease-in-out infinite;
}

/* ─── PAGE TRANSITIONS ─── */
#page-transition {
  position: fixed;
  inset: 0;
  background: #08111F;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
#page-transition.pt-ready {
  opacity: 0;
  pointer-events: none;
}
