@import url(colors.css);

.container-desktop
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 70px;
    background-color: var(--head-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.container-mobile
{
    display: none;
}

/*  Logo */
.logo
{
    font-size: 20px;
    font-weight: 600;
}

.logo a
{
    color: var(--bg-color);
    text-decoration: none;
}

/* Navigation */
.container-desktop ul
{
    display: flex;
    list-style: none;
}

.container-desktop ul li
{
    margin-right: 20px;
}

.container-desktop ul li a
{
    color: var(--bg-color);
    text-decoration: none;
}

/* Responsive Styling for Header */
@media screen and (max-width: 770px) {
    .container-desktop
    {
        display: none;
    }

    .container-mobile
    {
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items:start;
        padding: 0 20px;
        height: 70px;
        background-color: var(--head-color);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 2;
    }

    .container-mobile.shrink
    {
        animation: fadeInBottom 0.5s forwards;
    }

    @keyframes fadeInTop
    {
        from
        {
            height: 70px;
        }

        to
        {
            height: 100vh;
        }
    }

    @keyframes fadeInBottom
    {
        from
        {
            height: 100vh;
        }

        to
        {
            height: 70px;
        }
    }

    .container-mobile .logo
    {
        padding-top: 23px;
    }

    .container-mobile.active
    {
        animation: fadeInTop 0.5s forwards ease-out;
        position: absolute;
        width: 100%;
        overflow: hidden;
    }
    
    .hamburger-nav.active
    {
        padding-top: 50px;
        display: block;
    }

    .hamburger-nav.active ul
    {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        gap: 25px;
        align-items: flex-start;
    }

    .hamburger-nav.active ul li
    {
        animation: fadeInRight 0.5s forwards;
        font-size: 20px;
        font-weight: 600;
        list-style-type: none;
    }

    .hamburger-nav.active ul li a
    {
        color: var(--bg-color);
        text-decoration: none;
    }

    @keyframes fadeInRight
    {
        from
        {
            opacity: 0;
            transform: translateX(-50px);
        }

        to
        {
            opacity: 1;
            transform: translateX(0);
        }
    }
    

    .hamburger
    {
        display: flex;
        position: absolute;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 24px;
        cursor: pointer;
        top: 23px;
        right: 23px;
    }

    .hamburger .line
    {
        width: 100%;
        height: 3px;
        background-color: var(--bg-color);
        transition: all 0.3s ease;
    }

    .hamburger.active .line:nth-child(1)
    {
        transform: rotate(45deg);
        position: relative;
        top: 6px;
    }

    .hamburger.active .line:nth-child(2)
    {
        transform: rotate(-45deg);
        position: relative;
        top: -6px;
    }

    .hamburger-nav
    {
        display: none;
    }
} 
