* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #EBE5DB;    
    min-height: 300vh;
    overflow-x: hidden;
}

.scene {
    position: fixed;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    transform-style: preserve-3d;       
}

.base-layer {
    position: absolute;
    width: 200%;
    height: 200%;
    background: #EBE5DB;
    z-index: 0;
}

.back-layer-left, .back-layer-right {
    position: absolute;
    width: 60%;
    height: 100%;
    display: flex;
    align-items: center;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    overflow: visible;
    z-index: 1;
    mix-blend-mode: multiply;
    
}

.back-layer-left {
    left: -20%;
    bottom: -10%;
    justify-content: flex-end;
 
       
}

.back-layer-right {
    right: -20%;
    bottom: -10%;
    justify-content: flex-start;
      
}

.b1-img, .b2-img {
    height: 130vh;
    width: auto;
    will-change: transform, opacity;
    mix-blend-mode: multiply;
    object-fit: contain;
}

.b1-img {
    transform-origin: right center;
    margin-right: -30%;
}

.b2-img {
    transform-origin: left center;
    margin-left: -30%;
}

.background {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    z-index: 2;
   
}

.gradient-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

.gradient-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 43.33vh;
    background: linear-gradient(to bottom, 
        rgba(235, 229, 219, 0) 0%,
        rgba(235, 229, 219, 1) 40%,
        rgba(235, 229, 219, 1) 100%
    );
    mix-blend-mode: multiply;
}

.middle-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    z-index: 3;
}

.foreground {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    z-index: 5;
}

.symbol-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    z-index: 6;
}

.text-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 5vh;
    gap: 2vh;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    z-index: 7;
}

.bg-svg {
    width: 80vmin;
    height: 80vmin;
    transform-origin: center center;
    will-change: transform;
}

.person-svg {
    width: 160vmin;
    height: auto;
    transform-origin: center center;
    will-change: transform;
    filter: brightness(0.9) contrast(1.2);
}

.book-svg {
    width: 20vmin;
    height: 20vmin;
    transform-origin: center center;
    will-change: transform;
    display: flex;
    justify-content: center;
    align-items: center;
}

#bookLottie {
    width: 30%;
    height: 30%;
}

.symbol-svg {
    width: 90vmin;
    height: 90vmin;
    opacity: 0;
    filter: blur(20px);
    transform-origin: center center;
    will-change: transform, opacity, filter;
}

.prompt-text {
    width: 100vmin;
    height: auto;
    transform-origin: center center;
    will-change: transform;
}

.coming-soon-text {
    width: 40vmin;
    height: auto;
    transform-origin: center center;
    will-change: transform;
    transform: translate(25%, -60%);
}

.spacer {
    height: 300vh;
}

/* Add smooth transition for initial state */
.bg-svg, .person-svg, .book-svg, .symbol-svg, .prompt-text, .coming-soon-text {
    transition: filter 0.3s ease-out;
}

/* Optimize performance */
.scene * {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
