
.header {
    background: #403c6d;
    backdrop-filter: blur(20px);
    border-bottom: 0px solid rgba(100, 200, 255, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    overflow: visible;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.header-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    position: relative;
    z-index: 2;
}


.logo {
    height: 90px;
    transition: all 0.3s;
    z-index: 1001;
    display: flex;
    align-items: center;
    position: relative;
    filter: drop-shadow(0 0 10px var(--neural-glow));
}

.logo:hover {
    filter: drop-shadow(0 0 20px var(--neural-glow-strong));
}

.logo img {
    height: 100%;
    width: auto;
    position: relative;
    z-index: 2;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--neural-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.logo:hover .logo-glow {
    opacity: 1;
}


.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links > li {
    position: relative;
}

.nav-link-glitch {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
    overflow: hidden;
    cursor: pointer;
}


button.nav-link-glitch {
    outline: none;
    font-family: inherit;
    font-size: inherit;
}

.nav-link-glitch::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(100, 200, 255, 0.2), 
        transparent);
    transition: left 0.6s;
}

.nav-link-glitch:hover::before {
    left: 100%;
}

.nav-link-glitch:hover {
    color: var(--neural-color-1);
    background: rgba(100, 200, 255, 0.1);
    border: 1px solid var(--neural-color-1);
    box-shadow: var(--neural-shadow);
    text-shadow: 0 0 10px var(--neural-glow);
}

.nav-link-glitch.active {
    color: var(--neural-color-1);
    background: rgba(100, 200, 255, 0.15);
    border: 1px solid var(--neural-color-1);
    box-shadow: var(--neural-shadow);
    text-shadow: 0 0 10px var(--neural-glow);
}


.link-pulse {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 6px;
    height: 6px;
    background: var(--neural-color-1);
    border-radius: 50%;
    transform: translateY(-50%);
    opacity: 0;
    animation: pulse 2s infinite;
}

.nav-link-with-arrow:hover .link-pulse {
    opacity: 1;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.5;
        box-shadow: 0 0 5px var(--neural-color-1);
    }
    50% { 
        opacity: 1;
        box-shadow: 0 0 15px var(--neural-color-1), 0 0 20px var(--neural-color-1);
    }
}

.nav-arrow {
    transition: transform 0.3s ease;
}


.nav-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
    z-index: 1002;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: #2d2b50;
    border: 1px solid rgba(100, 200, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    min-width: 600px;
    max-width: calc(100vw - 40px);
    box-shadow: var(--neural-shadow-strong);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    z-index: 1001;
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.dropdown-menu-compact {
    min-width: 200px;
    padding: 1rem;
    left: auto;
    right: 0;
}

.dropdown-menu-simple {
    background: #2d2b50;
}

.dropdown-menu-simple .dropdown-link:hover {
    background: rgba(102, 171, 250, 0.1);
    border-color: #8ac9fd;
    transform: translateX(5px);
    box-shadow: none;
    text-shadow: none;
}


.dropdown-menu:not(.dropdown-menu-compact) {
    right: auto;
    left: 0;
}


.neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}


.neural-nodes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.node {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neural-color-1);
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--neural-color-1);
}

.node-active {
    width: 12px;
    height: 12px;
    box-shadow: 0 0 20px var(--neural-color-1), 0 0 30px var(--neural-color-1);
    animation: nodePulse 1s ease-in-out infinite;
}

@keyframes nodePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}


.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    position: relative;
    z-index: 3;
}

.dropdown-grid-about {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    position: relative;
    z-index: 3;
}


.dropdown-link {
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    min-height: 44px;
    white-space: nowrap;
    position: relative;
    z-index: 4;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}


.dropdown-link::after {
    display: none;
}


.dropdown-link:hover,
.dropdown-link.active,
.dropdown-link.neural-highlight {
    color: var(--white);
    background: rgba(100, 200, 255, 0.15);
    border-color: var(--neural-color-1);
    transform: translateX(2px);
    box-shadow: 0 0 10px rgba(100, 200, 255, 0.3);
    text-shadow: 0 0 5px var(--neural-color-1);
}


