
/* Floating Contact Button Styles */

:root {
    --floating-contact-bg: var(--primary-color, #946317);
    --floating-contact-color: white;
    --floating-contact-hover-bg: var(--secondary-color, #7a5212);
    --floating-contact-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    --floating-contact-size: 60px;
    --floating-contact-border-radius: 50%;
    --floating-contact-z-index: 999;
}

/* Main Floating Contact Button */
.floating-contact-btn {
    position: fixed;
    right: 25px; /* Position on the right side */
    bottom: 100px;
    width: var(--floating-contact-size);
    height: var(--floating-contact-size);
    border-radius: var(--floating-contact-border-radius);
    background-color: var(--floating-contact-bg);
    color: var(--floating-contact-color);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--floating-contact-shadow);
    cursor: pointer;
    z-index: var(--floating-contact-z-index);
    transition: all 0.3s ease;
    text-decoration: none;
}

    .floating-contact-btn:hover {
        transform: scale(1.1);
        background-color: var(--floating-contact-hover-bg);
        box-shadow: 0 6px 25px rgba(2, 0, 0, 0.25);
    }

    .floating-contact-btn i {
        font-size: 24px;
        animation: pulse 2s infinite;
    }

/* Pulse animation for the icon */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Tooltip for the button */
.floating-contact-btn::after {
    content: "اتصل بنا";
    position: absolute;
    right: 70px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    z-index: calc(var(--floating-contact-z-index) + 1);
}

.floating-contact-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Expanded Contact Options */
.floating-contact-options {
    position: fixed;
   right: 70px;
    bottom: 170px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: var(--floating-contact-z-index);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

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

.contact-option {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--floating-contact-shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

    .contact-option:hover {
        transform: scale(1.1);

    }

/* Tooltip for contact options */
.option-tooltip {
    position: absolute;
  /*  right: 55px;*/
    left: 55px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
    z-index: calc(var(--floating-contact-z-index) + 1);
}

.contact-option:hover .option-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Contact option colors */
.contact-option.whatsapp {
    background-color: #25D366;
    color: white;
    animation-delay: 0.1s;
}

.contact-option.phone {
    background-color: #0088cc;
    color: white;
    animation-delay: 0.2s;
}

.contact-option.email {
    background-color: #EA4335;
    color: white;
    animation-delay: 0.3s;
}

.contact-option.contact {
    background-color: var(--primary-color, #946317);
    color: white;
    animation-delay: 0.4s;
}

/* Animation for options appearing */
@keyframes optionAppear {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.floating-contact-options.show .contact-option {
    animation: optionAppear 0.3s forwards;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .floating-contact-btn {
        width: 50px;
        height: 50px;
        right: 15px;
        bottom: 80px;
    }

        .floating-contact-btn i {
            font-size: 20px;
        }

    .floating-contact-options {
        bottom: 140px;
        right: 15px;
        gap: 10px; /* Reduce gap for mobile */
    }

    .contact-option {
        width: 40px;
        height: 40px;
    }

    /* Adjust tooltip position for better mobile visibility */
    .floating-contact-btn::after,
    .option-tooltip {
        font-size: 12px;
        padding: 4px 8px;
    }
}

/* Extra small devices (phones, 575.98px and down) */
@media (max-width: 575.98px) {
    .floating-contact-btn {
        width: 45px;
        height: 45px;
        right: 10px;
        bottom: 70px;
    }

        .floating-contact-btn i {
            font-size: 18px;
        }

    .floating-contact-options {
        bottom: 125px;
        right: 10px;
        gap: 8px;
    }

    .contact-option {
        width: 35px;
        height: 35px;
    }

        .contact-option i {
            font-size: 14px;
        }

    /* Smaller tooltips for very small screens */
    .floating-contact-btn::after,
    .option-tooltip {
        font-size: 11px;
        padding: 3px 6px;
        right: 50px;
    }

    /* Improve touch targets for mobile */
    .floating-contact-btn,
    .contact-option {
        touch-action: manipulation;
    }
}

/* RTL Support */
[dir="rtl"] .floating-contact-btn {
    right: auto;
    left: 25px;
}

    [dir="rtl"] .floating-contact-btn::after {
        right: auto;
        left: 70px;
    }

[dir="rtl"] .floating-contact-options {
    right: auto;
    left: 25px;
}

@media (max-width: 767.98px) {
    [dir="rtl"] .floating-contact-btn {
        right: auto;
        left: 15px;
    }

    [dir="rtl"] .floating-contact-options {
        right: auto;
        left: 15px;
    }

    [dir="rtl"] .floating-contact-btn::after,
    [dir="rtl"] .option-tooltip {
        right: auto;
        left: 55px;
    }
}

/* RTL Support for extra small devices */
@media (max-width: 575.98px) {
    [dir="rtl"] .floating-contact-btn {
        right: auto;
        left: 10px;
    }

    [dir="rtl"] .floating-contact-options {
        right: auto;
        left: 10px;
    }

    [dir="rtl"] .floating-contact-btn::after,
    [dir="rtl"] .option-tooltip {
        right: auto;
        left: 50px;
    }
}

/* Accessibility improvements */
.floating-contact-btn:focus {
    outline: 3px solid var(--focus-outline-color, #946317);
    outline-offset: 3px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .floating-contact-btn i {
        animation: none;
    }

    .floating-contact-btn:hover,
    .contact-option:hover {
        transform: none;
    }

}










    /* Floating Contact Button Styles */

    /*:root {
    --floating-contact-bg: var(--primary-color, #946317);
    --floating-contact-color: white;
    --floating-contact-hover-bg: var(--secondary-color, #7a5212);
    --floating-contact-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    --floating-contact-size: 60px;
    --floating-contact-border-radius: 50%;
    --floating-contact-z-index: 999;
}*/

    /* Enhanced Floating Contact Button - LEFT SIDE */
    /*.floating-contact-btn {
      position: absolute;
    left: 25px;
    top:680px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #946317, #b8751f);
    color: white !important;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 25px rgba(148, 99, 23, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    border: 3px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.floating-contact-btn:visited,
.floating-contact-btn:link {
    color: white !important;
    text-decoration: none !important;
}

.floating-contact-btn:hover {
    transform: scale(1.15) translateY(-3px);
    background: linear-gradient(135deg, #b8751f, #946317);
    box-shadow: 0 12px 35px rgba(148, 99, 23, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

.floating-contact-btn:active {
    transform: scale(1.05) translateY(-1px);
}

.floating-contact-btn i {
    font-size: 26px;
    animation: phoneRing 2s infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}*/

    /* Enhanced phone ring animation */
    /*@keyframes phoneRing {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: rotate(-10deg) scale(1.1);
    }
    20%, 40%, 60%, 80% {
        transform: rotate(10deg) scale(1.1);
    }
}*/

    /* Floating effect for the button */
    /*@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.floating-contact-btn {
    animation: float 3s ease-in-out infinite;
}*/

    /* Pulsing ring effect */
    /*.floating-contact-btn::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgba(148, 99, 23, 0.6);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
    z-index: -1;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}*/

    /* Ripple effect on click */
    /*.floating-contact-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.6s, height 0.6s;
}

.floating-contact-btn:active::before {
    width: 120px;
    height: 120px;
}*/

    /* Enhanced tooltip using pseudo-element */
    /*.floating-contact-btn {
       position: absolute;
}

.floating-contact-btn:after {
    content: "📞 اتصل بنا الآن";
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
}

.floating-contact-btn:hover:after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(5px);
}*/

    /* Expanded Contact Options - LEFT SIDE */
    /*.floating-contact-options {
    position: fixed;
    left: 25px;
    bottom: 170px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: var(--floating-contact-z-index);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

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

.contact-option {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--floating-contact-shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.contact-option:hover {
    transform: scale(1.1);
}*/

    /* Tooltip for contact options - LEFT SIDE */
    /*.option-tooltip {
    position: absolute;
    left: 55px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
    z-index: calc(var(--floating-contact-z-index) + 1);
}

.contact-option:hover .option-tooltip {
    opacity: 1;
    visibility: visible;
}*/

    /* Contact option colors */
    /*.contact-option.whatsapp {
    background-color: #25D366;
    color: white;
    animation-delay: 0.1s;
}

.contact-option.phone {
    background-color: #0088cc;
    color: white;
    animation-delay: 0.2s;
}

.contact-option.email {
    background-color: #EA4335;
    color: white;
    animation-delay: 0.3s;
}

.contact-option.contact {
    background-color: var(--primary-color, #946317);
    color: white;
    animation-delay: 0.4s;
}*/

    /* Animation for options appearing */
    /*@keyframes optionAppear {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.floating-contact-options.show .contact-option {
    animation: optionAppear 0.3s forwards;
}*/

    /* Enhanced responsive adjustments - LEFT SIDE */
    /*@media (max-width: 767.98px) {
    .floating-contact-btn {
        width: 55px;
        height: 55px;
        left: 20px;
        bottom: 90px;
        border-width: 2px;
    }

    .floating-contact-btn i {
        font-size: 22px;
    }

    .floating-contact-btn::after {
        content: "📞 اتصل بنا";
        font-size: 13px;
        padding: 6px 12px;
        left: 70px;
    }

    .floating-contact-options {
        bottom: 155px;
        left: 20px;
        gap: 12px;
    }

    .contact-option {
        width: 45px;
        height: 45px;
    }

    .contact-option i {
        font-size: 16px;
    }

    .option-tooltip {
        font-size: 12px;
        padding: 5px 10px;
        left: 55px;
    }
}*/

    /* Extra small devices (phones, 575.98px and down) - LEFT SIDE */
    /*@media (max-width: 575.98px) {
    .floating-contact-btn {
        width: 45px;
        height: 45px;
        left: 10px;
        bottom: 70px;
    }
    
    .floating-contact-btn i {
        font-size: 18px;
    }
    
    .floating-contact-options {
        bottom: 125px;
        left: 10px;
        gap: 8px;
    }
    
    .contact-option {
        width: 35px;
        height: 35px;
    }
    
    .contact-option i {
        font-size: 14px;
    }*/

    /* Smaller tooltips for very small screens */
    /*.floating-contact-btn::after,
    .option-tooltip {
        font-size: 11px;
        padding: 3px 6px;
        left: 50px;
    }*/

    /* Improve touch targets for mobile */
    /*.floating-contact-btn,
    .contact-option {
        touch-action: manipulation;
    }
}*/

    /* RTL Support */
    /*[dir="rtl"] .floating-contact-btn {
    right: auto;
    left: 25px;
}

[dir="rtl"] .floating-contact-btn::after {
    right: auto;
    left: 70px;
}

[dir="rtl"] .floating-contact-options {
    right: auto;
    left: 25px;
}

@media (max-width: 767.98px) {
    [dir="rtl"] .floating-contact-btn {
        right: auto;
        left: 15px;
    }
    
    [dir="rtl"] .floating-contact-options {
        right: auto;
        left: 15px;
    }
    
    [dir="rtl"] .floating-contact-btn::after,
    [dir="rtl"] .option-tooltip {
        right: auto;
        left: 55px;
    }
}*/

    /* RTL Support for extra small devices */
    /*@media (max-width: 575.98px) {
    [dir="rtl"] .floating-contact-btn {
        right: auto;
        left: 10px;
    }
    
    [dir="rtl"] .floating-contact-options {
        right: auto;
        left: 10px;
    }
    
    [dir="rtl"] .floating-contact-btn::after,
    [dir="rtl"] .option-tooltip {
        right: auto;
        left: 50px;
    }
}*/

    /* Accessibility improvements */
    /*.floating-contact-btn:focus {
    outline: 3px solid var(--focus-outline-color, #946317);
    outline-offset: 3px;
}*/

    /* Reduced motion support */
    /*@media (prefers-reduced-motion: reduce) {
    .floating-contact-btn i {
        animation: none;
    }
    
    .floating-contact-btn:hover,
    .contact-option:hover {
        transform: none;
    }
}*/
