
:root {
    --mobile-nav-bg: linear-gradient(135deg, rgba(10, 10, 20, 0.98), rgba(0, 0, 0, 0.95));
    --mobile-nav-blur: 20px;
    --mobile-nav-transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --mobile-section-delay: 0.1s;
}
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10000;
    position: relative;
    will-change: transform;
    transform: translateZ(0);
}
.hamburger:hover {
    border-color: var(--accent-primary);
    transform: scale(1.1) translateZ(0);
}
.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--text-secondary);
    transition: all 0.3s ease;
    border-radius: 1px;
    will-change: transform, opacity;
    transform: translateZ(0);
}
.hamburger:hover .hamburger-line {
    background: var(--accent-primary);
}
.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px) translateZ(0);
}
.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0) translateZ(0);
}
.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px) translateZ(0);
}
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--mobile-nav-bg);
    backdrop-filter: blur(var(--mobile-nav-blur));
    -webkit-backdrop-filter: blur(var(--mobile-nav-blur));
    z-index: 9999;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform var(--mobile-nav-transition);
    padding: 80px 20px 40px;
    will-change: transform;
    transform: translateX(100%) translateZ(0);
}
.mobile-nav.active {
    transform: translateX(0) translateZ(0);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-nav-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px) translateZ(0);
    animation: mobileSlideInUp 0.6s ease forwards;
    will-change: transform, opacity;
}
.mobile-nav-section:nth-child(1) { animation-delay: calc(var(--mobile-section-delay) * 1); }
.mobile-nav-section:nth-child(2) { animation-delay: calc(var(--mobile-section-delay) * 2); }
.mobile-nav-section:nth-child(3) { animation-delay: calc(var(--mobile-section-delay) * 3); }
.mobile-nav-section:nth-child(4) { animation-delay: calc(var(--mobile-section-delay) * 4); }
@keyframes mobileSlideInUp {
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}
.mobile-nav-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 245, 160, 0.3);
    text-align: center;
}
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    will-change: transform, border-color, background;
    transform: translateZ(0);
}
.mobile-nav-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    transition: transform 0.3s ease;
    will-change: transform;
    transform: translateZ(0);
}
.mobile-nav-text {
    flex: 1;
    font-size: 1rem;
}
.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,245,160,0.1), transparent);
    transition: left 0.5s ease;
    will-change: left;
}
.mobile-nav-link:hover::before {
    left: 100%;
}
.mobile-nav-link:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(0, 245, 160, 0.05);
    box-shadow: 0 4px 20px rgba(0,245,160,0.15);
    transform: translateX(8px) translateZ(0);
}
.mobile-nav-link:hover .mobile-nav-icon {
    transform: scale(1.2) translateZ(0);
}
.mobile-nav-link-primary {
    background: linear-gradient(135deg, rgba(0,245,160,0.1), rgba(0,210,255,0.1));
    border-color: rgba(0,245,160,0.3);
    color: var(--accent-primary);
    font-weight: 600;
}
.mobile-nav-link-primary:hover {
    background: linear-gradient(135deg, rgba(0,245,160,0.2), rgba(0,210,255,0.2));
    box-shadow: 0 6px 25px rgba(0,245,160,0.25);
    transform: translateX(8px) scale(1.02) translateZ(0);
}
.mobile-nav-link-secondary {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.8;
}
.mobile-nav-link-secondary:hover {
    opacity: 1;
    color: var(--text-primary);
}
#mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    will-change: opacity, visibility;
}
#mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}
.mobile-nav::-webkit-scrollbar {
    width: 6px;
}
.mobile-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.mobile-nav::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}
.mobile-nav::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}
.mobile-nav {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
}
@supports (-webkit-touch-callout: none) {
    .mobile-nav {
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
    }
}
@supports not (-webkit-touch-callout: none) {
    .mobile-nav {
        scroll-behavior: smooth;
    }
}
@media (max-width: 768px) {
    .main-nav {
        display: none !important;
    }
    .mobile-nav {
        display: block;
    }
    .hamburger {
        display: flex;
        z-index: 10000;
        position: relative;
        pointer-events: auto;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        padding: 10px;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        width: 44px;
        height: 44px;
        justify-content: center;
        align-items: center;
        gap: 4px;
        cursor: pointer;
    }
    .hamburger:hover {
        border-color: var(--accent-primary);
        background: rgba(0, 245, 160, 0.1);
        transform: scale(1.05) translateZ(0);
        box-shadow: 0 4px 15px rgba(0, 245, 160, 0.2);
    }
    .hamburger-line {
        width: 22px;
        height: 2px;
        background: var(--text-secondary);
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        border-radius: 1px;
        position: relative;
    }
    .hamburger:hover .hamburger-line {
        background: var(--accent-primary);
        box-shadow: 0 0 8px rgba(0, 245, 160, 0.5);
    }
    .hamburger.active {
        background: rgba(0, 245, 160, 0.15);
        border-color: var(--accent-primary);
        box-shadow: 0 0 20px rgba(0, 245, 160, 0.3);
    }
    .hamburger.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px) translateZ(0);
        background: var(--accent-primary);
    }
    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
        transform: scale(0) translateZ(0);
    }
    .hamburger.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px) translateZ(0);
        background: var(--accent-primary);
    }
    .hamburger.active::after {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        border: 2px solid var(--accent-primary);
        border-radius: 12px;
        animation: mobilePulse 2s infinite;
        z-index: -1;
    }
    @keyframes mobilePulse {
        0% {
            transform: scale(1);
            opacity: 0.5;
        }
        50% {
            transform: scale(1.1);
            opacity: 0.2;
        }
        100% {
            transform: scale(1);
            opacity: 0.5;
        }
    }
    @media (max-width: 480px) {
        .mobile-nav {
            padding: 60px 15px 30px;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
        }
        .mobile-nav-section {
            padding: 1rem;
            margin-bottom: 1.5rem;
        }
        .mobile-nav-title {
            font-size: 0.8rem;
            margin-bottom: 0.8rem;
        }
        .mobile-nav-link {
            padding: 0.8rem 1rem;
            font-size: 0.9rem;
            gap: 10px;
        }
        .mobile-nav-icon {
            font-size: 1rem;
            width: 20px;
        }
    }
}
.hamburger:focus-visible,
.mobile-nav-link:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
    .hamburger,
    .hamburger-line,
    .mobile-nav,
    .mobile-nav-section,
    .mobile-nav-link,
    .mobile-nav-icon {
        transition: none;
        animation: none;
    }
    .mobile-nav.active {
        transform: translateX(0);
    }
    .hamburger.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}
