
/* =====================================================
   HEADER
===================================================== */
.site-header {
    width: 100%;
    height: 70px;
    background: var(--background-light);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* =====================================================
   HEADER CONTAINER
===================================================== */
.header-container {
    width: 92%;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =====================================================
   BRAND
===================================================== */
.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: var(--text);
    white-space: nowrap;
}

/* =====================================================
   BRAND LOGO
===================================================== */
.brand-logo {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue);
    color: var(--text);
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
    box-shadow: 0 0 12px rgba(22, 119, 255, 0.25);
}

/* =====================================================
   BRAND NAME
===================================================== */
.brand-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.2px;
}


/* =====================================================
   MAIN NAVIGATION
===================================================== */
.main-nav {
    display: flex;
    align-items: center;
    gap: 31px;
    margin-left: auto;
    margin-right: 25px;
}


.main-nav a {
    position: relative;

    color: var(--text-light);

    text-decoration: none;

    font-size: 11px;
    font-weight: 500;

    transition: color 0.3s ease;
}


/* =====================================================
   NAVIGATION HOVER
===================================================== */

.main-nav a:hover {
    color: var(--blue-light);
}


/* =====================================================
   NAVIGATION UNDERLINE
===================================================== */

.main-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: var(--blue);

    border-radius: 10px;

    transition: width 0.3s ease;
}


.main-nav a:hover::after {
    width: 100%;
}


/* =====================================================
   ACTIVE NAVIGATION LINK
===================================================== */

.main-nav a[aria-current="page"] {
    color: var(--blue-light);
}


.main-nav a[aria-current="page"]::after {
    width: 100%;
}


/* =====================================================
   HIRE ME BUTTON
===================================================== */

.hire-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    height: 28px;

    padding: 0 17px;

    background: var(--blue);
    color: var(--text);

    text-decoration: none;

    border-radius: 3px;

    font-size: 11px;
    font-weight: 600;

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* =====================================================
   HIRE ME HOVER
===================================================== */

.hire-btn:hover {
    background: var(--blue-light);

    transform: translateY(-1px);

    box-shadow: 0 6px 20px rgba(22, 119, 255, 0.25);
}


/* =====================================================
   MOBILE MENU BUTTON
===================================================== */

.mobile-menu-btn {
    display: none;

    width: 38px;
    height: 38px;

    border: none;

    background: transparent;
    color: var(--text);

    font-size: 20px;

    cursor: pointer;

    align-items: center;
    justify-content: center;
}


/* =====================================================
   MOBILE MENU BUTTON HOVER
===================================================== */

.mobile-menu-btn:hover {
    color: var(--blue-light);
}


/* =====================================================
   RESPONSIVE DESIGN
===================================================== */


/* =====================================================
   SMALL DESKTOP / LARGE TABLET
===================================================== */

@media (max-width: 850px) {

    .main-nav {
        gap: 18px;
        margin-right: 15px;
    }

    .main-nav a {
        font-size: 10px;
    }

    .brand-name {
        font-size: 13px;
    }

}


/* =====================================================
   TABLET / MOBILE
===================================================== */

@media (max-width: 700px) {

    .site-header {
        height: 65px;
    }


    .header-container {
        width: 92%;
        position: relative;
    }


    /* ---------------------------------------------
       HIDE DESKTOP NAVIGATION
    --------------------------------------------- */

    .main-nav {
        display: none;
    }


    /* ---------------------------------------------
       HIDE HIRE ME BUTTON
    --------------------------------------------- */

    .hire-btn {
        display: none;
    }


    /* ---------------------------------------------
       SHOW MOBILE MENU BUTTON
    --------------------------------------------- */

    .mobile-menu-btn {
        display: flex;
    }


    /* ---------------------------------------------
       MOBILE NAVIGATION WHEN ACTIVE
    --------------------------------------------- */

    .main-nav.active {
        display: flex;

        position: absolute;

        top: 65px;
        left: 0;

        width: 100%;

        flex-direction: column;
        align-items: center;

        gap: 0;

        margin: 0;

        padding: 10px 0;

        background: var(--background-light);

        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);

        z-index: 1001;
    }


    /* ---------------------------------------------
       MOBILE NAVIGATION LINKS
    --------------------------------------------- */

    .main-nav.active a {
        display: block;

        width: 100%;

        padding: 13px 0;

        text-align: center;

        font-size: 13px;
    }


    /* ---------------------------------------------
       REMOVE DESKTOP UNDERLINE ON MOBILE
    --------------------------------------------- */

    .main-nav.active a::after {
        display: none;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 400px) {

    .brand-name {
        font-size: 12px;
    }


    .brand-logo {
        width: 24px;
        height: 24px;
    }


    .mobile-menu-btn {
        width: 34px;
        height: 34px;

        font-size: 18px;
    }

}

