/* ==========================================
   Fixed Contact Buttons (Expandable FAB)
   ========================================== */

.fixed-contact-sidebar {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
}

/* Main Toggle Button */
.fixed-contact-toggle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7a9b5a, #6a8b4a);
    box-shadow: 0 6px 20px rgba(122, 155, 90, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    z-index: 10;
}

.fixed-contact-toggle i {
    font-size: 1.8rem;
    color: #fff;
    transition: transform 0.3s ease;
}

.fixed-contact-toggle:hover {
    background: linear-gradient(135deg, #8aab6a, #7a9b5a);
    transform: scale(1.1);
}

.fixed-contact-toggle.active i {
    transform: rotate(45deg);
}

/* Pulse Animation */
@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(122, 155, 90, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(122, 155, 90, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(122, 155, 90, 0);
    }
}

.fixed-contact-toggle {
    animation: pulse-ring 2s infinite;
}

.fixed-contact-toggle.active {
    animation: none;
}

/* Contact Options Container */
.fixed-contact-options {
    position: absolute;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    opacity: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.fixed-contact-options.active {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    pointer-events: all;
}

/* Individual Contact Buttons */
.fixed-contact-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    opacity: 0;
    transform: translateY(10px);
}

.fixed-contact-options.active .fixed-contact-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation */
.fixed-contact-options.active .fixed-contact-btn:nth-child(1) {
    transition-delay: 0.05s;
}

.fixed-contact-options.active .fixed-contact-btn:nth-child(2) {
    transition-delay: 0.1s;
}

.fixed-contact-options.active .fixed-contact-btn:nth-child(3) {
    transition-delay: 0.15s;
}

.fixed-contact-btn i {
    font-size: 1.3rem;
    color: #fff;
}

/* Phone Button */
.fixed-contact-btn.phone-btn {
    background: linear-gradient(135deg, #5a8f5a, #4a7a4a);
}

.fixed-contact-btn.phone-btn:hover {
    background: linear-gradient(135deg, #6aa06a, #5a8a5a);
    transform: scale(1.15);
}

/* WhatsApp Button */
.fixed-contact-btn.whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.fixed-contact-btn.whatsapp-btn:hover {
    background: linear-gradient(135deg, #2ee874, #149e8a);
    transform: scale(1.15);
}

/* Email Button */
.fixed-contact-btn.email-btn {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
}

.fixed-contact-btn.email-btn i {
    color: #666;
}

.fixed-contact-btn.email-btn:hover {
    background: linear-gradient(135deg, #fff, #f0f0f0);
    transform: scale(1.15);
}

/* Tooltip */
.fixed-contact-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    left: -200px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    width: 180px;
    text-align: center;
}

.fixed-contact-btn:hover::before {
    opacity: 1;
}

/* Arrow for tooltip */
.fixed-contact-btn::after {
    content: '';
    position: absolute;
    left: -10px;
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fixed-contact-btn:hover::after {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fixed-contact-sidebar {
        right: 10px;
        bottom: 10px;
    }

    .fixed-contact-toggle {
        width: 60px;
        height: 60px;
    }

    .fixed-contact-toggle i {
        font-size: 1.5rem;
    }

    .fixed-contact-btn {
        width: 50px;
        height: 50px;
    }

    .fixed-contact-btn i {
        font-size: 1.2rem;
    }

    /* Hide tooltips on mobile */
    .fixed-contact-btn::before,
    .fixed-contact-btn::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .fixed-contact-sidebar {
        right: 8px;
        bottom: 8px;
    }

    .fixed-contact-toggle {
        width: 55px;
        height: 55px;
    }

    .fixed-contact-toggle i {
        font-size: 1.4rem;
    }

    .fixed-contact-btn {
        width: 45px;
        height: 45px;
    }

    .fixed-contact-btn i {
        font-size: 1.1rem;
    }
}
