/* Floating Contact Button */
.floating-contact {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 1000;
    direction: ltr;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out, transform 0.4s ease-in-out;
    transform: translateY(20px);
}

.floating-contact.fade-in {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-contact.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.contact-label {
    position: absolute;
    bottom: 75px;
    left: 50%;
    transform: translateX(-35%);
    background: white;
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
}

.floating-contact:hover .contact-label {
    transform: translateX(-35%) translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.contact-label::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.contact-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #5856d6, #ff375f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(88, 86, 214, 0.3);
    transition: all 0.3s ease;
    color: white;
    font-size: 1.4em;
}

.contact-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(88, 86, 214, 0.4);
}

.contact-button.active {
    background: linear-gradient(135deg, #ff375f, #5856d6);
    transform: rotate(45deg) scale(1.1);
}

.contact-options {
    position: absolute;
    bottom: 75px;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 250px;
}

.contact-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-option {
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-option:last-child {
    border-bottom: none;
}

.contact-option a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    border-radius: 12px;
    direction: ltr;
}

.contact-option a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #5856d6;
}

.contact-option a i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: black;
    color: white;
    border-radius: 50%;
    font-size: 0.8em;
}

.contact-option a span {
    font-weight: 500;
    font-size: 0.9em;
}

/* Floating Contact Button - Mobile */
@media (max-width: 768px) {
    .floating-contact {
        bottom: 20px;
        left: 20px;
    }

    .contact-label {
        bottom: 70px;
        font-size: 0.8em;
        padding: 6px 12px;
    }

    .contact-button {
        width: 55px;
        height: 55px;
        font-size: 1.2em;
    }

    .contact-options {
        min-width: 220px;
        bottom: 70px;
    }

    .contact-option a {
        padding: 12px 15px;
    }

    .contact-option a span {
        font-size: 0.85em;
    }
}
