/* Interstellar Logo Assembly Preloader - Lines + Text Reveal */

.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0F1D38;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

.preloader-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.preloader-overlay.removed {
    display: none;
}

/* Logo Container - Updated dimensions for new viewBox (653.24 x 225) */
.logo-container {
    position: relative;
    width: 653.24px;
    height: 225px;
}

/* Stack all elements on top of each other */
.logo-line,
.logo-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.logo-line img,
.logo-text img {
    display: block;
    width: 100%;
    height: 100%;
}

/* Lines start hidden with blur */
.logo-line {
    opacity: 0;
    filter: blur(4px);
}

/* Text starts hidden (will appear after lines) */
.logo-text {
    opacity: 0;
    transform: scale(0.95);
    filter: blur(2px);
}

/* Animate lines flying in with stagger */
.logo-line.animate {
    animation: flyIn 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.logo-line:nth-child(1)  { animation-delay: 0.1s; }
.logo-line:nth-child(2)  { animation-delay: 0.2s; }
.logo-line:nth-child(3)  { animation-delay: 0.3s; }
.logo-line:nth-child(4)  { animation-delay: 0.4s; }
.logo-line:nth-child(5)  { animation-delay: 0.5s; }
.logo-line:nth-child(6)  { animation-delay: 0.6s; }
.logo-line:nth-child(7)  { animation-delay: 0.7s; }
.logo-line:nth-child(8)  { animation-delay: 0.8s; }
.logo-line:nth-child(9)  { animation-delay: 0.9s; }
.logo-line:nth-child(10) { animation-delay: 1.0s; }
.logo-line:nth-child(11) { animation-delay: 1.1s; }
.logo-line:nth-child(12) { animation-delay: 1.2s; }
.logo-line:nth-child(13) { animation-delay: 1.3s; }

/* Text appears after lines (at 1.4s) */
.logo-text.animate {
    animation: textReveal 1.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 1.8s;
}

/* Line Fly-in Animation */
@keyframes flyIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(200px);
        filter: blur(8px) brightness(1.5) saturate(1.5);
    }
    60% {
        opacity: 0.7;
        filter: blur(2px) brightness(1.2) saturate(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0) brightness(1) saturate(1);
    }
}

/* Text Reveal Animation */
@keyframes textReveal {
    0% {
        opacity: 0;
        transform: scale(0.95);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

/* Loading Text */
.loading-text {
    margin-top: 40px;
    color: #d9e0cd;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0;
    animation: textFadeIn 1s ease-out 1.5s forwards;
}

@keyframes textFadeIn {
    to { opacity: 0.6; }
}

/* Responsive */
@media (max-width: 768px) {
    .logo-container {
        transform: scale(0.7);
    }
    .loading-text {
        font-size: 12px;
        letter-spacing: 3px;
    }
}

@media (max-width: 480px) {
    .logo-container {
        transform: scale(0.5);
    }
}

/* Click prompt */
.preloader-click-prompt {
    position: absolute;
    bottom: 80px;
    color: #d9e0cd;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    animation: clickPromptFade 2s ease-in-out infinite;
    pointer-events: none;
}

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

.preloader-overlay[style*="cursor: pointer"] {
    cursor: pointer !important;
}