.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(135deg, #1a73e8 0%, #34a853 100%);*/
    background: url('../images/blue-gb-big.webp');
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.preloader.fade-out {
    opacity: 0;
}

.preloader-container {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.preloader-logo-wrapper {
    position: relative;
    padding: 2rem;
}

.preloader-logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
    animation: logoGlow 2s infinite alternate;
}

.preloader-progress {
    width: 200px;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    margin: 1rem auto;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #1a73e8, #34a853);
    border-radius: 2px;
    animation: progressAnimation 2s ease-in-out infinite;
}

.preloader-text {
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 1rem;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

.preloader-ring {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: rotate 2s linear infinite;
}

.ring:nth-child(1) {
    border-top-color: #ffffff;
    animation-delay: 0s;
}

.ring:nth-child(2) {
    border-right-color: rgba(255, 255, 255, 0.7);
    animation-delay: 0.3s;
}

.ring:nth-child(3) {
    border-bottom-color: rgba(255, 255, 255, 0.4);
    animation-delay: 0.6s;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes logoGlow {
    0% {
        filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    }
    100% {
        filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
    }
}

@keyframes progressAnimation {
    0% {
        width: 0%;
        transform: translateX(-100%);
    }
    50% {
        width: 100%;
        transform: translateX(0%);
    }
    100% {
        width: 0%;
        transform: translateX(100%);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .preloader-container {
        padding: 1.5rem;
    }
    
    .preloader-logo {
        max-width: 160px;
    }
    
    .preloader-progress {
        width: 150px;
    }
    
    .preloader-text {
        font-size: 0.9rem;
    }
    
    .preloader-ring {
        width: 80px;
        height: 80px;
    }
} 