/* 
* Animations for Benjamin Grifka's Portfolio
* Author: Benjamin Grifka
* Version: 1.0
*/

/* ======= KEYFRAMES ======= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ======= ANIMATION CLASSES ======= */
.animate-fadeIn {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    animation-play-state: paused;
}

.animate-scaleIn {
    opacity: 0;
    animation: scaleIn 0.8s ease forwards;
    animation-play-state: paused;
}

.animate-slideInLeft {
    opacity: 0;
    animation: slideInLeft 0.8s ease forwards;
    animation-play-state: paused;
}

.animate-slideInRight {
    opacity: 0;
    animation: slideInRight 0.8s ease forwards;
    animation-play-state: paused;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Animation delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-600 {
    animation-delay: 0.6s;
}

.delay-800 {
    animation-delay: 0.8s;
}

.delay-1000 {
    animation-delay: 1s;
}

/* ======= ANIMATION TRIGGERS ======= */
/* Card animations */
.animate-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* On scroll animations - These will be controlled by JavaScript */
.in-view {
    animation-play-state: running !important;
}

.card.in-view {
    opacity: 1;
    transform: translateY(0);
}
