/* ===================================
   ANIMATIONS - Smooth & Snappy
   Responsibility: All animation definitions
   =================================== */

/* === FADE IN ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 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);
    }
}

/* === SCALE ANIMATIONS === */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* === UTILITY CLASSES === */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out forwards;
}

.scale-in {
    animation: scaleIn 0.4s ease-out forwards;
}

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

/* === HOVER EFFECTS === */
.hover-lift {
    transition: transform 200ms ease-out;
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.hover-glow {
    transition: box-shadow 200ms ease-out;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
}

/* === SMOOTH TRANSITIONS === */
.smooth-all {
    transition: all 200ms ease-out;
}

.smooth-bg {
    transition: background-color 200ms ease-out;
}

.smooth-color {
    transition: color 200ms ease-out;
}

.smooth-transform {
    transition: transform 200ms ease-out;
}

/* === LOADING SPINNER === */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 217, 255, 0.2);
    border-top-color: #00D9FF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* === PROGRESS BAR === */
@keyframes progressSlide {
    from {
        width: 0%;
    }
}

.progress-bar {
    animation: progressSlide 0.8s ease-out forwards;
}

/* === SHIMMER EFFECT === */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* === DELAY UTILITIES === */
.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; }

/* === REDUCE MOTION === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}