body[data-theme=light] {
    --main-color: #72b626;
    --body-bg: #fff;
    --txt-color: #666;
    --toggle-color: #000;
    --nav-bg-color: #eee;
    --cursor-color: 149,200,92;
    --title-bg: rgba(30,37,48,.07);
    --reverse-color: #000;
    --title-color: #858585;
}
body[data-theme=dark] {
    --main-color: #ffb400;
    --body-bg: #111;
    --txt-color: #fff;
    --toggle-color: #252525;
    --nav-bg-color: #2b2a2a;
    --cursor-color: 255,199,64;
    --title-bg: hsla(0,0%,100%,.07);
    --reverse-color: #fff;
    --title-color: #cfcfcf;
}
h1, h2, h3, h4, h5, h6, span {
    font-family: "Poppins", sans-serif;
}
p{
    font-family: "Open Sans", YuGothic,sans-serif;
}
body{
    overflow-y: scroll;
    background-color: var(--body-bg);
    line-height: 1.5;
}
/* Nav list */
.nav-list{
    position: fixed;
    margin: 0;
    padding: 0;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 10;
    
}
.nav-list__item{
    list-style: none;
}
.nav-list__link{
    text-decoration: none;
    position: relative;
    width: 50px;
    height: 50px;
    background-color: var(--nav-bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    transition: all 0.3s ease;
}
.nav-list__link>h2{
    position: absolute;
    font-size: 15px;
    height: 50px;
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 50px;
    padding: 0 30px;
    top: 0;
    right: 0;
    margin: 0;
    opacity: 0;
    border-radius: 30px;
    transition: all 0.3s ease;
}
.nav-list__link>i{
    color: var(--txt-color);
    font-size: 20px;
    z-index: 10;
}
.nav-list__item:hover .nav-list__link>h2{
    opacity: 1;
    right: 27px;
    border-radius: 30px 0 0 30px;
    background-color: var(--main-color);

}
.nav-list__item:hover .nav-list__link{
    background-color: var(--main-color);
    cursor: pointer;
}
.nav-list__link.active{
    background-color: var(--main-color);
    cursor: pointer;
}
/* Toggle theme */
.toggle-theme{
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    top: 25px;
    right: 25px;
    background-color: var(--toggle-color);
    cursor: pointer;
    background-color: var(--toggle-color);
    z-index: 10;
}
.toggle-theme>i{
    font-size: 24px;
    line-height: 50px;
    margin: 0 auto;
    color: #fff;
    transition: all 2s ease;
}
.toggle-theme-moon{
    opacity: 0;
    display: none;
}
.toggle-theme-moon.active{
    opacity: 1 !important;
    display: block!important;
}
.toggle-theme-light.active{
    opacity: 0;
    display: none;
}
/* Button */
.btn{
    background-color: transparent;
    border: 1px solid var(--main-color);
    border-radius: 35px;
    color: var(--txt-color);
    cursor: pointer;
    cursor: pointer!important;
    display: inline-block;
    font-family: Poppins,sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    outline: none!important;
    overflow: hidden;
    position: relative;
    text-align: center;
    text-decoration: none!important;
    text-overflow: ellipsis;
    text-transform: uppercase;
    transition: all .25s ease-in-out;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    vertical-align: middle;
    white-space: nowrap;
    z-index: 1;
}
.btn>a{
    text-decoration: none;
}
.btn-text{
    display: block;
    color: var(--txt-color);
    padding: 16px 32px 16px 64px;
    position: relative;
    transition: all 0.3s ease;
    animation-duration: .9s;
    z-index: 2;
}
.btn-icon{
    position: absolute;
    background-color: var(--main-color);
    top: 0;
    left: 0;
    width: 55px;
    height: 55px;
    border-radius: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    transition: all 0.9s ease;
}
.btn-icon::before{
    content: "";
    position: absolute;
    width: 200px;
    height: 100%;
    left: -180px;
    background-color: var(--main-color);
    z-index: -1;
    transition: all 0.9s ease;
}
.btn:hover .btn-text{
    padding: 16px 64px 16px 32px;
}
.btn:hover .btn-icon{
    border-radius: 0 35px 35px 0;

}
.btn:hover .btn-icon::before{
    right: 0;
}
.btn:hover .btn-text {
    padding: 16px 64px 16px 32px;
}
.btn:hover .btn-icon {
    animation-name: slide-in;
    animation-duration: 0.3s;
    animation-fill-mode: forwards;
    animation-iteration-count: 1;

}
.slide {
    -webkit-animation: slide .9s forwards;
    animation: slide .5s cubic-bezier(1,-.01,.64,1.02) forwards;
    background-color: var(--nav-bg-color);
    height: 100vh;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 9998;
}
@keyframes slide-in {
  100% {
    left: calc(100% - 55px);
  }
}
@keyframes slide {
    0% {
      top: 0;
      opacity: 1;
    }
    99% {
      top: 99%;
      opacity: 0.9;
    }
    100% {
      top: 100%;
      opacity: 0;
      display: none;
    }
  }
@keyframes section-slide{
    0% {
        top: 95%;
        opacity: 0;
      }
      99% {
        top: 1%;
        opacity: 0.9;
      }
      100% {
        top: 0;
        opacity: 1;
        display: block;
      }
}
.skill, .skill-item {
    align-items: center;
    display: flex;
}
.skill {
    flex-wrap: wrap;
    gap: 2.5rem 0;
    justify-content: flex-start;
}
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-thumb {
    background: var(--main-color);
    background-clip: content-box;
    border-radius: 20px;
}
.container{
    margin: auto;
    max-width: 1200px;
}
@media (max-width: 1023px){
    .slide{
        bottom: 0;
    }
    .color-block{
        display: none;
    }
    .nav-list{
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        justify-content: space-around;
        transform: translateY(0);
        background-color: var(--toggle-color);
    }
    .nav-list__link{
        margin: 10px;
        width: 45px;
        height: 45px;
    }
    .nav-list__item:hover .nav-list__link>h2{
        display: none;
    }

}