/* Code writing and design by: Amr Khaled
Insta: @jai5h */

:root {
   --primaryColor: #06df09;
   --secondaryColor: #f7bcf7;
   --lightColor: #ffffff;
   --bgColor-1: #121212;
   --bgColor-2: #121212;
   --padding: 8%;
}



* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

html {
   font-family: 'PT Sans', sans-serif;
   font-size: 16px;
   color: var(--lightColor)
}

h1 {
   font-size: 4.5rem;
   margin: 1.7rem 0;
}

h2 {
   font-size: 2.2rem;
   letter-spacing: 0.12rem;
   cursor: pointer;
}

h3 {
   font-size: 1.7rem;
}

h4 {
   font-size: 1.75rem;
   letter-spacing: 0.12rem;
}

h5 {
   font-size: 1.37rem;
   margin-bottom: 1.5rem;
   letter-spacing: 1px;

}

span {
   color: var(--primaryColor);
}

p {
   color: var(--lightColor);
   letter-spacing: 1px;
   line-height: 1.8rem;
   font-size: 1rem;
}

.home {
   width: 100%;
   height: 100vh;
   background-color: var(--bgColor-1);
   display: flex;
   flex-direction: column;
}


nav {
   padding-top: 2.8rem;
   padding-left: var(--padding);
   padding-right: var(--padding);
   display: flex;
   justify-content: space-between;
   align-items: center;
}

nav ul li {
   list-style-type: none;
   display: inline-block;
   margin: 0.8rem 1.5rem;
}

nav ul li a {
   color: var(--lightColor);
   text-decoration: none;
   text-transform: capitalize;
   transition: 0.4m;
}

nav ul li a:hover {
   color: var(--primaryColor);
}

.content {
   flex-grow: 1;
   padding: 0 var(--padding);
   display: flex;
   align-items: center;
   justify-content: space-between;
}

.container-texts {
   position: relative;
   bottom: 70px;
}



.social {
   margin-top: 3.5rem;
}

.social img {
   margin-right: 2rem;
   width: 2.5rem;
   transition: 0.4s;
}

.social img:hover {
   transform: scale(1.2);
}

.social a{
   text-decoration: none;
}

.home .container-images img {
   width: 450;
   height: 422px;
   margin-top: -222px;
   margin-left: 450px;
}

/* الجزء الثاني من الصفحه*/

.about {
   background-color: var(--bgColor-2);
   padding: 1.5rem var(--padding);
   display: flex;
   align-items: center;
   justify-content: space-around;
}

.about .container-images {
   width: 35%;
}

.about .container-images img {
   width: 90%;
}

.about .container-texts {
   width: 40%;
}

h1 {
   font-size: 3.5rem;
}

/* -3 */

/* .skills {
   background-color: var(--bgColor-1);
   padding: 1.5rem var(--padding);
   display: flex;
   align-items: center;
   justify-content: space-between;
}

.skills .container-images {
   width: 35%;
}

.skills .container-images img {
   width: 90%;
}

.skills .container-skills {
   width: 50%;

}

.content-skills {
   display: flex;
   flex-wrap: wrap;
   margin-top: 4rem;
} */

/* .skill {
   width: 100px;
   height: 100px;
   background-color: rgba(56, 170, 56, 0.571);
   border-radius: 25%;
   margin: 0 2rem 2rem 0;
   display: flex;
   align-items: center;
   justify-content: center;
}

.skill img {
   width: 70%;
   transition: 0.4s;
}

.skill img:hover {
   transform: scale(1.2);
} */

/* aha */
/* .title {
   font-size: 1.8em;
}
.titl {
   color: var(--primaryColor);
   background-color: var(--bgColor-2);
   display: flex;
   justify-content: center;
   font-size: 2.2em;
   font-weight: 800;
} */


/* .sphone {
   background-color: var(--bgColor-2);
   display: flex;
   justify-content: center;
   flex-direction: row;
   flex-wrap: wrap;
} */


