*{
  padding: 0;
  margin: 0;
  font-family: sans-serif;
}
body{
background-color: rgb(24, 18, 77);
}
nav{
display: flex;
padding: 20px;
color:#fff;
box-shadow: rgba(20, 175, 202, 0.25) 0px 14px 28px, rgba(23, 228, 235, 0.22) 0px 10px 10px;

}
.nav-links{
  display:flex;
  flex-direction: row;
  list-style: none;
  margin-left:50rem;
}
.nav-links a{
  padding-left: 20px;
  text-decoration: none;
  color:#fff;
  cursor: pointer;
}
.pop-up #bars{
  display: none;
}
.pop-up #xmark{
  display: none;
}
/* home page */
.container{
  margin-top: 100px;
  margin-left: 20%;
  color:#fff;
  padding: 20px;
}
.container h1{
  font-size: 50px;
  margin-left: 30px;
}
.container p{
  width: 50%;
  font-size: 27px;
  margin-top: 30px;
  margin-left: 30px;
}
.container a{
  width: 20%;
  height:20px;
  background-color: #0000ff;
  color:#fff;
  text-decoration: none;
  font-size:20px;
  padding: 10px;
  border-radius: 5px;
  display: flex;
  gap:10px;
  position: relative;
  top:50px;
  left:30px;

}
.hero{
  width:20%;
  height:40%;
  border-radius: 100%;
  position: relative;
  top:-250px;
  left:620px;
  animation:slide 6s ease-in infinite;
}
@keyframes slide {
  0%{
    transform: translateY(-10px);
  }
  50%{
    transform: translateY(10px);
  }
  100%{
    transform: translateY(-10px);
  }
  
}
/* Education */
.education{
  margin-top:6rem;
}
.education h1{
  font-size: 40px;
  margin-left: 30px;
  color: #fff;
}
.edu-items img{
  width: 20%;
  height:20%;
  display: flex;
  margin-top: 8%;
  margin-left: 20%;
  border-radius: 100%;
}
.edu-item{
  width: 30%;
  margin-top: 10px;
  margin-left: 15%;
  text-align: center;
  color: #fff;
  padding: 20px;

}
.edu-item p{
  padding: 5px;
}
/* skills */
.skill{
  font-size: 40px;
  margin-top: 10%;
  margin-left: 30px;
  color:#fff; 
}
.image{
display: flex;
flex-wrap:nowrap;
list-style: none;
margin-top: 30px;
margin-left: 10%;
}
.image li img{
  width: 100px;
  height:100px; 
  padding-left: 30px; 
}
.image p{
  margin-top: 20px;
  color:#fff;
}
/* project */
.card{
  margin-top: 10%;
}
.card h1{
  font-size: 40px;
  margin-left: 30px;
  color:#fff;
}
.item{
display: flex;
flex-wrap: wrap;
margin-left: 10% ;
}
.items{
  width:40%;
  height:50%;
  background-color: rgb(3, 19, 231);
  color: #fff;
  padding: 20px;
  margin: 10px;
  text-align: center;
  border-radius: 10px;
 
}
.items h3{
padding: 5px;
font-size:20px;
color:gold;
}
.items p{
  padding: 10px;
}
.items a{
  display: flex;
  align-items: center;
  justify-content: center;
  gap:10px;
  padding-top: 10px;
  font-weight: 600;
  color:rgb(28, 236, 122);
  text-decoration: none;
}
.contact{
margin-top: 10%;
}
.contact h1{
font-size: 40px;
margin-left: 30px;
color:#fff;
}
.contact form{
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  padding-left: 10%;
}
.contact label{
  font-size: 20px;
  color:#fff;
  margin-top: 5px;
}
.contact form input{
  width:50%;
  height:30px;
  margin-top: 5px;
}
.contact form textarea{
  width:50%;
  height:80px;
  margin-top: 5px;
}
.contact form button{
  width:20%;
  height:40%;
  margin: 10px;
  font-size: 20px;
}
/* footer */
footer{
width: 97%;
height:100%;
background-color: aqua;
padding: 20px;
text-align: center;
}
footer h2{
  padding: 10px;
}
footer i {
width:16%;
height:40%;
padding: 5px;
color:rgb(252, 35, 6);

}
footer a{
  padding-left: 5px;
  text-decoration: none;
}
@media screen and (max-width: 768px) {
  nav {
    width:auto;
    flex-direction: row;
    align-items: center;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: rgb(40, 19, 235);
    border-radius: 5px;
    position: absolute;
    top: 60px;
    right:50px;
    width: 30%;
    height: 25%;
    z-index: 1;
  }

  .nav-links li {
    margin: 15px 0 ;
  }
  .nav-links li:hover{
    width:100%;
    height:20px;
    background-color: rgb(13, 153, 235);
  }

  .pop-up #bars {
    display: block;
    position:relative;
    left:13rem;
    cursor: pointer;
  }
  .pop-up #xmark{
    position: relative;
    top:40px;
    left:165px;
    z-index:1;
  }

  .container {
    margin: 20px;
    text-align: center;
  }

  .container h1 {
    font-size: 35px;
    margin-left: 0;
  }

  .container p {
    font-size: 20px;
    margin-left: 0;
    width: 100%;
  }
.hero{
  display: none;
}
  .container a {
    width: 70%;
    justify-content: center;
    margin-left: 10%;
    left: 0;
    right:20px;
    top: 10px;
  }
  .edu-items {
    flex-direction: column;
    align-items: center;
  }

  .edu-items img {
    width: 200px;
    height: 200px;
    margin-left: 25%;
  }

  .edu-item {
    width: 80%;
    margin: 10px auto;
  }

  .image {
    flex-wrap: wrap;
    justify-content: center;
  }

  .item {
    flex-direction: column;
    align-items: center;
  }

  .items {
    width: 80%;
  }

  .contact form {
    padding-left: 0;
    align-items: center;
  }

  .contact form input,
  .contact form textarea {
    width: 90%;
  }

  .contact form button {
    width: auto;
    padding: 10px 20px;
  }
 footer{
  width:auto;
  flex-direction: row;
  align-items: center;
 }
  footer i {
    width: auto;
    display: inline-block;
    margin: 5px;
  }
}