/* =========================
   Shared Navbar (all pages)
   ========================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6%;
    z-index: 1000;

    background: rgba(11, 11, 18, 0.88);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid #242433;
}

.logo {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;
    border: 1px solid #8b5cf6;

    color: #8b5cf6;
    font-size: 1.4rem;
    font-weight: 700;
}

.logo span {
    color: #f5f5f7;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;

    margin: 0 auto;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    position: relative; z-index: 1000;
}

.nav-links a {
    position: relative;

    color: #b8b8c7;
    font-size: 0.9rem;

    padding: 25px 0;

    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #f5f5f7;
}

.nav-links a.active {
    color: #8b5cf6;
}

.nav-links a.active::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 2px;

    background: #8b5cf6;
}

.nav-resume-btn {
    padding: 8px 18px;

    border: 1px solid #8b5cf6;
    border-radius: 20px;

    color: #8b5cf6;
    font-size: 0.85rem;
    font-weight: 600;

    transition: 0.3s ease;
}

.nav-resume-btn:hover {
    background: #8b5cf6;
    color: #ffffff;
}

.nav-hamburger {
    display: none;
}

.nav-hamburger {
    position: relative;
    z-index: 1000;
}

.nav-overlay {
    display: none;
}

.theme-toggle {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #30303d;
    border-radius: 50%;

    background: transparent;
    color: #f5f5f7;

    cursor: pointer;
    font-size: 1.2rem;
}


/* =========================
   Light Theme
   ========================= */

body.light-theme .navbar {
    background: rgba(255, 255, 255, 0.92);
    border-bottom-color: #e5e5ec;
}

body.light-theme .logo span {
    color: #18181f;
}

body.light-theme .nav-links a {
    color: #666675;
}

body.light-theme .nav-links a:hover,
body.light-theme .nav-links a.active {
    color: #18181f;
}

body.light-theme .theme-toggle {
    color: #18181f;
    border-color: #d5d5df;
}

body.light-theme .nav-hamburger span {
    background: #18181f;
}

body.light-theme .nav-links {
    background: #ffffff;
    border-color: #e5e5ec;
}

body.light-theme .nav-links a {
    border-color: #f0f0f6;
}


/* =========================
   Responsive
   ========================= */

   @media (max-width: 900px) {

    .navbar {
        height: 70px;
        padding: 0 5%;
    }

    .nav-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 36px;
        height: 36px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 4px;
        flex-shrink: 0;
    }

    .nav-hamburger span {
        display: block;
        width: 22px;
        height: 2px;
        background: #f5f5f7;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

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

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

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

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .nav-overlay.open {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -220px;
        width: 200px;
        height: 100vh;
        background: #0b0b12;
        border-left: 1px solid #242433;
        z-index: 999;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        overflow-y: auto;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 14px 0;
        width: 100%;
        border-bottom: 1px solid #1e1e2e;
        color: #b8b8c7;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-sidebar-resume {
        display: inline-block;
        margin-top: 20px;
        padding: 10px 20px;
        border: 1px solid #8b5cf6;
        border-radius: 20px;
        color: #8b5cf6 !important;
        font-size: 0.9rem;
        font-weight: 600;
        border-bottom: none !important;
    }


}


@media (max-width: 600px) {

    .navbar {
        height: 64px;
        padding: 0 4%;
        gap: 12px;
    }

    .logo {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .nav-links {
        gap: 14px;
    }

    .nav-links a {
        font-size: 0.76rem;
        padding: 22px 0;
    }

    .nav-resume-btn {
        padding: 6px 14px;
        font-size: 0.78rem;
    }

    .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }
}

@media (max-width: 400px) {

    .navbar {
        gap: 8px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 0.70rem;
    }
}