.dropdown-link-hover {
    background: rgba(100, 200, 255, 0.25) !important;
    border-color: var(--neural-color-1) !important;
    transform: translateX(5px) !important;
    box-shadow: 0 0 15px var(--neural-color-1), 0 0 20px rgba(100, 200, 255, 0.5) !important;
    text-shadow: 0 0 10px var(--neural-color-1) !important;
    z-index: 5 !important;
}


.dropdown-link[data-category="ai"]:hover,
.dropdown-link[data-category="ai"].neural-highlight {
    border-color: var(--neural-color-1);
    box-shadow: 0 0 15px rgba(100, 200, 255, 0.3);
}

.dropdown-link[data-category="design"]:hover,
.dropdown-link[data-category="design"].neural-highlight {
    border-color: var(--neural-color-2);
    box-shadow: 0 0 15px rgba(255, 100, 200, 0.3);
}

.dropdown-link[data-category="dev"]:hover,
.dropdown-link[data-category="dev"].neural-highlight {
    border-color: var(--neural-color-3);
    box-shadow: 0 0 15px rgba(100, 255, 200, 0.3);
}

.dropdown-link[data-category="basics"]:hover,
.dropdown-link[data-category="basics"].neural-highlight {
    border-color: #ffa564;
    box-shadow: 0 0 15px rgba(255, 165, 100, 0.3);
}

.dropdown-link[data-category="tech"]:hover,
.dropdown-link[data-category="tech"].neural-highlight {
    border-color: #c864ff;
    box-shadow: 0 0 15px rgba(200, 100, 255, 0.3);
}


.theme-switcher-wrapper {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
    position: relative;
}

.theme-switcher {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 32px;
    cursor: pointer;
}

.theme-switcher input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 200, 255, 0);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 20px;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(100, 200, 255, 0.2), 
        transparent);
    transition: left 0.6s;
}

.theme-switcher:hover .slider::before {
    left: 100%;
}



.theme-switcher:hover .slider {
    background: rgba(100, 200, 255, 0.08);
    border-color: var(--neural-color-1);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 3px 12px rgba(0, 0, 0, 0.2),
        0 0 10px var(--neural-glow);
}


body.dark-theme input:checked + .slider {
    background: rgba(100, 200, 255, 0.15);
    border-color: rgba(100, 200, 255, 0.5);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(100, 200, 255, 0.3);
}


body.light-theme input:checked + .slider {
    background: rgba(255, 200, 50, 0.2);
    border-color: rgba(255, 180, 50, 0.5);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.1),
        0 0 15px rgba(255, 200, 50, 0.3);
}

.icons {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
    pointer-events: none;
    z-index: 1;
}

.icon {
    width: 16px;
    height: 16px;
    transition: all 0.4s ease;
}

.icon img {
    width: 100%;
    height: 100%;
    transition: all 0.4s ease;
}


.theme-switcher .icon img {
    transition: filter 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}


body.dark-theme .theme-switcher .icon-moon img {
    filter: brightness(1) drop-shadow(0 0 3px rgba(100, 200, 255, 0.8));
}

body.dark-theme .theme-switcher .icon-sun img {
    filter: brightness(0.3);
}


body.light-theme .theme-switcher .icon-sun img {
    filter: brightness(1) drop-shadow(0 0 3px rgba(255, 200, 50, 0.8));
}

body.light-theme .theme-switcher .icon-moon img {
    filter: brightness(0.3);
}


.theme-switcher:hover .icon-moon img,
.theme-switcher:hover .icon-sun img {
    filter: brightness(0.8);
}


body.dark-theme .theme-switcher:hover .icon-moon img {
    filter: brightness(1.2) drop-shadow(0 0 5px rgba(100, 200, 255, 1));
}

body.light-theme .theme-switcher:hover .icon-sun img {
    filter: brightness(1.2) drop-shadow(0 0 5px rgba(255, 200, 50, 1));
}


.mobile-theme-switcher {
    border-bottom: 1px solid rgba(100, 200, 255, 0.2);
}

.theme-switcher-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.theme-switcher-label {
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
}


.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 200, 255, 0.3);
    border-radius: var(--border-radius);
    position: relative;
    z-index: 1001;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.burger:hover {
    background: rgba(100, 200, 255, 0.1);
    border-color: var(--neural-color-1);
    box-shadow: var(--neural-shadow);
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: 0.3s;
    transform-origin: center;
}

