/* Bubbling Background */
.bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom, #e0f2fe, #dbeafe);
    /* Very light blue gradient */
    overflow: hidden;
}

.bubbles-container span {
    position: absolute;
    bottom: -50px;
    background: transparent;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5);
    animation: rise 10s infinite linear;
}

/* Create varying bubble sizes and positions */
.bubbles-container span::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    transform: scale(0.25) translate(-70%, -70%);
    background: radial-gradient(#fff, transparent);
    border-radius: 50%;
}

@keyframes rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translateY(-120vh) scale(1.5);
        opacity: 0;
    }
}

/* Randomize bubbles using the custom property --i */
.bubbles-container span:nth-child(even) {
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.bubbles-container span:nth-child(odd) {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

/* Generate different positions and sizes based on --i */
.bubbles-container span:nth-child(1) {
    left: 10%;
    width: 40px;
    height: 40px;
    animation-duration: 8s;
    animation-delay: 0s;
}

.bubbles-container span:nth-child(2) {
    left: 20%;
    width: 60px;
    height: 60px;
    animation-duration: 12s;
    animation-delay: 1s;
}

.bubbles-container span:nth-child(3) {
    left: 35%;
    width: 30px;
    height: 30px;
    animation-duration: 7s;
    animation-delay: 2s;
}

.bubbles-container span:nth-child(4) {
    left: 50%;
    width: 80px;
    height: 80px;
    animation-duration: 15s;
    animation-delay: 0s;
}

.bubbles-container span:nth-child(5) {
    left: 65%;
    width: 35px;
    height: 35px;
    animation-duration: 9s;
    animation-delay: 1s;
}

.bubbles-container span:nth-child(6) {
    left: 80%;
    width: 45px;
    height: 45px;
    animation-duration: 11s;
    animation-delay: 3s;
}

.bubbles-container span:nth-child(7) {
    left: 90%;
    width: 55px;
    height: 55px;
    animation-duration: 13s;
    animation-delay: 2s;
}

.bubbles-container span:nth-child(8) {
    left: 15%;
    width: 20px;
    height: 20px;
    animation-duration: 6s;
    animation-delay: 4s;
}

.bubbles-container span:nth-child(9) {
    left: 25%;
    width: 70px;
    height: 70px;
    animation-duration: 14s;
    animation-delay: 2s;
}

.bubbles-container span:nth-child(10) {
    left: 45%;
    width: 90px;
    height: 90px;
    animation-duration: 16s;
    animation-delay: 4s;
}

.bubbles-container span:nth-child(11) {
    left: 5%;
    width: 25px;
    height: 25px;
    animation-duration: 9s;
    animation-delay: 5s;
}

.bubbles-container span:nth-child(12) {
    left: 75%;
    width: 40px;
    height: 40px;
    animation-duration: 10s;
    animation-delay: 6s;
}

.bubbles-container span:nth-child(13) {
    left: 60%;
    width: 50px;
    height: 50px;
    animation-duration: 12s;
    animation-delay: 5s;
}

.bubbles-container span:nth-child(14) {
    left: 85%;
    width: 30px;
    height: 30px;
    animation-duration: 8s;
    animation-delay: 7s;
}

.bubbles-container span:nth-child(15) {
    left: 30%;
    width: 65px;
    height: 65px;
    animation-duration: 13s;
    animation-delay: 6s;
}

.bubbles-container span:nth-child(16) {
    left: 95%;
    width: 45px;
    height: 45px;
    animation-duration: 11s;
    animation-delay: 8s;
}

.bubbles-container span:nth-child(17) {
    left: 40%;
    width: 35px;
    height: 35px;
    animation-duration: 10s;
    animation-delay: 9s;
}

.bubbles-container span:nth-child(18) {
    left: 55%;
    width: 75px;
    height: 75px;
    animation-duration: 15s;
    animation-delay: 8s;
}

.bubbles-container span:nth-child(19) {
    left: 70%;
    width: 25px;
    height: 25px;
    animation-duration: 7s;
    animation-delay: 10s;
}

.bubbles-container span:nth-child(20) {
    left: 10%;
    width: 50px;
    height: 50px;
    animation-duration: 12s;
    animation-delay: 8s;
}