.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #191919;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.preloader.active {
    opacity: 1;
    visibility: visible;
}

.preloader-inner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #3498db;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}
.animate-fadeIn {
    animation: fadeIn;
    animation-duration: 250ms;
}
.animate-fadeOut {
    animation: fadeOut;
    animation-duration: 250ms;
}