/* Animation Keyframes */

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

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

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(30px);
        opacity: 0;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Transition Classes */
.fade-enter {
    animation: fadeIn var(--transition-base);
}

.fade-exit {
    animation: fadeOut var(--transition-base);
}

.slide-enter {
    animation: slideUp var(--transition-base);
}

.slide-exit {
    animation: slideDown var(--transition-base);
}

.scale-enter {
    animation: scaleIn var(--transition-base);
}

/* Project Card Animations */
.project-card {
    animation: slideUp 0.5s ease forwards;
}

.project-card.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

.project-card.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

/* Category Tab Animations */
.category-tab {
    transition: all var(--transition-base);
}

.category-tab.active {
    animation: scaleIn 0.3s ease;
}

/* Stagger Animation for Project Cards */
.project-card:nth-child(1) {
    animation-delay: 0.1s;
}

.project-card:nth-child(2) {
    animation-delay: 0.2s;
}

.project-card:nth-child(3) {
    animation-delay: 0.3s;
}

.project-card:nth-child(4) {
    animation-delay: 0.4s;
}

.project-card:nth-child(5) {
    animation-delay: 0.5s;
}

.project-card:nth-child(6) {
    animation-delay: 0.6s;
}

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

/* Loading State */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Hover Effects */
.category-tab:hover {
    transition: all var(--transition-base);
}

.project-card:hover .project-thumbnail {
    transform: scale(1.05);
    transition: transform var(--transition-slow);
}

.project-thumbnail {
    transition: transform var(--transition-slow);
}

