/* Simple Scroll Animations CSS - Clean and Consistent */

/* Shining/Glowing Text Animation for Hero Title */
.shine-text {
  background: linear-gradient(
    120deg,
    transparent,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent,
    transparent
  );
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: shine 4s infinite;
  color: #fff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

@keyframes shine {
  0% {
    background-position: -220% 0;
  }
  50% {
    background-position: 220% 0;
  }
  100% {
    background-position: -220% 0;
  }
}

/* Wave-like glowing effect with light blue-green color */
.glow-text {
  animation: waveGlow 3s ease-in-out infinite;
}

@keyframes waveGlow {
  0% {
    text-shadow: 0 0 5px rgba(92, 179, 168, 0.3),
                 0 0 10px rgba(92, 179, 168, 0.2),
                 0 0 15px rgba(92, 179, 168, 0.1);
  }
  25% {
    text-shadow: 0 0 8px rgba(92, 179, 168, 0.5),
                 0 0 15px rgba(92, 179, 168, 0.3),
                 0 0 20px rgba(92, 179, 168, 0.2);
  }
  50% {
    text-shadow: 0 0 12px rgba(92, 179, 168, 0.7),
                 0 0 20px rgba(92, 179, 168, 0.4),
                 0 0 25px rgba(92, 179, 168, 0.3);
  }
  75% {
    text-shadow: 0 0 8px rgba(92, 179, 168, 0.5),
                 0 0 15px rgba(92, 179, 168, 0.3),
                 0 0 20px rgba(92, 179, 168, 0.2);
  }
  100% {
    text-shadow: 0 0 5px rgba(92, 179, 168, 0.3),
                 0 0 10px rgba(92, 179, 168, 0.2),
                 0 0 15px rgba(92, 179, 168, 0.1);
  }
}

/* Remove complex animations that might dismantle elements */
/* Keep only basic fade, slide, and zoom effects */

/* Enhanced hover effects for cards */
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.menu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.breed-card:hover,
.equipment-text:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Simple button hover effects */
.btn:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

/* Image loading transitions */
img {
  transition: opacity 0.4s ease;
}

/* Form field focus effects */
input:focus,
textarea:focus {
  transform: scale(1.01);
  box-shadow: 0 4px 15px rgba(92, 179, 168, 0.1);
  transition: all 0.3s ease;
}

/* Mobile optimizations - ensure animations don't break layout */
@media (max-width: 768px) {
  .service-card:hover,
  .menu-card:hover,
  .breed-card:hover {
    transform: none;
  }
  
  .btn:hover,
  .button:hover {
    transform: none;
  }
}

/* Custom Scroll Animation System */
/* Elements start hidden and animate in when scrolled into view */

.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.scroll-animate.fade-in {
  transform: translateY(50px);
}

.scroll-animate.slide-left {
  transform: translateX(-50px);
}

.scroll-animate.slide-right {
  transform: translateX(50px);
}

.scroll-animate.scale-up {
  transform: scale(0.8);
}

.scroll-animate.rotate-in {
  transform: rotate(-10deg) translateY(30px);
}

/* When element becomes visible */
.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1) rotate(0);
}

/* Staggered animations for multiple elements */
.scroll-animate.delay-1 { transition-delay: 0.1s; }
.scroll-animate.delay-2 { transition-delay: 0.2s; }
.scroll-animate.delay-3 { transition-delay: 0.3s; }
.scroll-animate.delay-4 { transition-delay: 0.4s; }
.scroll-animate.delay-5 { transition-delay: 0.5s; }

/* Special animations for cards */
.card-animate {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-animate.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Text reveal animation */
.text-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.text-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth performance optimizations */
.scroll-animate,
.card-animate,
.text-reveal {
  will-change: transform, opacity;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .scroll-animate,
  .card-animate,
  .text-reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}
