* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

nav {
  background: radial-gradient(
    circle at 10% 20%,
    rgb(0, 0, 0) 0%,
    rgb(64, 64, 64) 90.2%
  );
  position: fixed;
  width: 100%;
  border-bottom: 3px solid rgb(168, 251, 60);
  z-index: 999;
}

ul {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  list-style: none;
}

a {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  text-decoration: none;
  color: rgb(168, 251, 60);
  padding: 20px;
  transition: color 0.3s, background-color 0.3s ease;
}

nav a:hover {
  color: rgb(64, 64, 64);
  background-color: rgb(168, 251, 60);
}

h1,
h2 {
  font-family: sans-serif;
  font-size: 22px;
}

h1 {
  text-align: center;
  font-size: 4rem;
  color: white;
}

#welcome-section {
  padding-top: 400px;
  padding-bottom: 400px;
  width: 100%;
  background-color: #21d4fd;
  background: radial-gradient(
    circle at 10% 20%,
    rgb(0, 0, 0) 0%,
    rgb(64, 64, 64) 90.2%
  );
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

#welcome-section > p {
  font-size: 2rem;
  color: rgb(168, 251, 60);
  font-style: italic;
  font-family: "Roboto", sans-serif;
}

#projects {
  scroll-margin-top: 50px;
  height: max-content;
  text-align: center;
  padding: 50px 50px;
  background: linear-gradient(
    110.1deg,
    rgb(34, 126, 34) 2.9%,
    rgb(168, 251, 60) 90.3%
  );
}

#projects-section-title {
  font-family: "Roboto", sans-serif;
  font-size: 2rem;
  font-weight: normal;
  color: rgb(0, 0, 0);
  margin: 0 auto 50px auto;
  padding-bottom: 10px;
  border-bottom: 2px solid black;
}

a {
  display: block;
  margin: 0;
}

.project-container {
  background: radial-gradient(
    circle at 10% 20%,
    rgb(0, 0, 0) 0%,
    rgb(64, 64, 64) 90.2%
  );
  margin: 0 auto;
  box-shadow: 0 0 10px rgb(0, 0, 0);
  border-radius: 10px;
  transition: transform 0.3s, filter 0.3s ease;
}

.project-container:hover {
  transform: translateY(-5px);
  filter: drop-shadow();
}

.project-tile {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 2fr));
  max-width: 1200px;
  width: 100%;
  gap: 20px;
  justify-content: center;
  margin: 0 auto;
}

.project-title {
  font-family: monospace;
  font-size: 1.3rem;
  margin: 10px auto;
  color: rgb(168, 251, 60);
}

.project-img {
  min-width: none;
  max-width: 100%;
  width: 600px;
  border-radius: 10px 10px 0 0;
  filter: brightness(90%) contrast(110%);
}

button {
  padding: 0 20px;
  margin: 50px;
  background: radial-gradient(
    circle at 10% 20%,
    rgb(0, 0, 0) 0%,
    rgb(64, 64, 64) 90.2%
  );
  border: none;
  border-radius: 5px;
  transition: filter 0.3s ease;
}

button > a {
  font-family: monospace;
  font-size: 1.3em;
  color: rgb(168, 251, 60);
}

button:hover {
  filter: brightness(70%) contrast(120%);
}

.contact > p {
  font-size: 1.5rem;
  color: rgb(168, 251, 60);
  font-style: italic;
  font-family: "Lato", sans-serif;
}

.contact-header {
  padding: 5px;
  text-align: center;
  font-size: 30px;
  color: white;
}

.contact {
  padding-top: 200px;
  padding-bottom: 200px;
  width: 100%;
  background: radial-gradient(
    circle at 10% 20%,
    rgb(0, 0, 0) 0%,
    rgb(64, 64, 64) 90.2%
  );
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.iconify {
  color: black;
  font-size: 35px;
}

.facebook,
.x,
.gmail,
.github {
  padding: 10px;
  background: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: transform 0.8s, color 0.9s ease;
}

.links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

.iconify:hover {
  background: linear-gradient(
    110.1deg,
    rgb(34, 126, 34) 2.9%,
    rgb(168, 251, 60) 90.3%
  );
  transform: rotate(360deg) scale(1.3);
  color: black;
  filter: brightness(1);
}

footer {
  background: linear-gradient(
    110.1deg,
    rgb(34, 126, 34) 2.9%,
    rgb(168, 251, 60) 90.3%
  );
  color: rgb(0, 0, 0);
  text-align: center;
  padding: 10px;
  border-top: 3px solid white;
}

@media only screen and (max-width: 950px) {
  #projects {
    height: max-content;
  }

  .project-tile {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media only screen and (max-width: 500px) {
  #welcome-section > p {
    font-size: 1.5em;
  }

  h1 {
    font-size: 3em;
  }

  #projects {
    height: fit-content;
  }

  .project-title {
    font-size: 1.1em;
  }

  .contact-header {
    font-size: 1.5em;
  }

  #projects-section-title {
    font-size: 1.3em;
  }

  .contact > p {
    font-size: 1em;
  }

  .links {
    gap: 2.5px;
  }

  .facebook,
  .x,
  .gmail,
  .github {
    height: 40px;
    width: 40px;
  }
}
