*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    text-decoration: none;
    font-family: 'Cairo', sans-serif;

}


:root{
    --mainColor:#0b0504;
    --heading:#ff0000;
    --grey:rgb(23, 23, 23);


}
header{
    height:80px;
    background-color:var(--mainColor);
    width: 100%;
    position: fixed;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 200px;
}
.logo img{
    width: 200PX;
}
.fa-bars{
    color:white;
    transform: scale(0);
    font-size: 2rem;
    cursor: pointer;
}

.navigation a{
    text-decoration: none;
    color:white ;
    font-size: 1.1em;
    font-weight: 500;
    padding-left: 30px;
}

.navigation a:hover{
    color: rgb(205, 205, 205);
}
/***********************home ***************************/

section{
    padding: 100px 200px;
}
.main{
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(/images/background.png) no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.overly::after{
    content: '';
    background-color: rgba(0, 0, 0, 0.8);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}
.main-content{
    z-index: 10;
    text-align: center;

}
.main h2{
    color: #fff;
    font-size: 2em;
    font-weight: 500;

}
.main h2 span{
    display: inline-block;
    margin-top: 10px;
    color: var(--heading);
    font-size: 3em;
    font-weight: 600;
}
.main h3{
    color: #fff;
    font-size: 2em;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 10px;
    margin-bottom: 30px;
}
.main-btn{
    color: var(--mainColor);
    background-color: var(--heading);
    font-size: 1.1em;
    font-weight: 600;
    display: inline-block;
    padding: 0.9375em 2.1875em;
    letter-spacing: 1px;
    border-radius: 15px;
    margin-top: 40px;
    transition: 0.7s ease;

}
.main-btn:hover{
    background-color: var(--mainColor);
    transform: scale(1.1);
    color: var(--heading);
}
.social-icons i{
    color: #fff;
    font-size: 1.7em;
    padding-right: 15px;
    margin-top: 25px;
}
.social-media i{
    color: #fff;
    font-size: 2em;
    padding-right: 15px;
}

i:hover{
    color:#FF424D;
}
/***********************About me***************************/
.title{
    font-size: 3rem;
    text-align: center;
    padding: 50px 0;
color: var(--heading);}
.about-content{
    width: 100%;
    height: 80vh;
    display: flex;
}
.about-desc{
    width: 50%;
    background-color: rgb(158, 6, 6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
}
.about-desc p{
    color: white;
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: bold;
}
.bio{
    color: #000000;
    font-size: 2rem;
    display: block;
    text-align: center;
    padding: 20px;
}
.about-pic{
    width: 50%;
    height: 100%;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.about-pic img{
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 5px solid #ffffff;

}
.iam{
    font-size: 3rem;
    font-weight: bolder;
    color: var(--heading);
}
.name{
    font-size: 3rem;
    font-weight: bolder;
    color: white;
}

/***********************My work***************************/
.content{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /* flex-direction: row; */
}
.project-image{
    height: 85%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.card{
    background-color: #fff;
    width: 21.25em;
    box-shadow: 0px 5px 25px rgba(1 1 1 / 15%);
    border-radius: 10px;
    padding: 25px;
    margin: 15px;
    transition: .7s ease;
}
.card:hover{
    transform: scale(1.1);
}
.icon{
    color: var(--mainColor);
    font-size:8em ;
    text-align: center;
}
.info{
    text-align: center;
}
.info p{
    line-height: 1.7em;
}
.info h3{
    color: var(--mainColor);
    font-size: 1.2em;
    font-weight: 700;
    margin: 10px;
}

.projects{
    background-color: var(--mainColor);
    margin-bottom: 100px;

}
.projects .content{
    margin-top: 30px;
}
.project-card{
    background-color: #fff;
    border: 1px solid #ffffff;
    min-height: 30rem;
    width: 20em;
    overflow: hidden;
    border-radius: 10px;
    margin: 20px;
    transition: 0.7s ease;
}
.project-card:hover{
    transform: scale(1.1);
}
.project-card img{
    width: 100%;
}
.project-card:hover .project-image{
    opacity: 0.9;
}
.project-info{
    padding: 1em;
}
.project-category{
    font-size: 0.8em;
    text-transform: capitalize;
}
.project-title{
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    margin-top: 10px;
}
.more-details{
    color: var(--heading);
}
.more-details:hover{
    color: rgb(165, 1, 1);
}

/***********************CONTACT***************************/
.contact{
    padding-bottom: 150px;
    margin-bottom: 100px;
    box-shadow: 0px 0px 20px 1px red;
    width: 90%;
    margin: 0 auto;
    border-radius: 10px;
}
.contact .icon{
    font-size: 4.5em;
}

.contact .info h3{
    color: #000016;
}
.contact .info a{
    font-size: 1.4em;
}
/***********************FOOTER***************************/

footer{
    background-color: var(--mainColor);
    color: white;
    min-height: 10vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 200px;
    padding: 0 100px;
}
.copyrights span{
    display: inline-block;
    color: var(--heading); 
}
.copyrights strong{
    font-size: 2em;
    text-transform: uppercase;
}
.social-media{
    margin-right: 100px;
}
.social-media i{
    padding: 10px;
    font-size: 1.1em;
    font-weight: 500;
}
/**************************************/
.top{
    width: 50px;
    height: 50px;
    background-size: 200%;
    background-image:linear-gradient(120deg, rgb(102, 0, 0),rgb(255, 0, 0));
    position: fixed;
    right: 40px;
    bottom: 20px;
    z-index: 9999;
    display: none;
    animation: tp-bt 1s infinite alternate,moving 3s linear infinite alternate; ;
    cursor: pointer;
    border-radius: 5px;
  }
  .fa-arrow-up{
    color: white;
    font-size: 3rem;
    display: inline-block;
    margin: 0 7px;
  }
  .fa-arrow-up:hover{
    color: rgb(0, 0, 0);
  }
  @keyframes tp-bt {
    0%{
      bottom: 20px;
    }
    100%{
      bottom: 40px;
    }
  }
  @keyframes moving {
      0%{
        background-position: 0%;
  
      }
      100%{
        background-position: 100%;
  
      }
  }