@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Inter:wght@400;500&display=swap");
html {
  scroll-behavior: smooth;
}
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style-type: none;
    font-family: "Inter" , sans-serif;
}
body{
    margin: 0;
}

:root{
     --main_color: #C95843   ;      /* #c9f31d  #f9b571  #B8644C*/
    --p_color:#8a8a8a;
    --bg_color:#1f1f1f;
    --white_color:#fff;
    --black_color:#070707;
    --border_color:rgba(255,255,255,0.1);
}
body{
    background-color: #131313;
}
header .container{
    width: 80%;
    margin: auto;
    max-width: 1500px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;

}


/* background lines */
.bg_lines{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    z-index: -1;
}

.bg_lines span{
    width: 1px;
    height: 100%;
    background: rgba(255,255,255,0.05);
    -webkit-animation: Left_Right 18s infinite;
    animation:Left_Right 18s infinite ;
}
@keyframes Left_Right {
    0%{
        -webkit-transform: translateX(0);
        transform:translateX(0) ;
    }
    50%{
        -webkit-transform: translateX(-100px);
        transform:translateX(-100px) ;
    }
    100%{
       -webkit-transform: translateX(0);
        transform:translateX(0) ; 
    }
    
}
img{
    width: 100%;
}
h1,h2,h3,h4,h5,h6{
    color: var(--white_color);
    font-family: "DM Sans", sans-serif;
}
span{
    color: var(--main_color);
    margin-left: 5px;
}
p{
    color: var(--p_color);
}

header{
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 80px;
    transition: 0.3s;
    z-index: 1000;
}
header.active{
    background: var(--black_color);
    border: 1px solid var(--border_color);
    
}
.logo img{
    width:200px ;
}
.links {
    display: flex;
    gap: 40px;
}
.links a{
    color: var(--white_color);
    text-transform: capitalize;
    font-size: 18px;
}
.links a:hover{
    color: var(--main_color);
    transition: 0.3s;

}
.icons{
    display: flex;
    gap: 30px; 
}
.icons a{
    color: var(--main_color);
    font-size: 28px;
    transition: 0.3s;

}
.icons a:hover{
    scale: 1.4;
}


/* btns */
.btns{
    display: flex;
    gap: 20px;
    align-items: center;
}
.btn{
    background: var(--main_color);
    color: var(--black_color);
    padding: 14px 30px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: capitalize;
    transition: 0.3s;
}
.btn:hover{
    scale: 1.1;
}
.btn_no_bg{
    background: var(--bg_color);
    color: var(--white_color);
    text-decoration: underline;
    text-transform: capitalize; 
    transition: 0.3s;

}
.btn_no_bg:hover{
    color: var(--main_color);
}
.hero{
    padding-top: 100px;
    width: 80%;
    margin: auto;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;

    /* padding-left: 100px; */
}
.hero .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hero .div_Text{
    width: 50%;
}

.hero .div_Text h4{
    color: var(--p_color);
    font-size: 35px;
    margin-bottom: 15px;
}
.hero .div_Text h1{
    font-size: 70px;
}
.hero .div_Text h2{
    font-size: 70px;
    font-weight: normal;
    line-height: 1;
}
.hero .div_Text p{
    margin: 30px 0;
    font-size: 18px;
    width: 80%;
    line-height: 1.7;
}
.hero .div_img{
    position: relative;
    border-radius: 0 0 600px 600px;
    overflow: hidden;
    width: 40%;
}
.hero .bg_img{
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -1;
}

/* start about  */

section{
    padding: 80px 0px;
    /* background-color: #C95843 */
}
.about .container{
    background: var(--black_color);
    display: flex;
    justify-content:space-between;
    align-items: center;
    padding: 50px 30px;
    width: 85%;
    margin: auto;
    /* background-color: #fff; */
    
}
.about img{
 border-radius: 50px;
 width: 350px;


}
.about .div_text{
    width: 55%;
    /* background-color: aqua; */
}
.about .div_text h5{
    color: var(--p_color);
    font-size: 18px;
    text-transform: capitalize;
}
.about .div_text h2
{
    font-size: 45px;
    margin: 25px 0 5px;
}
.about .div_text h4{
    font-size: 30px;
    margin-bottom: 20px;
}
.about .div_text p{
    line-height: 1.8;
}
.about .div_text ul{
    color: var(--white_color);
    margin: 30px 0 20px;
}
.about .div_text ul li{
    width: 45%;
    font-weight: bold;
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}
.about .div_text ul li i{
    color: var(--main_color);
}
.top_section{
    margin-bottom: 100px;
    align-items: center;
}
.top_section h2{
    font-size: 30px;
}

