.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #0a0e1a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

.preloader__avatars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.preloader__particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.preloader__avatar {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(26, 159, 202, 0.3);
    box-shadow: 0 0 20px rgba(26, 159, 202, 0.2);
    object-fit: cover;
    animation: float 3s ease-in-out infinite;
    opacity: 0;
    animation: fadeInFloat 1s ease-out forwards;
}

@keyframes fadeInFloat {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    100% {
        opacity: 0.8;
        transform: translateY(0) scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.preloader__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 600px;
    width: 90%;
    z-index: 1;
}

.preloader__title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 4rem;
    font-weight: 700;
    color: #1a9fca;
    letter-spacing: 0.2em;
    text-shadow: 
        0 0 20px rgba(26, 159, 202, 0.5),
        0 0 40px rgba(26, 159, 202, 0.3);
    animation: breathe 3s ease-in-out infinite;
}

.preloader__progress {
    width: 100%;
    max-width: 400px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.preloader__bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #1a9fca, #3dd68c);
    box-shadow: 0 0 10px rgba(26, 159, 202, 0.5);
    transition: width 0.05s linear;
}

.preloader__text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(26, 159, 202, 0.8);
    letter-spacing: 0.1em;
}

.preloader__dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.main-content {
    opacity: 0;
    transition: opacity 0.8s ease;
}

@media (max-width: 768px) {
    .preloader__avatar {
        width: 60px;
        height: 60px;
    }
    
    .preloader__title {
        font-size: 2.5rem;
    }
    
    .preloader__text {
        font-size: 0.875rem;
    }
}
