/* Lilly's Cleaning Cape Cod - Animations */

/* Fade In Animations */
@keyframes lc-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lc-fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes lc-fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes lc-fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scale Animations */
@keyframes lc-scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Wave Animation */
@keyframes lc-waveFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Pulse Animation */
@keyframes lc-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Shimmer Effect */
@keyframes lc-shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Slide In from Bottom */
@keyframes lc-slideInBottom {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Animation Classes */
.lc-animate-on-scroll {
  opacity: 0;
}

.lc-animate-on-scroll.lc-visible {
  animation: lc-fadeInUp 0.8s ease forwards;
}

.lc-fade-in {
  animation: lc-fadeIn 1s ease;
}

.lc-fade-in-up {
  animation: lc-fadeInUp 0.8s ease;
}

.lc-fade-in-left {
  animation: lc-fadeInLeft 0.8s ease;
}

.lc-fade-in-right {
  animation: lc-fadeInRight 0.8s ease;
}

.lc-scale-in {
  animation: lc-scaleIn 0.6s ease;
}

/* Staggered Animations */
.lc-stagger-1 {
  animation-delay: 0.1s;
}

.lc-stagger-2 {
  animation-delay: 0.2s;
}

.lc-stagger-3 {
  animation-delay: 0.3s;
}

.lc-stagger-4 {
  animation-delay: 0.4s;
}

.lc-stagger-5 {
  animation-delay: 0.5s;
}

.lc-stagger-6 {
  animation-delay: 0.6s;
}

/* Hover Animations */
.lc-hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lc-hover-lift:hover {
  transform: translateY(-5px);
}

.lc-hover-scale {
  transition: transform 0.3s ease;
}

.lc-hover-scale:hover {
  transform: scale(1.05);
}

/* Loading Spinner */
@keyframes lc-spin {
  to {
    transform: rotate(360deg);
  }
}

.lc-loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(74, 144, 164, 0.2);
  border-top-color: var(--lc-primary-blue);
  border-radius: 50%;
  animation: lc-spin 0.8s linear infinite;
}

/* Typewriter Effect */
@keyframes lc-typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes lc-blink {
  50% {
    border-color: transparent;
  }
}

.lc-typewriter-text {
  overflow: hidden;
  border-right: 2px solid var(--lc-primary-blue);
  white-space: nowrap;
  animation: 
    lc-typewriter 3s steps(40) 1s forwards,
    lc-blink 0.75s step-end infinite;
}

/* Background Animations */
.lc-gradient-shift {
  background: linear-gradient(
    270deg,
    var(--lc-light-blue),
    var(--lc-soft-sand),
    var(--lc-light-blue)
  );
  background-size: 400% 400%;
  animation: lc-gradientShift 15s ease infinite;
}

@keyframes lc-gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Floating Elements */
.lc-floating {
  animation: lc-float 3s ease-in-out infinite;
}

@keyframes lc-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Progress Bar Animation */
@keyframes lc-progressFill {
  from {
    width: 0%;
  }
}

.lc-progress-bar {
  animation: lc-progressFill 1.5s ease forwards;
}

/* Bounce In */
@keyframes lc-bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.lc-bounce-in {
  animation: lc-bounceIn 0.8s ease;
}

/* Reveal Animations for Images */
.lc-image-reveal {
  position: relative;
  overflow: hidden;
}

.lc-image-reveal::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--lc-primary-blue);
  animation: lc-imageReveal 1.2s ease forwards;
}

@keyframes lc-imageReveal {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Attention Seekers */
@keyframes lc-shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

.lc-shake {
  animation: lc-shake 0.5s ease;
}

/* Smooth Scroll Indicator */
@keyframes lc-scrollDown {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(10px);
    opacity: 1;
  }
}

.lc-scroll-indicator {
  animation: lc-scrollDown 2s ease-in-out infinite;
}

/* Count Up Animation */
@keyframes lc-countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lc-counter-number {
  animation: lc-countUp 1s ease;
}

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