/* =========================================
   NAVBAR — top bar with brand + links
   Behaviour driven by js/navbar.js
========================================= */

.portfolio {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.portfolio::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 45%, transparent 100%);
    mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 45%, transparent 100%);
}

.navbar {
    position: relative;
    width: 100%;
    height: 64px;
    padding: 0 clamp(20px, 4vw, 60px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(2, 26, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px rgba(255, 208, 0, 0.9);
}

.brand-name {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-white);
}

.navigation {
    height: 100%;
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.5vw, 36px);
}

.navigation a {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.navigation a:hover,
.navigation a.active {
    color: var(--primary);
}

.navigation a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.navigation a.active::after {
    transform: scaleX(1);
}

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

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: var(--transition);
}
