

:root {
    --mobile-nav-height: 65px;
    --mobile-menu-animation: 0.3s ease;
}


.mobile-nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 32, 44, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}


.mobile-nav-container.nav-hidden {
    transform: translateY(-100%);
}

.mobile-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    height: var(--mobile-nav-height);
}

.mobile-logo {
    display: flex;
    align-items: center;
    z-index: 2;
}

.mobile-logo img {
    height: 45px;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--smile-blue);
    margin: 3px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}


.mobile-menu-toggle.active span:first-child {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:last-child {
    transform: translateY(-8px) rotate(-45deg);
}


.mobile-menu {
    position: fixed;
    top: var(--mobile-nav-height);
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    transition: height var(--mobile-menu-animation);
    z-index: 999;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.mobile-menu.open {
    height: calc(100vh - var(--mobile-nav-height));
    overflow-y: auto;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.mobile-nav-item {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    padding: 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}


.mobile-menu.open .mobile-nav-item {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(0.05s * var(--item-index));
}

.mobile-nav-item:active {
    background: rgba(84, 175, 230, 0.2);
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

.mobile-nav-icon {
    margin-right: 1rem;
    font-size: 1.2rem;
    color: var(--smile-blue);
    width: 24px;
    text-align: center;
}


.mobile-nav-actions {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
}

.mobile-menu.open .mobile-nav-actions {
    opacity: 1;
    transform: translateY(0);
}

.mobile-demo-button {
    background: linear-gradient(90deg, var(--alibra-blue), var(--alibra-orange));
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 250px;
}

.mobile-demo-button:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}


@media (min-width: 992px) {
    .mobile-nav-container {
        display: none;
    }
}

@media (max-width: 991px) {
    header.glass-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .mobile-nav {
        height: 60px;
    }
    
    .mobile-logo img {
        height: 40px;
    }
    
    .mobile-menu {
        top: 60px;
    }
    
    :root {
        --mobile-nav-height: 60px;
    }
}

/* Overlay escurecido quando o menu está aberto */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
