/* Custom styles for A J's Lawn Service */

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

/* Scroll indicator animation */
@keyframes scrollIndicator {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}
.animate-scroll-indicator {
  animation: scrollIndicator 1.2s ease-in-out infinite;
}

/* Floating card animation */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(0deg); }
}
.floating-card {
  animation: float 4s ease-in-out infinite;
}
.floating-card:nth-child(2) {
  animation-delay: -1.3s;
  animation-duration: 4.5s;
}
.floating-card:nth-child(3) {
  animation-delay: -2.6s;
  animation-duration: 3.8s;
}

/* Service card hover */
.service-card {
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
}

/* Testimonial card hover */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -20px rgba(125, 60, 152, 0.15);
}

/* Gallery hover */
.gallery-item {
  position: relative;
}

/* Navigation scroll state */
nav.scrolled {
  background: rgba(250, 244, 251, 0.9);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(125, 60, 152, 0.08);
}

/* Fade-in animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile link hover */
.mobile-link {
  position: relative;
}
.mobile-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #b87ec4;
  transition: width 0.3s ease;
}
.mobile-link:hover::after {
  width: 100%;
}

/* Selection color */
::selection {
  background: #e8d1ef;
  color: #3d1e4a;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf4fb;
}
::-webkit-scrollbar-thumb {
  background: #d4aedf;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b87ec4;
}
