/* Custom Animations & Dark Theme for Blackdrive */

* {
    scrollbar-width: thin;
    scrollbar-color: #3a3a4a #111118;
}

*::-webkit-scrollbar {
    width: 6px;
}
*::-webkit-scrollbar-track {
    background: #111118;
}
*::-webkit-scrollbar-thumb {
    background: #3a3a4a;
    border-radius: 3px;
}

::selection {
    background: #e63946;
    color: white;
}

@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(230, 57, 70, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(230, 57, 70, 0.6);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spin-slow 8s linear infinite;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

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

.glass-card {
    background: rgba(26, 26, 36, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.06);
}

.glass-card-hover:hover {
    background: rgba(34, 34, 46, 0.9);
    border-color: rgba(230, 57, 70, 0.2);
}


/* Loading bar animation */
@keyframes loading-bar {
    0% { width: 0%; }
    20% { width: 30%; }
    50% { width: 60%; }
    80% { width: 85%; }
    100% { width: 100%; }
}

.animate-loading-bar {
    animation: loading-bar 2.3s ease-out forwards;
}

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

@keyframes pulse-subtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out both;
}

.animate-pulse-subtle {
    animation: pulse-subtle 2.5s ease-in-out infinite;
}
