.header{
    background: rgba(12, 14, 18, 0.9);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo{
    font-size: 27px;
    font-weight: bold;
    color: #ffff;
}

.logo .highlight {
    color: var(--accent); /* color only for "AM" */
}

.navbar{
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-item a{
    position: relative;    
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.nav-item a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: var(--accent-2);
    transition: width 0.3s ease;
}

.nav-item a:hover,
.nav-item a.active {
    color: var(--accent-2);
}

.nav-item a:hover::after,
.nav-item a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 860px) {
    .nav-toggle {
        display: flex;
    }

    .navbar {
        position: absolute;
        top: 100%;
        right: 32px;
        background: rgba(22, 24, 29, 0.96);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 12px;
        padding: 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        box-shadow: var(--shadow);
        min-width: 180px;
        display: none;
    }

    .navbar.open {
        display: flex;
    }

    .nav-item a {
        width: 100%;
    }
}