@keyframes handleScroll {
    0% {
        background-color: rgba(0, 0, 0, 0);
        backdrop-filter: blur(0px);
    }
    10%, 20% {
        background-color: rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
    }
    100% {
        background-color: rgba(0, 0, 0, 0.25);
        backdrop-filter: blur(10px);
    }
}

@keyframes scroll-flick {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(-20px); /* Moves it toward the top */
        opacity: 0;
    }
}

@keyframes fade-out-on-scroll {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes parallax {
    0% {
        /* Entering from bottom: Pushed down significantly */
        transform: translateY(100px);
    }
    35%, 65% {
        /* Centered in view: Zero offset (Normal pace) */
        transform: translateY(0px);
    }
    100% {
        /* Leaving through top: Pulled up significantly */
        transform: translateY(-100px);
    }
}

@keyframes entry {
    from {
        opacity: 0;
        transform: translateY(80px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fillDeadSpace {
    0% {
        /* Entering from bottom: Pushed down significantly */
        height: 50px;
    }
    10%, 70% {
        /* Centered in view: Zero offset (Normal pace) */
        height: 200px;
    }
    100% {
        /* Leaving through top: Pulled up significantly */
        height: 300px;
    }
}