/* Menu Mobile Moderno */

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

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

/* Menu Container */
.mobile-menu-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background: linear-gradient(135deg, #1a1f3a 0%, #0f1629 100%);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

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

/* Menu Header */
.mobile-menu-header {
    padding: 30px 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-logo img {
    height: 40px;
    width: auto;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Menu Body */
.mobile-menu-body {
    padding: 30px 0;
}

/* Menu Items */
.mobile-menu-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-item {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInMenu 0.4s ease forwards;
}

.mobile-menu-item:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-item:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu-item:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu-item:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu-item:nth-child(5) { animation-delay: 0.3s; }
.mobile-menu-item:nth-child(6) { animation-delay: 0.35s; }
.mobile-menu-item:nth-child(7) { animation-delay: 0.4s; }

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

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.mobile-menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.2) 0%, transparent 100%);
    transition: width 0.3s ease;
}

.mobile-menu-link:hover::before,
.mobile-menu-link.active::before {
    width: 100%;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    border-left-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.mobile-menu-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #8b5cf6;
}

.mobile-menu-text {
    flex: 1;
}

.mobile-menu-arrow {
    font-size: 14px;
    opacity: 0.5;
    transition: transform 0.3s ease;
}

.mobile-menu-link:hover .mobile-menu-arrow {
    transform: translateX(5px);
    opacity: 1;
}

/* Menu Footer */
.mobile-menu-footer {
    padding: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}

.mobile-menu-cta {
    display: block;
    padding: 15px 25px;
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.mobile-menu-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
}

.mobile-menu-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.mobile-menu-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-menu-social-link:hover {
    background: #8b5cf6;
    transform: translateY(-3px);
}

/* Hamburger Animation */
.menu-hamburger {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 10000;
}

.menu-hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #8b5cf6;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.menu-hamburger span:nth-child(1) {
    top: 0px;
}

.menu-hamburger span:nth-child(2) {
    top: 10px;
}

.menu-hamburger span:nth-child(3) {
    top: 20px;
}

.menu-hamburger.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.menu-hamburger.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.menu-hamburger.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-hamburger {
        display: block;
    }
    
    /* Esconder menu desktop */
    #navigation {
        display: none !important;
    }
    
    /* Mostrar hamburger no lugar do ícone antigo */
    #menu {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .mobile-menu-container {
        width: 90%;
    }
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}