.card {
   background-color: rgb(6, 5, 5);
   width: 21.25em;
   
   border-radius: 10px;
   padding: 25px;
   margin: 15px;
   transition: 0.7s ease;
}

.card:hover {
   transform: scale(1.1);
}

.card .icon {
   color: var(--primaryColor);
   font-size: 8em;
   text-align: center;
}

.sphone .icon{
   font-size: 4.5em;
}

.sphone .info h3 {
   color: rgb(255, 255, 255);
   margin-bottom: 34px;
   margin-top: 29px;
}

.sphone .info p {
   font-size: 1.5em;
}

/* aha */


.footer {
   background-color: var(--bgColor-1);
   color: #fff;
   padding: 2em;
   display: flex;
   justify-content: space-between;
}

.footer-title {
   font-size: 1.3em;
   font-weight: 600;
}

.footer-title span {
   color: var(--primaryColor);
}

.footer .social-icons a {
   font-size: 1.3em;
   padding: 0 12px 0 0;
   color: #06df09;
}

.social-icons:hover {
   transform: scale(1.1);
}

/* المنيو */

#menu{
   display: none;
   position: relative;
   appearance: none;
   border: none;
   outline: none;
   background: none;
   cursor: pointer;
   user-select: none;
}

#menu span{
   display: block;
   width: 33px;
   height: 4px;
   background-color: var(--lightColor);
   border-radius: 6px;
   transform-origin: 0 0;
   transition: 0.4s;
   margin-bottom: 5px;
}

#menu.is-active span:nth-child(1){
   transform: translate(0px, -2px) rotate(45deg);
 }
 
 #menu.is-active span:nth-child(2){
     opacity: 0;
     transform: translateX(15px);
 }
 
 #menu.is-active span:nth-child(3){
     transform: translate(-3px, 3px) rotate(-45deg);
 }
 
 #menu.is-active span{
     background-color: var(--primaryColor);
 }

/*mida quer*/

@media screen and (max-width: 575px) {
   :root{
      --padding: 1.5rem;
   }

   html{
      font-size: 13px;
   }
   
   .home .container-images img{
      display: none;
   }

   nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 82px;
      padding-top: 0;
      background-color: var(--bgColor-1);
      border-bottom: 1px solid var(--bgColor-2);
      z-index: 100;
   }

   nav > a {
      display: none;
   }
   nav ul {
      display: none;
      position: fixed;
      top: 0;
      right: 0;
      width: 55vw;
      height: 100vh;
      background-color: #000000;
   }

   nav ul.is-active{
      display: block;
   }

   nav ul li {
      display: block;
      text-align: center;
      margin: 40px;
   }

   .container-texts{
      bottom: 0;
   }

   .social{
      margin-top: 70px;
      margin-top: -2.5rem;
   }

h3{
   margin-bottom: 85px;
   margin-top: 40px;
}

#menu{
   display: block;
}


.about .container-images img{
   display: none;
}

.about .container-texts{
   width: auto;
}


.skills .container-images img{
   display: none;
}
.skills .container-skills {
   width: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   flex-direction: column;
}

.skills .container-skills .content-skills {
   margin-top: 2rem;
    align-items: center;
    justify-content: center
}

.skill {
   width: 55px;
    height: 55px;
    margin: 3px -10rem 2rem 0;
}

.footer-title{
   font-size: medium;
}
h2 {
   font-size: 1.9rem;
}
}

@media screen and (min-width: 576px) and (max-width: 767px) {
   :root{
      --padding: 1.5rem;
   }

   html{
      font-size: 13px;
   }
   
   .home .container-images img{
      display: none;
   }

   .content{
      padding-top: 82px;
   }

   nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 82px;
      padding-top: 0;
      background-color: var(--bgColor-1);
      border-bottom: 1px solid var(--bgColor-2);
      z-index: 100;
   }

   nav > a {
      display: none;
   }
   nav ul {
      display: none;
      position: fixed;
      top: 0;
      right: 0;
      width: 55vw;
      height: 100vh;
      background-color: var(--bgColor-2);
   }

   nav ul.is-active{
      display: block;
   }

   nav ul li {
      display: block;
      text-align: center;
      margin: 40px;
   }

   .container-texts{
      bottom: 0;
   }

   .social{
      margin-top: 30px;
   }

