.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 4%;
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.navbar h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    height: 100%;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 100%;
}

.nav-links a {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 16px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

#name:hover {
    cursor: pointer;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 100%;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
}

@media (max-width: 1100px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        right: 4%;
        flex-direction: column;
        align-items: flex-start;
        width: 240px;
        padding: 1.5rem;
        background: var(--bg-secondary);
        border-radius: 14px;
        box-shadow: var(--shadow-lg);
        gap: 0.5rem;
        display: none;
        border: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
        height: fit-content;
    }

    .nav-links a {
        height: auto;
        width: 100%;
        padding: 0.8rem 1rem;
        color: var(--text-secondary);
        border-radius: 8px;
        background: rgba(59, 130, 246, 0.15);
        border: 1px solid rgba(59, 130, 246, 0.3);
        margin-bottom: 0.3rem;
        transition: all 0.3s ease;
    }

    .nav-links a:last-child {
        margin-bottom: 0;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover {
        color: var(--accent-primary);
        background: rgba(59, 130, 246, 0.25);
        border-color: var(--accent-primary);
        padding-left: 1.3rem;
    }
}

@media (max-width: 1200px) {
    .nav-links a {
        font-size: smaller;
    }
}