*,*::after,*::before{
    box-sizing: border-box;
}
:root{
    --color-primary: #FE5A02;
    --color-light-primary: #FE8E3E;
    --color-light-black: #241F21;
    --body-color: #020202;
    --grey-color: #E1E1E1;
    --text-color:#5c5b5b;
}
html{
    font-size: 62.5%;
}
.container{
    max-width: 900px;
    margin: 0 auto;
}
.pic--fix__ratio{
    width: 100%;
    height: auto;
}
/* typography */
body{
    font-family: 'Bai Jamjuree', sans-serif;
    color: var(--body-color);
    font-size: 1rem;
    
}
*::-webkit-scrollbar{
    display: none;
}
h1,h2{
    color: var(--color-heading);
    margin-bottom: 1rem;
    line-height: 1.1;
}
h1{
    font-size: 4.3rem;
    margin-top: 0;
}
h2{
    font-size: 3.5rem;
}
p{
    margin: 0;
}
a{
    text-decoration: none;
    color: inherit;
}
.text__white{
    color: #fff;
}
.text__black{
    color: var(--color-light-black);
}
.bold__text{
    font-weight: 900;
}
@media screen and (max-width: 850px) {
    h1{
        font-size: 4rem;
    }
    h2{
        font-size: 3rem;
    }
    
}
/* backgrounds color */
.background-grey{
    background: var(--grey-color);
}
.background-primary{
    background-color: var(--color-primary);
    color: #fff;
}
.background-light-primary{
    background-color: var(--color-light-primary);
}
.background-light-black{
    background-color: var(--color-light-black);
    color: #fff;
}
/* button */
.button{
    display: inline-block;
    padding: 1rem 3rem;
    text-transform: capitalize;
    border-radius: 30px;
    margin: 1rem 0;
    transition: all .4s;
}
.button:hover{
    cursor: pointer;
    color: #fff;
    background-color:var(--color-light-black);
}

/* logo */
.logo{
    width: 3rem;
}
@media screen and (max-width:500px) {
    .logo{
        width: 2.5rem;
    }
}
/* collapsible */

.collapsible__link{
    color:var(--text-color);
    transition: .4s;
    text-transform: capitalize;
}
.collapsible__link:hover{
    color:var(--grey-color);
}
@media screen and (max-width:500px) {

}
/* Nav bar */
.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0rem 1rem 1rem 1rem;
    flex-wrap: wrap;
}
.ul-nav{
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav-list{
    padding-right: 1rem;
}
.menue-icon{
    cursor: pointer;
    display: none;
}
.menue-icon i{
    font-size: 1.5rem;
}
#check{
    display: none;
}
@media screen and (max-width:500px) {
    .menue-icon{
        display: inline;
    }
    .ul-nav{
        order: 4;
        background-color:var(--color-light-primary);
        flex-direction: column;
        width: 120vw;
        height: 0;
        align-items: center;
        justify-content: space-around;
        overflow: hidden;
        transition: height .5s;
    }
    .navbar .button{
        margin-top: .3rem;
    }
    #check:checked ~.ul-nav{
        height: 20vh;
    }
    #check:checked ~.menue-icon{
        color: var(--color-primary);
    }
}

/* info */
.info{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0rem 1rem;
    
}
.info__image{
    position: relative;
    right: -12vw;
    top: -8rem;
    z-index: -1;
    order: 2;
}
.info__image img{
    width: 50vw;
    min-width: 550px;
}
.info--image__card{
    display: inline-block;
    padding: .5rem 1rem;
    width: 12rem;
    height: 6rem;
    border-radius: 10px;
    position: absolute;
    bottom: 10rem;
    left: -7rem;
    
}
.info--image__card p{
    display: block;
    font-size: 3rem;
    
}
.info__p{
    margin: 0;
    width: 80%;
}

.programming-languages{
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 7rem 10rem;
    grid-template-rows: repeat(2,3rem);
    gap: .5rem;
    text-align: center;
    line-height: 3rem;
    font-size: 1.5rem;
    text-transform: uppercase;
}
.info__title{
    display: flex;
    align-items: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}
