/* Animation Utilities */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Animation Variants */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
}

.fade-in-down {
  opacity: 0;
  transform: translateY(-30px);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(30px);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(-30px);
}

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

.zoom-out {
  opacity: 0;
  transform: scale(1.1);
}

/* Keyframe Animations */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

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

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Animation Classes */
.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

.animate-shake {
  animation: shake 0.5s;
}

.animate-fade-in {
  animation: fadeIn 0.5s forwards;
}

.animate-slide-in-up {
  animation: slideInUp 0.5s forwards;
}

.animate-slide-in-down {
  animation: slideInDown 0.5s forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.5s forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.5s forwards;
}

/* Hover Animations */
.hover-scale {
  transition: transform 0.3s ease;
}

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

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

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

/* Microinteractions */
.micro-pulse {
  transition: transform 0.2s ease;
}

.micro-pulse:active {
  transform: scale(0.95);
}

.micro-slide {
  transition: transform 0.2s ease;
}

.micro-slide:active {
  transform: translateY(2px);
}

/* Delay Utilities */
[data-delay="100"] {
  transition-delay: 0.1s;
}

[data-delay="200"] {
  transition-delay: 0.2s;
}

[data-delay="300"] {
  transition-delay: 0.3s;
}

[data-delay="400"] {
  transition-delay: 0.4s;
}

[data-delay="500"] {
  transition-delay: 0.5s;
}

[data-delay="600"] {
  transition-delay: 0.6s;
}

[data-delay="700"] {
  transition-delay: 0.7s;
}

[data-delay="800"] {
  transition-delay: 0.8s;
}

[data-delay="900"] {
  transition-delay: 0.9s;
}

[data-delay="1000"] {
  transition-delay: 1s;
}
