/**
 * Vistara Green City - Floating WhatsApp Button
 * ==============================================
 * Styles for the floating WhatsApp contact button.
 *
 * Usage:
 * Add class "whatsapp-float" to an anchor element with WhatsApp link.
 *
 * @author Sri Amrutha Developers
 * @version 1.0.0
 */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    animation: none;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Pulse animation for attention */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* Hide on very small screens if needed */
@media (max-width: 320px) {
    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 15px;
        left: 15px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}
