/* ========================================
   SAFOOD - Shared Animations System
   ======================================== */

/* ===== KEYFRAME ANIMATIONS ===== */

/* Fade In Up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In Down */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In Left */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade In Right */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scale In */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Bounce In */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Slide In Up */
@keyframes slideInUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Float Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Shake Animation */
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

/* Rotate Animation */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Swing Animation */
@keyframes swing {
  20% {
    transform: rotate(15deg);
  }
  40% {
    transform: rotate(-10deg);
  }
  60% {
    transform: rotate(5deg);
  }
  80% {
    transform: rotate(-5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* Tada Animation */
@keyframes tada {
  0% {
    transform: scale(1);
  }
  10%, 20% {
    transform: scale(0.9) rotate(-3deg);
  }
  30%, 50%, 70%, 90% {
    transform: scale(1.1) rotate(3deg);
  }
  40%, 60%, 80% {
    transform: scale(1.1) rotate(-3deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

/* Wobble Animation */
@keyframes wobble {
  0% {
    transform: translateX(0);
  }
  15% {
    transform: translateX(-25%) rotate(-5deg);
  }
  30% {
    transform: translateX(20%) rotate(3deg);
  }
  45% {
    transform: translateX(-15%) rotate(-3deg);
  }
  60% {
    transform: translateX(10%) rotate(2deg);
  }
  75% {
    transform: translateX(-5%) rotate(-1deg);
  }
  100% {
    transform: translateX(0);
  }
}

/* Jello Animation */
@keyframes jello {
  0%, 11.1%, 100% {
    transform: none;
  }
  22.2% {
    transform: skewX(-12.5deg) skewY(-12.5deg);
  }
  33.3% {
    transform: skewX(6.25deg) skewY(6.25deg);
  }
  44.4% {
    transform: skewX(-3.125deg) skewY(-3.125deg);
  }
  55.5% {
    transform: skewX(1.5625deg) skewY(1.5625deg);
  }
  66.6% {
    transform: skewX(-0.78125deg) skewY(-0.78125deg);
  }
  77.7% {
    transform: skewX(0.390625deg) skewY(0.390625deg);
  }
  88.8% {
    transform: skewX(-0.1953125deg) skewY(-0.1953125deg);
  }
}

/* Heart Beat Animation */
@keyframes heartBeat {
  0% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.3);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.3);
  }
  70% {
    transform: scale(1);
  }
}

/* Flash Animation */
@keyframes flash {
  0%, 50%, 100% {
    opacity: 1;
  }
  25%, 75% {
    opacity: 0;
  }
}

/* Rubber Band Animation */
@keyframes rubberBand {
  0% {
    transform: scaleX(1) scaleY(1);
  }
  30% {
    transform: scaleX(1.25) scaleY(0.75);
  }
  40% {
    transform: scaleX(0.75) scaleY(1.25);
  }
  50% {
    transform: scaleX(1.15) scaleY(0.85);
  }
  65% {
    transform: scaleX(0.95) scaleY(1.05);
  }
  75% {
    transform: scaleX(1.05) scaleY(0.95);
  }
  100% {
    transform: scaleX(1) scaleY(1);
  }
}

/* Glow Animation */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px currentColor;
  }
  50% {
    box-shadow: 0 0 20px currentColor, 0 0 30px currentColor;
  }
}

/* Shimmer Animation */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Ripple Animation */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/* Morph Animation */
@keyframes morph {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
}

/* Gradient Shift Animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Text Shadow Animation */
@keyframes textShadow {
  0%, 100% {
    text-shadow: 0 0 10px currentColor;
  }
  50% {
    text-shadow: 0 0 20px currentColor, 0 0 30px currentColor;
  }
}

/* Border Pulse Animation */
@keyframes borderPulse {
  0%, 100% {
    border-color: currentColor;
  }
  50% {
    border-color: transparent;
  }
}

/* Typing Animation */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Blink Animation */
@keyframes blink {
  0%, 50%, 100% {
    opacity: 1;
  }
  25%, 75% {
    opacity: 0;
  }
}

/* Scroll Reveal Animation */
@keyframes scrollReveal {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade Out Animation */
@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

/* Fade In Animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== ANIMATION CLASSES ===== */

/* Base Animation Classes */
.animate {
  animation-duration: 0.8s;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }
.animate-delay-600 { animation-delay: 0.6s; }
.animate-delay-700 { animation-delay: 0.7s; }
.animate-delay-800 { animation-delay: 0.8s; }
.animate-delay-900 { animation-delay: 0.9s; }
.animate-delay-1000 { animation-delay: 1s; }

/* Fade Animations */
.fade-in-up { animation-name: fadeInUp; }
.fade-in-down { animation-name: fadeInDown; }
.fade-in-left { animation-name: fadeInLeft; }
.fade-in-right { animation-name: fadeInRight; }

/* Scale Animations */
.scale-in { animation-name: scaleIn; }
.bounce-in { animation-name: bounceIn; }

/* Slide Animations */
.slide-in-up { animation-name: slideInUp; }

/* Special Animations */
.float { animation-name: float; animation-duration: 3s; animation-iteration-count: infinite; }
.pulse { animation-name: pulse; animation-duration: 2s; animation-iteration-count: infinite; }
.shake { animation-name: shake; }
.rotate { animation-name: rotate; animation-duration: 2s; animation-iteration-count: infinite; }
.swing { animation-name: swing; transform-origin: top center; }
.tada { animation-name: tada; }
.wobble { animation-name: wobble; }
.jello { animation-name: jello; }
.heart-beat { animation-name: heartBeat; animation-duration: 1.3s; animation-iteration-count: infinite; }
.flash { animation-name: flash; animation-duration: 1s; animation-iteration-count: infinite; }
.rubber-band { animation-name: rubberBand; }
.glow { animation-name: glow; animation-duration: 2s; animation-iteration-count: infinite; }
.shimmer { animation-name: shimmer; animation-duration: 2s; animation-iteration-count: infinite; }
.ripple { animation-name: ripple; }
.morph { animation-name: morph; animation-duration: 8s; animation-iteration-count: infinite; }
.gradient-shift { animation-name: gradientShift; animation-duration: 3s; animation-iteration-count: infinite; }
.text-shadow { animation-name: textShadow; animation-duration: 2s; animation-iteration-count: infinite; }
.border-pulse { animation-name: borderPulse; animation-duration: 1s; animation-iteration-count: infinite; }
.typing { animation-name: typing; animation-duration: 3s; animation-timing-function: steps(40, end); }
.blink { animation-name: blink; animation-duration: 1s; animation-iteration-count: infinite; }
.scroll-reveal { animation-name: scrollReveal; }

/* Hover Animations */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hover-scale {
  transition: transform 0.3s ease;
}
.hover-scale:hover {
  transform: scale(1.05);
}

.hover-rotate {
  transition: transform 0.3s ease;
}
.hover-rotate:hover {
  transform: rotate(5deg);
}

.hover-glow {
  transition: box-shadow 0.3s ease;
}
.hover-glow:hover {
  box-shadow: 0 0 20px currentColor;
}

.hover-shake:hover {
  animation: shake 0.5s ease-in-out;
}

.hover-pulse:hover {
  animation: pulse 0.5s ease-in-out;
}

.hover-bounce:hover {
  animation: bounceIn 0.5s ease-in-out;
}

.hover-swing:hover {
  animation: swing 0.5s ease-in-out;
  transform-origin: top center;
}

.hover-tada:hover {
  animation: tada 0.5s ease-in-out;
}

.hover-wobble:hover {
  animation: wobble 0.5s ease-in-out;
}

.hover-jello:hover {
  animation: jello 0.5s ease-in-out;
}

.hover-rubber-band:hover {
  animation: rubberBand 0.5s ease-in-out;
}

.hover-heart-beat:hover {
  animation: heartBeat 0.5s ease-in-out;
}

/* ===== SCROLL TRIGGERED ANIMATIONS ===== */

/* Intersection Observer Animation Classes */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.animated {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate-left.animated {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate-right.animated {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate-scale.animated {
  opacity: 1;
  transform: scale(1);
}

/* Staggered Animation Delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }
.stagger-8 { transition-delay: 0.8s; }
.stagger-9 { transition-delay: 0.9s; }
.stagger-10 { transition-delay: 1s; }

/* ===== ENHANCED ELEMENT ANIMATIONS ===== */

/* Navigation Animations */
.navbar {
  animation: fadeInDown 0.8s ease-out;
}

.nav-menu a {
  position: relative;
  overflow: hidden;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Hero Section Animations */
.hero-content {
  animation: fadeInLeft 1s ease-out;
}

.hero-title {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-image {
  animation: fadeInRight 1s ease-out 0.3s both;
}

.pos-card {
  animation: fadeInUp 1s ease-out 0.5s both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pos-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Button Animations */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(-1px);
}

/* Feature Card Animations */
.feature-card {
  animation: fadeInUp 0.8s ease-out both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

.feature-card:hover {
  transform: translateY(-10px);
  /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); */
}

.feature-image {
  transition: transform 0.5s ease;
}

.feature-card:hover .feature-image {
  transform: scale(1.05);
}

/* Dashboard Animations */
.dashboard-wrapper {
  animation: fadeInUp 1s ease-out;
}

.preview-card {
  animation: fadeInRight 1s ease-out 0.3s both;
  transition: transform 0.3s ease;
}

.preview-card:hover {
  transform: translateY(-5px);
}

.stat-card {
  animation: fadeInUp 0.6s ease-out both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }

.stat-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.chart-bar {
  animation: slideInUp 0.8s ease-out both;
  transform-origin: bottom;
}

.chart-bar:nth-child(1) { animation-delay: 0.1s; }
.chart-bar:nth-child(2) { animation-delay: 0.2s; }
.chart-bar:nth-child(3) { animation-delay: 0.3s; }
.chart-bar:nth-child(4) { animation-delay: 0.4s; }
.chart-bar:nth-child(5) { animation-delay: 0.5s; }
.chart-bar:nth-child(6) { animation-delay: 0.6s; }
.chart-bar:nth-child(7) { animation-delay: 0.7s; }

/* Statistics Animations */
.stat-box {
  animation: bounceIn 0.8s ease-out both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-box:nth-child(1) { animation-delay: 0.2s; }
.stat-box:nth-child(2) { animation-delay: 0.4s; }
.stat-box:nth-child(3) { animation-delay: 0.6s; }
.stat-box:nth-child(4) { animation-delay: 0.8s; }

.stat-box:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Solution Card Animations */
.solution-card {
  animation: scaleIn 0.8s ease-out both;
  transition: transform 0.5s ease;
}

.solution-card:nth-child(1) { animation-delay: 0.1s; }
.solution-card:nth-child(2) { animation-delay: 0.2s; }
.solution-card:nth-child(3) { animation-delay: 0.3s; }

.solution-card:hover {
  transform: scale(1.05);
}

.solution-card img {
  transition: transform 0.5s ease;
}

.solution-card:hover img {
  transform: scale(1.1);
}

/* Step Card Animations */
.step-card {
  animation: fadeInUp 0.8s ease-out both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:nth-child(1) { animation-delay: 0.1s; }
.step-card:nth-child(2) { animation-delay: 0.2s; }
.step-card:nth-child(3) { animation-delay: 0.3s; }
.step-card:nth-child(4) { animation-delay: 0.4s; }

.step-card:hover {
  transform: translateY(-10px) rotate(2deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.step-icon {
  animation: pulse 2s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.step-card:hover .step-icon {
  animation: none;
  transform: scale(1.2) rotate(10deg);
}

/* Order Management Animations */
.order-item img {
  animation: fadeInLeft 1s ease-out;
  transition: transform 0.5s ease;
}

.order-item:hover img {
  transform: scale(1.05);
}

.order-content {
  animation: fadeInRight 1s ease-out 0.2s both;
}

.order-badge {
  animation: fadeInUp 0.6s ease-out both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.order-badge:nth-child(1) { animation-delay: 0.1s; }
.order-badge:nth-child(2) { animation-delay: 0.2s; }
.order-badge:nth-child(3) { animation-delay: 0.3s; }
.order-badge:nth-child(4) { animation-delay: 0.4s; }

.order-badge:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* CTA Section Animations */
.cta-content {
  animation: fadeInUp 1s ease-out;
}

.cta-badge {
  animation: fadeInDown 0.8s ease-out 0.2s both;
}

.cta-content h2 {
  animation: fadeInUp 1s ease-out 0.3s both;
}

.cta-content > p {
  animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-form {
  animation: fadeInUp 1s ease-out 0.5s both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-form:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.cta-feature {
  animation: fadeInUp 0.6s ease-out both;
  transition: transform 0.3s ease;
}

.cta-feature:nth-child(1) { animation-delay: 0.6s; }
.cta-feature:nth-child(2) { animation-delay: 0.7s; }
.cta-feature:nth-child(3) { animation-delay: 0.8s; }

.cta-feature:hover {
  transform: translateY(-3px);
}

/* Footer Animations */
.footer-brand {
  animation: fadeInLeft 0.8s ease-out;
}

.footer-column {
  animation: fadeInUp 0.8s ease-out both;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }

.footer-column a {
  position: relative;
  overflow: hidden;
}

.footer-column a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.footer-column a:hover::after {
  width: 100%;
}

.social-icon {
  animation: bounceIn 0.6s ease-out both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icon:nth-child(1) { animation-delay: 0.1s; }
.social-icon:nth-child(2) { animation-delay: 0.2s; }
.social-icon:nth-child(3) { animation-delay: 0.3s; }
.social-icon:nth-child(4) { animation-delay: 0.4s; }

.social-icon:hover {
  transform: translateY(-5px) rotate(10deg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Badge Animations */
.badge {
  animation: fadeInDown 0.6s ease-out;
  transition: transform 0.3s ease;
}

.badge:hover {
  transform: scale(1.05);
}

/* Section Title Animations */
.section-title {
  animation: fadeInUp 0.8s ease-out;
}

.section-subtitle {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Touchpoint Animations */
.touchpoint-item {
  animation: fadeInLeft 0.6s ease-out both;
  transition: transform 0.3s ease;
}

.touchpoint-item:nth-child(1) { animation-delay: 0.1s; }
.touchpoint-item:nth-child(2) { animation-delay: 0.2s; }
.touchpoint-item:nth-child(3) { animation-delay: 0.3s; }

.touchpoint-item:hover {
  transform: translateX(10px);
}

.touchpoint-icon {
  animation: pulse 2s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.touchpoint-item:hover .touchpoint-icon {
  animation: none;
  transform: scale(1.2);
}

/* Payment Button Animations */
.payment-btn {
  transition: all 0.3s ease;
}

.payment-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.payment-btn.active {
  animation: pulse 1s ease-in-out;
}

/* Complete Order Button Animation */
.btn-complete-order {
  position: relative;
  overflow: hidden;
}

.btn-complete-order::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-complete-order:hover::before {
  left: 100%;
}

/* Input Focus Animation */
.input-wrapper input {
  transition: all 0.3s ease;
}

.input-wrapper input:focus {
  transform: scale(1.02);
}

/* Hamburger Animation */
.hamburger span {
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  animation: rotate 0.3s ease forwards;
}

.hamburger.active span:nth-child(2) {
  animation: fadeOut 0.3s ease forwards;
}

.hamburger.active span:nth-child(3) {
  animation: rotate 0.3s ease reverse forwards;
}

/* Preview Dots Animation */
.preview-dots span {
  animation: pulse 2s ease-in-out infinite;
}

.preview-dots span:nth-child(1) { animation-delay: 0s; }
.preview-dots span:nth-child(2) { animation-delay: 0.3s; }
.preview-dots span:nth-child(3) { animation-delay: 0.6s; }

/* Check Icon Animation */
.check-icon {
  animation: bounceIn 0.6s ease-out;
  transition: transform 0.3s ease;
}

.check-icon:hover {
  transform: scale(1.2) rotate(10deg);
}

/* Steps Line Animation */
.steps-line {
  animation: fadeIn 1s ease-out;
}

/* Logo Animation */
.logo {
  animation: fadeInDown 0.8s ease-out;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* Language Selector Animation */
.language-selector {
  transition: transform 0.3s ease;
}

.language-selector:hover {
  transform: scale(1.05);
}

/* Order Summary Animation */
.pos-order-summary {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.summary-item {
  animation: fadeInLeft 0.5s ease-out both;
  transition: transform 0.3s ease;
}

.summary-item:nth-child(1) { animation-delay: 0.5s; }
.summary-item:nth-child(2) { animation-delay: 0.6s; }
.summary-item:nth-child(3) { animation-delay: 0.7s; }

.summary-item:hover {
  transform: translateX(5px);
}

/* Total Animation */
.total-item {
  animation: fadeInRight 0.5s ease-out both;
  transition: transform 0.3s ease;
}

.total-item:nth-child(1) { animation-delay: 0.8s; }
.total-item:nth-child(2) { animation-delay: 0.9s; }

.total-item:hover {
  transform: translateX(-5px);
}

.grand-total {
  animation: scaleIn 0.6s ease-out 1s both;
}

/* POS Item Animation */
.pos-item {
  animation: fadeInUp 0.5s ease-out both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pos-item:nth-child(1) { animation-delay: 0.1s; }
.pos-item:nth-child(2) { animation-delay: 0.2s; }
.pos-item:nth-child(3) { animation-delay: 0.3s; }

.pos-item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Stats Card Animation */
.stats-card {
  animation: fadeInRight 1s ease-out;
  transition: transform 0.5s ease;
}

.stats-card:hover {
  transform: scale(1.02);
}

/* CTA Buttons Animation */
.cta-buttons .btn {
  animation: fadeInUp 0.6s ease-out both;
}

.cta-buttons .btn:nth-child(1) { animation-delay: 0.9s; }
.cta-buttons .btn:nth-child(2) { animation-delay: 1s; }

/* Footer Bottom Animation */
.footer-bottom {
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.footer-legal a {
  position: relative;
  overflow: hidden;
}

.footer-legal a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.footer-legal a:hover::after {
  width: 100%;
}

/* ===== LOADING ANIMATIONS ===== */

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}

/* Dots Loading */
.dots-loading {
  display: flex;
  gap: 8px;
}

.dots-loading span {
  width: 10px;
  height: 10px;
  background: currentColor;
  border-radius: 50%;
  animation: bounceIn 0.6s ease-in-out infinite;
}

.dots-loading span:nth-child(1) { animation-delay: 0s; }
.dots-loading span:nth-child(2) { animation-delay: 0.2s; }
.dots-loading span:nth-child(3) { animation-delay: 0.4s; }

/* ===== RESPONSIVE ANIMATION ADJUSTMENTS ===== */

@media (max-width: 767px) {
  .animate {
    animation-duration: 0.6s;
  }
  
  .hero-content,
  .hero-title,
  .hero-subtitle,
  .hero-image,
  .pos-card {
    animation-duration: 0.8s;
  }
  
  .feature-card,
  .step-card,
  .solution-card {
    animation-duration: 0.6s;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
