/* Animated Bubbles Background */
.bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.bubble {
    position: absolute;
    background: rgba(115, 200, 203, 0.3);
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
    opacity: 0;
}

.bubble:nth-child(1) {
    width: 20px;
    height: 20px;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.bubble:nth-child(2) {
    width: 30px;
    height: 30px;
    left: 20%;
    animation-delay: 1s;
    animation-duration: 8s;
}

.bubble:nth-child(3) {
    width: 15px;
    height: 15px;
    left: 30%;
    animation-delay: 2s;
    animation-duration: 7s;
}

.bubble:nth-child(4) {
    width: 25px;
    height: 25px;
    left: 40%;
    animation-delay: 0.5s;
    animation-duration: 9s;
}

.bubble:nth-child(5) {
    width: 35px;
    height: 35px;
    left: 50%;
    animation-delay: 3s;
    animation-duration: 6s;
}

.bubble:nth-child(6) {
    width: 18px;
    height: 18px;
    left: 60%;
    animation-delay: 1.5s;
    animation-duration: 8s;
}

.bubble:nth-child(7) {
    width: 28px;
    height: 28px;
    left: 70%;
    animation-delay: 2.5s;
    animation-duration: 7s;
}

.bubble:nth-child(8) {
    width: 22px;
    height: 22px;
    left: 80%;
    animation-delay: 4s;
    animation-duration: 9s;
}

.bubble:nth-child(9) {
    width: 32px;
    height: 32px;
    left: 90%;
    animation-delay: 0.5s;
    animation-duration: 6s;
}

.bubble:nth-child(10) {
    width: 16px;
    height: 16px;
    left: 95%;
    animation-delay: 3.5s;
    animation-duration: 8s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* Additional bubble variations for more natural movement */
.bubble:nth-child(odd) {
    animation-direction: alternate;
}

.bubble:nth-child(even) {
    animation-timing-function: ease-in-out;
}

/* Floating animation with slight horizontal movement */
@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    25% {
        transform: translateY(75vh) translateX(10px) rotate(90deg);
    }
    50% {
        transform: translateY(50vh) translateX(-5px) rotate(180deg);
    }
    75% {
        transform: translateY(25vh) translateX(15px) rotate(270deg);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) translateX(0px) rotate(360deg);
        opacity: 0;
    }
}

/* Pulsing effect for some bubbles */
.bubble:nth-child(3n) {
    animation-name: float-pulse;
}

@keyframes float-pulse {
    0% {
        transform: translateY(100vh) translateX(0px) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    25% {
        transform: translateY(75vh) translateX(10px) rotate(90deg) scale(1.2);
    }
    50% {
        transform: translateY(50vh) translateX(-5px) rotate(180deg) scale(0.8);
    }
    75% {
        transform: translateY(25vh) translateX(15px) rotate(270deg) scale(1.1);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) translateX(0px) rotate(360deg) scale(1);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bubble {
        animation-duration: 8s;
    }
    
    .bubble:nth-child(even) {
        animation-duration: 10s;
    }
}
