/* Floating Bubbles Animation */

.bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float linear infinite;
    opacity: 0;
}

.bubble::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 30%;
    height: 30%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    filter: blur(2px);
}

.bubble::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 20%;
    width: 15%;
    height: 15%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    filter: blur(1px);
}

/* Individual bubble styles */
.bubble-1 {
    width: 80px;
    height: 80px;
    left: 10%;
    animation-duration: 15s;
    animation-delay: 0s;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.3), rgba(155, 89, 182, 0.3));
}

.bubble-2 {
    width: 60px;
    height: 60px;
    left: 20%;
    animation-duration: 12s;
    animation-delay: 2s;
    background: linear-gradient(45deg, rgba(46, 204, 113, 0.3), rgba(52, 152, 219, 0.3));
}

.bubble-3 {
    width: 100px;
    height: 100px;
    left: 35%;
    animation-duration: 18s;
    animation-delay: 4s;
    background: linear-gradient(45deg, rgba(155, 89, 182, 0.3), rgba(233, 30, 99, 0.3));
}

.bubble-4 {
    width: 40px;
    height: 40px;
    left: 50%;
    animation-duration: 10s;
    animation-delay: 1s;
    background: linear-gradient(45deg, rgba(241, 196, 15, 0.3), rgba(230, 126, 34, 0.3));
}

.bubble-5 {
    width: 120px;
    height: 120px;
    left: 70%;
    animation-duration: 20s;
    animation-delay: 3s;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.2), rgba(46, 204, 113, 0.2));
}

.bubble-6 {
    width: 50px;
    height: 50px;
    left: 85%;
    animation-duration: 14s;
    animation-delay: 5s;
    background: linear-gradient(45deg, rgba(230, 126, 34, 0.3), rgba(231, 76, 60, 0.3));
}

.bubble-7 {
    width: 70px;
    height: 70px;
    left: 5%;
    animation-duration: 16s;
    animation-delay: 6s;
    background: linear-gradient(45deg, rgba(155, 89, 182, 0.2), rgba(142, 68, 173, 0.2));
}

.bubble-8 {
    width: 90px;
    height: 90px;
    left: 25%;
    animation-duration: 13s;
    animation-delay: 8s;
    background: linear-gradient(45deg, rgba(26, 188, 156, 0.3), rgba(22, 160, 133, 0.3));
}

.bubble-9 {
    width: 110px;
    height: 110px;
    left: 60%;
    animation-duration: 17s;
    animation-delay: 7s;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.25), rgba(155, 89, 182, 0.25));
}

.bubble-10 {
    width: 35px;
    height: 35px;
    left: 90%;
    animation-duration: 11s;
    animation-delay: 9s;
    background: linear-gradient(45deg, rgba(241, 196, 15, 0.4), rgba(243, 156, 18, 0.4));
}

/* Float animation */
@keyframes float {
    0% {
        bottom: -150px;
        opacity: 0;
        transform: translateX(0) rotate(0deg);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        bottom: calc(100vh + 150px);
        opacity: 0;
        transform: translateX(100px) rotate(360deg);
    }
}

/* Alternative floating patterns */
.bubble-1,
.bubble-4,
.bubble-7,
.bubble-10 {
    animation-name: floatLeft;
}

.bubble-3,
.bubble-6,
.bubble-9 {
    animation-name: floatRight;
}

@keyframes floatLeft {
    0% {
        bottom: -150px;
        opacity: 0;
        transform: translateX(0) rotate(0deg) scale(0.5);
    }
    10% {
        opacity: 1;
        transform: translateX(0) rotate(0deg) scale(1);
    }
    50% {
        transform: translateX(-50px) rotate(180deg) scale(1.1);
    }
    90% {
        opacity: 1;
    }
    100% {
        bottom: calc(100vh + 150px);
        opacity: 0;
        transform: translateX(-100px) rotate(360deg) scale(0.5);
    }
}

@keyframes floatRight {
    0% {
        bottom: -150px;
        opacity: 0;
        transform: translateX(0) rotate(0deg) scale(0.8);
    }
    10% {
        opacity: 1;
        transform: translateX(0) rotate(0deg) scale(1);
    }
    50% {
        transform: translateX(80px) rotate(-180deg) scale(1.2);
    }
    90% {
        opacity: 1;
    }
    100% {
        bottom: calc(100vh + 150px);
        opacity: 0;
        transform: translateX(150px) rotate(-360deg) scale(0.6);
    }
}

/* Pulse effect for some bubbles */
.bubble-2,
.bubble-5,
.bubble-8 {
    animation: float linear infinite, pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bubble {
        transform: scale(0.7);
    }

    .bubble-1,
    .bubble-3,
    .bubble-5,
    .bubble-9 {
        display: none; /* Hide some bubbles on mobile for performance */
    }
}

@media (max-width: 480px) {
    .bubble {
        transform: scale(0.5);
    }

    .bubble-2,
    .bubble-7,
    .bubble-8 {
        display: none;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .bubble {
        animation-duration: 60s;
        opacity: 0.3;
    }

    .bubble::before,
    .bubble::after {
        display: none;
    }
}