/* Custom CSS for animations and effects */

/* Cartoon-style animations */
@keyframes bounce-gentle {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes wiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-3deg);
  }
  75% {
    transform: rotate(3deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-10px) rotate(1deg);
  }
  66% {
    transform: translateY(5px) rotate(-1deg);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(206, 35, 253, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(206, 35, 253, 0.6);
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce-in {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.bounce-gentle {
  animation: bounce-gentle 3s ease-in-out infinite;
}

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

.float {
  animation: float 4s ease-in-out infinite;
}

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

/* Cartoon-style shadows */
.cartoon-shadow {
  box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.1);
}

.cartoon-shadow-lg {
  box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.1);
}

.cartoon-shadow-primary {
  box-shadow: 8px 8px 0px rgba(206, 35, 253, 0.2);
}

.cartoon-shadow-accent {
  box-shadow: 8px 8px 0px rgba(255, 147, 80, 0.2);
}

/* Fun background patterns */
.dots-pattern {
  background-image: radial-gradient(circle, rgba(206, 35, 253, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.waves-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ce23fd' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom focus styles */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #ce23fd !important;
  box-shadow: 0 0 0 3px rgba(206, 35, 253, 0.1);
}

/* Star fill effect */
.star-filled {
  fill: currentColor;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cartoon-shadow-lg {
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.1);
  }

  .cartoon-shadow {
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
  }
}

/* Loading animation for form submission */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Intersection Observer animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
