.floating-bubble {
    position: fixed;
    bottom: -20px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    user-select: none;
}

.floating-bubble.visible {
    opacity: 1;
    bottom: 20px; 
    transform: translateY(0);
    animation: floatUpAndSettle 1.5s ease-out forwards,
               floatBubble 3s ease-in-out infinite 1.5s;
}

.floating-bubble::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 20%;
    height: 20%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

.floating-bubble img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.floating-bubble:hover {
    transform: scale(1.1);
}

.pop-animation {
    animation: popBubble 0.5s ease-out forwards !important;
}

@keyframes floatUpAndSettle {
    0% {
        transform: translateY(100vh);
    }
    70% {
        transform: translateY(-20px);
    }
    85% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes floatBubble {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes popBubble {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

@media screen and (max-width: 768px) {
    .floating-bubble {
        width: 60px;
        bottom: 20px;
        height: 60px;
        left: 15px;
    }

    .floating-bubble.visible {
        bottom: 20px;
    }
}

/* Add a custom touch feedback effect */
@media (hover: none) {
    .launch-btn:active,
    .floating-bubble:active {
        transform: scale(0.95);
        opacity: 0.8;
        transition: all 0.1s ease-out;
    }
}