/* Scroll-triggered fade-in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Apply animations to sections */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animations for grid items */
.stagger-animation > * {
    opacity: 0;
}

.stagger-animation.is-visible > *:nth-child(1) {
    animation: fadeInUp 0.6s ease-out 0.1s forwards;
}

.stagger-animation.is-visible > *:nth-child(2) {
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

.stagger-animation.is-visible > *:nth-child(3) {
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

/* Allow hover effects after animation completes */
.stagger-animation.is-visible > * {
    animation-fill-mode: forwards;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced hover effects for cards */
.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.15);
}