.mobile-nav,
.hamburger,
.mobile-nav-link,
.mobile-nav-section {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}
.mobile-nav.active {
    transform: translate3d(0, 0, 0);
}
.mobile-nav-container {
    position: relative;
    z-index: 9999;
    isolation: isolate;
}
.nav-dropdown {
    position: relative;
    display: inline-block;
}
.nav-dropdown .nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.nav-dropdown .nav-link::after {
    content: '▾';
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-left: 4px;
}
.nav-dropdown:hover .nav-link::after {
    transform: rotate(180deg);
}
.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown .dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
}
.nav-dropdown .dropdown-item:hover {
    background: rgba(0, 245, 160, 0.1);
    color: var(--accent-primary);
    transform: translateX(5px);
}
.nav-dropdown .dropdown-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-dropdown .dropdown-item {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}
.nav-dropdown:hover .dropdown-item {
    opacity: 1;
    transform: translateX(0);
}
.nav-dropdown .dropdown-item:nth-child(1) { transition-delay: 0.1s; }
.nav-dropdown .dropdown-item:nth-child(2) { transition-delay: 0.15s; }
.nav-dropdown .dropdown-item:nth-child(3) { transition-delay: 0.2s; }
.nav-dropdown .dropdown-item:nth-child(4) { transition-delay: 0.25s; }
@media (max-width: 768px) {
    .nav-dropdown {
        display: none;
    }
}
.nav-dropdown .dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 160, 0.2), transparent);
    transition: width 0.3s ease;
}
.nav-dropdown .dropdown-item:hover::before {
    width: 100%;
}
.nav-dropdown .dropdown-item:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: -2px;
}
.nav-dropdown .dropdown-menu {
    transform-origin: top center;
}
.nav-dropdown:hover .dropdown-menu {
    animation: dropdownSlideIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
@keyframes dropdownSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}