/* GLOBAL BUBBLES EFFECT FOR ALL SECTIONS */

/* Bubble Container */
.bubble-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

/* Individual Bubble Styles */
.bubble {
    position: absolute;
    bottom: -150px;
    border-radius: 50%;
    opacity: 0;
    animation: rise 15s infinite ease-in;
    pointer-events: none;
}

/* Highlighted Bubble Effect */
.bubble::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(8px);
}

.bubble::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 30%;
    height: 30%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(4px);
}

/* Bubble Variations */
.bubble.primary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    box-shadow: 
        0 0 20px rgba(102, 126, 234, 0.3),
        0 0 40px rgba(102, 126, 234, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.bubble.secondary {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    box-shadow: 
        0 0 20px rgba(124, 58, 237, 0.3),
        0 0 40px rgba(124, 58, 237, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.bubble.accent {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(251, 191, 36, 0.15) 100%);
    box-shadow: 
        0 0 20px rgba(245, 158, 11, 0.3),
        0 0 40px rgba(245, 158, 11, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.bubble.blue {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.15) 0%, rgba(0, 242, 254, 0.15) 100%);
    box-shadow: 
        0 0 20px rgba(79, 172, 254, 0.3),
        0 0 40px rgba(79, 172, 254, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Bubble Sizes */
.bubble.small {
    width: 60px;
    height: 60px;
}

.bubble.medium {
    width: 100px;
    height: 100px;
}

.bubble.large {
    width: 140px;
    height: 140px;
}

.bubble.xlarge {
    width: 180px;
    height: 180px;
}

/* Bubble Positions */
.bubble:nth-child(1) {
    left: 5%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.bubble:nth-child(2) {
    left: 15%;
    animation-delay: 2s;
    animation-duration: 14s;
}

.bubble:nth-child(3) {
    left: 30%;
    animation-delay: 4s;
    animation-duration: 16s;
}

.bubble:nth-child(4) {
    left: 45%;
    animation-delay: 1s;
    animation-duration: 13s;
}

.bubble:nth-child(5) {
    left: 60%;
    animation-delay: 3s;
    animation-duration: 15s;
}

.bubble:nth-child(6) {
    left: 75%;
    animation-delay: 5s;
    animation-duration: 17s;
}

.bubble:nth-child(7) {
    left: 85%;
    animation-delay: 2.5s;
    animation-duration: 14.5s;
}

.bubble:nth-child(8) {
    left: 95%;
    animation-delay: 4.5s;
    animation-duration: 16.5s;
}

/* Rise Animation */
@keyframes rise {
    0% {
        bottom: -150px;
        transform: translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateX(100px) scale(1.1);
    }
    100% {
        bottom: 110%;
        transform: translateX(-100px) scale(0.8);
        opacity: 0;
    }
}

/* Pulse Animation for Extra Highlight */
@keyframes pulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(102, 126, 234, 0.3),
            0 0 40px rgba(102, 126, 234, 0.2),
            inset 0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(102, 126, 234, 0.5),
            0 0 60px rgba(102, 126, 234, 0.3),
            inset 0 0 30px rgba(255, 255, 255, 0.2);
    }
}

.bubble.pulse {
    animation: rise 15s infinite ease-in, pulse 3s infinite ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
    .bubble.xlarge {
        width: 120px;
        height: 120px;
    }
    
    .bubble.large {
        width: 100px;
        height: 100px;
    }
    
    .bubble.medium {
        width: 80px;
        height: 80px;
    }
    
    .bubble.small {
        width: 50px;
        height: 50px;
    }
}
