/* ===========================
   Animation Styles
   =========================== */

/* Fade In Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Staggered Animation Delays */
.fade-item {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeItem 0.6s ease forwards;
}

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

@keyframes fadeItem {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Animation Class */
.card-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Progress Bar Animation */
.progress-bar {
    height: 4px;
    background: var(--color-accent);
    width: 0;
    transition: width 1s ease;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-white);
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Confetti Animation */
@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--color-accent);
    animation: confetti-fall 3s ease-out forwards;
}

/* Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Glow Effect */
.glow {
    box-shadow: 0 0 10px rgba(255, 106, 106, 0.5);
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 106, 106, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 106, 106, 0.8); }
}

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

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .animate-fade-up,
    .animate-fade-in,
    .card-animate {
        opacity: 1 !important;
        transform: none !important;
    }
}


