/* Floating Buttons CSS - WhatsApp and Scroll to Top */

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed !important;
    bottom: 40px !important;
    right: 20px !important;
    top: auto !important;
    left: auto !important;
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
    color: white !important;
    border-radius: 50% !important;
    text-align: center;
    font-size: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4) !important;
    animation: pulse 2s infinite;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    cursor: pointer;
}

.whatsapp-float:hover {
    background: linear-gradient(135deg, #128c7e, #075e54) !important;
    transform: scale(1.1) translateZ(0) !important;
    -webkit-transform: scale(1.1) translateZ(0) !important;
    color: white !important;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6) !important;
}

.whatsapp-float:active,
.whatsapp-float:focus {
    color: white !important;
    text-decoration: none !important;
    outline: none !important;
}

.whatsapp-icon {
    font-size: inherit !important;
    color: white !important;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed !important;
    bottom: 120px !important;
    right: 20px !important;
    top: auto !important;
    left: auto !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(30, 58, 138, 0.9) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    border-radius: 50% !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    color: #3b82f6 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    z-index: 999998 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    cursor: pointer;
    font-size: 20px !important;
}

.scroll-to-top:hover {
    background: rgba(59, 130, 246, 1) !important;
    color: white !important;
    transform: translateY(-2px) translateZ(0) !important;
    -webkit-transform: translateY(-2px) translateZ(0) !important;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4) !important;
}

.scroll-to-top:active,
.scroll-to-top:focus {
    color: white !important;
    text-decoration: none !important;
    outline: none !important;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 52px !important;
        height: 52px !important;
        bottom: 15px !important;
        right: 12px !important;
        font-size: 24px !important;
        position: fixed !important;
        z-index: 999999 !important;
    }
    
    .scroll-to-top {
        bottom: 85px !important;
        right: 12px !important;
        width: 45px !important;
        height: 45px !important;
        position: fixed !important;
        font-size: 18px !important;
    }
}

/* iOS Safari fixes */
@supports (-webkit-touch-callout: none) {
    .whatsapp-float,
    .scroll-to-top {
        -webkit-transform: translate3d(0, 0, 0) !important;
        transform: translate3d(0, 0, 0) !important;
    }
}

/* Ensure visibility on all devices */
.whatsapp-float,
.scroll-to-top {
    will-change: transform;
    contain: layout;
}

/* Prevent body scroll from affecting fixed elements */
body.mobile-menu-open .whatsapp-float,
body.mobile-menu-open .scroll-to-top {
    position: fixed !important;
    display: flex !important;
    z-index: 999999 !important;
}

/* Print styles - hide floating buttons when printing */
@media print {
    .whatsapp-float,
    .scroll-to-top {
        display: none !important;
    }
}
