/* Preloader styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f1221;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out, transform 0.6s ease-out;
}

.preloader--hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out, transform 0.6s ease-out;
}

.preloader__content {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease-out;
}

.preloader.hidden .preloader__content {
    transform: scale(0.9);
}

.preloader__logo {
    width: 120px;
    height: 120px;
    animation: logoAnimation 2s infinite ease-in-out;
    filter: drop-shadow(0 0 8px rgba(0, 242, 96, 0.7));
    transition: all 0.5s ease;
}

@keyframes logoAnimation {
    0% { 
        transform: scale(1) rotate(0deg); 
        filter: drop-shadow(0 0 8px rgba(0, 242, 96, 0.7));
    }
    25% { 
        transform: scale(1.05) rotate(1deg); 
        filter: drop-shadow(0 0 12px rgba(5, 117, 230, 0.7));
    }
    50% { 
        transform: scale(1.1) rotate(0deg); 
        filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.7));
    }
    75% { 
        transform: scale(1.05) rotate(-1deg); 
        filter: drop-shadow(0 0 12px rgba(5, 117, 230, 0.7));
    }
    100% { 
        transform: scale(1) rotate(0deg); 
        filter: drop-shadow(0 0 8px rgba(0, 242, 96, 0.7));
    }
}