/* ============================================
   STREETLAMP BOOKS - Animations
   ============================================ */

/* ---- Hero Entrance Animations ---- */
.hero-logo-entrance {
  animation: fadeSlideUp 0.8s ease-out 0.2s both;
}

.hero-title-entrance {
  animation: fadeSlideUp 0.8s ease-out 0.2s both;
}

.hero-tagline-entrance {
  animation: fadeSlideUp 0.8s ease-out 0.5s both;
}

.hero-subtitle-entrance {
  animation: fadeSlideUp 0.8s ease-out 0.8s both;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---- Scroll Bounce (Hero scroll indicator) ---- */
.scroll-bounce {
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* ---- Lamp Glow ---- */
.lamp-icon {
  animation: lampGlow 3s ease-in-out infinite;
}

@keyframes lampGlow {
  0%, 100% {
    filter: drop-shadow(0 0 6px rgba(245, 183, 49, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 18px rgba(245, 183, 49, 0.7));
  }
}

/* ---- Floating Particles ---- */
@keyframes float-up {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translateY(90vh) scale(1);
  }
  90% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-10vh) scale(0.5);
    opacity: 0;
  }
}

/* ---- Counter Animation ---- */
.counter-animate {
  animation: counterPop 0.3s ease-out;
}

@keyframes counterPop {
  0% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* ---- Card Hover Lift ---- */
@keyframes gentleLift {
  from {
    transform: translateY(0);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }
  to {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  }
}

/* ---- Fade In Up (for dynamically added elements) ---- */
.fade-in-up {
  animation: fadeInUp 0.5s ease-out both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Testimonial Slide ---- */
.testimonial-enter {
  animation: testimonialEnter 0.5s ease-out;
}

@keyframes testimonialEnter {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ---- Pulse (for notifications/badges) ---- */
.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  .hero-logo-entrance,
  .hero-title-entrance,
  .hero-tagline-entrance,
  .hero-subtitle-entrance {
    animation: none;
    opacity: 1;
  }

  .scroll-bounce {
    animation: none;
  }

  .lamp-icon {
    animation: none;
  }

  .fade-in-up {
    animation: none;
    opacity: 1;
  }

  .testimonial-enter {
    animation: none;
    opacity: 1;
  }

  .pulse {
    animation: none;
  }
}
