/* layout.css */
body {
    overflow-x: hidden;
}

#intro-sequence {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-bg-dark);
    z-index: var(--z-intro);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 1s ease-in-out;
}

.intro-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-origin: center center;
}

#world-window {
    position: relative;
    width: 100%;
    min-height: 100vh;
    opacity: 1; /* toggled by JS */
}

#world-window.hidden {
    display: none;
    opacity: 0;
}

/* Living City Layers (Fixed Background) */
.living-city {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: var(--z-city-bg);
    pointer-events: none;
}

.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center bottom;
}

.site-content {
    position: relative;
    z-index: var(--z-content);
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: linear-gradient(to bottom, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 100%);
    color: var(--color-text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-section {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.85); /* Frosting over the city */
    backdrop-filter: blur(5px);
    margin: 4rem 2rem;
    border-radius: 20px;
    color: var(--color-text-dark);
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 2rem;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem !important;
    }

    .content-section {
        margin: 2rem 1rem;
        padding: 4rem 0;
    }
}
