@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600&display=swap');

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #050505;
    font-family: 'Open Sans', sans-serif;
    color: white;
}

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.center-text {
    color: rgb(255, 255, 255);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-weight: 300;
    font-size: clamp(20px, 4.5vw, 50px);
    letter-spacing: 0.5em;
    text-align: center;
    pointer-events: none; /* Let clicks pass through to canvas if needed */
    white-space: nowrap;
    text-shadow: 0 0 20px rgba(0,0,0,0.9), 0 0 40px rgba(0,0,0,0.9);
    
    /* Animation Initial State */
    opacity: 0;
    transform: translate(-50%, -50%) translateY(30px);
    transition: opacity 1s ease, transform 2s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: 0.1s; /* Start after curtains begin */
}

body.revealed .center-text {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

.bottom-nav {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 40px;
    z-index: 2;
}

.bottom-nav a {
    color: white;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.4em;
    font-weight: 400;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.bottom-nav a:hover {
    opacity: 1;
}

/* Curtain Reveal Animation */
.curtain {
    position: fixed;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: #000;
    z-index: 1000;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
}

.curtain.top {
    top: 0;
    transform-origin: top;
}

.curtain.bottom {
    bottom: 0;
    transform-origin: bottom;
}

body.revealed .curtain.top {
    transform: translateY(-100%);
}

body.revealed .curtain.bottom {
    transform: translateY(100%);
}

/* Enter Overlay */
#enter-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000; /* Above curtains */
    color: white;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 24px;
    letter-spacing: 0.5em;
    cursor: pointer;
    transition: opacity 0.5s ease, transform 0.3s ease;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

#enter-overlay:hover {
    transform: translate(-50%, -50%);
    text-shadow: 0 0 20px rgba(255,255,255,0.8);
}

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

