/* Loader Container */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color, #010915);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    position: relative;
    width: 100px;
    height: 100px;
}

.loader-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    opacity: 0;
    /* No consistent animation here, defined by specific classes below */
}

/* 
   Animation Cycle:
   Total cycle: 2s (0.5s per icon)
   We want them to appear one after another.
*/

.icon-1 {
    animation: cycleFade 2s linear infinite 0s;
}

.icon-2 {
    animation: cycleFade 2s linear infinite 0.5s;
}

.icon-3 {
    animation: cycleFade 2s linear infinite 1.0s;
}

.icon-4 {
    animation: cycleFade 2s linear infinite 1.5s;
}

@keyframes cycleFade {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    25% {
        opacity: 1;
    }

    /* Stay visible for 1/4 of the time */
    30% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}