/* animations.css */
/* Left-to-Right Hover Animation */
@keyframes cardSlideIn {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes cardHoverEffect {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
    100% {
        transform: translateX(0);
    }
}

.category-card, .project-card {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.category-card::before, .project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover::before, .project-card:hover::before {
    left: 100%;
}

.category-card:hover, .project-card:hover {
    animation: cardHoverEffect 0.8s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Staggered entrance animations */
.category-card:nth-child(1) {
    animation: cardSlideIn 0.6s ease-out 0.1s forwards;
}
.category-card:nth-child(2) {
    animation: cardSlideIn 0.6s ease-out 0.2s forwards;
}
.category-card:nth-child(3) {
    animation: cardSlideIn 0.6s ease-out 0.3s forwards;
}
.category-card:nth-child(4) {
    animation: cardSlideIn 0.6s ease-out 0.4s forwards;
}
.category-card:nth-child(5) {
    animation: cardSlideIn 0.6s ease-out 0.5s forwards;
}
.category-card:nth-child(6) {
    animation: cardSlideIn 0.6s ease-out 0.6s forwards;
}

.project-card:nth-child(1) {
    animation: cardSlideIn 0.6s ease-out 0.1s forwards;
}
.project-card:nth-child(2) {
    animation: cardSlideIn 0.6s ease-out 0.2s forwards;
}
.project-card:nth-child(3) {
    animation: cardSlideIn 0.6s ease-out 0.3s forwards;
}