/* EMIPROJEKT - Animation Stylesheet
   Converted from Framer Motion animations to pure CSS
   Status: In Development - Phase 2
*/

/* ============================================================================
   Keyframe Animations
   ============================================================================ */

/* Fade in from bottom */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Simple fade in */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Scale in */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Slide in from left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide in from right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================================================
   Animation Classes
   ============================================================================ */

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.scale-in {
  animation: scaleIn 0.4s ease-out forwards;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

/* Stagger effect for children - apply delays individually */
.animate-delay-1 {
  animation-delay: 0.1s;
}

.animate-delay-2 {
  animation-delay: 0.2s;
}

.animate-delay-3 {
  animation-delay: 0.3s;
}

.animate-delay-4 {
  animation-delay: 0.4s;
}

.animate-delay-5 {
  animation-delay: 0.5s;
}

/* ============================================================================
   Scroll-triggered Animations (using Intersection Observer)
   These classes will be applied by JavaScript when element enters viewport
   ============================================================================ */

.scroll-animate {
  opacity: 0;
}

.scroll-animate.in-view {
  opacity: 1;
  animation: fadeInUp 0.6s ease-out forwards;
}

.scroll-animate.in-view.scale {
  animation: scaleIn 0.4s ease-out forwards;
}

.scroll-animate.in-view.slide-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.scroll-animate.in-view.slide-right {
  animation: slideInRight 0.6s ease-out forwards;
}