/* experience */

.me{
    width: 90%;
    /* display: flex; */
    /* justify-content: space-between; */
    /* background-color: brown; */
    margin-left: 5%;
    /* gap: 5%; */
    height: 180vh;
    padding: 40px 100px;
    display: grid;
    grid-template-columns: 2fr 1fr;  /* شمال أكبر من يمين */
    /* gap: 30px; */
    /* margin-bottom: 40%; */
  
}
.exper{
    width: 75%;
    /* margin-left: 5%; */
    background-color: var(--black_color);
    align-items: start;
    padding: 20px 10px;
    height: 70%;
    border: 1px solid var(--border_color);
    border-radius: 8px;
    /* overflow: hidden; */
    margin-bottom:  0;
       grid-row: 1 / 3;
}
.exper .top_section{
    text-align: start;
    margin-bottom: 30px;
    padding-left: 20px;
    
    
}
.exper .top_section h2{
    font-size: 25px;
}
.exper .points ul{
    list-style: none;
    padding-left: 30px;
}

.exper .points li{
    position: relative;
    padding-left: 20px;
    margin-bottom: 15px;
    line-height: 1.6;
    transition: 0.3s;
    width: 80%;
    
}
.exper .points li:hover{
    scale: 1.1;
    
}

.exper .points li::before 

{
    content: "•";
    position: absolute;
    left: 0;
    color: #C95843;
    font-size: 18px;
}
.education{
    /* width: %; */
    background-color: var(--black_color);
    height: 70%;
    padding-left: 20px;
    border: 1px solid var(--border_color);
    border-radius: 8px;


}

.education .top_section{
    text-align: start;
    margin-bottom: 10px;
    padding: 20px 10px;
    
    
}
.education li{
    line-height: 1.8;
    width: 95%;
}

.education .top_section h2{
    font-size: 25px;
}

.skills{
    /* width: 60%; */
    padding: 20px;
    border: 1px solid var(--border_color);
    border-radius: 8px;
    margin-top: 0;
    height: 90%;
    background-color: var(--black_color);
}

.skills .top_section{
    margin-bottom: 25px;
}

.skills_container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.skill_box{
    background: #111;
    padding: 20px;
    border-radius: 10px;
    transition: 0.3s;
}

.skill_box:hover{
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--main_color, 0.2);
}

.skill_box h3{
    margin-bottom: 15px;
    font-size: 18px;
    color: rgb(170, 168, 168);
}

