#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.preloader-bars {
    display: flex;
    align-items: end;
    gap: 6px;
    height: 40px;
}

.preloader-bars span {
    width: 4px;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.3) 100%);
    border-radius: 4px;
    animation: bars 1s ease-in-out infinite;
}

.preloader-bars span:nth-child(1) {
    height: 40%;
    animation-delay: 0s;
}

.preloader-bars span:nth-child(2) {
    height: 70%;
    animation-delay: 0.1s;
}

.preloader-bars span:nth-child(3) {
    height: 100%;
    animation-delay: 0.2s;
}

.preloader-bars span:nth-child(4) {
    height: 70%;
    animation-delay: 0.3s;
}

.preloader-bars span:nth-child(5) {
    height: 40%;
    animation-delay: 0.4s;
}

@keyframes bars {
    0%, 100% {
        transform: scaleY(1);
        opacity: 0.5;
    }
    50% {
        transform: scaleY(0.4);
        opacity: 1;
    }
}

.preloader-text {
    font-family: inherit;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    overflow: hidden;
}

.preloader-text span {
    display: inline-block;
    animation: textReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(100%);
}

.preloader-text span:nth-child(1) { animation-delay: 0.1s; }
.preloader-text span:nth-child(2) { animation-delay: 0.15s; }
.preloader-text span:nth-child(3) { animation-delay: 0.2s; }
.preloader-text span:nth-child(4) { animation-delay: 0.25s; }
.preloader-text span:nth-child(5) { animation-delay: 0.3s; }
.preloader-text span:nth-child(6) { animation-delay: 0.35s; }
.preloader-text span:nth-child(7) { animation-delay: 0.4s; }
.preloader-text span:nth-child(8) { animation-delay: 0.45s; }
.preloader-text span:nth-child(9) { animation-delay: 0.5s; }

@keyframes textReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preloader-line {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.preloader-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    animation: lineMove 1.5s ease-in-out infinite;
}

@keyframes lineMove {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(350%);
    }
}