.burger:hover span {
    background: var(--neural-color-1);
    box-shadow: 0 0 10px var(--neural-glow);
}

.burger.active {
    background: rgba(100, 200, 255, 0.2);
    border-color: var(--neural-color-1);
    box-shadow: var(--neural-shadow-strong);
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: var(--neural-color-1);
    box-shadow: 0 0 10px var(--neural-glow);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: var(--neural-color-1);
    box-shadow: 0 0 10px var(--neural-glow);
}

.burger-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--neural-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.burger:hover .burger-glow,
.burger.active .burger-glow {
    opacity: 0.3;
}


.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(100, 200, 255, 0.3);
    transition: right 0.3s ease-in-out;
    z-index: 1003;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}


.mobile-menu-header {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 70px;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(100, 200, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 1rem;
    z-index: 1004;
}

.mobile-menu-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(100, 200, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 8px;
    cursor: pointer;
    color: var(--white);
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.mobile-menu-close:hover {
    background: rgba(100, 200, 255, 0.1);
    border-color: var(--neural-color-1);
    box-shadow: var(--neural-shadow);
    color: var(--neural-color-1);
}

.mobile-menu-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.mobile-menu-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1002;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


.mobile-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    z-index: 2;
    margin-top: 70px;
    padding: 1rem 0;
}

.mobile-links > li {
    border-bottom: 1px solid rgba(100, 200, 255, 0.2);
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s;
    display: block;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(100, 200, 255, 0.1), 
        transparent);
    transition: left 0.6s;
}

.mobile-nav-link:hover::before {
    left: 100%;
}

.mobile-nav-link::after {
    display: none;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--neural-color-1);
    background: rgba(100, 200, 255, 0.1);
    text-shadow: 0 0 10px var(--neural-glow);
}


.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--white);
    padding: 1.25rem 1.5rem;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(100, 200, 255, 0.2);
}

.mobile-dropdown-toggle:hover {
    color: var(--neural-color-1);
    background: rgba(100, 200, 255, 0.1);
    text-shadow: 0 0 10px var(--neural-glow);
}

.mobile-arrow {
    transition: transform 0.3s ease;
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(70, 63, 131, 0.3);
}

.mobile-dropdown-link {
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    padding: 1rem 1.5rem 1rem 2.5rem;
    font-size: 0.9rem;
    transition: all 0.3s;
    border-left: 2px solid transparent;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.03);
}

.mobile-dropdown-link:hover,
.mobile-dropdown-link.active {
    color: var(--neural-color-1);
    background: rgba(100, 200, 255, 0.08);
    border-left-color: var(--neural-color-1);
    text-shadow: 0 0 5px var(--neural-glow);
}


@media (max-width: 1200px) {
    .dropdown-menu:not(.dropdown-menu-compact) {
        min-width: 500px;
    }
}

@media (max-width: 768px) {
    
    .nav-links {
        display: none;
    }
    
    .burger {
        display: flex;
    }
    
    .logo {
        height: 60px;
    }
    
    .mobile-menu {
        width: 280px;
    }
    
    .mobile-menu-header {
        width: 280px;
    }
    
    
    .theme-switcher-wrapper {
        display: none;
    }
    
    
    .dropdown-grid {
        grid-template-columns: 1fr;
    }
    
    .dropdown-menu {
        position: fixed;
        left: 50% !important;
        transform: translateX(-50%) translateY(-5px);
        min-width: 280px;
        width: 95vw;
        max-width: 95vw;
    }
    
    .dropdown-menu.active {
        transform: translateX(-50%) translateY(0);
    }
    
   
    .neural-canvas,
    .neural-nodes {
        display: none;
    }
    
    
    .nav-dropdown::before {
        display: none;
    }
    
    
    .nav-link-glitch {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 100%;
        max-width: none;
    }
    
    .mobile-menu-header {
        width: 100%;
    }
    
    .mobile-links a,
    .mobile-dropdown-toggle {
        padding: 1rem 1rem;
    }
    
    .mobile-dropdown-link {
        padding: 0.8rem 1rem 0.8rem 2rem;
    }
    
    .theme-switcher-mobile {
        padding: 1rem;
    }
}