
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFC800;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pageLoad {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

body > *:not(.page-transition):not(.navbar) {
    animation: pageLoad 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

body > section:nth-child(2) { animation-delay: 0.05s; }
body > section:nth-child(3) { animation-delay: 0.1s; }
body > section:nth-child(4) { animation-delay: 0.15s; }
body > section:nth-child(5) { animation-delay: 0.2s; }
body > footer { animation-delay: 0.25s; }
