/* ===== MOBILE HAMBURGER MENU CSS ===== */
/* Arquivo específico para menu hambúrguer mobile */

/* Mobile hamburger menu button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    margin-left: auto;
    margin-right: 0.5rem;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: white !important;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Ensure all hamburger lines are white in all states */
.hamburger-menu .hamburger-line,
.hamburger-menu.active .hamburger-line,
.hamburger-menu:hover .hamburger-line {
    background: white !important;
}

/* Hamburger animation when active */
.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: white !important;
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
    background: white !important;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: white !important;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile menu panel */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(11, 15, 28, 0.95) 0%, 
        rgba(26, 31, 46, 0.95) 50%, 
        rgba(11, 15, 28, 0.95) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 0;
}

.mobile-menu-panel.active {
    right: 0;
}

/* Mobile menu header */
.mobile-menu-header {
    padding: 2rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.mobile-menu-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.mobile-menu-logo .teku-text {
    color: white;
}

.mobile-menu-logo .ai-text {
    color: #00ffff;
}

/* Mobile menu navigation */
.mobile-menu-nav {
    padding: 2rem 0;
}

.mobile-menu-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-links li {
    margin: 0;
    padding: 0;
}

.mobile-menu-link {
    display: block;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.mobile-menu-link:hover {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    border-left-color: #00ffff;
    padding-left: 2rem;
}

.mobile-menu-link.active {
    background: rgba(0, 255, 255, 0.15);
    color: #00ffff;
    border-left-color: #00ffff;
}

/* Mobile menu CTA button */
.mobile-menu-cta {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-cta .btn {
    width: 100%;
    text-align: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
}

/* Close button */
.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #00ffff;
}

/* Mobile responsive styles */
@media (max-width: 767px) {
    .hamburger-menu {
        display: flex !important;
        margin-left: auto !important;
        margin-right: -1rem !important;
        order: 2;
    }
    
    .nav-right {
        display: none !important;
    }
    
    .nav-container {
        justify-content: space-between !important;
        padding: 0 0.5rem 0 0 !important;
        align-items: center !important;
    }
    
    .nav-left {
        order: 1;
        flex: 1;
        margin-left: 0 !important;
        margin-right: auto !important;
    }
    
    /* Ensure mobile menu panel is properly sized on small screens */
    .mobile-menu-panel {
        width: 100%;
        max-width: 320px;
    }
}

/* Tablet responsive styles */
@media screen and (min-width: 641px) and (max-width: 1368px) and (hover: none) and (pointer: coarse) {
    .hamburger-menu {
        display: flex !important;
        margin-left: auto !important;
        margin-right: -1rem !important;
        order: 2;
    }
    
    .nav-right {
        display: none !important;
    }
    
    .nav-container {
        justify-content: space-between !important;
        padding: 0 1rem 0 0 !important;
        align-items: center !important;
    }
    
    .nav-left {
        order: 1;
        flex: 1;
        margin-left: 0 !important;
        margin-right: auto !important;
    }
}

/* Desktop - hide hamburger menu */
@media (min-width: 1369px) {
    .hamburger-menu {
        display: none !important;
    }
    
    .mobile-menu-overlay {
        display: none !important;
    }
    
    .mobile-menu-panel {
        display: none !important;
    }
}

/* Smooth scroll for mobile menu links */
.mobile-menu-link {
    scroll-behavior: smooth;
}

/* Animation for menu items - only when menu is active */
.mobile-menu-panel.active .mobile-menu-link {
    animation: slideInRight 0.3s ease forwards;
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-panel.active .mobile-menu-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-panel.active .mobile-menu-link:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu-panel.active .mobile-menu-link:nth-child(3) { animation-delay: 0.3s; }
.mobile-menu-panel.active .mobile-menu-link:nth-child(4) { animation-delay: 0.4s; }
.mobile-menu-panel.active .mobile-menu-link:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Ensure mobile menu panel has proper height and scrolling */
.mobile-menu-panel {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
}

/* Smooth scrolling for the entire mobile menu */
.mobile-menu-panel {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Fix for very small screens */
@media (max-width: 360px) {
    .mobile-menu-panel {
        width: 100%;
        max-width: 100%;
    }
    
    .mobile-menu-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .mobile-menu-nav {
        padding: 1.5rem 0;
    }
    
    .mobile-menu-link {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
}