.info__title h1{
    margin: 0;
}
.info__name{
    position: relative;
    background-color: var(--color-light-black);
    font-weight: 700;
    color: var(--color-light-black);
    margin: 0;
}
.info__name::before{
    content: attr(data-text);
    position: absolute;
    top: .3px;
    left: 0;
    width: 0;
    height: 100%;
    color: var(--grey-color);
    border-right: 2px solid var(--grey-color);
    overflow: hidden;
    animation: animate 6s linear infinite;
}
@keyframes animate {
    0%,10%,100%{
    width: 0;
    }
    50%,90%{
        width: 100%;
    }
}
@media screen and (max-width:500px) {
    .info{
        flex-direction: column;
        align-items: start;
    }
    .info--image__card{
        bottom: 4rem;
        left: -7rem;
    }
    .info__image{
        order: 0;
        width: 100vw;
        min-width: 350px;
        top: -6rem;
        right: -10rem;
    }
}

/* latest projects */
.latest-projects__heading{
    padding: 1rem 1rem 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.latest-projects__title{
    margin: 0;
    flex-grow: 1;
}
.latest-projects__type{
    display: flex;
    align-items: center;
}
.latest-projects--p{
    padding: 0 1rem;
    text-decoration: underline;
    margin: 0;
}
.latest-projects--icon{
    font-size: 1.5rem;
    color: #c2c2c2;
    background-color: var(--color-light-black);
    padding: .8rem;
    border-radius: 5px;
}
.card__programming{
    border-radius: 5px;
}
.projects{
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    height: 40rem;
}
.projects2{
    padding: 0 1rem;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    height: 40rem;
}
.project--card-container{
    width: 29%;
    min-width: 150px;
}
.project__card {
    width: 100%;
    height: 45%;
    border-radius: 1.5rem;
}
.project__card-number{
    background-color: var(--color-light-black);
    border-radius: .5rem;
    width: 30%;
    height: 30%;
    text-align: center;
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    color: #fff;
    font-size: 3rem;
    padding: 1rem 0;
}
.project__card-p{
    color: var(--body-color);
    font-size: 2rem;
    text-transform: capitalize;
    font-weight: 400;
}
.project__card-p p{
    font-size: .5rem;
}
.project--card__1{
    position: relative;
    background-image: url(/images/layali.jpg);
    background-size: cover;
    margin-bottom: 1rem;
}
.project--card__2{
    position: relative;
    background-image: url(/images/project_2-icon.webp);
    background-size: cover;
    top: 4rem;
    margin-bottom: 5rem;

}
.project--card__3{
    position: relative;
    background-image: url(/images/coffee-shop.webp);
    background-size: cover;
    top: 8rem;
    margin-bottom: 9rem;
}
.project--card__4{
    position: relative;
    background-image: url(/images/turizm.jpg);
    background-size: cover;
    margin-bottom: 1rem;
}
.project--card__5{
    position: relative;
    background-image: url(/images/quran.jpg);
    background-size: cover;
    top: 4rem;
    margin-bottom: 5rem;
}
.project--card__6{
    position: relative;
    background-image: url(/images/rescu-game.webp);
    background-size: cover;
    top: 8rem;
    margin-bottom: 9rem;
}
@media screen and (max-width:700px) {
.project__card {
 height: 30%; 
}
.project__card-number{
font-size: 1.5rem;
}
.project__card-p{
font-size: 1.5rem;
}
}
@media screen and (max-width:500px) {
.latest-projects--p{
 order: 3;
 width: 100%;
 padding: 0;
}
.latest-projects__heading{
    margin-top: 3rem;
}
.projects{
    flex-direction: column;
    height: 100vh;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
}
.projects2{
    flex-direction: column;
    height: 100vh;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
}
.project--card-container{
    height: 30%;
    width: 90%;
}
.project__card {
    height: 90%; 
}
.project--card__2{
    position: relative;
    top: 0;
    bottom: 0;
    margin-bottom: 1rem;
}
.project--card__3{
    position: relative;
    top: 0;
    bottom: 0;
    margin-bottom: 1rem;
}
.project__card-number{
    font-size: 2rem;
    width: 15%;
    height: 20%;
}
.project__card-p{
    font-size: 2rem;
    }
}