/* ================================================
   SHARED NAVBAR  — import on every page
   ================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap');

*,*::before,*::after { box-sizing: border-box; }

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 64px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(26, 26, 26, 0.97);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: 'Space Grotesk', sans-serif;
    gap: 1rem;
}

/* ── Logo ── */
.nav-logo {
    color: #8fbc8f;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    transition: color 0.25s;
}

.nav-logo:hover { color: #fff; }

/* ── Links ── */
.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.nav-list li { margin: 0 0.85rem; }

.nav-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    transition: color 0.25s;
    position: relative;
    white-space: nowrap;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #8fbc8f;
    transition: width 0.25s;
}

.nav-list a:hover            { color: #fff; }
.nav-list a:hover::after     { width: 100%; }
.nav-list a.active-link      { color: #fff; }
.nav-list a.active-link::after { width: 100%; }

/* ── CTA button ── */
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    background: #2e8b57;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid rgba(143, 188, 143, 0.3);
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-cta:hover {
    background: #3a9e68;
    transform: translateY(-1px);
}

/* ── Social icons ── */
.social-icons {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-upwork {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.25s;
    white-space: nowrap;
}

.nav-upwork:hover { color: #8fbc8f; }

.social-icons a {
    color: rgba(255, 255, 255, 0.8);
    margin-left: 1.25rem;
    font-size: 1.15rem;
    transition: color 0.25s;
    text-decoration: none;
}

.social-icons a:hover { color: #8fbc8f; }

/* ── Hamburger button ── */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    flex-shrink: 0;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

/* X animation when open */
.hamburger-menu[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger-menu[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Mobile ≤768px ── */
@media (max-width: 768px) {
    .navbar { padding: 0 1.25rem; gap: 0.5rem; }

    .hamburger-menu { display: flex; }

    .nav-list {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background-color: rgba(26, 26, 26, 0.99);
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 0 2rem;
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        z-index: 999;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-list.active { transform: translateY(0); }
    .nav-list li { margin: 0.65rem 0; }

    .nav-cta { display: none; }

    /* Hide verbose Upwork text; keep icon links */
    .nav-upwork { display: none; }
    .social-icons a { margin-left: 0.9rem; font-size: 1.2rem; }
}

/* ── Small mobile ≤480px ── */
@media (max-width: 480px) {
    .nav-logo { font-size: 0.95rem; }
}
