/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 50%, #075E54 100%);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3), 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    animation: breathe 3s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.whatsapp-btn:hover {
    transform: scale(1.15) translateY(-2px);
    color: white;
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4), 0 8px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    background: linear-gradient(135deg, #2EE46F 0%, #25D366 50%, #128C7E 100%);
    border-color: rgba(255, 255, 255, 0.2);
}

.whatsapp-btn i {
    font-size: 26px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.tooltip-text {
    position: absolute;
    bottom: 80px;
    right: -10px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 12px 16px;
    border-radius: 25px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(10px) scale(0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 25px;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: #2c3e50 transparent transparent transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.whatsapp-btn:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
    bottom: 85px;
    transform: translateY(0) scale(1);
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3), 0 4px 10px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4), 0 0 0 8px rgba(37, 211, 102, 0.15), 0 6px 15px rgba(0, 0, 0, 0.15);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-btn {
        width: 58px;
        height: 58px;
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3), 0 3px 8px rgba(0, 0, 0, 0.1);
    }
    
    .whatsapp-btn:hover {
        transform: scale(1.1) translateY(-1px);
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 5px 15px rgba(0, 0, 0, 0.15);
    }
    
    .whatsapp-btn i {
        font-size: 22px;
    }
    
    .tooltip-text {
        display: none; /* Hide tooltip on mobile for better UX */
    }
    
    @keyframes breathe {
        0%, 100% {
            transform: scale(1);
            box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3), 0 3px 8px rgba(0, 0, 0, 0.1);
        }
        50% {
            transform: scale(1.03);
            box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), 0 0 0 6px rgba(37, 211, 102, 0.15), 0 4px 12px rgba(0, 0, 0, 0.15);
        }
    }
}

/* Ultra-small screens */
@media (max-width: 480px) {
    .floating-whatsapp {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-btn {
        width: 52px;
        height: 52px;
    }
    
    .whatsapp-btn i {
        font-size: 20px;
    }
}