/* Animation Styles */

/* Fade In Up Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Fade In Down Animation */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Slide In Left Animation */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translate3d(-30px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Slide In Right Animation */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translate3d(30px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Scale In Animation */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Float Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Animation Classes */
.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade {
  animation: fadeIn 0.4s ease-out forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.5s ease-out forwards;
}

.animate-slide-right {
  animation: slideInRight 0.5s ease-out forwards;
}

.animate-scale {
  animation: scaleIn 0.5s ease-out forwards;
}

/* Stagger Animation Delays */
.about-card.animate-in:nth-child(1) { animation-delay: 0.1s; }
.about-card.animate-in:nth-child(2) { animation-delay: 0.2s; }
.about-card.animate-in:nth-child(3) { animation-delay: 0.3s; }
.about-card.animate-in:nth-child(4) { animation-delay: 0.4s; }
.product-card.animate-in:nth-child(1) { animation-delay: 0.1s; }
.product-card.animate-in:nth-child(2) { animation-delay: 0.2s; }
.product-card.animate-in:nth-child(3) { animation-delay: 0.3s; }
.product-card.animate-in:nth-child(4) { animation-delay: 0.4s; }
.product-card.animate-in:nth-child(5) { animation-delay: 0.5s; }
.product-card.animate-in:nth-child(6) { animation-delay: 0.6s; }
.pricing-card.animate-in:nth-child(1) { animation-delay: 0.1s; }
.pricing-card.animate-in:nth-child(2) { animation-delay: 0.2s; }
.pricing-card.animate-in:nth-child(3) { animation-delay: 0.3s; }
.pricing-card.animate-in:nth-child(4) { animation-delay: 0.4s; }

/* Hardware Acceleration */
.product-card,
.pricing-card,
.btn-primary,
.hero-visual {
  transform: translateZ(0);
  will-change: transform;
}

/* Loading Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading {
  animation: spin 1s linear infinite;
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Reduce Motion for Accessibility */
@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;
  }
}
