body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: radial-gradient(circle, #0d1117, #000);
    overflow: hidden;
}

.scene {
    position: relative;
    width: 200px;
    height: 200px;
    perspective: 1000px;
}

.book {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: openBook 2s ease forwards;
}

.cover {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1e90ff, #00bfff);
    border-radius: 5px;
    transform-origin: left center;
    backface-visibility: hidden;
}

    .cover.front {
        transform: rotateY(0deg);
    }

    .cover.back {
        transform: rotateY(-180deg);
        background: #001f3f;
    }

.pages {
    position: absolute;
    width: 95%;
    height: 95%;
    top: 2.5%;
    left: 2.5%;
    background: white;
    border-radius: 5px;
    transform-origin: center;
}

.hologram {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.8), rgba(0, 255, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(10px);
    animation: hologramEffect 2s ease forwards;
}

@keyframes openBook {
    0% {
        transform: rotateY(0deg);
    }

    50% {
        transform: rotateY(-90deg);
    }

    100% {
        transform: rotateX(45deg);
    }
}

@keyframes hologramEffect {
    0% {
        transform: translateX(-50%) scale(0);
        opacity: 0;
    }

    50% {
        transform: translateX(-50%) scale(1.2);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) scale(0);
        opacity: 0;
    }
}

/* Static position after animation */
.static {
    transform: rotateX(45deg) rotateY(-10deg) !important;
    animation: none;
}
