
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    animation: float 3s ease-in-out infinite;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.whatsapp-btn:hover::before {
    opacity: 1;
}

.whatsapp-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
    width: auto;
    min-width: 120px;
    padding: 0 20px 0 15px;
    border-radius: 30px;
}

.whatsapp-btn i {
    font-size: 28px;
    transition: all 0.3s ease;
    margin: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.whatsapp-text {
    font-size: 14px;
    font-weight: 600;
    margin-right: 45px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    white-space: nowrap;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translate(0, -50%) translateX(10px);
}

.whatsapp-btn:hover .whatsapp-text {
    opacity: 1;
    transform: translate(0, -50%) translateX(0);
}

.whatsapp-btn:hover i {
    right: 15px;
    transform: translate(0, -50%);
}

.whatsapp-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 3px solid #25d366;
    border-radius: 50%;
    animation: pulse 2s infinite;
    pointer-events: none;
}

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

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-btn {
        width: 55px;
        height: 55px;
    }

    .whatsapp-btn i {
        font-size: 24px;
    }

    .whatsapp-pulse {
        width: 55px;
        height: 55px;
    }
}

/* Hide on very small screens to avoid interference */
@media (max-width: 480px) {
    .whatsapp-btn:hover {
        width: 55px;
        padding: 0;
        border-radius: 50%;
    }

    .whatsapp-text {
        display: none;
    }
}

/* Smooth entrance animation */
.whatsapp-float {
    animation: float 3s ease-in-out infinite, slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Active state for better mobile interaction */
.whatsapp-btn:active {
    transform: scale(0.95);
}
