/* ==========================================
   ANIMATION UTILITIES
   ========================================== */

/* Base class applied to anything we want to animate */
.animate-on-scroll {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
  will-change: transform, opacity;
}

/* Different types of entrance animations */
.slide-up {
  transform: translateY(50px);
}

.slide-right {
  transform: translateX(
    -50px
  ); /* Starts left, moves right to original position */
}

.slide-left {
  transform: translateX(
    50px
  ); /* Starts right, moves left to original position */
}

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

/* The class JS adds when the element scrolls into view */
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Delay classes so grid items pop in one after another (staggered effect) */
.delay-100 {
  transition-delay: 0.1s;
}
.delay-200 {
  transition-delay: 0.2s;
}
.delay-300 {
  transition-delay: 0.3s;
}
.delay-400 {
  transition-delay: 0.4s;
}
