/* Mobile Contact Buttons - Bottom Right Corner */
.mobile-contact-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Show buttons only on mobile devices */
@media (max-width: 768px) {
    .mobile-contact-buttons {
        opacity: 1;
        visibility: visible;
    }
}

.mobile-contact-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.mobile-contact-btn:hover::before {
    transform: scale(1.2);
}

.mobile-contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* WhatsApp Button */
.mobile-whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    animation: whatsappPulse 2s ease-in-out infinite;
}

.mobile-whatsapp-btn:hover {
    background: linear-gradient(135deg, #128c7e, #25d366);
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6);
    }
}

/* Call Button */
.mobile-call-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    animation: callPulse 2s ease-in-out infinite;
}

.mobile-call-btn:hover {
    background: linear-gradient(135deg, #0056b3, #007bff);
}

@keyframes callPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(0, 123, 255, 0.6);
    }
}

/* Contact Form Button */
.mobile-contact-form-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    animation: contactFormPulse 2s ease-in-out infinite;
}

.mobile-contact-form-btn:hover {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
}

@keyframes contactFormPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(231, 76, 60, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(231, 76, 60, 0.6);
    }
}

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

.mobile-contact-btn:nth-child(2) {
    animation-delay: 0.5s;
}

.mobile-contact-btn:nth-child(3) {
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Ripple Effect */
.mobile-contact-btn::after {
    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.3s, height 0.3s;
}

.mobile-contact-btn:active::after {
    width: 120%;
    height: 120%;
}

/* Tooltip for buttons */
.mobile-contact-btn .tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.mobile-contact-btn .tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
}

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

/* Hide on desktop */
@media (min-width: 769px) {
    .mobile-contact-buttons {
        display: none;
    }
}

/* Adjust for very small screens */
@media (max-width: 480px) {
    .mobile-contact-buttons {
        bottom: 15px;
        right: 15px;
        gap: 12px;
    }
    
    .mobile-contact-btn {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

/* Adjust for extra small screens */
@media (max-width: 360px) {
    .mobile-contact-buttons {
        bottom: 10px;
        right: 10px;
        gap: 10px;
    }
    
    .mobile-contact-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}