/* Floating WhatsApp and Call Buttons */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

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

/* WhatsApp Button */
.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
}

/* Call Button */
.call-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

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

/* Tooltip */
.floating-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-btn {
    animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 15px;
        right: 15px;
        gap: 12px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .floating-btn::before {
        right: 60px;
        font-size: 12px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .floating-buttons {
        bottom: 10px;
        right: 10px;
        gap: 10px;
    }
    
    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .floating-btn::before {
        display: none; /* Hide tooltip on very small screens */
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .floating-btn {
        transition: none;
    }
    
    .whatsapp-btn {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .floating-btn {
        border: 2px solid white;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .floating-btn {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .floating-btn:hover {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }
}
