.header {
    display: flex;
    position: sticky;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 50px;
    z-index: 1000;
    top: 0;
    background-color: var(--background-color);
    transition: background-color 0.5s;
}

/* Name section */
.left-section {
    display: flex;
    flex: 0;
    padding-left: 25px;
    min-width: 100px;
    justify-content: start;
}

.right-section {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 1;
}

.name {
    text-decoration: none;
    font-size: 1.5rem;
    font-family: 'Press Start 2P', cursive;
    color: #fff;
    text-shadow:
        1px 1px 0px var(--logo-shadow-1),
        2px 2px 0px var(--logo-shadow-1),
        3px 3px 0px var(--logo-shadow-2),
        4px 4px 0px var(--logo-shadow-3);
    letter-spacing: 2px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.name:hover {
    transform: translate(-1px, -1px);
    text-shadow:
        1px 1px 0px var(--logo-shadow-1),
        2px 2px 0px var(--logo-shadow-1),
        3px 3px 0px var(--logo-shadow-1),
        4px 4px 0px var(--logo-shadow-2),
        5px 5px 0px var(--logo-shadow-3);
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    gap: 20px;
}

nav .top-navbar-btns {
    font-family: 'Silkscreen', cursive;
    font-size: 0.85rem;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--text-color);
    background: var(--background-color);
    border: 3px solid #000;
    border-radius: 12px;
    padding: 8px 16px;
    cursor: pointer;
    position: relative;
    box-shadow:
        inset -3px -3px 0px rgba(0, 0, 0, 0.2),
        inset 3px 3px 0px rgba(255, 255, 255, 0.2);
    transition: all 0.1s ease;
}

nav .top-navbar-btns:hover {
    transform: translateY(-2px);
    background: rgba(150, 150, 150, 0.1);
    box-shadow:
        inset -4px -4px 0px rgba(0, 0, 0, 0.3),
        inset 4px 4px 0px rgba(255, 255, 255, 0.3),
        0 4px 0px #000;
}

nav .top-navbar-btns:active {
    transform: translateY(2px);
    box-shadow:
        inset 3px 3px 0px rgba(0, 0, 0, 0.3),
        0 0 0px #000;
}

/* nav sidebar (hamburger, shrinked view) */
.sidebar {
    top: 0;
    right: 0;
    height: 100vh;
    width: 100vw;
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    z-index: 5000;
    padding: 20px;
    background-color: var(--background-color);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: all 0.4s ease;
    list-style: none;
}

.sidebar.active {
    transform: translateX(0);
    pointer-events: auto;
    opacity: 1;
}

.sidebar .top-section {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.sidebar .top-section li {
    width: max-content;
}

.sidebar .bottom-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar a {
    color: var(--text-color);
    font-size: 1.2rem;
    text-decoration: none;
    display: block;
    padding: 10px;
    width: 100%;
}

.sidebar li {
    font-family: Inter;
    font-weight: 400;
    width: 100%;
    list-style: none;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.sidebar li:hover {
    background-color: rgba(150, 150, 150, 0.1);
}

.sidebar svg {
    fill: var(--text-color);
}


.theme-btn {
    display: flex;
    cursor: pointer;
    font-size: 1.5rem;
    align-items: center;
}

.menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    align-items: center;
}

.menu-btn a,
.theme-btn a {
    color: var(--text-color);
    display: flex;
    align-items: center;
    text-decoration: none;
}

@media (max-width: 1000px) {
    .header {
        padding: 0 20px;
    }

    .top-navbar-btns {
        display: none;
    }

    .menu-btn,
    .theme-btn {
        display: flex;
    }
}