@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root{
    ---background-color: #F9F3EE;
    ---text-color: #152D35;
    ---sub-color : #aaa;
}

html{
    scroll-behavior: smooth;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

a{
    text-decoration: none;
}

ul{
    list-style-type: none;
}

.profile img{
    max-width: 100%;
    height: 100%;
}

body{
    padding-top: 12rem;
    background-color: var(---background-color);
    transition: all .5s;
}

.back-to-top{
    position: fixed;
    bottom: 80px;
    right: 20px;
    transition: all .4s;
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
    z-index: 999;
}

.btn-back-active{
    bottom: 40px;
    opacity: 1;
    visibility: visible;
}

.back-to-top a{
    padding: .7rem 1.8rem;
    border-radius: 20px;
    background-color: var(---text-color);
    color: white;
    font-size: .875rem;
}

header{
    padding-bottom: 80px;
    /* display: inline; */
}

.navbar{
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    /* display: flex; */
    /* flex-direction: row; */
    color: white;
    /* justify-content: space-between; */
    overflow: hidden;
    padding-top: 50px;
    margin: 0 auto;
    align-items: center;
    transition: all .2s;
}

.nav-container{
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
}

.nav-fixed{
    background-color: var(---text-color);
    padding-top: 20px;
    padding-bottom: 20px;
    z-index: 999;
}

.nav-fixed .logo{
    background-color: var(---background-color);
    color: var(---text-color);
    padding: .4rem .6rem;
}

.nav-fixed ul.navlist a.active{
    color: #fff;
}

.nav-fixed ul.navlist a:hover{
    color: #fff;
}

nav .title-name{
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo{
    background-color: var(---text-color);
    color: var(---background-color);
    padding: .9rem 1.2rem;
}

.btn-toggle{
    border: 0;
    cursor: pointer;
    position: relative;
    display: none;
}

.img-toggle{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

ul.navlist{
    display: flex;
}

ul.navlist.active{
    transition: all .5s;
    height: 178px;
}

ul.navlist li{
    font-size: 18px;
    margin-left: 32px;
}

ul.navlist a{
    color: #C1A3A3;
}

ul.navlist a:hover{
    color: var(---text-color);
}

.jumbotron-heading{
    color: var(---text-color);
    padding: 50px 0;
}

.text-header{
    font-size: 48px;
    margin-bottom: 24px;
    color: var(---text-color);
}

.sub-header{
    font-size: 1.15rem;
    line-height: 32px;
}

.container{
    max-width: 1000px;
    margin: 0 auto;
}

.main-content{
    padding: 3rem 1.8rem;
}

.data-content{
    flex:1;
}

.about-me{
    display: flex;
    justify-content: space-between;
    column-gap: 2.2rem;
    align-items: center;
    padding-bottom: 4.3rem;
}

.experience{
    padding-bottom: 2.2rem;
}

.data-content h1, .experience h1, .skill-knowledges h1, .latest-works h1{
    font-size: 1.8rem;
    margin-bottom: 1.6rem;
    color: var(---text-color);
}

.experience h1{
    margin-bottom: 2.5rem;
}

.data-content p{
    font-size: 18px;
    line-height: 32px;
    margin-bottom: 1.1rem;
}

.thumbnail{
    width: 350px;
    height: 420px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    border: 6px solid #fff;
    box-shadow: 0 0px 20px rgba(0, 0, 0, 0.200);
    margin-bottom: 1.8rem;
}

.thumbnail .img-profile{
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name-profile{
    font-size:1.25rem;
    font-weight: 500;
    margin-bottom: .875rem;
}

.years{
    display: block;
    text-align: center;
    color: var(---sub-color);
    font-size: 1.125rem;
}

.experience .role{
    margin-bottom: .9rem;
    font-size: 1.3rem;
}

.timeline-experience{
    margin-bottom: 3.2rem; 
    display: flex;
    column-gap: 1.5rem;
}

.timeline-item{
    position: relative;
}

.timeline-item .timeline-rounded{
    height: 3rem;
    width: 3rem;
    border-radius: 9999px;
    border: 1px dashed var(---text-color);
    z-index: 9;
    padding: .6rem;
    background-clip: content-box;
    background-color: #000;
}

.timeline-item .timeline-cross{
    height: 100%;
    /* background-color: var(---text-color); */
    border: 1px dashed var(---text-color);
    position: absolute;
    top:50px;
    z-index: -2;
    left: 23px;
}

.timeline-experience:last-child .timeline-cross{
    display: none;
}

.skill-knowledges{
    position: relative;
    padding-bottom: 70px;
}

.skill-knowledges h1{
    text-align: center;
}

.skill-knowledges h3{
    margin-bottom: 1.2rem;
    color: var(---sub-color);
}

.skill-knowledges .main-skills,
.skill-knowledges .tools{
    display: flex;
    align-items: stretch;
    gap: 1.3rem;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.main-skills .skill-content,
.tools .skill-content{
    flex: 1 0 20%;
    border: 6px dashed rgb(223, 223, 223);
    padding: 2.4rem 1.8rem;
    position: relative;
    padding-bottom: 3.5rem;
    transition: all .5s;
    top: 0;
}

.skill-content:hover{
    transition: all .5s;
    top: -5px;
    border-color: var(---text-color);
    box-shadow: 0 8px 50px rgba(0, 0, 0, 0.150);
}

.skill-content figcaption,
.tools figcaption{
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
}

.skill-content img,
.tools img{
    width: 100%;
    height: 100%;
    margin-bottom: .4rem;
}

.experience .company-name{
    font-size: 1rem;
    display: block;
    color: var(---sub-color);
    margin-bottom: 1.2rem;
}

.experience .description{
    font-size: 1rem;
    line-height: 32px;
}

.latest-works p{
    margin-bottom: 1.6rem;
    line-height: 28px;
}

.project-section{
    display: flex;
    flex-direction: row;
    margin: 1.8rem 0;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}


.project-content{
    flex: 40%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.project-content .thumbnail-project{
    position: relative;
    overflow: hidden;
    width: 100%;
}

.project-content .project-description{
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 1.8rem;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: all .5s;
}

.project-description h3{
    font-size: 1.6rem;
    color: var(---background-color);
    margin-bottom: .4rem;
}

.project-description p{
    color: var(---background-color)
}

.project-content .img-project{
   width: 100%;
   height: auto;
   display: block;
   object-fit: cover;
   background-size: cover;
   transition: all .5s;
}

.project-content:hover .project-description{
    opacity: 1;
    transition: all .5s;
}

.project-content:hover .img-project{
    transform: scale(1.05);
    transition: all .5s;
}

.footer{
    padding: 3rem 0;
}

.footer .data-content{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.data-content .social-list{
    display: flex;
    align-items: center;
    column-gap: 1.5rem;
}

.social-list .social-item a{
    font-size: 2rem;
    color: var(---sub-color);
    transition: .3s all;
}

.social-list .social-item a:hover{
    color: var(---text-color);
}

aside.biodata{
  padding-top: 4rem;
}

.biodata .data-content{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.biodata .data-content .personal-list{
    display: flex;
    flex-direction: column;
    row-gap: .875rem;
    order: 2;
}

.personal-list li{
    display: flex;
    align-items: center;
    column-gap: 1rem;
    font-size: 1.2rem;
    margin-bottom: .6rem;
}

.personal-list li h3{
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.personal-list i{
    font-size: 1.4rem;
    color: var(---sub-color);
}

.biodata .thumbnail{
    width: 350px;
    height: 350px;
}

.biodata h1{
    font-size: 1.8rem;
    margin-bottom: 2.3rem;
}

@media(min-width:768px) and (max-width:990px){
    .jumbotron-heading{
        padding: 3rem 1.8rem !important;
    }

    .nav-container{
        padding-left: 1.8rem;
        padding-right: 1.8rem;
    }

    .biodata .data-content{
        column-gap: 2rem;
    }

}

@media only screen and (max-width:768px) {
    .navbar{
        padding: 0 30px;
        flex-direction: column;
        align-items: unset;
    }

    nav .title-name{
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .nav-container{
        flex-direction: column;
        align-items: unset;
    }

    .nav-fixed{
        padding-left: 35px;
        padding-right: 35px;
    }

    .jumbotron-heading{
        padding: 40px 30px;
    }

    .btn-toggle{
        display: block;
    }

    ul.navlist{
        height: 0;
        padding-bottom: 0;
        transition: ease-out .4s all;
        flex-direction: column;
    }

    ul.navlist li{
        margin-left: 0;
        margin-bottom: 20px;
    }

    .about-me{
        flex-direction: column;
        row-gap: 3.2rem;
    }

    .profile{
        order: 0;
        text-align: center;
    }

    .about-section .data-content{
        order: 1;
    }

    .thumbnail{
        margin: 0 auto;
        margin-bottom: 1.8rem;
    }

    .main-skills .skill-content{
        flex:1 0 40% !important;
    }

    .tools .skill-content{
        flex:1 0 40% !important;
    }

    .project-section{
        flex-direction: column;
    }

    .footer .data-content{
        padding-left: 1.8rem;
        padding-right: 1.8rem;
    }

    .biodata .data-content{
        flex-direction: column;
        padding-left: 1.8rem;
        padding-right: 1.8rem;
    }

    .biodata h1{
        text-align: center;
    }

    .personal-list li:first-child{
        margin: 0 auto;
    }

}

@media(max-width:600px) {
    .main-skills .skill-content,.tools .skill-content{
        flex: 1 0 100% !important;
    }

    .footer .data-content{
       flex-direction: column;
    }

    .footer .copyright{
        text-align: center;
        line-height: 28px;
        order: 2;
    }

    .footer .social-list{
        order: 1;
        margin-bottom: 1rem;
    }

    .text-header{
        font-size: 2.1rem;
    }

    .sub-header{
        font-size: 1rem;
    }

    .name-profile{
        font-size: 1rem;
        line-height: 28px;
    }

    .years{
        font-size: .9rem;
    }

    .data-content h1, .experience h1, .skill-knowledges h1, .latest-works h1{
        font-size: 1.6rem;
        text-align: center;
    }

    .experience .role{
        line-height: 28px;
    }

    .latest-works p{
        text-align: center;
    }

    .biodata .data-content{
        flex-direction: column;
        padding-left: 1.8rem;
        padding-right: 1.8rem;
    }

    .personal-list li h3{
        line-height: 36px;
    }

    .biodata h1{
        text-align: center;
    }

    .personal-list li:first-child{
        text-align: center;
    }

    .personal-list li{
        font-size: 1rem;
        line-height: 28px;
    }

}