/* Page Transitions and Animations */

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

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

/* Scale in animation */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Apply animations to elements */
.animate-on-scroll {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.fade-in-up {
  animation: slideUp 0.6s ease forwards;
}

.scale-in {
  animation: scaleIn 0.5s ease forwards;
}

/* Stagger animation delays */
.animate-on-scroll:nth-child(1) {
  animation-delay: 0.1s;
}

.animate-on-scroll:nth-child(2) {
  animation-delay: 0.2s;
}

.animate-on-scroll:nth-child(3) {
  animation-delay: 0.3s;
}

.animate-on-scroll:nth-child(4) {
  animation-delay: 0.4s;
}

/* Button hover effects */
.btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.btn:active {
  transform: translateY(0);
}

/* Card hover effects */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}
