@import url('https://fonts.googleapis.com/css2?family=Mochiy+Pop+One&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: black;
}

ul {
    list-style: none;
}

body{
    font-family: sans-serif;
}


header {
    height: 100vh;
    background-color: #ecf0f3;
}

header .container {
    background-color: white;
    position: fixed;
    width: 100%;
    border-bottom: 1px solid #ccc;
    font-weight: 700;
}

header .container nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 25px 0;
    margin: 0 7rem;
}

.container nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
}

.container nav ul li a {
    color: #033b4a;
    font-size: 16px;
    padding: 0 30px;
}

.container nav ul li a:hover{
    color: #7bf58b;
    transition: 0.3s;
}
.container .logo {
    font-size: 20px;
    color: #033b4a;
    font-weight: 900;
}

.header-content {
    display: grid;
    grid-template-columns: 1fr 1fr ;
    height: 100%;
    max-width: 1100px;
    align-items: center;
    margin: auto;
}

.header-content img {
    width: 450px;
    border-radius: 10%;
}

.header-content .content span {
  color: #00c01a;
  font-size: 20px;
  font-weight: 800;
}

.header-content .content h1 {
    font-size: 60px;
    font-weight: 800;
    color: #033b4a;
    text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.2);
}

.header-content .content p {
    font-size: 20px;
    font-weight: 800;
    color: #033b4a;
    margin-bottom: 20px;
}

.btn {
    border: solid 3px #7bf58b ;
    font-size: 14px;
    padding: 7px 30px;
    border-radius: 5px;
    font-weight: 900;
    background-color: #7bf58b;
    color: white;
}

section {
    margin: 3rem 7rem;
    position: relative;
}

section .main-content {
    display: grid;
    grid-template-columns: 1fr 1fr ;
    height: 100%;
    max-width: 1100px;
    align-items: center;
    margin: auto;
}

section .main-content .left-content{
    width: 60%;
}

section .title-about  h2 {
  text-align: center;
  margin: 0 0 4rem;
  font-size: 32px;
  font-weight: 900;
  color: #033b4a;
  position: relative;
}

section .title-about  h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #7efc8f;
}

section .main-content .text1 {
  color: #033b4a;
  font-size: 19px;
  font-weight: 900;
}

section .main-content .text1 span {
    color: #a2e7ab;
    font-weight: 900;
}

section .main-content .text2,.text3 {
color: #697d83b7;
font-size: 14px;
line-height: 24px;
font-weight: 600;
margin: 10px 0px;
}

section .main-content .text2 span {
    color: #033b4a;
    font-size: 19px;
    font-weight: 900;
}

.main-content .left-content {
    margin: 3rem;
}

.main-content .left-content .text4 {
    color: rgba(63, 62, 62, 0.849);
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 8px;
}

.main-content .left-content .text4 span {
    color: #033b4a;
    font-weight: 900;
}

.main-content .left-content .text5 {
    color: rgba(63, 62, 62, 0.849);
    font-size: 16px;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 8px;
}

.main-content .left-content .text5 span {
    color: #033b4a;
    font-weight: 900;
}

main #cards h2 {
  text-align: center;
  margin: 0 0 4rem;
  font-size: 32px;
  font-weight: 900;
  color:white;
  position: relative;
}

main #cards h2::after{
  content: "";
  position: absolute ;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #7efc8f;
}

main #cards span {
    color: #20C997;
}

main #cards {
    background-color: #033b4a;
    height: 80vh;
    margin: auto;
}

main #cards .skills {
  display: grid;
  grid-template-columns: 0.9fr 0.9fr 0.9fr 0.9fr 0.9fr ;
  gap: 1px;
  background-color: #0f272d;
  height:60%;
  width: 60%;
  margin:auto ;
  font-weight: 900;
}

main #cards img {
   max-width:40px;
}

main #cards p {
 margin-top: 0.5rem;
}

main #cards .item {
  background-color: black;
  color: white;
  height: 140px;
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-radius: 10px;
  margin: 2rem 2rem;
}
main .Experience {
background-color: #F1FEF9;
height: 50vh;
margin: auto;
padding: 40px 0;
}
main .Experience .container h2 {
  text-align: center;
  margin: 0 0 2rem;
  font-size: 32px;
  font-weight: 900;
  color:#033b4a;
  position: relative;
}

main .Experience .container h2::after{
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #7efc8f;
}

main .Experience .container span {
    color: #20C997;
}

main .Experience .container p {
    text-align: center;
    align-items: center;
    font-size: 15px;
    color: rgb(85, 85, 87);
    font-weight: 600;
    margin-bottom: 2rem;
}

main .Experience .card{
display: flex;
align-items: center;
max-width: 1100px;
margin: auto;
border: #ffffff solid 2px;
border-radius: 5px;
background-color: white;
box-shadow: 1px 1px 2px 1px ;
}

main .Experience .card .text {
    margin: 0 2rem;
}

.Experience .card .text h3 {
  color: #0f272d;
  font-weight: 900;
  padding: 7px 0;
  font-size: 17px;
}

