/* Floating Contact Buttons */
.floating-contact-buttons {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
    pointer-events: none;
}

[dir="rtl"] .floating-contact-buttons {
    left: auto;
    right: 30px;
}

.floating-btn {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    pointer-events: auto;
    overflow: hidden;
    border: none;
    outline: none;
}

.floating-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.floating-btn:hover::before {
    width: 300px;
    height: 300px;
}

.floating-call {
    background: var(--primary-color);
}

.floating-call:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(11, 106, 50, 0.4);
}

.floating-whatsapp {
    background: #25D366;
}

.floating-whatsapp:hover {
    background: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.floating-btn i {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.floating-btn:hover i {
    transform: scale(1.2) rotate(15deg);
}

.floating-btn-text {
    position: absolute;
    right: 65px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

[dir="ltr"] .floating-btn-text {
    right: auto;
    left: 65px;
}

.floating-btn-text::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid rgba(0, 0, 0, 0.85);
}

[dir="ltr"] .floating-btn-text::after {
    right: auto;
    left: -6px;
    border-left: none;
    border-right: 6px solid rgba(0, 0, 0, 0.85);
}

.floating-btn:hover .floating-btn-text {
    opacity: 1;
    visibility: visible;
    right: 70px;
}

[dir="ltr"] .floating-btn:hover .floating-btn-text {
    right: auto;
    left: 70px;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(11, 106, 50, 0.7);
    }
    50% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 10px rgba(11, 106, 50, 0);
    }
}

.floating-call {
    animation: pulse 2s ease-in-out infinite;
}

.floating-whatsapp {
    animation: pulse 2s ease-in-out infinite 0.5s;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .floating-contact-buttons {
        bottom: 90px;
        left: 20px;
    }

    [dir="rtl"] .floating-contact-buttons {
        left: auto;
        right: 20px;
    }

    .floating-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .floating-btn-text {
        font-size: 13px;
        padding: 6px 12px;
        right: 58px;
    }

    [dir="ltr"] .floating-btn-text {
        right: auto;
        left: 58px;
    }

    .floating-btn:hover .floating-btn-text {
        right: 63px;
    }

    [dir="ltr"] .floating-btn:hover .floating-btn-text {
        right: auto;
        left: 63px;
    }
}

@media (max-width: 480px) {
    .floating-contact-buttons {
        bottom: 80px;
        left: 15px;
        gap: 12px;
    }

    [dir="rtl"] .floating-contact-buttons {
        left: auto;
        right: 15px;
    }

    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .floating-btn-text {
        font-size: 12px;
        padding: 5px 10px;
        right: 60px;
    }

    [dir="ltr"] .floating-btn-text {
        right: auto;
        left: 60px;
    }

    .floating-btn:hover .floating-btn-text {
        right: 65px;
    }

    [dir="ltr"] .floating-btn:hover .floating-btn-text {
        right: auto;
        left: 65px;
    }
}

