/* Navigation Styles */
.navbar {
    width: 100%;
    top: 0;
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .8rem 5%;
    background: rgba(13,7,24,.95);
    position: fixed;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(179,0,255,.3);
    height: 70px;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(13,7,24,.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0,0,0,.4);
    padding: .5rem 5%;
    background: rgba(6,6,10,.98);
}

.logo img {
    height: 35px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 12px rgba(179,0,255,.8));
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(255,0,170,.9));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links li {
    margin-left: 2.2rem;
}

.nav-links a {
    color: #e2d9f3;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
    position: relative;
    padding: .5rem 0;
    border-radius: var(--border-radius-sm);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #b300ff, #f0a);
    transition: width .3s;
}

.nav-links a.active,
.nav-links a:hover {
    color: #b300ff;
    text-shadow: 0 0 10px rgba(179,0,255,.7);
    background: rgba(179,0,255,.1);
    color: var(--text-primary);
}

.nav-links a.active::after,
.nav-links a:hover::after {
    width: 100%;
}

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: 0 0;
    border: none;
    padding: 0;
    position: relative;
    z-index: 1001;
    gap: 4px;
    padding: 4px;
}

.burger span {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #b300ff, #f0a);
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(179,0,255,.6);
    display: block;
    transform-origin: center;
    transition: var(--transition);
}

.burger:hover span {
    background: linear-gradient(90deg, #f0a, #b300ff);
    box-shadow: 0 0 12px rgba(255,0,170,.8);
}

.burger:hover {
    transform: scale(1.1);
    transition: transform .3s;
}

.burger.active span:first-child {
    transform: rotate(45deg) translate(6px, 6px);
    background: #f0a;
    box-shadow: 0 0 12px rgba(255,0,170,.8);
}

.burger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: #b300ff;
    box-shadow: 0 0 12px rgba(179,0,255,.8);
}

.burger.active:hover {
    transform: scale(1.1) rotate(90deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85%;
    height: 100vh;
    background: linear-gradient(180deg, #0d0718 0, #1a0f2d 100%);
    z-index: 1001;
    transition: right .4s cubic-bezier(.4,0,.2,1);
    padding: 80px 1.5rem 2rem;
    border-left: 1px solid rgba(179,0,255,.3);
    box-shadow: -5px 0 30px rgba(179,0,255,.2);
    flex-direction: column;
    overflow-y: auto;
    backdrop-filter: blur(15px);
    border-left: 1px solid var(--border-color);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    width: 100%;
    margin-bottom: 2rem;
}

.mobile-menu ul li {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(179,0,255,.1);
    padding-bottom: 1rem;
}

.mobile-menu ul li a {
    color: #e2d9f3;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.3rem;
    transition: var(--transition);
    display: block;
    padding: .5rem 0;
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    padding: .8rem 1rem;
    display: block;
    border-radius: var(--border-radius-sm);
}

.mobile-menu ul li a:hover {
    color: #f0a;
    text-shadow: 0 0 10px rgba(255,0,170,.7);
    transform: translateX(10px);
    background: rgba(179,0,255,.1);
    color: var(--text-primary);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.8);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 1400px) {
    .nav-links {
        display: none;
    }
    
    .burger {
        display: flex;
    }
    
    .navbar {
        padding: .8rem 3%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .burger {
        display: flex;
    }
    
    .navbar {
        padding: .6rem 5%;
        height: 60px;
    }
    
    .logo img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 90%;
        right: -90%;
        padding: 60px 1rem 1rem;
    }
    
    .mobile-menu ul li a {
        font-size: 1.1rem;
    }
}