#singularity-section {
    position: relative;
    width: 100%;
    height: 450px; 
    --grad-pos: -100%; 
    background: radial-gradient(circle,#ffffff var(--grad-pos), #44a1ab 2%, #0a2540 5%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: none; 
    clip-path: polygon(50% 23%, 100% 0, 100% 100%, 50% 100%, 0 100%, 0 0);
    padding-bottom: 40px; 
    transition: background 0.1s linear;
    transform:translateY(1px);
}
.singularity-text {
    top: 20px;
    color: #eaf2fa;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    z-index: 20;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: 111px;
    user-select: none;
}

.black-hole-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
}

.the-book {
    font-size: 80px;
    position: relative;
    z-index: 2;
    animation: bookFloat 3s ease-in-out infinite;
    cursor: pointer;
}

.book-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    filter: blur(40px);
    opacity: 0.6;
    animation: pulseGlow 2s infinite alternate;
    z-index: 1;
}



@keyframes bookFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

@keyframes pulseGlow {
    from { width: 100px; height: 100px; opacity: 0.5; }
    to { width: 140px; height: 140px; opacity: 0.8; background: var(--accent); }
}

@keyframes suckIn {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    100% {
        transform: translate(var(--dest-x), var(--dest-y)) scale(0) rotate(360deg);
        opacity: 0;
    }
}

@keyframes spitOut {
    0% {
        transform: translate(0, 0) scale(0) rotate(0deg);
        opacity: 0;
    }
    20% { opacity: 1; }
    100% {
        transform: translate(var(--dest-x), var(--dest-y)) scale(1.5) rotate(-180deg);
        opacity: 0;
    }
}

.avatar-particle {
    position: absolute;
    font-size: 2rem;
    will-change: transform, opacity;
}
.time-stop, .time-stop * {
    animation-play-state: paused !important;
}

.black-hole-center:active .the-book {
    transform: scale(0.9); 
    filter: brightness(1.2);
    transition: transform 0.1s;
}
.singularity-implode .black-hole-center {
    transition: transform 0.6s cubic-bezier(0.6, -0.28, 0.735, 0.045), opacity 0.4s;
    transform: scale(0) rotate(720deg);
    opacity: 0;
}

.singularity-implode .avatar-particle {
    transition: all 0.5s ease;
    left: 50% !important;
    top: 50% !important;
    opacity: 0;
    transform: scale(0);
}

.singularity-implode {
    transition: height 0.5s ease 0.4s, opacity 0.5s ease 0.4s, border 0s linear 0.9s;
    height: 0 !important;
    opacity: 0;
    border: none;
    margin: 0;
    pointer-events: none; 
}
.time-stop, .time-stop * {
    animation-play-state: paused !important;
}

.book-closed-state .book-icon {
    transform: scale(0.9);
}

.flipping {
    animation: flipBook 0.4s ease-in-out;
}

@keyframes flipBook {
    0% { transform: rotateY(0deg) scale(1); }
    50% { transform: rotateY(90deg) scale(1.1); opacity: 0.5; }
    100% { transform: rotateY(0deg) scale(1); }
}

.book-glow {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.book-closed-state .book-glow {
    opacity: 0 !important;
    transform: translate(-50%, -50%) scale(0) !important;
}

.black-hole-center:active .book-icon {
    filter: brightness(0.8);
}