/* ====================================
   FLOATING WHATSAPP BUTTON STYLES
   ==================================== */

/* Button Container */
#floating-whatsapp-btn {
    position: fixed;
    bottom: 210px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #25d366;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
    text-decoration: none;
    outline: none;
}

/* Hover State */
#floating-whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Focus State (Accessibility) */
#floating-whatsapp-btn:focus {
    outline: none;
}

/* Active State */
#floating-whatsapp-btn:active {
    transform: scale(0.98);
}

/* Tooltip on Hover */
#floating-whatsapp-btn::before {
    content: "Chat on WhatsApp";
    position: absolute;
    right: 75px;
    bottom: 15px;
    background-color: rgba(37, 211, 102, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-family: "Poppins", sans-serif;
    letter-spacing: 0.5px;
}

#floating-whatsapp-btn:hover::before {
    opacity: 1;
}

/* Tooltip arrow */
#floating-whatsapp-btn::after {
    content: "";
    position: absolute;
    right: 72px;
    bottom: 22px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-top: 6px solid rgba(37, 211, 102, 0.9);
    border-bottom: 6px solid transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#floating-whatsapp-btn:hover::after {
    opacity: 1;
}

/* Animation for button entrance */
@keyframes slideInWhatsApp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#floating-whatsapp-btn {
    animation: slideInWhatsApp 0.5s ease-out;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

/* Tablet Breakpoint (768px and below) */
@media (max-width: 768px) {
    #floating-whatsapp-btn {
        width: 50px;
        height: 50px;
        bottom: 150px;
        left: 20px;
        font-size: 22px;
    }

    #floating-whatsapp-btn::before {
        right: auto;
        left: 75px;
        bottom: 15px;
        white-space: nowrap;
    }

    #floating-whatsapp-btn::after {
        right: auto;
        left: 70px;
        bottom: 22px;
        border-left: 6px solid transparent;
        border-right: none;
    }
}

/* Mobile Breakpoint (480px and below) */
@media (max-width: 480px) {
    #floating-whatsapp-btn {
        width: 45px;
        height: 45px;
        bottom: 145px;
        left: 15px;
        font-size: 20px;
    }

    #floating-whatsapp-btn::before {
        font-size: 11px;
        padding: 6px 10px;
        left: -75px;
    }

    #floating-whatsapp-btn::after {
        width: 0;
        height: 0;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    #floating-whatsapp-btn {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }

    #floating-whatsapp-btn:hover {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    #floating-whatsapp-btn,
    #floating-whatsapp-btn::before,
    #floating-whatsapp-btn::after {
        animation: none;
        transition: none;
    }
}