/* animations.css */

/* Smooth scrolling for the whole page */
html {
  scroll-behavior: smooth;
}

/* Base class for elements we want to animate */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

/* Specific animations */
.fade-in {
  opacity: 0;
}

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

.slide-in-left {
  transform: translateX(-30px);
}

.slide-in-right {
  transform: translateX(30px);
}

/* When the 'is-visible' class is added by JS, animate them in */
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* Staggered delays for child elements (like grid items) */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Enhanced Hover states for links and buttons */
a, button {
  transition: all 0.3s ease;
}

/* Only apply hover effects if they look like primary buttons */
.bg-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Subtle image hover zoom */
img.object-cover {
  transition: transform 0.7s ease;
}

section:hover img.object-cover {
  transform: scale(1.03);
}
