/* ==========================================================================
   ECOMEXPRES LTD - Keyframe Animations & Micro-Interactions
   ========================================================================== */

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

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatSmooth {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.4);
  }
}

@keyframes barGrow {
  from {
    height: 0%;
  }
  to {
    height: var(--bar-height, 70%);
  }
}

/* --- Scroll Animation Observer Utility Classes --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* --- Micro Interactivity --- */
.hover-float {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hover-float:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pulse-badge {
  animation: pulseGlow 3s infinite ease-in-out;
}

.float-visual {
  animation: floatSmooth 6s infinite ease-in-out;
}

.btn-icon-animate svg {
  transition: transform var(--transition-fast);
}

.btn-icon-animate:hover svg {
  transform: translateX(4px);
}
