.container {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 0;
}

.wave {
    width: 200px;
    height: 200px;
    border: 4px solid;
    border-color: #006EF1;
    filter: blur(15px);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center center;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    /* Start invisible */
    animation: fadeIn 500ms ease-out forwards;
}

.wave.visible {
    /* Run fadeIn first for 1s, then start eminate after 1s and repeat infinitely */
    animation: eminate 3s ease-out infinite;
    /* Apply the original staggered delay to the whole animation sequence */
    animation-delay: calc(400ms * var(--i));
}

/* Define the improved fadeIn animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.4);
        /* Start slightly smaller */
        filter: blur(0px);
    }

    100% {
        opacity: 0.1;
        /* Fade in to the starting opacity of eminate */
        transform: translate(-50%, -50%) scale(0.5);
        /* Scale to the starting size of eminate */
        filter: blur(10px);
        /* Match starting blur of eminate */
    }
}

@keyframes eminate {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.5;
        filter: blur(10px);
    }

    100% {
        transform: translate(-50%, -50%) scale(3);
        /* Expand further */
        opacity: 0;
        /* Fade out */
        filter: blur(20px);
        /* Increase blur as it expands */
    }
}