/* Stylish Black & White Loader */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    overflow: hidden;
}

.loader-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: scanLine 3s ease-in-out infinite;
}

.loader-container.hidden {
    animation: fadeOut 0.8s ease forwards;
}

.loader-logo {
    position: relative;
    margin-bottom: 60px;
}

.logo-text {
    font-family: 'Aeonik', monospace;
    font-size: 120px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 8px;
    text-shadow: 0 0 30px rgba(255,255,255,0.5);
    animation: logoGlitch 2s ease-in-out infinite;
}

.logo-text::before {
    content: 'T4B';
    position: absolute;
    top: 0;
    left: 2px;
    color: #ff0000;
    z-index: -1;
    animation: glitchRed 0.3s ease-in-out infinite alternate;
}

.logo-text::after {
    content: 'T4B';
    position: absolute;
    top: 0;
    left: -2px;
    color: #00ffff;
    z-index: -2;
    animation: glitchBlue 0.3s ease-in-out infinite alternate-reverse;
}

.loader-progress {
    width: 300px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin-bottom: 40px;
    overflow: hidden;
    position: relative;
}

.loader-bar {
    height: 100%;
    background: #fff;
    width: 0%;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 10px #fff, 0 0 20px #fff;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, #fff);
    animation: progressGlow 1s ease-in-out infinite;
}

.loader-text {
    font-family: 'Aeonik', monospace;
    font-size: 12px;
    font-weight: 400;
    color: #fff;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.8;
    animation: textFlicker 1.5s ease-in-out infinite;
}

.loader-dots {
    position: absolute;
    bottom: 80px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    animation: dotPulse 1.2s ease-in-out infinite;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
.dot:nth-child(4) { animation-delay: 0.6s; }
.dot:nth-child(5) { animation-delay: 0.8s; }

@keyframes scanLine {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes logoGlitch {
    0%, 90%, 100% { transform: translate(0); }
    10% { transform: translate(-2px, 1px); }
    20% { transform: translate(2px, -1px); }
    30% { transform: translate(-1px, 2px); }
    40% { transform: translate(1px, -2px); }
    50% { transform: translate(-2px, 1px); }
    60% { transform: translate(2px, -1px); }
    70% { transform: translate(-1px, 2px); }
    80% { transform: translate(1px, -2px); }
}

@keyframes glitchRed {
    0% { opacity: 0.8; transform: translate(0); }
    100% { opacity: 0.2; transform: translate(2px, 0); }
}

@keyframes glitchBlue {
    0% { opacity: 0.8; transform: translate(0); }
    100% { opacity: 0.2; transform: translate(-2px, 0); }
}

@keyframes progressGlow {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

@keyframes textFlicker {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 1; }
}

@keyframes fadeOut {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.1); }
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 80px;
        letter-spacing: 4px;
    }
    
    .loader-progress {
        width: 200px;
    }
    
    .loader-text {
        font-size: 10px;
        letter-spacing: 2px;
    }
}