:root{
    --bar-width: 50px;
    --bar-height: 7px;
    --hamburger-gap: 6px;
    --dropdown-delay: 2s;
}


/* hamburger menu btn start */
.menu-btn{
    display: none;
}

/* .menu-btn {
    padding: .25rem .75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: .25rem;
    transition: box-shadow .15s ease-in-out;
  } */

.menu-btn_burger,
.menu-btn_burger::before,
.menu-btn_burger::after{
    content: "";
    position: fixed;
    width: var(--bar-width);
    height: var(--bar-height);
    background-color: #FBF1CA;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(251, 241, 202, .2);
    transition: all 200ms ease-in-out;
}

.menu-btn_burger::before{
    transform: translateY(-16px);
}

.menu-btn_burger::after{
    transform: translateY(16px);
}

.menu-btn.open .menu-btn_burger{
    transform: translateX(100%);
    background: transparent;
    box-shadow: none;
}

.menu-btn.open .menu-btn_burger::before{
    transform: rotate(45deg) translate(-35px, 35px);
}

.menu-btn.open .menu-btn_burger::after{
    transform: rotate(-45deg) translate(-35px, -35px);
}

@media (prefers-reduced-motion:reduce) {
    .menu-btn{
        transition: none;
    }
}
/* hamburger menu btn end */

.progress-bar{
    border-radius: 10px;
    --scrollAmount: 0%;
    transition: background-image 0.2s;
    
    background-image: linear-gradient(to right, #786292, #B8A0D4, #FBF1CA);
    /* background-image: linear-gradient(to right, #fbf1ca, #ffddbc, #ffc9b8, #f9b7be, #e6aac8, #d4a0c7, #bf98c6, #a890c3, #9c84b7, #9079aa, #846d9e, #786292); */
    width: var(--scrollAmount);
    height: 6px;
    position: fixed;
    top: 0;   
    z-index: 9999;
}

nav{
    margin-block: 4rem;
    font-size: 20px;
}

nav[data-visible = "true"]{
    transform: translateX(0%);
}

.navbar{
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
}

.nav-item{
    display: flex;
    justify-content: center;
    position: relative;
    text-align: center;
}

/* Create the underline effect */
.nav-item .underline{
    position: absolute;
    width: 100%;
    height: 2px;
    left: 0;
    bottom: -2px;
    background-color: #FBF1CA;
    transform: scaleX(0); /* Initially, the underline is invisible */
    transform-origin: center;
    transition: transform 0.6s ease-in-out;
}

.nav-item:hover .underline{
    transform: scaleX(1);
}

.nav-link{
    text-decoration: none;
    color: #FBF1CA;
    font-family: 'Aboreto', cursive;
    background-color: transparent;
    border-radius: 3px;
    z-index: 10;
    transition: all 0.3s;
}

.nav-item:hover .nav-link{
    /* animation: bounce 1.5s infinite; */
    transform: translateY(-10px);
}

.nav-link img{
    display: inline;
    transition: transform .65s;
    margin-left: 10px;
    width: 1rem;
}

.arrow-rotate{
    transform: rotate(180deg);
}

.dropdown-menu{
    position: absolute;
    pointer-events: none;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: none;
    list-style: none;
    gap: 0.5rem;
    transition: padding-top var(--dropdown-delay) ease-in-out;
    z-index: 10;
}

.dropdown-menu.active{
    pointer-events: all;
    padding-top: 2.4rem;
    --dropdown-delay: 0.5s;
}

.dropdown-item{
    font-family: 'Aboreto', cursive;
    white-space: nowrap;
    display: block;
    text-decoration: none;
    color: #FBF1CA;
    transform-origin: top;
    transform: scale(0) translateY(-35px);
    margin-bottom: -19px;
    transition: transform .3s ease-in-out, margin-bottom .3s ease-in-out;
    transition-delay: calc(.1s * (5 - var(--i)));
}

.dropdown-menu.active .dropdown-item{
    position: relative;
    transition: transform .3s ease-in-out, margin-bottom .3s ease-in-out;
    transition-delay: calc(.1s * var(--i));
    transform: scale(1) translateY(0px);
    margin-bottom: 0px;
}

.dropdown-item:hover{

    /* color: #FA8D74; */
    color: #B8A0D4;

    /* color: #B8A0D4; Mov */
    /* background-color: #928b73;
    color: #FBF1CA; */
    transform: translateY(-5px);
    transition: background-color .3s ease-in-out, color .3s ease-in-out, transform .3s ease-in-out;
}

.fix-width{
    width: 100%; 
    transition: all 0.1s;
}

.flex-container-2{
    display: flex;
    justify-content: space-evenly;
}

@media(max-width: 992px){
    nav{
        position: fixed;
        height: 100vh;
        margin-top: 0;
        top: 0;
        bottom: 0;
        right: 0;
        width: 20rem;
        background-color: #928b73bd;
        transform: translateX(100%);
        transition: transform 350ms ease-out;
        z-index: 9999;
    }

    @supports (backdrop-filter: blur(.3rem)){
        nav{
            backdrop-filter: blur(0.2rem);
        }
    }

    .navbar{
        flex-direction: column;
        justify-content: start;
        padding: min(30vh, 10rem) 2rem;
        gap: min(10vh, 3rem);
    }

    .nav-item{
        flex-direction: column;
    }

    .nav-item .underline{
        display: none;
    }

    .nav-item::before{
        content: none;
    }

    .nav-item a{
        color: #FBF1CA;
    }

    .dropdown-menu{
        position: relative;
        display: contents;
    }

    .dropdown-menu.active{
        padding-top: 2rem;
    }

    .menu-btn{
        position: fixed;
        top: 2rem;
        right: 2rem;
        width: 3.2rem;
        aspect-ratio: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all .5s ease-in-out;
        cursor: pointer;
        z-index: 99999;
    }

    .headerContainer{
        margin-top: 8.65rem;
    }
}