* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

body {
  overflow-x: hidden;
  overflow-y: scroll;
  background-color: #f5f5f5;
  margin: 0;
  font-family: system-ui, sans-serif;
  background: linear-gradient(to top, #ffbd87, #f5a4a4);
}
html{
  scroll-behavior: smooth;
}
nav a {
  text-decoration: none;
  padding: 5px;
  display: inline-block;
  min-width: 9rem;
  text-align: center;
  border: 1px solid rgb(22, 22, 22);
  border-radius: 0.2rem;
  color: #1b1b1b;
}

nav {
  border-bottom: solid 1px #aaa;
  background-color: #eee;
  padding: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.home {
  color: #1b1b1b;
  background-color: #d4d4d4;
}

main {
  margin-bottom: 10%;
  overflow: hidden;
  margin-left: 20px;
}

h1 {
  font-size: 40px;
  color: rgb(0, 0, 0);
  display: flex;
  justify-content: center;
  margin: 25px;
  font-size: 35px;
}
h2 {
  margin-left: 37%;
  font-weight: 50;
  font-size: 20px;
  padding: 0;
  line-height: 0;
}

.project {
  display: flex;
  flex-direction: column;
  font-size: 20px;
  justify-content: center;
}

.project-item {
  margin-bottom: 10px;
  position: relative;
}

.project-link {
  text-decoration: none;
  background-color: #fff;
  color: #212121;
  padding: 10px 30px;
  border: 1px solid #212121;
  border-radius: 15px;
  margin-top: 6px;
  max-width: 100%;
  margin-left: 5%;
  margin-right: 5%;
  text-align: initial;
  display: block;
}

.project-link:hover {
  background-color: #e2fdff;
}

.project-description {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #eee;
  padding: 0 50px;
  margin-left: 6%;
  margin-right: 6%;
  border-left: 2px solid #d3d3d3;
  font-style: italic;
}

.project-item:hover .project-description {
  max-height: 100px;
  padding: 10px 30px;
  border-radius: 10px;
}

img {
  height: 120px;
  width: 120px;
  object-fit: contain;
  border-radius: 9999px;
  margin-left: 46%;
  margin-top: 5%;
  margin-bottom: 0%;
}

#contact {
  text-align: center;
  letter-spacing: 10px;
  margin-top: 3%;
  font-size: 30px;
  font-weight: 50;
  margin-bottom: 2%;
}

.Twitter {
  color: #111;
}
.Twitter i:hover {
  transform: scale(1.2);
}
.youtube {
  color: red;
}
.youtube i:hover {
  transform: scale(1.2);
}
/* .instagram{
  background-image:url(ig.jpeg) ;
  background-size: contain;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.instagram i:hover{
  transform:scale(1.2); */
/* } */

.instagram i {
  background-image: url("ig.jpeg");
  background-size: contain;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.3s ease;
}

.instagram i:hover {
  transform: scale(1.2);
}
.email {
  color: rgb(169, 65, 65);
}
.email i:hover {
  transform: scale(1.2);
}
.telegram {
  color: rgb(50, 141, 186);
}
.telegram i:hover {
  transform: scale(1.2);
}

@media screen and (max-width: 768px) {
  nav {
    flex-direction: column;
    text-align: center;
  }

  nav a {
    margin-bottom: 0.5rem;
  }

  main {
    margin: 20px;
  }

  h1 {
    font-size: 30px;
  }

  .project-link {
    margin: 6px 0;
  }

  .project-description {
    margin: 0;
    font-size: 12px;
  }

  img {
    margin-left: 35%;
    margin-bottom: 0;
  }

  h2 {
    margin-left: 0;
    text-align: center;
    font-size: 16px;
    margin-bottom: 5%;
  }
  #contact {
    font-size: 25px;
    letter-spacing: 5px;
  }
  h1{
    margin-top: 0%;
  }
}
