/* WhatsApp Floating Button Styles */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 10%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 32px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse 2s infinite;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: white;
    text-decoration: none;
}

.whatsapp-button:active {
    transform: scale(0.95);
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .whatsapp-button {
        width: 56px;
        height: 56px;
        bottom: 16px;
        right: 16px;
        font-size: 28px;
    }
    
    .whatsapp-button:hover {
        transform: scale(1.05);
    }
}

@media (max-width: 480px) {
    .whatsapp-button {
        width: 50px;
        height: 50px;
        bottom: 12px;
        right: 12px;
        font-size: 24px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .whatsapp-button {
        box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4);
    }
    
    .whatsapp-button:hover {
        box-shadow: 0 3px 10px rgba(37, 211, 102, 0.6);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-button {
        animation: none;
        transition: none;
    }
    
    .whatsapp-button:hover {
        transform: none;
    }
}

/* Focus states for keyboard navigation */
.whatsapp-button:focus {
    outline: 2px solid #25d366;
    outline-offset: 2px;
}

/* WhatsApp tooltip (optional) */
.whatsapp-button::before {
    content: "Chat with us";
    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: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-button::after {
    content: "";
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-button:hover::before,
.whatsapp-button:hover::after {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .whatsapp-button::before {
        display: none;
    }
    .whatsapp-button::after {
        display: none;
    }
}