/* Animations */

/* Initial states */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 800ms, transform 800ms var(--ease-out-quart);
}

.fade-in {
  opacity: 0;
  transition: opacity 800ms;
}

.slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 800ms var(--ease-out-quart);
}

.slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 800ms var(--ease-out-quart);
}

.scale-up {
  opacity: 0;
  transform: scale(0.95);
  transition: all 600ms;
}

/* Visible states */
.fade-up.visible,
.slide-left.visible,
.slide-right.visible {
  opacity: 1;
  transform: translate(0);
}

.fade-in.visible {
  opacity: 1;
}

.scale-up.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger Delays */
.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }
.delay-4 { transition-delay: 400ms; }
.delay-5 { transition-delay: 500ms; }
.delay-6 { transition-delay: 600ms; }
.delay-7 { transition-delay: 700ms; }
.delay-8 { transition-delay: 800ms; }

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

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 77, 0, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 77, 0, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 77, 0, 0); }
}

@keyframes bounce-down {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-15px); }
  60% { transform: translateY(-7px); }
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Utilities */
.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background-color: var(--color-accent);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s;
}

.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 600ms;
}

.img-zoom:hover img {
  transform: scale(1.05);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

