/* Loader Wrapper */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2147483647; /* Max z-index */
    background-color: #050a14;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
    overflow: hidden; /* Prevent scroll within loader */
}

/* Hide scrollbar on body when loading */
body.loading-active {
    overflow: hidden !important;
}

#loader-wrapper.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* 3D Background Canvas */
#bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Central Lottie Animation */
#lottie-loader {
    width: 300px;
    height: 300px;
    z-index: 2;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Retro Terminal Text */
.loader-text {
    z-index: 2;
    margin-top: 20px;
    font-family: 'Space Grotesk', monospace;
    font-size: 1.2rem;
    color: #ec3750; /* Hack Club Red */
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: blink 1.5s infinite;
}

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