/* Animations.css */

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

/* Slide Up Animation */
@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.slide-up {
  animation: slideUp 0.8s ease forwards;
}

/* Slide In Left Animation */
@keyframes slideInLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-left {
  animation: slideInLeft 0.8s ease forwards;
}

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

.slide-in-right {
  animation: slideInRight 0.8s ease forwards;
}

/* Zoom In Animation */
@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.zoom-in {
  animation: zoomIn 0.8s ease forwards;
}

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

.pulse {
  animation: pulse 2s infinite;
}

/* Bounce Animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

.bounce {
  animation: bounce 2s infinite;
}

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

.shake {
  animation: shake 0.8s ease;
}

/* Animate on scroll classes */
.animate-on-scroll {
  opacity: 0;
  transition: all 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
}

/* Staggered Animation Delays */
.delay-1 {
  animation-delay: 0.1s;
}

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

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

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

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

/* Page Transitions */
.page-transition {
  transition: all 0.3s ease;
}

/* Button Click Animation */
.btn {
  position: relative;
  overflow: hidden;
}

.btn:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

.btn:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

/* Hero section animations */
.hero-content h1 {
  opacity: 0;
  animation: slideInLeft 0.8s ease forwards 0.2s;
}

.hero-content p {
  opacity: 0;
  animation: slideInLeft 0.8s ease forwards 0.4s;
}

.hero-content .btn {
  opacity: 0;
  animation: slideInLeft 0.8s ease forwards 0.6s;
}

.hero-image {
  opacity: 0;
  animation: slideInRight 0.8s ease forwards 0.4s;
}

/* Feature box hover animation */
.feature-box .feature-icon {
  transition: transform 0.3s ease;
}

.feature-box:hover .feature-icon {
  transform: scale(1.2) translateY(-5px);
}

/* Product card hover animations */
.product-card .product-image img {
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

/* Footer animation */
.footer-links a {
  transition: all 0.3s ease;
}

.footer-links a:hover {
  transform: translateX(5px);
}

/* Social icons animation */
.social-icons a {
  transition: all 0.3s ease;
}

.social-icons a:hover {
  transform: translateY(-3px);
}

/* WhatsApp button animation */
.whatsapp-button a {
  animation: pulse 2s infinite;
}

/* Timeline animations */
.timeline-item {
  opacity: 0;
  transition: all 0.8s ease;
}

.timeline-item.animated {
  opacity: 1;
}

/* Form validation animations */
.form-control.is-invalid {
  animation: shake 0.5s ease;
}

/* Success message animation */
@keyframes successFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  animation: successFadeIn 0.5s ease forwards;
}