* {
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  font-family: "DM sans", sans-serif;
  background-color: #fff2eb;
  font-size: clamp(1rem, 3vw, 1.125rem);
}

h1,
h2,
h3 {
  font-family: "Poppins", sans-serif;
}

p {
  margin-top: 0;
}

h1 {
  padding: 1rem;
  margin: 0;
  font-weight: 600;
  text-align: center;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
}

h2 {
  font-size: clamp(1.125rem, 5vw, 1.875rem);
}

h3 {
  font-size: clamp(1.125rem, 5vw, 1.5rem);
}
.line-header {
  display: flex;
  align-items: center;
  text-align: center;
  padding-top: 3rem;
}
.line-header:before,
.line-header:after {
  content: "";
  width: 60%;
  border-bottom: 1px solid black;
  margin: 0 0.5rem;
}

main {
  max-width: 1200px;
  margin: 0 auto;
}

header,
footer {
  background-image: radial-gradient(
    170.62% 50% at 50% 50%,
    rgba(204, 176, 176, 0.56) 0%,
    rgba(229, 198, 198, 0.37) 47.12%,
    rgba(255, 220, 220, 0.18) 100%
  );
}

header {
  height: 35vh;
  margin-bottom: 1rem;
}

.header-content {
  max-width: 1700px;
  margin: 0 auto;
}

.header-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 20vh;
}

.header-heading h2 {
  order: 1;
  margin-bottom: 0;
  font-style: italic;
  font-weight: 500;
}

.header-heading h1 {
  order: 2;
  padding: 0;
}

footer {
  padding: 2rem 4rem;
  text-align: center;
}

ul {
  display: flex;
  justify-content: space-evenly;
  padding: 0;
  padding-top: 2rem;
  margin: 0;
}

li {
  list-style: none;
}

li:hover {
  text-decoration: underline;
  cursor: pointer;
}

.logo {
  width: 2.5rem;
  height: 2.5rem;
  margin: 1rem 0 0 1rem;
}

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

img {
  max-width: 100%;
  height: auto;
}

.project-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-card {
  background-color: #f2e6e0;
  padding: 1rem 1rem;
  border-radius: 5%;
}

.project-card img {
  border-radius: 5%;
}

.button-links {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  width: max-content;
}

.downloads {
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

.button-links a {
  text-decoration: none;
  color: black;
  font-weight: 500;
  background-color: #ffdddd;
  border: solid 1px;
  border-radius: 0.9rem;
  padding: 0.2rem 0.4rem;
}

.button-links a:hover {
  background-color: #ccb0b090;
}

.about-section,
.contact-section,
.project-section {
  margin: 0 1rem;
  padding: 3rem 0;
  max-width: 1200px;
}

.about-info img {
  width: 100%;
  height: 100%;
  background-color: #ccb0b090;
  position: absolute;
  object-fit: cover;
  border-radius: 50%;
}

.img-wrapper {
  width: 90%;
  padding-bottom: 90%;
  height: 0;
  position: relative;
  margin: 1rem;
}

.contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-section a,
.email {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: black;
  margin-bottom: 1.5rem;
}

.contact-section p {
  margin: 0;
}

.scroll-up {
  display: block;
  margin: 0 auto;
  margin-bottom: 2rem;
  background-color: #ffdddd;
  border-radius: 50%;
  height: 2.5rem;
  width: 2.5rem;
  animation: pulse 1.5s infinite;
  cursor: pointer;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@media (min-width: 600px) {
  main {
    width: 80%;
  }
}

@media (min-width: 768px) {
  main {
    width: 100%;
  }
  .project-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .about-info {
    margin: 0 8rem;
  }
  .contact-section {
    flex-direction: row;
    justify-content: center;
    gap: 4rem;
    font-size: large;
  }
  .contact-section a,
  .email {
    font-size: 1.5rem;
  }
}

@media (min-width: 992px) {
  header {
    height: 60vh;
  }
  ul {
    justify-content: flex-end;
    gap: 4rem;
    padding: 2rem 12rem;
  }
  .header-heading {
    height: 30vh;
    align-items: flex-start;
    margin-left: 20rem;
  }
  .about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 0 4rem;
    align-items: center;
    margin-bottom: 2rem;
  }
  .about-info p {
    line-height: 2rem;
  }
  .downloads {
    flex-direction: row;
    gap: 2rem;
  }
  nav {
    flex-direction: row;
    justify-content: space-between;
    padding-top: 2rem;
  }

  .logo {
    margin-left: 5rem;
    height: 3rem;
    width: 3rem;
  }
}
