.bubble-menu {
    position: relative;
    top: 40%;
    transform: translate(0%, -50%);
    width: 45px;
    height: 45px;
    display: flex;
    flex-flow: column;
    align-items: center;
    text-align: center;
    justify-content: center;
}
.main-bubble {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.2);
    animation: mainFloat 4s ease-in-out infinite;
    z-index: 5;
}
.main-bubble:hover {
    transform: scale(1.1);
    box-shadow:
        0 12px 40px rgba(34, 197, 94, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}
.main-icon {
    color: white;
    width: 100%;
    height: 100%;
    font-size: 1.75rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    display: flex;
    flex-flow: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    bottom: 3px;
    position: relative;
}
.menu-open .main-icon {
    transform: rotate(45deg);
}
.child-bubble {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    box-shadow:
        0 6px 24px rgba(16, 185, 129, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    transform: scale(0);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    z-index: 10;
}
.child-bubble:hover {
    transform: scale(1.15);
    box-shadow:
        0 8px 32px rgba(16, 185, 129, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
}
.menu-open .child-bubble {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}
.child-icon {
    font-size: 24px;
    margin-bottom: 4px;
}
.child-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* Positioning child bubbles around the main bubble */
.bubble-1 {
    top: -60px;
    left: 20px;
    animation: float1 3.2s ease-in-out infinite;
}
.bubble-2 {
    top: 20px;
    left: 80px;
    animation: float2 3.8s ease-in-out infinite;
}
.bubble-3 {
    top: 80px;
    left: 20px;
    animation: float3 3.5s ease-in-out infinite;
}
.bubble-4 {
    top: 20px;
    left: -60px;
    animation: float4 4.1s ease-in-out infinite;
}
/* Staggered animation delays */
.menu-open .bubble-1 {
    transition-delay: 0.1s;
}
.menu-open .bubble-2 {
    transition-delay: 0.2s;
}
.menu-open .bubble-3 {
    transition-delay: 0.3s;
}
.menu-open .bubble-4 {
    transition-delay: 0.4s;
}
/* Floating animations */
@keyframes mainFloat {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-12px) rotate(1deg);
    }
    50% {
        transform: translateY(-6px) rotate(-1deg);
    }
    75% {
        transform: translateY(-10px) rotate(0.5deg);
    }
}
@keyframes float1 {
    0%,
    100% {
        transform: scale(1) translateY(0px) translateX(0px);
    }
    33% {
        transform: scale(1) translateY(-8px) translateX(3px);
    }
    66% {
        transform: scale(1) translateY(-4px) translateX(-2px);
    }
}
@keyframes float2 {
    0%,
    100% {
        transform: scale(1) translateY(0px) translateX(0px);
    }
    30% {
        transform: scale(1) translateY(-6px) translateX(-3px);
    }
    70% {
        transform: scale(1) translateY(-10px) translateX(2px);
    }
}
@keyframes float3 {
    0%,
    100% {
        transform: scale(1) translateY(0px) translateX(0px);
    }
    40% {
        transform: scale(1) translateY(-5px) translateX(2px);
    }
    80% {
        transform: scale(1) translateY(-12px) translateX(-1px);
    }
}
@keyframes float4 {
    0%,
    100% {
        transform: scale(1) translateY(0px) translateX(0px);
    }
    25% {
        transform: scale(1) translateY(-9px) translateX(-4px);
    }
    75% {
        transform: scale(1) translateY(-6px) translateX(3px);
    }
}
/* Apply floating animations only when menu is open */
.menu-open .bubble-1 {
    animation: float1 3.2s ease-in-out infinite;
}
.menu-open .bubble-2 {
    animation: float2 3.8s ease-in-out infinite;
}
.menu-open .bubble-3 {
    animation: float3 3.5s ease-in-out infinite;
}
.menu-open .bubble-4 {
    animation: float4 4.1s ease-in-out infinite;
}
/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleAnim 0.6s linear;
    pointer-events: none;
}
@keyframes rippleAnim {
    to {
        transform: scale(3);
        opacity: 0;
    }
}