/* Kidzofy Website - Animation Styles */

/* ============================================
   Gradient Animation
   ============================================ */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero {
  background-size: 200% 200%;
  animation: gradient-shift 15s ease infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero {
    animation: none;
  }
}

/* ============================================
   Sparkle Animation
   ============================================ */
@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(180deg);
  }
}

.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--kidzo-orange);
  border-radius: 50%;
  animation: sparkle 2s ease-in-out infinite;
}

.sparkle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.sparkle:nth-child(2) {
  top: 30%;
  right: 15%;
  animation-delay: 0.3s;
}

.sparkle:nth-child(3) {
  bottom: 25%;
  left: 20%;
  animation-delay: 0.6s;
}

.sparkle:nth-child(4) {
  bottom: 35%;
  right: 10%;
  animation-delay: 0.9s;
}

.sparkle:nth-child(5) {
  top: 50%;
  left: 50%;
  animation-delay: 1.2s;
}

.sparkle:nth-child(6) {
  top: 60%;
  right: 30%;
  animation-delay: 1.5s;
}

/* ============================================
   Fade In Animation
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-up-delay-1 {
  animation: fadeInUp 0.6s ease-out 0.1s forwards;
  opacity: 0;
}

.fade-in-up-delay-2 {
  animation: fadeInUp 0.6s ease-out 0.2s forwards;
  opacity: 0;
}

.fade-in-up-delay-3 {
  animation: fadeInUp 0.6s ease-out 0.3s forwards;
  opacity: 0;
}

/* ============================================
   Rainbow Bubble Animation
   ============================================ */
@keyframes bubble-float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-15px) scale(1.05);
  }
}

.rainbow-bubble {
  animation: bubble-float 3s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .rainbow-bubble {
    animation: none;
  }
}

/* ============================================
   Pulse Animation
   ============================================ */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

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

/* ============================================
   Shimmer Animation
   ============================================ */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 3s infinite;
}

/* ============================================
   Scroll Reveal (Triggered by JS)
   ============================================ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   Button Hover Effects
   ============================================ */
@keyframes button-glow {
  0%, 100% {
    box-shadow: 0 4px 6px -1px rgba(124, 58, 237, 0.3);
  }
  50% {
    box-shadow: 0 10px 15px -3px rgba(124, 58, 237, 0.5);
  }
}

.btn-primary:hover {
  animation: button-glow 1.5s ease-in-out infinite;
}

/* ============================================
   Card Hover Animation
   ============================================ */
.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.feature-card:hover::before {
  left: 100%;
}

