body {
    margin: 0;
    padding: 0;
    background-color: #EBC791;
    font-family: sans-serif;
    overflow: visible; /* Ensure nothing spills out during animation */
}

.scroll-spacer {
    height: 0; /* Dynamically set by JavaScript based on content overflow */
    width: 100%;
}

.scene-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none; /* Allow scrolling through the fixed container */
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px; /* For potential 3D rotations */
    margin: 0;
    padding: 0;
}

.scene-content {
    position: relative;
    width: 100%;
    height: 100%;
    transform-origin: center center;
}

.background-gradient {
    position: absolute;
    top: 45%;
    left: 50%;
    /* transform handled by GSAP to allow scale animation */
    width: 800px;
    height: 800px;
    /* Optimized: Use gradient for softness instead of blur filter */
    background: radial-gradient(circle, rgba(249, 239, 219, 1) 0%, rgba(242, 219, 182, 1) 20%, rgba(235, 199, 145, 1) 70%);
    z-index: 1;
    pointer-events: none;
    border-radius: 50%;
    /* mix-blend-mode: multiply; - Removed for performance */
    will-change: transform, opacity; /* Hint for browser optimization */
}

.asset {
    position: absolute;
    /* Default centered, will adjust specific items */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80vw; /* Prevent huge images from overflowing too much */
    max-height: 80vh;
    display: block;
    will-change: transform, opacity; /* Hint for browser optimization */
}

/* Specific Positioning (Final State) */

/* Desk - Centered exactly */
#desk {
    z-index: 10;
    width: 600px; /* Adjust based on actual image size */
    max-width: 90%;
    margin-left: 0px;
    margin-top: 0px;
    transform: translate(-50%, -50%) scale(1);
}

/* Posters - Behind desk, higher up */
.poster-wrapper {
    opacity: 0; /* Start hidden */
    z-index: 5;
}

#nirvana-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5;
    margin-left: -105px;
    margin-top: -292px;
    transform: translate(-50%, -50%) rotate(-5deg) scale(1);
    width: 150px;
    height: 225px; /* 1024x1536 aspect ratio is 1:1.5. 150 * 1.5 = 225px */
}

.poster-mask {
    position: relative;
    width: 100%;
    height: 0%; /* Start closed */
    overflow: hidden;
}

.poster-image {
    width: 100%;
    display: block;
    /* Important: Image stays fixed relative to the top of the wrapper, 
       so as mask opens, we see more of it. */
}

.poster-roll {
    position: absolute;
    top: 0%; /* Follows the mask bottom */
    left: -5%; /* Make it slightly wider than the poster */
    width: 110%;
    height: 15px;
    background: linear-gradient(to bottom, #dcdcdc, #f0f0f0, #bfbfbf);
    border-radius: 2px; /* Cylindrical look, slight rounding at corners but not oval */
    box-shadow: 0 5px 5px rgba(0,0,0,0.3);
    z-index: 10;
    margin-top: -8px; /* Pull up to overlap the bottom edge */
}

#larry-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5;
    margin-left: 105px;
    margin-top: -315px;
    transform: translate(-50%, -50%) rotate(3deg) scale(1);
    width: 150px;
    height: 225px; /* Same aspect ratio */
}

/* Desk Items - On top of desk */
.desk-item {
    z-index: 20;
}

#pc-wrapper {
    margin-left: 48px;
    margin-top: -134px;
    width: 200px;
    transform: translate(-50%, -50%) scale(1); 
}

.pc-image {
    width: 100%;
    display: block;
}

.pc-cursor {
    position: absolute;
    top: 20%; /* Moved up */
    left: 35%; /* Moved right */
    width: 8px;
    height: 14px;
    background-color: #00ff00;
    box-shadow: 0 0 4px #00ff00;
    opacity: 1; /* Visible from start */
    z-index: 21; /* Above the PC image */
}

.pc-text {
    position: absolute;
    top: 20%; /* Match cursor starting position */
    left: 35%; /* Match cursor starting position */
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 14px;
    color: #00ff00;
    text-shadow: 0 0 2px #00ff00;
    white-space: pre;
    line-height: 1.4;
    transform-origin: top left;
    opacity: 0;
    z-index: 21;
}

