.nav-scrolled {
    background: rgba(31, 29, 40, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.nav-default {
    background-color: #000000;
    transition: all 0.3s ease;
}

.nav-default a, .nav-scrolled a {
    color: #FFFFFF !important;
}

.nav-default a.active, .nav-scrolled a.active,
.nav-default a[aria-current="page"], .nav-scrolled a[aria-current="page"] {
    color: #2CBABE !important;
}

.nav-default a:hover, .nav-scrolled a:hover {
    color: #2CBABE !important;
}

.nav-scrolled {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease-in-out;
}

.nav-scrolled a {
    color: #1e293b;
}

/* Mobile menu styles */
#mobile-menu {
    background-color: rgba(0, 0, 0, 0.5) !important;
    transition: opacity 0.3s ease-in-out;
    z-index: 99999;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    display: none;
    flex-direction: column;
}

.mobile-menu-content {
    background-color: #000000 !important;
    transition: transform 0.3s ease-in-out;
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    width: 280px;
    z-index: 100000;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.3);
}

/* Menu mobile links animation */
#mobile-menu a {
    transition: all 0.2s ease-in-out;
}

#mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* Ensure menu is hidden by default but transitions smoothly */
.translate-x-full {
    transform: translateX(100%);
}

body.overflow-hidden {
    overflow: hidden;
}

.mobile-menu-overlay {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    position: fixed;
    inset: 0;
    z-index: 99990;
    transition: opacity 0.3s ease;
    width: 100%;
    height: 100vh;
}

.mobile-menu-content {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-link {
    transition: all 0.2s ease;
}

.mobile-menu-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
}

/* Correções para rolagem horizontal em mobile */
* {
    max-width: 100vw;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .hero-section {
        background-image: url('../imagens/heromobile_11zon.webp');
    }
    
    /* Ajustes para prevenir overflow */
    section {
        width: 100%;
        overflow-x: hidden;
    }
    
    .grid {
        margin-left: 0;
        margin-right: 0;
    }
}