@font-face {
    font-family: "Shabnam";
    src: url(../font/Shabnam-Bold.eot);
    src: url(../font/Shabnam-Bold.eot?#iefix) format("FontName-opentype")
    url(../font/Shabnam-Bold.woff) format("woff")
    url(../font/Shabnam-Bold.ttf) format("truetype");
}

html{
    --first-color : purple;
    scroll-behavior: smooth;
}
body{
    font-family: Shabnam;
}
.home-social{
    position: fixed;
    width: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.social-icons-list{
    list-style: none;
    padding-left: 0;
}
.social-icons-list li{
    font-size: 2rem;
    padding: 0.2rem 0;
}
.home-social-link{
    color: #bbb;
}
.home-social-link:hover{
    color: var(--first-color);
    transition: color .5s;
}
/* home styles */
.home{
    display: flex;
    height: 100vh;
    justify-content: space-between;
    align-items: center;
    padding: 0 10rem;
}
.home-img-profile{
    max-width: 400px;
    border-radius: 60% 40% 30% 70%;
}
.home-info h1{
    /* direction: rtl; */
    text-align: right;
    font-size: 3rem;
    line-height: 1.7;
    /* font-weight: 400; */
}
.home-info-name{
    color: var(--first-color);
    position: relative;
}
.home-info-name::after{
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 0%;
    background-color: var(--first-color);
    animation: swipe-in 1s;
}
@keyframes swipe-in {
    0%{
        width: 0;
    }
    50%{
        width: 100%;
        left: 0;
    }
    100%{
        width: 0;
        left: 100%;
    }
}

.button{
    display: inline-block;
    background-color: var(--first-color);
    color: #fff;
    font-size: 1rem;
    border-radius: 0.5rem;
    padding: .5rem 1.2rem;
    text-decoration: none;

}
.button:hover{
    box-shadow: 0 10px 20px rgba(0,0,0,.4);
}
.button:active{
    transform: translate(.2rem , .2rem);
    
}
/* end hme styles */
/* Styles section about */
section{
    width: 60%;
    height: 100vh;
    padding: 0 20%;
    display: flex;
    flex-direction: column;
}
.section-title{
    font-size: 2rem;
    color: var(--first-color);
    border-bottom: 2px solid var(--first-color);
    margin-top: 4rem;
}
.about-container{
    display: flex;
    /* background-color: red; */
    flex-grow: 1;
    align-items: center;
}
.about-img img{
    width: 250px;
    border-radius: 1rem;
    justify-self: center;
}
.about-subtitle, .about-text{
    direction: rtl;
    line-height: 1.8;
    margin-right: 6rem;
}
.skills-container{
    display: flex;
}
.skills-img img{
    width: 250px;
    border-radius: 1rem;
}
.skills-subtitle , .skills-text{
    direction: rtl;
    line-height: 1.8;
}
.skills-body{
    margin-left: 6rem;
}
.skill-info{
    display: flex;
    box-shadow: 0 4px 25px rgba(14,36,49,.15);
    border-radius: .8rem .8rem .2rem .2rem;
    justify-content: space-between;
    padding: .5rem 1rem;
    align-items: center;
    position: relative;
    margin-top: 1rem;
}
.skill-name-logo{
    display: flex;
    align-items: center;
}
.skill-logo{
    color: var(--first-color);
    font-size: 2rem;
}
.skill-name-logo * {
    padding-left: 1rem;
}
.skill-bar{
    position: absolute;
    background-color: var(--first-color);
    height: .25rem;
    /* width: 80%; */
    left: 0;
    bottom: 0;
}
.css{
    width: 80%;
}
.html{
    width: 95%;
}
/* projects */
.projects-container{
    display: flex;
    flex-grow: 1;
    align-items: center;
}
.image-container{
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 2rem;
}
.projects-img{
    width: 100%;
    height: 100%;
    vertical-align: middle;
    transition: all 1s;
}
.projects-img:hover{
    transform: scale(1.4);
}
.image-wrapper{
    overflow: hidden;
}
.contact-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
}
.contact-form{
    display: flex;
    flex-direction: column;
}
.contact-form *{
    font-size: 1.4rem;
    border: 2px solid #000;
    border-radius: .5rem;
    padding: .3em;
    margin: .3rem;
    direction: rtl;
}
.nav-bar{
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4rem;
    background-color: #fff;
    z-index: 1000;
}
.nav-list{
    display: flex;
    justify-content: center;
}
.nav-list ul {
    display: flex;
    list-style: none;
    direction: rtl;
}

.nav-list ul li a{
    text-decoration: none;
    padding: 0 .6rem;
    color: var(--first-color);
    font-size: 1.1rem;
    margin: 0 .4rem;
}
.nav-list ul li a:hover{
    color: red;
    transition: color .5s;
}
/* Media Queries */
@media (max-width:1300px){
    /* .nav-bar{
        background-color: red;
    } */
    section{
        width: 80%;
        padding: 0 10%;
    }
}
@media (max-width:1200px){
 section{
     width: 90%;
     padding: 0 5%;
     min-height: 100vh;
 }   
 .home.img-profile{
     width: 300px;
 }
 .home-info h1{
     font-size: 2.3rem;
 }
}
@media (max-width:1000px){
   
    .home-info h1{
        font-size: 2rem;
    }
    section{
        height: auto;
    }
    .home-img-profile{
        width: 200px;
    }
   }
   @media (max-width:800px){
    .home , .about-container ,.skills-container{
        flex-direction: column;
        justify-content: center;
    }
    .image-container{
        grid-template-rows: 1fr 1fr 1fr;
        grid-template-columns: 1fr 1fr;
    }
    section{
        width: 80%;
        padding: 0 10%;
    }
    .home{
        row-gap: 1rem;
    }
   }
   @media (max-width:600px){
   
    .nav-bar {
        visibility: collapse;
    }
    .home-info h1{
        font-size: 1rem;
        text-align: center;
    }
   }
/* End  */