/* Global Layout Fix */
* {
    box-sizing: border-box;
}

html, body {
    width: 100vw;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    position: relative;
}

body {
    overflow-x: hidden !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Disable nav animations and movements */
.nav {
    animation: none !important;
    transition: none !important;
    transform: translateX(-50%) !important;
    will-change: auto !important;
}

.nav,
.nav *,
.language-switcher,
.language-switcher *,
.lang-link,
.flag-icon,
.hamburger,
.logo {
    animation: none !important;
    transition: none !important;
    will-change: auto !important;
}

/* Force stable positioning */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        position: relative !important;
    }
    
    /* Don't apply max-width to overlay elements */
    .nav-overlay,
    .nav-overlay *,
    .modal,
    .modal * {
        max-width: none !important;
    }
    
    .nav {
        position: fixed !important;
        top: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        max-width: calc(100vw - 20px) !important;
        overflow: hidden !important;
    }
    
    /* Disable WhatsApp button animations on mobile */
    .whatsapp-float {
        animation: none !important;
        transition: none !important;
        transform: scale(1) translateY(0) !important;
        will-change: auto !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: fixed !important;
        bottom: 30px !important;
        right: 30px !important;
    }
    
    .whatsapp-float.visible {
        opacity: 1 !important;
        transform: scale(1) translateY(0) !important;
    }
    
    .whatsapp-float:hover {
        transform: scale(1) translateY(0) !important;
        box-shadow: 0 8px 32px rgba(37, 211, 102, 0.3) !important;
    }
    
    .whatsapp-float .notification-badge {
        animation: none !important;
        transform: scale(1) !important;
    }
}