.skill_tags{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill_tags span{
    background: #1a1a1a;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid #333;
    transition: 0.3s;
}

.skill_tags span:hover{
    background:#C95843;
    color: #000;
}
/* handle boxs */

.services{
    width: 85%;
    margin-left: 8%;
}
 .boxs{
    display:flex ;
    justify-content: space-between ;
    flex-wrap: wrap;
    /* height: 100px; */

}
 .boxs .box{
    width: 30%;
    text-align: center;
    padding: 50px 20px ;
    border: 1px solid var(--border_color);
    border-radius: 10px;
     height: 350px; 
     transition: 0.3s
}
 .boxs .box:hover{
    border: 1px solid var(--main_color);
    scale: 1.1;

}
 .boxs .box i{
    color: var(--main_color);
    font-size: 70px;
    margin-bottom: 30px;
    transition: 0.3s;

}
 .boxs .box:hover i{
    scale: 1.1;
    overflow: hidden;
}

 .boxs .box h3{
    font-size: 25px;
    margin-bottom: 20px;
}
.boxs .box p{
    margin-bottom: 40px;
    font-size: 14px;
    line-height: 1.7;
}
 .top_secrion h2{
    text-align: center;
    /* background: blue; */
    margin-bottom: 100px;
}

/* start projects */

.projects .project_box{
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
    gap: 10%;

    margin-bottom: 50px;
    width: 85%;
    margin-left: 12%;
}

.projects .project_box img{
    width: 40%;
    border-radius: 10px;
}

.projects  .project_box .text h4{
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: normal;

}
.projects  .project_box .text h3 a{
    font-size: 30px;
    color: var(--white_color);
    transition: 0.3s;
}
.projects  .project_box .text h3 a:hover{
    color: var(--main_color);
}
.projects  .project_box .text p{ 
    margin: 30px 0 50px ;
    line-height: 1.8;
}
.projects  .project_box .text a{
    font-size: 30px;
    color: var(--main_color);
    transition: 0.5s;
}
.projects  .project_box .text a:hover {
    color: var(--white_color);
}
.project_box.box2{
    flex-direction: row-reverse;
}
/* start contact  */

 .contact .top_secrion{
    margin-bottom: 100px;
 }
.contact .social{
    width: 40%;

}

.contact .social h2{
    color: var(--white_color);
    margin-bottom: 40px;

}
.contact  .social_links {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
  
    
}
.contact  .social_links a {
    color: var(--white_color);
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    left: 0;
    transition: 0.3s;
    width: fit-content;
}
.contact  .social_links a:hover{
    left: 15px;
}

.contact  .social_links a i {
    color: var(--bg_color);
    background: var(--main_color);
    margin-right: 5px;
    width: 45px;
    height: 45px;
    line-height: 45px;
    border-radius: 25px;

}
 .contact{
    /* width: 100%; */
     margin-left: 5%;
 }
.contact .container{
    display: flex;
    justify-content: space-between;
    /* background: #8a8a8a; */
    width: 90%;

}
.contact form{
    width:50% ;
    /* background-color: blueviolet; */
    text-align: center;

}

.contact  .form{
    width: 100%;
    /* display: flex; */
    /* flex-wrap: wrap; */
    /* justify-content: space-between; */
 
    
}
.contact  .form input ,
.contact  .form textarea{
    border-radius: 5px;
    padding: 15px;
    outline: none;
    background-color: var(--bg_color);
    color: white;
    margin-bottom: 30px;
    border: 1px solid var(--border_color);
    transition: 0.3s;
}

.contact  .form input{
    width: 48%;
}

.contact  .form textarea{
    width: 100%;
}

.contact  .form input:focus ,
.contact  .form textarea:focus{
    border-color: var(--main_color);
}

/* ================== */
/* start responsive */
/* ================ */
.menu-icon ,.close_menu {
  display: none;

}


@media (max-width:1250px){
     header  .container{
        width: 90%;
    }
}

@media (max-width:1150px){
    .links{
        position: fixed;
        top: 0;
        flex-direction: column;
        left: -100%;
        width: 50%;
        background: var(--black_color);
        padding: 50px 0;
        height: 100%;
        border-right: 1px solid var(--border_color);
        text-align: center;
    }
    .links.active {
     left: 0;
    }
    .close_menu{
        display: block;
        font-size: 28px;
        position: absolute;
        top: 30px;
        right: 30px;
    }
    .menu-icon {
    display: block;
    font-size: 28px; ;
  }

/* responsive home */

    .hero .div_Text h4{
        font-size: 25px;
    }
    .hero .div_Text h1{
        font-size: 50px;
    }
    .hero .div_Text h2{
        font-size: 50px;

    }
    .hero .div_Text p{
        font-size: 16px;

    }
    .hero .btn{
        padding: 12px 25px;
    }
    .me{
        display: flex;
        flex-direction: column;
        gap: 5%;
        /* margin-bottom: 100px; */
        height: 220vh;
    }
    .education{
        height: auto;
        padding-bottom: 20px;
    }
    .skills , .exper{
        height: auto;
        width: auto;
    }
        .about .container{
        flex-direction: column;
    }
    .about .div_text{
        width: 100%;
        margin-bottom: 30px;
    }
    .about img{
        width: 300px;
    }

}
@media (max-width:1000px){
    .hero .container{
        flex-direction: column;
       
    }
    .hero .div_Text {
        width: 100%;
        margin-top: 100px;
        text-align: center;
        line-height: 1.8;
         margin-bottom: 30px;
    }
    .hero .div_img{
      margin-top: 30px;
    }

    .hero .div_Text p{
        font-size: 16px;
        margin: 30px auto;
       

    }
    .hero .div_Text h2{
     margin-bottom: 20px;


    }
    .hero{
        height: auto;
    }
    .about .container{
        flex-direction: column;
    }
    .about .div_text{
        width: 100%;
        margin-bottom: 30px;
    }
    .about img{
        width: 300px;
    }
    .boxs .box i{
        font-size: 55px;
    }

    .boxs .box{
        height:  auto;
        padding: 40px 20px;
       
        
        
    }
     .education{
        height: auto;
    }
    .me{
        height:auto;
        padding: 40px 50px;
    }
    .exper{
        width: auto;
        height: auto;
    }
    .skills{
        height:auto;
    }
    .projects .project_box .text h3 a{
        font-size: 20px;
    }
.projects .project_box .text h4{
    font-size: 18px;
    margin-bottom: 15px;
}

}


@media (max-width:860px){
        .boxs{
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    .boxs .box{
        height:  auto;
        padding: 40px 20px;
        width: auto;
        
        
    }
    .contact .container{
        width: 98%;
    }
    .contact{
        margin-left: 2%;

    }
    .contact .social_links a{
        font-size: 12px;
    }
    .contact .social_links a i{
        width: 30px;
        height: 30px;
        line-height: 30px ;
    }
    .contact .social{
        width: 30%;
    }
    .contact .social{
        width: 45%;
    }
    .me .top_section h2 
    {
        font-size: 20px;
    }

    li h3{
        font-size: 16px;
    }
     li p{
        font-size: 12px;
    }
    .me{
        margin-bottom: 0;
    }

}


@media (max-width:550px){
    .links {
        width: 100%;
        left: -100%;
    }
    .about img{
        width: 250px;
        /* display: none; */
    }
    .contact .form input{
        width: 48%;
    }
    .about .div_text h5{
        font-size: 12px;
    }
    .about .div_text h2{
        font-size: 30px;
    }
    
    .about .div_text h4{
        font-size: 20px;
    }
.about .div_text ul li{
    width: auto;
}
.contact .container{
    flex-direction: column;
}
.contact .social{
    width: 90%;
    margin-left: 10%;
}
.contact form{
    width: 100%;
}
.contact .top_secrion{
    margin-bottom: 60px;
}
.top_secrion h2{
    font-size: 20px;
}
.projects .project_box{
    flex-direction: column;
    width: 80%;

}
.projects .project_box img{
    width: 50%;
    margin-bottom: 30px;
}
  .project_box span{
    font-size: 16px;
  }
  .projects .project_box .text h3 a{
    font-size: 20px;
  }
  .projects .project_box .text p{
    font-size: 14px;
  }
  .projects .project_box .text a{
    font-size: 20px;
  }
  .contact .social_links{
    width: 100%;
  }
  .me{
    height: auto;
    width: auto;
    margin-bottom: 0;
  }
 
}

@media (max-width:410px){
    .hero .div_Text h4{
        font-size: 16px;
    }
    .hero .div_Text h1{
        font-size: 30px;
    }
    .hero .div_Text h2{
        font-size: 30px;
    }
    .hero .div_Text p{
        font-size: 12px;
    }
    .about .div_text h2{
        font-size: 20px;
    }
    .about .div_text h4{
        font-size: 15px;
    }
    .about .div_text p{
        font-size: 12px;
    }
    .btn{
        padding: 10px 15px;
        font-size: 14px;
    }
    .about .div_text ul li{
        font-size: 14px;
    }
    .about img{
        width: 200px;
    }
    .top_secrion h2{
        font-size: 15px;
    }
    .projects .project_box .text h3 a{
        font-size: 16px;
    }
    .contact .social h2{
        font-size: 16px;
    }
    .icons a , .menu-icon{
        font-size: 16px;
    }
    .me{
        padding: 40px 25px;
    }
        .me .top_section h2 
    {
        font-size: 16px;
    }

    .me h3{
        font-size: 12px;
    }
     li p{
        font-size: 10px;
    }
    .skill_tags span{
        padding: 4px 10px;
        font-size: 10px;

    }
    .boxs .box i{
        font-size: 30px;
    }
    .boxs .box h3{
        font-size: 20px;
    }
    .boxs .box p{
        font-size: 12px;
    }
    .contact .form input, .contact .form textarea{
        padding: 10px;
    }
}