/* Fade in animations */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.fade-in-delay-1 {
    animation: fadeIn 1s ease-in-out 0.2s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-in-out 0.4s forwards;
    opacity: 0;
}

.fade-in-delay-3 {
    animation: fadeIn 1s ease-in-out 0.6s forwards;
    opacity: 0;
}

.fade-in-delay-4 {
    animation: fadeIn 1s ease-in-out 0.8s forwards;
    opacity: 0;
}

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

/* Floating animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Progress bar animation */
.progress-animate {
    position: relative;
    overflow: hidden;
}

.progress-animate::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Animated cards */
.animated-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.animated-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Typing animation */
.typing-effect {
    border-right: 3px solid var(--primary);
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    position: relative;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* Gradient animation */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Mobile sidebar animation */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

.slide-in {
    animation: slideIn 0.3s forwards;
}

.slide-out {
    animation: slideOut 0.3s forwards;
}