/* ===== Floating WhatsApp Button ===== */
.floating-whatsapp {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    font-size: 28px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 9999;
    animation: whatsapp-pulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    color: #fff;
    text-decoration: none;
}

.floating-whatsapp i {
    color: #fff;
    font-size: 32px;
}

/* Pulse Animation */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Notification Badge */
.floating-whatsapp .whatsapp-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: badge-pulse 1.5s infinite;
}

@keyframes badge-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Hover Tooltip - "Chat with us" */
.floating-whatsapp::after {
    content: 'Chat with us 💬';
    position: absolute;
    right: 75px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    font-family: 'Open Sans', sans-serif;
}

.floating-whatsapp::before {
    content: '';
    position: absolute;
    right: 65px;
    border-left: 8px solid rgba(0, 0, 0, 0.85);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-whatsapp:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.floating-whatsapp:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
    .floating-whatsapp {
        width: 55px;
        height: 55px;
        font-size: 24px;
        bottom: 80px;
        right: 15px;
    }
    .floating-whatsapp i {
        font-size: 26px;
    }
    .floating-whatsapp::after {
        font-size: 11px;
        padding: 6px 12px;
        right: 65px;
    }
    .floating-whatsapp::before {
        right: 55px;
    }
}

@media (max-width: 480px) {
    .floating-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 70px;
        right: 12px;
    }
    .floating-whatsapp i {
        font-size: 22px;
    }
    .floating-whatsapp .whatsapp-badge {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }
    .floating-whatsapp::after {
        font-size: 10px;
        padding: 4px 10px;
        right: 58px;
    }
    .floating-whatsapp::before {
        right: 48px;
    }
}