/* ========================================
   FLOATING LEAVES
   ======================================== */
.floating-leaf {
  position: absolute;
  font-size: 2rem;
  opacity: 0.15;
  pointer-events: none;
  animation: floatLeaf 20s ease-in-out infinite;
}

.leaf-1 {
  top: 15%;
  left: 5%;
  animation-delay: 0s;
  animation-duration: 22s;
}

.leaf-2 {
  top: 60%;
  right: 8%;
  animation-delay: -5s;
  animation-duration: 18s;
}

.leaf-3 {
  bottom: 20%;
  left: 15%;
  animation-delay: -10s;
  animation-duration: 25s;
}

.leaf-4 {
  top: 30%;
  right: 20%;
  animation-delay: -15s;
  animation-duration: 20s;
}

@keyframes floatLeaf {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(15px, -20px) rotate(5deg);
  }
  50% {
    transform: translate(-10px, -35px) rotate(-3deg);
  }
  75% {
    transform: translate(20px, -15px) rotate(7deg);
  }
}

/* ========================================
   FADE-IN ANIMATIONS
   ======================================== */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.animate-fade-up-delay {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease 0.3s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Staggered children */
.animate-on-scroll:nth-child(2) {
  transition-delay: 0.1s;
}

.animate-on-scroll:nth-child(3) {
  transition-delay: 0.2s;
}

.animate-on-scroll:nth-child(4) {
  transition-delay: 0.3s;
}

.animate-on-scroll:nth-child(5) {
  transition-delay: 0.4s;
}

.animate-on-scroll:nth-child(6) {
  transition-delay: 0.5s;
}

.animate-on-scroll:nth-child(7) {
  transition-delay: 0.55s;
}

.animate-on-scroll:nth-child(8) {
  transition-delay: 0.6s;
}

/* ========================================
   HOVER EFFECTS
   ======================================== */
@keyframes subtlePulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(59, 181, 74, 0.15);
  }
  50% {
    box-shadow: 0 4px 30px rgba(59, 181, 74, 0.25);
  }
}

.live-chat-btn {
  animation: subtlePulse 3s ease-in-out infinite;
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }

  .animate-fade-up,
  .animate-fade-up-delay {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .floating-leaf {
    display: none;
  }
}