@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;700&display=swap');

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: black;
}

/*----------NAVBAR----------*/
#spin:after {
  content:"";
  animation: spin 15s linear infinite;
}
@keyframes spin {
  0% { content:"Web Developer"; }
  25% { content:"Pyhton Developer"; }
  50% { content:"Love to write articles"; }
  75% { content:"Cyware"; }
  100% { content:"ML/DL Enthusiast"; }
  /*50% { content: "adipisicing"; }
  60% { content: "elit"; }
  70% { content: "Hic"; }
  80% { content: "atque"; }
  90% { content: "fuga"; }*/
}
#navbar {
  background-color: black;
  position: fixed;
  width: 100%;
  padding: 5px;
}

#navbar ul {
  display: flex;
  justify-content: flex-end;
}

#navbar ul li {
  list-style-type: none;
}

#navbar ul li a {
  text-decoration: none;
  color: white;
  font-size: 20px;
  margin-right: 70px;
  transition-duration: .3s;
}

#navbar ul li a:hover {
  box-shadow: inset 0px -3px purple;
}

@media screen and (max-width:450px) {
  #navbar {
    padding: 0;
  }
  #navbar ul {
    justify-content: center;
  }
  #navbar ul li a {
    margin-left: 15px;
    margin-right: 15px;
    font-size: 15px;
  }
}

/*----------WELCOME-SCREEN----------*/

#welcome-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background-color: black;
  line-height: 1px;
}

#welcome-section h1 {
  color: white;
  font-size: 50px;
  letter-spacing: 1px;
}

#welcome-section p {
  font-size: 25px;
  color: purple;
  font-style: italic;
  font-weight: 600;
}

@media screen and (max-width:500px) {
  #welcome-section h1 {
    font-size: 25px;
  }
  #welcome-section p {
    font-size: 20px;
  }
}

/*----------PROJECTS----------*/

#projects {
  min-height: 100vh;
  width: 100%;
  background-color: black;
  color: white;
  padding-bottom: 80px;
}

#projects h1 {
  text-align: center;
  font-size: 35px;
  padding-top: 70px;
}

@media screen and (max-width:600px) {
  #projects h1 {
    font-size: 25px;
  }
}

#projects h1 a {
  box-shadow: inset 0px -4px purple;
}

.project-grid {
  margin-top: 100px;
  margin-left: 10px;
  margin-right: 10px;
  padding-bottom: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  justify-items: center;
  grid-row-gap: 50px;
  overflow: hidden;
}

@media screen and (max-width:1180px) {
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width:800px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width:420px) {
  .project-grid {
    display: block;
    padding: 10px;
  }
}

.sub-project {
  width: auto;
  text-decoration: none;
  background-color: #2a2a2a;
  transition: .3s ease-in-out;
  border-radius: 5px;
}

.sub-project:hover {
  box-shadow: 6px 6px 0px white;
}

.sub-project h2 {
  font-size: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px 100px 70px 100px;
  color: #959595;
}

.sub-project a {
  text-decoration: none;
  color: white;
  font-size: 18px;
}

.project-tile {
  background-color: purple;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  margin-bottom: 0;
  border-radius: 5px;
}

.sub-project .code {
  opacity: 0;
  transition: .5s ease-in-out;
}

.sub-project:hover .code, .project-tile:hover .code {
  opacity: 1;
}

@media screen and (max-width:420px) {
  .sub-project h2 {
    font-size: 30px;
    padding: 80px 80px 50px 80px;
  }
  .sub-project a {
    font-size: 15px;
  }
  .project-tile {
    padding: 10px;
  }
}

#show-all {
  margin-bottom: 70px;
  text-align: center;
}

#show-all a {
  text-decoration: none;
}

#show-all-btn {
  background-color: purple;
  border: none;
  font-size: 18px;
  color: white;
  padding: 12px;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
  transition: .3s ease-in-out;
}

#show-all-btn i {
  font-size: 15px;
}

#show-all-btn:hover {
  background-color: #2a2a2a;
}

#show-all-btn .code {
  margin-left: 5px;
  transition: .3s ease-in-out;
}

#show-all-btn:hover .code {
  margin-left: 10px;
}

/*----------CONTACT----------*/

#contact {
  width: 100%;
  background-color: black;
  text-align: center;
}

#contact h1 {
  color: white;
  font-size: 55px;
  padding-top: 80px;
  margin-bottom: -15px;
}

#contact p {
  font-style: italic;
  color: white;
  font-size: 20px;
}

@media screen and (max-width:600px) {
  #contact h1 {
    font-size: 25px;
  }
  #contact p {
    font-size: 15px;
  }
}

#contact ul {
  padding: 50px;
  display: flex;
  justify-content: space-evenly;
}

#contact ul li {
  list-style-type: none;
}

#contact ul li a {
  text-decoration: none;
  color: white;
  font-size: 20px;
  transition: .3s ease-in-out;
}

#contact ul li a:hover {
  color: purple;
}

@media screen and (max-width:700px) {
  #contact ul {
    display: block;
  }
  #contact ul li {
    margin-bottom: 10px;
  }
  #contact ul li a {
    font-size: 15px;
  }
}

.under-line {
  width: 100%;
  height: 5px;
  background-color: purple;
  margin-top: 80px;
}

#contact h2 {
  color: white;
  padding: 30px 0px 40px 0px;
  font-size: 18px;
  letter-spacing: 1px;
}

#contact h2 a {
  text-decoration: none;
  color: white;
  transition: .3s ease-in-out;
}

#contact h2 a:hover {
  color: purple;
}

@media screen and (max-width:700px) {
  #contact h2 {
    font-size: 15px;
  }
}

::selection {
  background-color: purple;
  color: white;
}
