/* Splash Screen Styles */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    z-index: 99999; /* Ensure it is above everything, including navbar */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

#splash-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#splash-content {
    position: relative;
    z-index: 100000;
    text-align: center;
}

#splash-enter-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 200;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 15px 30px;
    opacity: 0;
    transform: translate(-50%, -50%) translateY(20px);
    position: absolute;
    left: 50%;
    top: 50%;
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), 
                letter-spacing 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                text-shadow 0.6s ease;
}

#splash-enter-btn.show {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
    animation: splash-pulse 3s infinite ease-in-out alternate;
}

#splash-enter-btn:hover {
    letter-spacing: 0.38em;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

#splash-enter-btn:focus {
    outline: none;
}

/* Ambient Hero Background Canvas */
#hero-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 2s ease;
}

#hero-bg-canvas.show {
    opacity: 0.45;
}

@keyframes splash-pulse {
    0% {
        opacity: 0.85;
        transform: translate(-50%, -50%) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.02);
    }
}

/* Mobile optimizations for splash button */
@media (max-width: 768px) {
    #splash-enter-btn {
        font-size: 1.4rem;
        letter-spacing: 0.18em;
        padding: 10px 20px;
    }
}
