/* Floating Contact Widget CSS */
#floating-contact-container {
    position: fixed;
    right: 20px;
    top: 80%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-contact-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
}

.floating-contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Colors with transparency for glass effect */
.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.btn-phone {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.btn-email {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

/* Tooltip on Hover */
.floating-contact-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, right 0.3s ease;
    pointer-events: none;
}

.floating-contact-btn:hover::after {
    opacity: 1;
    visibility: visible;
    right: 65px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #floating-contact-container {
        right: 10px;
        bottom: 20px;
        top: auto;
        transform: none;
        flex-direction: column-reverse; /* Stack upwards from bottom */
    }

    .floating-contact-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

