/*
==========
Styles for navigation bar.
==========
*/

html {
  scroll-behavior: smooth;
}

.navbar{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .topbar__inner{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: var(--darkblue-color);
    padding: 1em;
}

.navbar .topbar__inner .nav__top{
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1em;
}

.navbar .topbar__inner .nav__top a{
    color: var(--white-color);
    text-decoration: none;
    font-weight: bolder;
    transition: all ease-in-out .3s;
}

.navbar .topbar__inner .nav__top a:hover{
    color: var(--white-color-transparent);
    transition: all ease-in-out .3s;
}

.navbar .nav__links{
    width: 100%;
    height: auto;
    padding: 1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 0 10px var(--darkblue-color);
    background-color: var(--white-color);
}

.navbar .brand{
    width: 150px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar .brand img{
    width: 100%;
    height: auto;
}

.links__nav{
    width: calc(100% - 150px);
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1em;
    justify-content: flex-end;
}

.navbar .nav__links .links__nav a{
    text-decoration: none;
    color: var(--darkblue-color);
    font-weight: bolder;
    transition: all ease-in-out .3s;
}

.navbar .nav__links .links__nav a:hover{
    text-decoration: none;
    color: var(--darkblue-color-transparent);
    transition: all ease-in-out .3s;
}

.item__menu__burger{
    display: none;
}

.links__nav__hidden{
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -100vh;
    left: 0;
    transition: all ease-in-out .3s;
    background-color: var(--darkblue-color);
    z-index: 1700;
}

.links__nav__hidden a{
    color: var(--white-color);
    text-decoration: none;
    font-weight: bolder;
    transition: all ease-in-out .3s;
}

.links__nav__hidden a:hover{
    color: var(--white-color-transparent);
    text-decoration: none;
    font-weight: bolder;
    transition: all ease-in-out .3s;
}

.links__nav__hidden span{
    color: var(--white-color);
    font-weight: bolder;
    transition: all ease-in-out .3s;
}

.links__nav__hidden span:hover{
    color: var(--white-color-transparent);
    font-weight: bolder;
    transition: all ease-in-out .3s;
}

.section-nav-subscribe{
    width: 100%;
    display: flex;
    background-color: var(--white-color);
    padding: 2em;
}

.section-nav-subscribe-left{
    width: 70%;
    text-align: center;
    font-size: 30px;
    color: var(--lightdarkblue-color);
    display: flex;
    align-items: flex-end;
}

.nav-subscribe-right{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2em;
}

.btn {
    position: relative;
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: bold;
    color: var(--white-color);
    border: 2px solid var(--white-color); 
    background: var(--darkblue-color);
    cursor: pointer;
    overflow: hidden;   
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--yellow-color); 
    transition: transform 0.8s ease-in-out;
    transform: translateX(0); 
}

.btn:hover::before {
    transform: translateX(100%); 
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn a{
    text-decoration: none;
    color: var(--white-color);
}

/*
==========
Screen 600px
==========
*/

@media (max-width: 700px) {
    .links__nav{
        display: none;
    }

    .links__nav__active{
        width: 100%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        left: 0;
        transition: all ease-in-out .3s;
        background-color: var(--darkblue-color);
        z-index: 1700;
    }

    .links__nav__active a{
        color: var(--white-color);
        text-decoration: none;
        font-weight: bolder;
        transition: all ease-in-out .3s;
    }

    .links__nav__active a:hover{
        color: var(--white-color-transparent);
        text-decoration: none;
        font-weight: bolder;
        transition: all ease-in-out .3s;
    }

    .links__nav__active span{
        color: var(--white-color);
        font-weight: bolder;
        transition: all ease-in-out .3s;
    }

    .links__nav__active span:hover{
        color: var(--white-color-transparent);
        font-weight: bolder;
        cursor: pointer;
        transition: all ease-in-out .3s;
    }

    .item__menu__burger{
        display: block;
        width: 30px;
        height: 30px;
    }

    .item__menu__burger svg{
        width: 100%;
        height: 100%;
        fill: var(--darkblue-color);
    }
}