h3{
   margin-bottom: 30px;
}

#menu{
   display: block;
}


.about .container-images img{
   display: none;
}

.about .container-texts{
   width: auto;
}


.skills .container-images img{
   display: none;
}
.skills .container-skills {
   width: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   flex-direction: column;
}

.skills .container-skills .content-skills {
   margin-top: 2rem;
    align-items: center;
    justify-content: center
}

.skill {
   width: 55px;
    height: 55px;
}

.footer-title{
   font-size: medium;
}
h2 {
   font-size: 1.9rem;
}
}

/* ------tablet---- */

@media screen and (min-width: 768px) and (max-width: 991px) {
   :root{
      --padding: 1.5rem;
   }

   html{
      font-size: 13px;
   }
   
   .home .container-images img{
     display: none;
   }

   nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 82px;
      padding-top: 0;
      background-color: var(--bgColor-1);
      border-bottom: 1px solid var(--bgColor-2);
      z-index: 100;
   }

   nav > a {
      display: none;
   }
   nav ul {
      display: none;
      position: fixed;
      top: 0;
      right: 0;
      width: 50vw;
      height: 100vh;
      background-color: var(--bgColor-2);
   }

   nav ul.is-active{
      display: block;
   }

   nav ul li {
      display: block;
      text-align: center;
      margin: 40px;
   }

   .container-texts{
      bottom: 0;
   }

    /* .content{
      justify-content: center;
   }  */
   
   h1 {
      font-size: 4rem;
   }

   h2 {
      font-size: 2.5rem;
  }

h3 {
   font-size: 2.5rem;
}

h4 {
   font-size: 2.5rem;
   letter-spacing: 0.12rem;
}

.social img {
   margin-right: 3rem;
   width: 3rem;
}


   .social{
      margin-top: 70px;
   }

h3{
   margin-bottom: 70px;
}

#menu{
   display: block;
}


.about .container-texts{
   width: 60%;
}

.skills .container-images img {
   width: 75%;
}

.skills .container-skills {
   width: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   flex-direction: column;
}

.skills .container-skills .content-skills {
   margin-top: 2rem;
    align-items: center;
    justify-content: center
}

.skill {
   width: 55px;
    height: 55px;
}

.footer-title{
   font-size: medium;
}

}

/* ----width-tablet---- */

@media screen and (min-width: 992px) and (max-width: 1279px) {
   :root{
      --padding: 1.5rem;
   }

   html{
      font-size: 13px;
   }
   

   nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 82px;
      padding-top: 0;
      background-color: var(--bgColor-1);
      border-bottom: 1px solid var(--bgColor-2);
      z-index: 100;
   }

   nav > a {
      display: none;
   }
   nav ul {
      display: none;
      position: fixed;
      top: 0;
      right: 0;
      width: 50vw;
      height: 100vh;
      background-color: var(--bgColor-1);
   }

   nav ul.is-active{
      display: block;
   }

   nav ul li {
      display: block;
      text-align: center;
      margin: 40px;
   }


   .container-texts{
      bottom: 0;
   }

   .social{
      margin-top: 70px;
   }

h3{
   margin-bottom: 70px;
}

#menu{
   display: block;
}


.about .container-texts{
   width: auto;
}

.skills .container-images img {
   width: 50%;
}

.skills .container-skills {
   width: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   flex-direction: column;
}

.skills .container-skills .content-skills {
   margin-top: 2rem;
    align-items: center;
    justify-content: center
}

.skill {
   width: 55px;
    height: 55px;
}

.footer-title{
   font-size: medium;
}
h2 {
   font-size: 1.9rem;
}
}
