.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(31, 36, 45, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.logo {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-color);
}

.logo span {
    color: var(--main-color);
}

.navbar {
    display: flex;
    gap: 3rem;
}

.navbar a {
    font-size: 1.6rem;
    color: var(--text-color);
    transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 3rem;
    display: none;
    cursor: pointer;
    z-index: 1001;
}

/* mobile */
@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--bg-color);
        display: none;
        padding: 2rem;
        z-index: 999;
    }

    .navbar.active {
        display: flex;
    }
}