/* =============================================
   WhatsApp Floating Button
   ============================================= */

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: wa-pulse 3s ease-in-out infinite;
}

.whatsapp-float i {
    font-size: 32px;
    color: #ffffff;
    line-height: 1;
    display: flex;
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.65);
    animation: none;
    text-decoration: none;
}

/* Tooltip – desktop only */
.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: #222;
    color: #fff;
    padding: 6px 13px;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Tooltip arrow */
.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-width: 0;
    border-left-color: #222;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Pulse animation */
@keyframes wa-pulse {
    0%   { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45); }
    50%  { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.65), 0 0 0 10px rgba(37, 211, 102, 0.08); }
    100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45); }
}

/* Tablet */
@media (max-width: 991px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    .whatsapp-float i {
        font-size: 28px;
    }
    .whatsapp-tooltip {
        display: none;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-float i {
        font-size: 26px;
    }
    .whatsapp-tooltip {
        display: none;
    }
}
