/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInFromLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromBottom {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

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

/* Apply animations to elements */
.hero-text h1 {
  animation: slideInFromLeft 1s ease-out;
}

.hero-text .tagline {
  animation: slideInFromLeft 1s ease-out 0.1s;
  animation-fill-mode: both;
}

.hero-text .subtitle {
  animation: slideInFromLeft 1s ease-out 0.2s;
  animation-fill-mode: both;
}

.hero-text .hero-description {
  animation: slideInFromLeft 1s ease-out 0.4s;
  animation-fill-mode: both;
}

.hero-text .btn-primary {
  animation: slideInFromLeft 1s ease-out 0.6s;
  animation-fill-mode: both;
}

.hero-image {
  animation: slideInFromRight 1s ease-out 0.4s;
  animation-fill-mode: both;
}

/* Section headers animation */
.section-header h2 {
  animation: slideInFromBottom 1s ease-out;
  animation-fill-mode: both;
}

/* Quality section animations */
.quality-text h2 {
  animation: slideInFromLeft 1s ease-out;
  animation-fill-mode: both;
}

.quality-text p {
  animation: slideInFromLeft 1s ease-out 0.2s;
  animation-fill-mode: both;
}

.btn-shop-now {
  animation: slideInFromLeft 1s ease-out 0.4s;
  animation-fill-mode: both;
}

.quality-tagline {
  animation: slideInFromLeft 1s ease-out 0.6s;
  animation-fill-mode: both;
}

.quality-image {
  animation: slideInFromRight 1s ease-out 0.3s;
  animation-fill-mode: both;
}

/* Features section animations */
.features-text p {
  animation: slideInFromLeft 1s ease-out 0.2s;
  animation-fill-mode: both;
}

.features-image {
  animation: fadeIn 1.5s ease-out 0.3s;
  animation-fill-mode: both;
}

/* Button animations */
.btn-primary,
.btn-secondary,
.btn-shop-now {
  position: relative;
  overflow: hidden;
}

.btn-primary::after,
.btn-secondary::after,
.btn-shop-now::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%;
}

.btn-primary:hover::after,
.btn-secondary:hover::after,
.btn-shop-now:hover::after {
  animation: ripple 1s ease-out;
}

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

/* Hover effects */
.product-card {
  position: relative;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--orange) 100%);
  opacity: 0;
  z-index: -1;
  transition: var(--transition);
  border-radius: 15px;
}

.product-card:hover::before {
  opacity: 0.05;
}

.social-icons a i {
  transition: var(--transition);
}

.social-icons a:hover i {
  animation: pulse 0.5s ease-in-out;
}

/* Footer animations */
.footer-logo img {
  animation: fadeIn 1s ease-out;
}

.footer-section {
  animation: fadeIn 1s ease-out 0.2s;
  animation-fill-mode: both;
}
