:root {
  --tan: #e1d1c3;
  --section-padding: clamp(20px, 5vw, 80px);
}

* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background-color: #f8f8f8;
}

img {
  max-width: 100%;
}

.link-button {
  display: inline-block;
  padding: 10px 50px;
  background-color: #004b84;
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
  text-align: center;
  font-weight: bold;
  font-size: 24px;
  margin-top: 24px;
}

.button-container {
  text-align: center;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px var(--section-padding);
  background-color: var(--tan);

  .hamburger {
    display: none;
  }

  nav {
    display: flex;
    gap: 20px;
    font-size: 26px;

    li {
      list-style: none;
      display: inline-block;
      padding: 10px 20px;
    }

    a {
      text-decoration: none;
      color: #333;
      font-weight: bold;
    }
  }
}

main {
  background: white;

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

  .main {
    display: grid;
    grid-template-columns: 1fr 50%;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    justify-self: center;
  }

  .right {
    display: grid;
    grid-template-rows: auto auto 1fr;
    align-items: stretch;
    height: 100%;
    padding: 200px 0;

    & > :last-child {
      align-self: end;
    }

    h2 {
      font-size: 36px;
    }

    span {
      font-size: 24px;
      color: #555;
    }
  }

  section {
    padding: var(--section-padding);
  }
}

.problems {
  font-size: 24px;
  font-style: italic;

  ul {
    display: grid;
    gap: 10px;
  }
}

.quote {
  padding: 40px;
  background: var(--tan);
  display: grid;
  place-items: center;
  gap: 20px;
  font-size: 24px;
}

.help {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 50px;
  align-items: center;

  h2 {
    font-size: 30px;
  }

  & > div {
    display: flex;
    flex-direction: column;

    & ul {
      flex: 1;
      display: grid;
      font-size: 20px;
      gap: 10px;
    }
  }
}

.about {
  display: grid;
  grid-template-columns: 65% 1fr;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 100px;

  * {
    margin: 0;
  }

  p {
    margin: 20px 0;
  }

  h2 {
    font-size: 36px;
  }

  & > div {
    display: grid;
    height: 100%;
    padding: 50px 0;
    font-size: 20px;

    & > :last-child {
      align-self: end;
    }
  }
}

.testimonials {
  padding: 40px;
  display: grid;
  gap: 20px;

  h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
  }

  > div {
    display: grid;
    grid-auto-flow: column;
    width: 100%;
    align-items: center;
    justify-content: space-around;
  }

  div {
    text-align: center;
    font-style: italic;
    color: #555;
    font-size: 20px;
    gap: 24px;
  }
}

footer {
  background-color: #333;
  color: #fff;
  padding: 40px;
  text-align: center;
}

.connections {
  background-color: #f8f8f8;
  text-align: center;
  padding: 30px;

  ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
  }

  img {
    max-width: 40px;
  }
}

.credentials {
  img {
    width: 200px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    margin: 0 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  }
}

@media screen and (max-width: 768px) {
  /* Header responsive - hamburger menu */
  header {
    position: relative;
    padding: 10px 20px;
  }

  header .hamburger {
    display: block;
    cursor: pointer;
    font-size: 28px;
    padding: 10px;
    background: none;
    border: none;
    color: #333;
  }

  header nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 20px;
    background-color: var(--tan);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 200px;
  }

  header nav.active {
    display: block;
  }

  header nav ul {
    flex-direction: column;
    margin: 0;
    padding: 10px 0;
  }

  header nav li {
    padding: 15px 20px;
  }

  header nav li:last-child {
    border-bottom: none;
  }

  .left-side h1 {
    font-size: 24px;
  }

  .left-side h2 {
    font-size: 18px;
  }

  /* Main section responsive */
  main .main {
    grid-template-columns: 1fr;
    padding: 20px;
    text-align: center;
  }

  main .main img {
    order: -1;
    max-width: 300px;
    margin: 0 auto;
  }

  main .right {
    padding: 10px 0 40px;
    text-align: center;
  }

  main .right h2 {
    font-size: 28px;
    margin-top: 0;
  }

  main .right span {
    font-size: 20px;
  }

  .help ul {
    list-style-type: none;
    padding: 0;
  }

  /* About section responsive */
  .about {
    grid-template-columns: 1fr;
    padding: 40px 20px;
    text-align: center;
  }

  .about img {
    order: -1;
    max-width: 300px;
    margin: 0 auto 20px auto;
  }

  .about > div {
    padding: 20px 0;
  }

  .about h2 {
    font-size: 28px;
  }

  .help {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .help img {
    max-width: 250px;
    margin: 0 auto;
  }

  .testimonials > div {
    grid-auto-flow: row;
    gap: 30px;
  }

  .testimonials div {
    font-size: 18px;
    padding: 0 10px;
  }

  .problems {
    font-size: 20px;
    padding: 20px;
  }

  .quote {
    padding: 30px 20px;
    font-size: 20px;
    text-align: center;
  }

  /* Connections responsive */
  .connections {
    padding: 20px;
  }

  .connections ul {
    gap: 15px;
  }

  /* Credentials responsive */
  .credentials img {
    width: 150px;
    margin: 10px;
  }

  /* Button responsive */
  .link-button {
    font-size: 20px;
    padding: 12px 30px;
  }
}

@media screen and (max-width: 480px) {
  /* Extra small screens */
  .left-side h1 {
    font-size: 20px;
  }

  .left-side h2 {
    font-size: 16px;
  }

  main .right h2 {
    font-size: 24px;
  }

  main .right span {
    font-size: 18px;
  }

  .about h2 {
    font-size: 24px;
  }

  .help h2 {
    font-size: 24px;
  }

  .testimonials h2 {
    font-size: 24px;
  }

  .testimonials div {
    font-size: 16px;
  }

  .problems {
    font-size: 18px;
  }

  .quote {
    font-size: 18px;
    padding: 20px 15px;
  }

  .link-button {
    font-size: 18px;
    padding: 10px 25px;
  }

  .credentials img {
    width: 120px;
    margin: 5px;
  }

  .connections img {
    max-width: 35px;
  }

  section {
    padding: 20px 15px !important;
  }
}
