
/* Floating Contact Button Styles */
.floating-contact-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.contact-floating-btn {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 10;
    border: 3px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.contact-floating-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
    background: linear-gradient(135deg, #128C7E, #25D366);
}

.contact-floating-btn i {
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.contact-floating-btn:hover i {
    transform: scale(1.1);
}

/* Pulse Rings */
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 2px solid rgba(37, 211, 102, 0.6);
    border-radius: 50%;
    animation: pulse 2s infinite;
    z-index: -1;
}

.ring-2 {
    animation-delay: 0.7s;
    width: 90px;
    height: 90px;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

/* Contact Options */
.contact-options {
    position: absolute;
    bottom: 85px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-options.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.contact-option {
    position: relative;
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.contact-option:hover {
    transform: scale(1.15) translateX(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.whatsapp-option:hover {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.phone-option:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.contact-option i {
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.whatsapp-option i {
    color: #25D366;
}

.phone-option i {
    color: #667eea;
}

.contact-option:hover i {
    color: white;
    transform: scale(1.1);
}

.option-link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 50%;
}

/* Tooltips */
.option-tooltip {
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-option:hover .option-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.option-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid rgba(0, 0, 0, 0.8);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

/* Contact Info Bubble */
.contact-info-bubble {
    position: absolute;
    right: 70px;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    transform: translateX(-20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.contact-options.active .contact-info-bubble {
    opacity: 1;
    transform: translateX(0) scale(1);
    transition-delay: 0.2s;
}

.phone-number {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.contact-availability {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #666;
}

.availability-dot {
    width: 8px;
    height: 8px;
    background: #25D366;
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.3;
    }
}

/* Light Mode Support */
body.light-mode .contact-option {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

body.light-mode .contact-info-bubble {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

body.light-mode .option-tooltip {
    background: rgba(0, 0, 0, 0.9);
}

/* Responsive Design */
@media (max-width: 768px) {
    .floating-contact-container {
        bottom: 20px;
        right: 20px;
    }
    
    .contact-floating-btn {
        width: 60px;
        height: 60px;
    }
    
    .contact-floating-btn i {
        font-size: 1.5rem;
    }
    
    .contact-option {
        width: 50px;
        height: 50px;
    }
    
    .contact-option i {
        font-size: 1.2rem;
    }
    
    .contact-options {
        bottom: 75px;
        gap: 12px;
    }
    
    .contact-info-bubble {
        padding: 12px 16px;
        right: 65px;
    }
    
    .phone-number {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .floating-contact-container {
        bottom: 15px;
        right: 15px;
    }
    
    .contact-floating-btn {
        width: 55px;
        height: 55px;
    }
    
    .contact-options {
        bottom: 70px;
    }
    
    .contact-info-bubble {
        display: none; /* إخفاء فقاعة المعلومات على الشاشات الصغيرة جداً */
    }
}

/* Animation for options appearance */
@keyframes optionAppear {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.contact-option {
    animation: optionAppear 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.whatsapp-option {
    animation-delay: 0.1s;
}

.phone-option {
    animation-delay: 0.2s;
}

/* Hover effects for the entire container */
.floating-contact-container:hover .pulse-ring {
    animation-play-state: paused;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .pulse-ring,
    .ring-2 {
        animation: none;
    }
    
    .contact-floating-btn,
    .contact-option {
        transition: none;
    }
}

/* Focus styles for accessibility */
.contact-floating-btn:focus,
.option-link:focus {
    outline: 2px solid #25D366;
    outline-offset: 3px;
}