.blinking {
    animation: blink 1s step-end infinite;
}

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

#cd {
    margin-left: -171px;
    margin-top: -83px;
    width: 80px;
    transform: translate(-50%, -50%) rotate(15deg) scale(0.8);
}

/* Burger Components - Final positions */
#bun-bottom {
    margin-left: -87px;
    margin-top: -100px;
    transform: translate(-50%, -50%) scale(0.10);
    z-index: 20;
}

#burger-patty {
    margin-left: -88px;
    margin-top: -107px;
    transform: translate(-50%, -50%) scale(0.10);
    z-index: 21;
}

#cheese {
    margin-left: -87px;
    margin-top: -108px;
    transform: translate(-50%, -50%) scale(0.10);
    z-index: 22;
}

#tomato {
    margin-left: -87px;
    margin-top: -114px;
    transform: translate(-50%, -50%) scale(0.10);
    z-index: 23;
}

#lettuce {
    margin-left: -88px;
    margin-top: -118px;
    transform: translate(-50%, -50%) scale(0.10);
    z-index: 24;
}

#bun-top {
    /* Slightly adjust to sit neatly on the lettuce/tomato stack */
    margin-left: -87px;
    margin-top: -128px; /* Moved up 2 more pixels */
    transform: translate(-50%, -50%) scale(0.10);
    z-index: 25;
}

#pizza {
    margin-left: 173px;
    margin-top: -76px;
    width: 120px;
    transform: translate(-50%, -50%) scale(0.65);
}

#odway-wrapper {
    z-index: 25;
    margin-left: 262px;
    margin-top: -294px;
    width: 120px;
    transform: translate(-50%, -50%) scale(1.15);
}

.odway-image {
    width: 100%;
    display: block;
}

/* Guitar - Leaning */
#guitar {
    z-index: 30;
    margin-left: -262px;
    margin-top: -6px;
    width: 150px;
    transform: translate(-50%, -50%) rotate(-10deg) scale(1);
}

/* Basketball */
#basketball {
    z-index: 30;
    margin-left: 161px;
    margin-top: 99px;
    width: 375px;
    transform: translate(-50%, -50%) scale(0.2);
}

/* Content Area */
.content-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 0); /* Center horizontally, top aligned */
    margin-top: 180px; /* Push below the desk (desk is roughly centered) */
    width: 600px;
    max-width: 90%;
    font-family: 'Courier New', Courier, monospace;
    color: #333;
    z-index: 15; /* Behind desk items but visible */
    opacity: 0; /* Start invisible */
    text-align: center;
    pointer-events: auto; /* Re-enable interactions since parent has pointer-events: none */
}

.content-area h2 {
    font-size: 24px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.content-area .date {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.content-area p {
    font-size: 16px;
    line-height: 1.6;
}

/* Social Footer */
.social-footer {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-icon {
    width: 32px;
    height: 32px;
    opacity: 0; /* Hidden initially, animated by JS */
}

/* Hover effects handled by JS now */

.hidden {
    display: none !important;
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #333;
    opacity: 1;
    transition: opacity 0.3s;
    z-index: 100;
}

.scroll-indicator p {
    margin: 0 0 5px 0;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.arrow {
    font-size: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}
/* Responsive Scaling */
@media (max-width: 768px) {
    .scene-content {
        transform: scale(0.7);
        transform-origin: center center;
    }

    #desk {
        width: 600px; /* Fixed size */
        max-width: none; /* Override the 90% max-width */
    }

    /* Adjust scroll indicator position since it's fixed and outside the scaled container */
    .scroll-indicator {
        bottom: 80px; /* Move up a bit */
    }
}

@media (max-width: 500px) {
    .scene-content {
        transform: scale(0.5);
        transform-origin: center center;
    }

    #desk {
        width: 600px; /* Fixed size */
        max-width: none; /* Override the 90% max-width */
    }

    /* Lock burger component positions */
    #bun-bottom,
    #burger-patty,
    #cheese,
    #tomato,
    #lettuce,
    #bun-top {
        margin-left: -87px !important;
    }
}
