/* Scroll Animations */

/* Base animation states */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

.slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}

.slide-left.animate {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease;
}

.slide-right.animate {
  opacity: 1;
  transform: translateX(0);
}

.slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.7s ease;
}

.slide-up.animate {
  opacity: 1;
  transform: translateY(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s ease;
}

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

.rotate-in {
  opacity: 0;
  transform: rotate(10deg) scale(0.8);
  transition: all 0.8s ease;
}

.rotate-in.animate {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Stagger animations for multiple elements */
.stagger-1 {
  transition-delay: 0.1s;
}

.stagger-2 {
  transition-delay: 0.2s;
}

.stagger-3 {
  transition-delay: 0.3s;
}

.stagger-4 {
  transition-delay: 0.4s;
}

.stagger-5 {
  transition-delay: 0.5s;
}

.stagger-6 {
  transition-delay: 0.6s;
}

.stagger-7 {
  transition-delay: 0.7s;
}

.stagger-8 {
  transition-delay: 0.8s;
}

.stagger-9 {
  transition-delay: 0.9s;
}

.stagger-10 {
  transition-delay: 1s;
}

/* Section title animations */
.section-title {
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.6s ease;
}

.section-title.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Special animation for review slider */
.reviews-slider {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reviews-slider.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Instagram photo animations */
.insta-photo {
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition: all 0.5s ease;
}

.insta-photo.animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Contact info card animations */
.info-card {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

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

/* Mobile animation optimizations */
@media (max-width: 768px) {
  .fade-in,
  .slide-left,
  .slide-right,
  .slide-up,
  .scale-in,
  .rotate-in,
  .section-title,
  .reviews-slider,
  .insta-photo,
  .info-card {
    transition-duration: 0.4s; /* Faster animations on mobile */
  }

  .floating {
    animation-duration: 4s; /* Slower floating on mobile */
  }

  /* Reduce complex animations on mobile */
  .rotate-in {
    opacity: 0;
    transform: translateY(30px); /* Simplified to just slide up */
    transition: all 0.4s ease;
  }

  .rotate-in.animate {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Very small screens - minimal animations */
@media (max-width: 480px) {
  .fade-in,
  .slide-left,
  .slide-right,
  .slide-up,
  .scale-in,
  .rotate-in,
  .section-title,
  .reviews-slider,
  .insta-photo,
  .info-card {
    transition-duration: 0.3s; /* Even faster on small screens */
  }

  .floating {
    animation: none; /* Disable floating on very small screens */
  }

  /* Simplified animations only */
  .slide-left,
  .slide-right {
    transform: translateY(20px); /* Convert to simple slide up */
  }

  .slide-left.animate,
  .slide-right.animate {
    transform: translateY(0);
  }
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .slide-left,
  .slide-right,
  .slide-up,
  .scale-in,
  .rotate-in,
  .section-title,
  .reviews-slider,
  .insta-photo,
  .info-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .floating {
    animation: none;
  }
}
