/* Bubble Container */
.bubble-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}
.logo-background {
    z-index: 1 !important;
}

/* Enfold Color Section overrides */
#bubbleContainer.avia-section,
#bubblecontainer.avia-section {
    position: relative !important;
    overflow: hidden !important;
    padding: 0 !important;
    min-height: 100vh !important;
}

#bubbleContainer .container,
#bubblecontainer .container {
    position: relative !important;
    z-index: 10 !important;
    max-width: 100% !important;
    padding: 0 !important;
    height: 100% !important;
}

#bubbleContainer .template-page,
#bubblecontainer .template-page {
    position: relative !important;
    z-index: 10 !important;
    height: 100% !important;
}

/* Ensure content stays above bubbles */
#bubbleContainer .flex_column,
#bubblecontainer .flex_column {
    position: relative !important;
    z-index: 10 !important;
}

/* Hide default Enfold styling if needed */
#bubbleContainer .av-section-color-overlay,
#bubblecontainer .av-section-color-overlay {
    display: none !important;
}

/* Bubble Base Styles */
.bubble {
    position: absolute;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transform: translateY(0) translateX(0) scale(1);
    transition: none;
}

/* Bubble Animation */
.bubble.animate {
    animation: floatAndShrink linear 1;
    animation-duration: var(--duration, 12s);
    animation-delay: var(--delay, 0s);
    animation-fill-mode: forwards;
}

/* Main bubble animation */
@keyframes floatAndShrink {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    5% {
        opacity: 0.7;
    }
    10% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        transform: translateY(-110vh) translateX(var(--drift, 0px)) scale(0.2);
        opacity: 0;
    }
}

/* Bubble highlights (glass effect) */
.bubble::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 35%;
    height: 35%;
    border-radius: 50%;
    pointer-events: none;
}

.bubble::after {
    content: '';
    position: absolute;
    top: 60%;
    right: 25%;
    width: 18%;
    height: 18%;
    border-radius: 50%;
    pointer-events: none;
}

