/* Page transition animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apply animations to page elements - all use forwards to stay visible */
body {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Hero section animations */
section:first-of-type h1 {
    animation: fadeInUp 0.6s ease-out forwards;
}

section:first-of-type p {
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

section:first-of-type a,
section:first-of-type button {
    animation: fadeInUp 0.6s ease-out 0.4s forwards;
}

/* Staggered grid animations */
.grid > div {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.grid > div:nth-child(1) { animation-delay: 0.1s; }
.grid > div:nth-child(2) { animation-delay: 0.2s; }
.grid > div:nth-child(3) { animation-delay: 0.3s; }
.grid > div:nth-child(4) { animation-delay: 0.4s; }
.grid > div:nth-child(5) { animation-delay: 0.5s; }
.grid > div:nth-child(6) { animation-delay: 0.6s; }

/* Feature items */
.group {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.group:nth-child(1) { animation-delay: 0.1s; }
.group:nth-child(2) { animation-delay: 0.2s; }
.group:nth-child(3) { animation-delay: 0.3s; }

/* Content sections */
.order-1, .order-2 {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

/* Footer fade in */
footer {
    animation: fadeIn 0.8s ease-out 0.5s forwards;
}

/* Navigation hover transitions */
nav a {
    transition: color 0.2s ease;
}

/* Button hover effects */
a.inline-flex, button {
    transition: all 0.2s ease;
}

a.inline-flex:hover, button:hover {
    transform: translateY(-2px);
}

/* Card hover effects */
.group:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
