.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    /* Change colors above to match your social media buttons */
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: float 3s ease-in-out infinite;
    overflow: visible;
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

/* WhatsApp SVG */
.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
    animation: wiggle 1s ease-in-out infinite;
}

.whatsapp-float:hover svg {
    animation: spin 0.6s ease-in-out;
}

/* Float animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Wiggle animation */
@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    75% {
        transform: rotate(15deg);
    }
}

/* Spin on hover */
@keyframes spin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Pulse ring effect */
.whatsapp-float::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.6);
    animation: pulse-ring 2s ease-out infinite;
    top: 0;
    left: 0;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Tooltip */
.whatsapp-float .tooltip-text {
    position: absolute;
    right: 75px;
    background-color: #fff;
    color: #333;
    padding: 10px 15px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 14px;
    font-family: Arial, sans-serif;
    font-weight: 500;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(10px);
    z-index: 1001;
}

.whatsapp-float .tooltip-text::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid #fff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.whatsapp-float:hover .tooltip-text {
    opacity: 1;
    transform: translateX(0);
}

/* Message bubble animation */
.message-bubble {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    animation: bounce 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.5);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.1);
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
    
    .whatsapp-float .tooltip-text {
        display: none;
    }
}