/* ============================================
   CSS Animations
   ============================================ */

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

/* Slide Up */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide In Right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide In Left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scale In */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Pulse */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* ============================================
   Animation Classes
   ============================================ */

/* Fade In */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Slide Up */
.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

/* Slide In Right */
.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

/* Slide In Left */
.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

/* Scale In */
.animate-scale-in {
  animation: scaleIn 0.5s ease-out;
}

/* ============================================
   Scroll Animations (will be triggered by JS)
   ============================================ */

.scroll-animate {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Fallback: если JS не работает, элементы должны быть видны */
.no-js .scroll-animate,
.scroll-animate:not(.slide-up-initial):not(.slide-left-initial):not(.slide-right-initial):not(.scale-in-initial) {
  opacity: 1;
}

.scroll-animate.fade-in {
  opacity: 1;
}

.scroll-animate.slide-up {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate.slide-up-initial {
  transform: translateY(30px);
}

.scroll-animate.slide-left {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate.slide-left-initial {
  transform: translateX(-30px);
}

.scroll-animate.slide-right {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate.slide-right-initial {
  transform: translateX(30px);
}

.scroll-animate.scale-in {
  opacity: 1;
  transform: scale(1);
}

.scroll-animate.scale-in-initial {
  transform: scale(0.9);
}

/* ============================================
   Hover Effects
   ============================================ */

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.hover-scale {
  transition: transform 0.3s ease;
}

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

.hover-brighten {
  transition: filter 0.3s ease;
}

.hover-brighten:hover {
  filter: brightness(1.1);
}

/* ============================================
   Loading States
   ============================================ */

.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* ============================================
   Page Transitions
   ============================================ */

.page-enter {
  animation: fadeIn 0.4s ease-out;
}


