/* ============================================================
   BLINKUIS — Animations & Scroll Effects
   ============================================================ */

/* --- Fade In Up (default scroll animation) --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Fade In --- */
.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
}

/* --- Fade In Left --- */
.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Fade In Right --- */
.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Scale In --- */
.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* --- Stagger delays for children --- */
.stagger-children > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children > *:nth-child(2) { transition-delay: 100ms; }
.stagger-children > *:nth-child(3) { transition-delay: 200ms; }
.stagger-children > *:nth-child(4) { transition-delay: 300ms; }
.stagger-children > *:nth-child(5) { transition-delay: 400ms; }
.stagger-children > *:nth-child(6) { transition-delay: 500ms; }

/* --- Hero entrance animation --- */
.hero-enter {
  opacity: 0;
  transform: translateY(20px);
}

.hero-enter.animate {
  animation: heroFadeIn 0.8s ease forwards;
}

.hero-enter:nth-child(2) { animation-delay: 150ms; }
.hero-enter:nth-child(3) { animation-delay: 300ms; }
.hero-enter:nth-child(4) { animation-delay: 450ms; }

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Image load fade --- */
.img-fade {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.img-fade.loaded {
  opacity: 1;
}

/* --- Floating steam particles (decorative) --- */
@keyframes steamFloat {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.8);
  }
  20% {
    opacity: 0.6;
  }
  80% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translateY(-120px) scale(1.3) translateX(20px);
  }
}

.steam-particle {
  position: absolute;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, rgba(168, 219, 240, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: steamFloat 4s ease-in-out infinite;
}

.steam-particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 3.5s; }
.steam-particle:nth-child(2) { left: 30%; animation-delay: 0.8s; animation-duration: 4.2s; }
.steam-particle:nth-child(3) { left: 50%; animation-delay: 1.5s; animation-duration: 3.8s; }
.steam-particle:nth-child(4) { left: 70%; animation-delay: 2.2s; animation-duration: 4.5s; }
.steam-particle:nth-child(5) { left: 85%; animation-delay: 0.5s; animation-duration: 3.2s; }

/* --- Counter animation (used by JS) --- */
.counter {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-extrabold);
  color: var(--color-primary);
  line-height: 1;
}

/* --- Link underline animation --- */
.animated-link {
  position: relative;
  display: inline-block;
}

.animated-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.animated-link:hover::after {
  width: 100%;
}

/* --- Pulse (for accents) --- */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* --- Section wave gentle move --- */
@keyframes waveGently {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-15px); }
}

.wave-animate {
  animation: waveGently 8s ease-in-out infinite;
}
