/* ============================================
   PREMIUM ANIMATIONS & EFFECTS
   ============================================ */

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

/* Apply animations to sections - Initially hidden, animate on scroll */
.section-header {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-header.animate {
  opacity: 1;
  transform: translateY(0);
}

.nav-card {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.nav-card.animate {
  opacity: 1;
  transform: scale(1);
}

.nav-card:nth-child(1) {
  transition-delay: 0.1s;
}

.nav-card:nth-child(2) {
  transition-delay: 0.2s;
}

.nav-card:nth-child(3) {
  transition-delay: 0.3s;
}

.nav-card:nth-child(4) {
  transition-delay: 0.4s;
}

.nav-card:nth-child(5) {
  transition-delay: 0.5s;
}

.nav-card:nth-child(6) {
  transition-delay: 0.6s;
}

.product-card {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.product-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.product-card:nth-child(1) {
  transition-delay: 0.1s;
}

.product-card:nth-child(2) {
  transition-delay: 0.2s;
}

.product-card:nth-child(3) {
  transition-delay: 0.3s;
}

.product-card:nth-child(4) {
  transition-delay: 0.4s;
}

.feature-card {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.feature-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:nth-child(1) {
  transition-delay: 0.15s;
}

.feature-card:nth-child(2) {
  transition-delay: 0.3s;
}

.feature-card:nth-child(3) {
  transition-delay: 0.45s;
}

.about-preview-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.about-preview-section.animate {
  opacity: 1;
  transform: translateY(0);
}

.review-card {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.review-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.review-card:nth-child(1) {
  transition-delay: 0.2s;
}

.review-card:nth-child(2) {
  transition-delay: 0.4s;
}

.review-card:nth-child(3) {
  transition-delay: 0.6s;
}

/* Enhanced hover effects */
.nav-card {
  position: relative;
  overflow: hidden;
}

.nav-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(57, 204, 204, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: 0;
}

.nav-card:hover::after {
  width: 300px;
  height: 300px;
}

.nav-card>* {
  position: relative;
  z-index: 1;
}

.product-card {
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg,
      transparent 30%,
      rgba(57, 204, 204, 0.1) 50%,
      transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
  z-index: 1;
  pointer-events: none;
}

.product-card:hover::before {
  transform: translateX(100%);
}

/* Button glow effect */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  ;
  z-index: 0;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
  transition: width 0.6s, height 0.6s;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

/* Image zoom on hover */
.product-image {
  transition: transform 0.5s ease;
  overflow: hidden;
}

.product-card:hover .product-image {
  transform: scale(1.1);
}

/* Nav links underline animation */
.nav-links a::after {
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Info card icon pulse */
.info-card i {
  transition: all 0.3s ease;
}

.info-card:hover i {
  transform: scale(1.2) rotate(5deg);
  color: var(--color-secondary);
}

/* Review stars animation */
.review-stars i {
  display: inline-block;
  animation: fadeIn 0.5s ease-out backwards;
}

.review-stars i:nth-child(1) {
  animation-delay: 0.1s;
}

.review-stars i:nth-child(2) {
  animation-delay: 0.2s;
}

.review-stars i:nth-child(3) {
  animation-delay: 0.3s;
}

.review-stars i:nth-child(4) {
  animation-delay: 0.4s;
}

.review-stars i:nth-child(5) {
  animation-delay: 0.5s;
}

/* Hero overlay subtle animation */
.hero-overlay {
  animation: fadeIn 1.5s ease-out;
}

/* Logo hover effect */
.logo {
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-logo-icon,
.footer-logo-icon {
  transition: all 0.3s ease;
}

.logo:hover .nav-logo-icon,
.logo:hover .footer-logo-icon {
  transform: rotate(360deg);
}

/* 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;
  }
}