.floating-whatsapp-btn {
    position: fixed;
    bottom: 160px; /* Positioned above the contact button with reduced spacing */
    right: 30px; /* Aligned with the contact button on the right side */
    width: 120px;
    height: 120px;
    background-color: #25D366; /* WhatsApp green color */
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 1000;
    border: none;
    overflow: hidden;
}

.floating-whatsapp-btn:hover {
    transform: translateY(-3px);
    background-color: #1da851; /* Darker green on hover */
}

.floating-whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid white;
    border-radius: 50%;
    margin: 2px;
    pointer-events: none;
    display: block;
}

.floating-whatsapp-btn img {
    width: 32px;
    height: 32px;
    margin-bottom: 6px;
    filter: brightness(0) invert(1); /* Makes the icon white */
}

.floating-whatsapp-text {
    font-size: 12px;
    color: white;
    text-align: center;
    line-height: 1.3;
    font-weight: bold;
    max-width: 90%;
    margin-top: 4px;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .floating-whatsapp-btn {
        bottom: 130px; /* Positioned above the contact button in tablet view */
        right: 25px; /* Aligned with the contact button on the right side */
        width: 100px;
        height: 100px;
    }

    .floating-whatsapp-btn img {
        width: 30px;
        height: 30px;
    }
    
    .floating-whatsapp-text {
        font-size: 11px;
    }

    .floating-whatsapp-btn::before {
        margin: 6px;
    }
}

@media (max-width: 768px) {
    .floating-whatsapp-btn {
        bottom: 100px; /* Positioned above the contact button in mobile view */
        right: 20px; /* Aligned with the contact button on the right side */
        width: 120px;
        height: 120px;
    }

    .floating-whatsapp-btn img {
        width: 32px;
        height: 32px;
    }
    
    .floating-whatsapp-text {
        font-size: 12px;
    }

    .floating-whatsapp-btn::before {
        margin: 12px;
    }
}
