/* Floating Action Button Main */
.fab-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 15px;
}

.fab-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #9B6DC6;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(155, 109, 198, 0.4);
    cursor: pointer;
    font-size: 28px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s;
    user-select: none;
    border: none;
    outline: none;
}

.fab-main:hover {
    transform: scale(1.05);
    background: #8A5EB5;
    color: white;
}

.fab-main.active {
    transform: rotate(45deg);
}

.fab-menu {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.fab-container.open .fab-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.fab-item {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.2s ease-in-out;
    position: relative;
}

.fab-item:hover {
    transform: scale(1.1);
    color: white;
}
.fab-item.whatsapp:hover { background: #25D366; }
.fab-item.messenger:hover { background: #0084FF; }
.fab-item.telegram:hover { background: #0088cc; }
.fab-item.phone:hover { background: #9B6DC6; }
.fab-item.facebook:hover { background: #1877F2; }
.fab-item.twitter:hover { background: #1DA1F2; }
.fab-item.linkedin:hover { background: #0A66C2; }

/* Tooltips */
.fab-item::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 60px; /* Right of the icon because button is on left */
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
    font-family: inherit;
    pointer-events: none; /* Make tooltip unclickable */
}

.fab-item:hover::after {
    opacity: 1;
    visibility: visible;
}