/* Animation Styles */

/* Logo Carousel Animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.clients-scroll {
  animation: scroll 40s linear infinite;
}

.clients-scroll:hover {
  animation-play-state: paused;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scale In Animation */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Slide In from Right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Pulse Animation for CTA buttons */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(48, 49, 44, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(48, 49, 44, 0);
  }
}

/* Apply animations on scroll (using Intersection Observer in JS) */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.scale-in {
  opacity: 0;
  animation: scaleIn 0.6s ease forwards;
}

.slide-in-right {
  opacity: 0;
  animation: slideInRight 0.6s ease forwards;
}

/* Staggered animation delays */
.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }

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

/* Loading State */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.skeleton {
  background: linear-gradient(
    90deg,
    #f0f0f0 0%,
    #e0e0e0 50%,
    #f0f0f0 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Hover lift effect for cards */
.card-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Button hover effects */
.btn-hover-grow {
  transition: transform var(--transition-base);
}

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

/* Image lazy loading fade-in - disabled for now */
/* img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
} */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .clients-scroll {
    animation: none;
  }
}

/* Focus states for accessibility */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Skip to content link for accessibility */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: var(--space-sm) var(--space-md);
  text-decoration: none;
  z-index: 1000;
}

.skip-to-content:focus {
  top: 0;
}
