* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: "Merienda", cursive;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  overflow: hidden;
}

nav ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: purple;
}

nav li {
  list-style: none;
  padding: 15px 20px;
}

nav a {
  text-decoration: none;
  color: #fff;
  font-size: 22px;
  padding: 15px 30px;
}

nav a:hover {
  color: orange;
}

#welcome-section {
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100vw;
  background: black;
}

.welcome-section-img {
  background-image: url("https://i.ibb.co/LSf0LKp/PSX-20201104-184718.jpg");
  width: 100vw;
  height: 100vh;
  background-position: right top;
  background-repeat: no-repeat;
  background-attachment: scroll;
  padding: 90px;
  background-size: 30% 100%;
}
#salute {
  font-size: 0.9em;
  margin-top: 6em;
  color: #fff;
}
.home {
  font-size: 3em;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0.5em auto;
}

#title {
  font-size: 1.2em;
  font-weight: 200;
  font-style: italic;
  /* letter-spacing: 1px; */
  color: #fff;
  margin: 0 auto;
}

.fa-html5,
.fa-css3,
.fa-js,
.fa-react {
  font-size: 1.3em;
  padding-right: 10px;
  padding-left: 5px;
}

/* text scroll */
.marquee {
  width: 80%;
  color: bisque;
  white-space: nowrap;
  overflow: hidden;
}

.marquee div {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  padding-left: 100%;
  display: inline-block;
  animation: animate 10s linear infinite;
}

@keyframes animate {
  100% {
    transform: translate(-100%, 0);
  }
}

.marquee:hover div {
  animation-play-state: paused;
}

#projects {
  background: #240114;
  text-align: center;
  padding: 8rem 2rem;
}

#project-header {
  font-size: 2em;
  color: bisque;
  max-width: 300px;
  margin: 2em auto;
  margin-top: -1em;
  border-bottom: 1px solid;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-gap: 6rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 6em;
}

.project-grid a {
  text-decoration: none;
}

.project-tile {
  background: #fff;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  border-radius: 3px;
}

.project-tile:hover {
  transform: translateY(15px);
  transition: transform 0.6s ease-out;
}

.project-img {
  height: calc(100% - 4rem);
  width: 100%;
  object-fit: cover;
  display: block;
}

.project-title {
  font-size: 1.2rem;
  padding: 1.2em 0.5em;
  color: #fff;
  background: #100124;
}

#contact {
  text-align: center;
  padding: 6em 0;
  width: 100vw;
  background: #100124;
}

.contact-section > h1 {
  font-size: 3.5em;
  color: #fff;
  letter-spacing: 2px;
}

.contact-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 90vh;
}

.contact-section p {
  color: #fff;
  font-size: 1.2em;
  margin-bottom: 40px;
  letter-spacing: 0.5px;
}

.contact-link {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  margin-top: 0;
  flex-wrap: wrap;
}

.contact-link a {
  font-size: 1em;
  text-decoration: none;
  padding: 0 24px 0 20px;
  color: #fff;
  letter-spacing: 1px;
}

.icon {
  font-size: 1.2rem;
  transition: transform 0.6s ease-out;
}

.icon:hover {
  transform: translateY(8px);
}
.fab {
  font-size: 38px;
}

.contact-link i {
  padding-right: 5px;
}

#contact-form > h3 {
  padding-top: 3em;
  color: grey;
  font-size: 1.3em;
}

#contact-form input {
  padding: 5px;
  width: 500px;
  height: 42px;
  border-radius: 5px;
  margin-top: 20px;
}

#contact-form textarea {
  padding: 5px;
  width: 500px;
  height: 120px;
  margin-top: 20px;
  border-radius: 5px;
}

#submit {
  width: 90px;
  height: 100px;
  margin-top: 30px;
  border-radius: 5px;
  border: none;
  background: purple;
  color: white;
  cursor: pointer;
  font-size: 18px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

#submit:hover {
  transform: translateY(10px);
  transition: transform 0.6s ease-out;
}

footer {
  display: flex;
  justify-content: space-evenly;
  background: bisque;
  width: 100%;
  height: 8vh;
}

footer p {
  font-weight: 600;
  font-size: 1em;
  letter-spacing: 1px;
  color: #100124;
  padding: 22px;
}

@media (max-width: 620px) {
  nav a {
    font-size: 17px;
    padding: 1.2em;
  }

  #welcome-section {
    height: 50vh;
  }
  #salute {
    font-size: 0.5em;
  }
  .home {
    margin-top: 1em;
    text-align: left;
    font-size: 1em;
    white-space: nowrap;
  }

  .welcome-section-img {
    padding: 80px;
    background-size: 38% 100%;
  }

  #title {
    text-align: left;
    font-size: 0.7em;
  }

  .marquee div {
    font-size: 0.8em;
  }

  #project-header {
    font-size: 1.7em;
  }

  .contact-section > h1 {
    font-size: 2em;
  }

  .contact-section {
    margin-top: -6em;
  }

  .contact-section p {
    font-size: 0.8em;
  }

  .contact-link a {
    font-size: 0.7rem;
    padding: 2em auto;
  }
  .fab {
    font-size: 24px;
  }

  #contact-form input {
    width: 300px;
    height: 40px;
  }

  #contact-form textarea {
    width: 300px;
    height: 70px;
  }

  #submit {
    width: 90px;
    height: 50px;
    margin-top: 20px;
    font-size: 14px;
  }

  footer p {
    font-size: 1em;
    padding: 20px;
  }
}
