@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root{
    font-size: 16px;
    font-family: 'Open Sans';
    --text-primary: #b6b6b6;
    --text-secondary: #ececec;
    --bg-primary: #23232e;
    --bg-secondary: #141418;
    --transition-speed: 600ms;
}
body::-webkit-scrollbar{
        width: 0.25rem;
}
body::-webkit-scrollbar-track{
    background: #1e1e24 ;
}
body::-webkit-scrollbar-thumb{
    background: #6649b8 ;
}
body {
    color: rgb(0, 0, 0);
    background-color: white;
    margin: 0;
    padding: 0;
}
main{
    margin-left: 4.5rem;
}
/* INI SEMUA NAVBAR */
.navbar {
    position: fixed;
    background-color: var(--bg-primary);
    transition: width 200ms ease;
    z-index: 2;

}
.icon{
    fill: #3be489;
}
.navbar-nav{
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}
.navbar-item{
    width: 100%;
}
.navbar-item:last-child{
    margin-top: auto;
}
.nav-link{
    display: flex;
    align-items: center;
    height: 5rem;
    margin-left: auto;
    color: var(--text-primary);
    filter: grayscale(100%) opacity(0.7);
}
.nav-link svg{
    width: 1.5rem;
    min-width: 1.5rem;
    margin: 0 1.5rem;
  }
.link-text {
    display: none;
    margin-left: 1rem;
  }

.nav-link:hover{
    filter: grayscale(0%) opacity(1);
    background: var(--bg-secondary);
    color: var(--text-secondary);
}
.logo{
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    font-size: 1.5rem;
    letter-spacing: 0.3;
}
.logo svg{
    transform: rotate(0deg);
    transition: transform var(--transition-speed);
}
.navbar:hover .logo svg{
    transform: rotate(90deg);
}

/* Yang Ini Footer */

footer {
    position: fixed;
}
.foot-contain{
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}
.foot-link{
    display: flex;
    align-items: center;
    height: 2.5rem;
    color: var(--text-primary);
    filter: grayscale(100%) brightness(0%) ;
}
.foot-link svg{
    width: 1rem;
    min-width: 1rem;
    margin: 0 0.75rem;
  }
.foot-link:hover{
    filter: grayscale(0%) brightness(100%);
    background: rgba(100, 100, 100, 0.5);
    color: var(--text-secondary);
}
/* Small screen */
@media only screen and (max-width: 600px){
    /* navigation bar */
    .navbar{
        top: 0;
        width: 100vw;
        height: 4.5rem;
    }
    .navbar-nav{
        flex-direction: row;
    }

    .logo {
        display: none;
    }
    /* .logo{
        margin: 0;
    }
    .navbar-item:not(.logo){
        display: none;
    }
    .navbar:hover .navbar-item:not(.logo){
        display: block;
    }
    .navbar:hover .navbar-item.logo{
        display: none;
    } */

    .nav-link{
        justify-content: center;
    }
    main{
        margin: 0;
    }
    /* FOOTER */
    footer{
        right: 0;
        bottom: 0;
        width: 100%;
    }
    .foot-contain{
        flex-direction: row;
        align-content: space-around;
        justify-content: space-around;
        width: 100%;
    }
    
    
}

/* large screen */
@media only screen and (min-width:600px){
    .navbar{
        top: 0;
        width: 4.5rem;
        height: 100vh;
    }
    .navbar:hover{
        width: 16rem;
    }
    .navbar:hover .link-text{
        display: inline;
        transition: opacity var(--transition-speed);
    }
    /* footer */
    footer{
        right: 0;
        bottom: 0;
    }
    .foot-contain{
        flex-direction: column;
        align-items: center;
        height: 100%;
    }
}

/* scroll to top */
#scrollTop{
    position: fixed;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    justify-items: center;
    min-width: 100vw;
    margin-top: 0.3rem;
    cursor: pointer;
    transform: scale(0.6);
    transition: 200ms;
    z-index: 10;
}
#scrollTop:hover{
    filter: invert();
    transform: scale(0.6) translateY(-0.2rem);
}
#scrollTop svg{
    height: 1.1rem;
    margin-right: 0.5rem;
}