/* Mobile Navigation Styles */

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
    transition: transform 0.3s ease;
}

.mobile-menu-btn.active {
    transform: rotate(90deg);
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-sidebar.active {
    transform: translateX(0);
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Mobile Nav Links */
.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.mobile-nav-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-links a {
    display: block;
    padding: 1rem 0;
    color: var(--gray-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: var(--white);
    padding-left: 1rem;
}

.mobile-nav-links a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--gradient-1);
    border-radius: 2px;
}

/* Mobile Language Switcher */
.mobile-lang-section {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-lang-title {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-lang-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    color: var(--gray-light);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-lang-option:hover {
    background: rgba(99, 102, 241, 0.15);
    color: var(--white);
    border-color: rgba(99, 102, 241, 0.3);
}

.mobile-lang-option.active {
    background: var(--gradient-1);
    color: var(--white);
    border-color: transparent;
}

.mobile-lang-flag {
    font-size: 1.25rem;
}

/* Mobile CTA Button */
.mobile-cta {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--gradient-1);
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s;
}

.mobile-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

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

/* Animation for menu items */
.mobile-sidebar.active .mobile-nav-links li {
    animation: slideInRight 0.4s ease forwards;
    opacity: 0;
}

.mobile-sidebar.active .mobile-nav-links li:nth-child(1) { animation-delay: 0.05s; }
.mobile-sidebar.active .mobile-nav-links li:nth-child(2) { animation-delay: 0.1s; }
.mobile-sidebar.active .mobile-nav-links li:nth-child(3) { animation-delay: 0.15s; }
.mobile-sidebar.active .mobile-nav-links li:nth-child(4) { animation-delay: 0.2s; }
.mobile-sidebar.active .mobile-nav-links li:nth-child(5) { animation-delay: 0.25s; }
.mobile-sidebar.active .mobile-nav-links li:nth-child(6) { animation-delay: 0.3s; }

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-cta {
        display: none;
    }
    
    .lang-switcher {
        display: none;
    }
}