.Experience .card .text .p1 {
    font-size: 14px;
    padding: 0 0 6px 0;
    color: rgba(63, 62, 62, 0.849);
}

.Experience .card .text .p2 {
    font-size: 22px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 600;
    padding: 4px 0 0 0 ;
    color: #236C02;
}
main .Education{
background-color: #033b4a;
height: 70vh;
margin: auto;
padding:40px 0;
}
main .Education .container h2 {
  text-align: center;
  margin: 0 0 2rem;
  font-size: 32px;
  font-weight: 900;
  color:white;
  position: relative;
}

main .Education .container h2::after{
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #7efc8f;
}

main .Education .container span {
    color: #20C997;
}

main .Education .container p {
    text-align: center;
    align-items: center;
    font-size: 15px;
    color: rgb(85, 85, 87);
    font-weight: 600;
    margin-bottom: 2rem;
}

main .Education .card{
display: flex;
align-items: center;
max-width: 1100px;
margin: auto;
border: #ffffff solid 2px;
border-radius: 5px;
background-color: white;
box-shadow: 1px 1px 2px 1px ;

}

main .Education .card .text {
    margin: 0 2rem;
}

.Education .card .text h3 {
  color: #0f272d;
  font-weight: 900;
  padding: 7px 0;
  font-size: 17px;
}

.Education .card .text .p1 {
    font-size: 14px;
    padding: 0 0 6px 0;
    color: rgba(63, 62, 62, 0.849);
}

.Education .card .text .p2 {
    font-size: 22px;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 600;
    padding: 4px 0 0 0 ;
    color: #236C02;
}

.Education .card .misr-university {
  width: 200px;
  height: 170px;
}

main .contact  h2 {
  text-align: center;
  margin: 0 0 2rem;
  font-size: 32px;
  font-weight: 900;
  color:#033b4a;
  position: relative;
}

main .contact  h2::after{
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #7efc8f;
}

.contact {
    height: 100vh;
    width: 100%;
    margin: auto;
}

.contact .form-text {
    background-color: #F1FEF9;
    height: 100vh;
    padding: 80px;
}

.contact .content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin: 7rem auto;
    padding: 30px;
    background-color: white;
    max-width: 900px; 
    border: 2px solid white;
    border-radius: 5px;
    box-shadow: 1px 1px 1px 1px  ;
}

.contact .content img {
    max-width: 100%;
}

.contact .content form input {
    padding: 5px 0 30px 5px;
    width: 400px;
    border: 2px solid rgb(104, 96, 96);
    border-radius: 4px;
    font-size: 12px;
    background-color: #F1FEF9;
    font-weight: 600;
}

.contact .content form textarea {
    padding: 5px 0 30px 5px;
    width: 330px;
    border: 2px solid rgb(104, 96, 96);
    margin-bottom: 2rem;
    background-color: #F1FEF9;
}

.contact .content form .sup {
    border: solid 3px #7bf58b ;
    font-size: 14px;
    padding: 10px 30px;
    border-radius: 5px;
    font-weight: 900;
    background-color: #7bf58b;
    color: white;
}

.title-last {
    background-color: black;
    color: white;
    height: 5vh;
    text-align: center;
    padding: 10px 0 0 0;
    font-size: 10px;
}

/*Responsive Mobile*/

@media (max-width: 767px) {
  header .container nav {
    display: block;
    text-align: center;
    margin-left: 1.5rem;
    padding: 15px;
  }

  .container nav ul {
    flex-direction: row;
    gap: 40px;
    margin-top: 10px;
  }

  .container nav ul li a {
    padding: 10px 0;
  }
    .header-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px;
  }

  .header-content img {
    width: 250px;
    margin: auto;
  }

  .header-content .content h1 {
    font-size: 35px;
  }
    section {
    margin: 2rem 1rem;
  }

  section .main-content {
    flex-direction: column;
    text-align: center;
  }

  section .main-content .left-content {
    width: 100%;
    margin: 0;
  }
    main #cards .skills {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  main #cards {
    height: auto;
    padding: 30px 0;
  }
    main .Experience,
  main .Education {
    height: auto;
    padding: 20px;
  }

  main .Experience .card,
  main .Education .card {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  .contact .content {
    gap: 10px;
  }

  .contact .content form input{
    width: 120px;
  }  

  .contact .content form textarea {
   margin-right: 6rem;
   width: 100px;
  }

  .contact .content form .sup{
    padding: 7px;
  }
}


@media (max-width: 1024px) {
  main #cards .skills {
    grid-template-columns: repeat(5, 1fr);
    width: 90%;
    text-align: center;
  }
  
    .contact .content {
    gap: 10px;
  }

  .contact .content form input{
    width: 220px;
  } 

  .contact .content form textarea {
   margin-right: 2rem;
   width: 200px;
  }
    
  main #cards .item {
  height: 130px;
  width: 70px;
  font-size: 15px;
  margin: 2rem 2rem;
}

.header-content {
 padding: 0  0 0 30px;
}
}
