body {
  margin: 0px;
  padding: 0px;
  background-image: url(images/backdrop.jpg);
  background-size: cover;
  color: white;
  font-family: "K2D", sans-serif;
  font-weight: 400;
  font-style: normal;
}

a {
  text-decoration: none;
  color: white;
  font-size: 1.3rem;
  transition: color 0.5s;
}

a:hover {
  color: blueviolet;
}

p {
  font-size: 1.3rem;
  text-align: justify;
}
header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin: 0px 120px;
  padding-top: 40px;
}
.toggle-button {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
}

.toggle-button .bar {
  height: 3px;
  width: 100%;
  background-color: #fff;
  border-radius: 10px;
}
ul {
  display: flex;
  flex-direction: row;
  padding: 0px;
  list-style: none;
  margin: 0px;
}

li {
  margin-left: 80px;
}

h1,
h2,
h3 {
  font-family: "Ubuntu", sans-serif;
  font-weight: 400;
  font-style: normal;
}
h1 {
  font-size: 3rem;
  font-weight: 300;
  margin: 0px;
}

h2 {
  font-size: 3rem;
}

h3 {
  font-size: 1.6rem;
}

.home img,
.about img {
  width: 400px;
}

section {
  margin: 40px 120px;
}

section h2 {
  align-self: center;
}

.home {
  display: flex;
  justify-content: space-between;
  height: 100vh - 100px;
}

.home div {
  width: 700px;
}

.home-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.home-content h2 {
  font-size: 4rem;
  text-align: right;
  margin: 0px;
}

.home-content p {
  text-align: justify;
  font-size: 1.3rem;
}

.portfolio {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project {
  display: flex;
  margin: 30px 0px;
  justify-content: space-between;
}

.project img {
  width: 350px;
  height: 200px;
}
.project-content {
  text-align: right;
  max-width: 800px;
}

.project-content h3 {
  margin-top: 0px;
}

.project-content p {
  margin-bottom: 0px;
}

.align-left h3 {
  text-align: left;
}

.about {
  display: flex;
  flex-direction: column;
}
.about div {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.about-content {
  display: flex;
  flex-direction: column;
  width: 600px;
  align-self: center;
}

.contact {
  display: flex;
  flex-direction: column;
}

.contact div {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.contact-content p {
  width: 600px;
}

form {
  display: flex;
  flex-direction: column;
}

form div {
  margin: 20px 0px;
}
input,
textarea {
  width: 150px;
  background-color: rgba(0, 0, 0, 0);
  color: white;
  border: white 2px solid;
  padding: 7px;
  border-radius: 5px;
}

.input-name input {
  margin-left: 40px;
}

.required-asterisk {
  color: red;
}

.input-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.input-contact div input {
  margin-left: 40px;
}

.message {
  display: flex;
  flex-direction: column;
}

.message textarea {
  margin: 20px auto;
  margin-left: 20px;
  width: 80%;
  height: 100px;
}

.submit {
  margin: 0px auto;
}

.submit button {
  background-color: rgba(0, 0, 0, 0);
  color: white;
  border: white 2px solid;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
  transition: color 0.5s, background-color 0.5s, border 0.5s;
}
.submit button:hover {
  background-color: white;
  color: blueviolet;
  border: rgba(0, 0, 0, 0) 2px solid;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
}
form {
  font-size: 1.3rem;
}
button {
  font-size: 1rem;
}

@media (max-width: 1600px) {
  .project-content {
    max-width: 600px;
  }

  form {
    display: none;
  }
}

@media (max-width: 1280px) {
  header {
    margin: 0px 40px;
    padding-top: 20px;
  }

  li {
    margin-left: 40px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  section {
    margin: 40px;
  }

  .home {
    flex-direction: column;
    height: auto;
  }

  .home div {
    width: 100%;
  }

  .home img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
  }

  .home-content {
    margin: 20px auto;
  }

  .home-content h2 {
    font-size: 2.5rem;
    text-align: right;
    margin: 20px auto;
  }

  .project {
    flex-direction: column;
    align-items: center;
  }

  .project-content {
    text-align: center;
    max-width: 100%;
    margin-top: 40px;
  }

  .align-left h3 {
    text-align: center;
  }
  .align-left {
    order: 1;
  }

  .about div {
    flex-direction: column-reverse;
    align-items: center;
    margin-top: 0px;
  }

  .about img {
    max-height: 300px;
    object-fit: cover;
    margin-bottom: 40px;
  }

  .about-content {
    width: 100%;
    margin-top: 50px;
  }

  .contact div {
    flex-direction: column;
  }

  .contact-content p {
    width: 100%;
  }
  form {
    margin: 0px auto;
    display: flex;
  }
  form div {
    margin: 0px;
  }

  .input-name input {
    margin: 20px 0px;
    padding-right: 120px;
  }
  .input-name {
    flex-direction: column;
    align-items: baseline;
    width: fit-content;
  }
  .input-contact {
    flex-direction: column;
    align-items: baseline;
    width: fit-content;
  }

  .input-contact div input {
    margin: 20px auto;
    padding-right: 120px;
  }
  .message {
    flex-direction: column;
    align-items: baseline;
    width: fit-content;
  }
  .message textarea {
    margin: 30px 0px;
    width: 260px;
  }
}

@media (max-width: 500px) {
  .about-image {
    display: none;
  }

  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    margin: 0px;
  }
  .toggle-button {
    display: flex;
  }
  .nav-links {
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  ul {
    display: flex;
    flex-direction: column;
    padding: 0px;
    list-style: none;
    margin: 0px;
  }

  li {
    margin-top: 10px;
    margin-left: 0px;
  }
}
