@import url("https://fonts.googleapis.com/css2?family=Ubuntu+Mono:wght@400;700&family=Ubuntu:wght@500&display=swap");

:root {
  // colors
  --neutral-100: #fff;
  --neutral-500: #b1b1b1;
  --black-100: #08080a;
  --black-500: #03111c;
  --pink-500: #dc3545;

  //fonts
  --ubuntuMono: "Ubuntu Mono", monospace;
  --ubuntu: "Ubuntu", sans-serif;
}

*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
}

body {
  font-family: var(--ubuntuMono);
  background-color: var(--black-500);
  color: var(--neutral-100);
}

li {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--neutral-100);
}

img {
  object-fit: cover;
}

h1,
h2,
h3,
p {
  font-size: 1rem;
}

// header
.logo {
  h1 {
    display: inline-block;
    font-size: 2rem;
    position: relative;
    &::after {
      content: "";
      position: absolute;
      top: 50%;
      right: -0.5rem;
      translate: 0 -50%;
      width: 2rem;
      aspect-ratio: 1/1;
      background-color: var(--pink-500);
      border-radius: 10rem;
      z-index: -1;
    }
  }
}

.btn-register,
.btn-apply {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 0.5rem;
  background-color: var(--pink-500);
  padding: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  transition: all 0.4s ease-in-out;

  img {
    width: 1.5rem;
  }

  span {
    display: none;
    font-size: 1.3rem;
  }

  &:hover,
  &:focus {
    scale: 1.09;
  }
}

.main-header {
  &-container {
    margin: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .navbar {
    position: absolute;
    top: 5rem;
    right: 1rem;
    background-color: var(--neutral-100);
    padding: 1rem 2.8rem;
    translate: 0 -400px;
    z-index: 999;
    transition: all 1s ease-in-out;
    border-radius: 0.5rem;
    &-links {
      display: flex;
      align-items: center;
      flex-direction: column;
      gap: 2rem;

      li {
        font-size: 1.4rem;

        a {
          color: var(--black-500);
          font-weight: 700;
          &:hover,
          &:focus {
            opacity: 80%;
          }
        }
      }
    }

    &-btns {
      display: flex;
      align-items: center;
      flex-direction: row;
      a {
        gap: 1rem;
        padding: 1em 1.5em;
      }
    }
  }

  .navbar.active {
    translate: 0 0;
  }
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  cursor: pointer;

  .line {
    width: 2rem;
    height: 0.3rem;
    background-color: var(--neutral-100);
    opacity: 80%;
    border-radius: 50px;
    transition: all 0.8s ease-in-out;
    transform-origin: 9px 2px;

    &-2 {
      opacity: 50%;
    }
  }
}

.hamburger.active {
  .line {
    &-2 {
      display: none;
    }

    &-1 {
      rotate: 405deg;
    }

    &-3 {
      rotate: -405deg;
    }
  }
}

// ----- hero ------

.btn-apply {
  width: max-content;
  margin-inline: auto;
  font-size: 1.5rem;
  padding: 1rem 2rem;
}

.hero {
  margin-top: 6rem;
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  min-height: 82vh;
  gap: 3rem;

  .waviy {
    font-size: 2rem;
  }

  &-text {
    place-self: center;
    text-align: center;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;

    h1 {
      font-size: 2.5rem;
      line-height: 1.5;
    }
    p {
      line-height: 1.5;
      font-size: 1.8rem;
      color: var(--neutral-500);
    }
  }

  &-image {
    padding-inline: 1rem;
    width: 100%;
    height: 100%;
    max-width: 1100px;
    max-height: 500px;

    img {
      box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
      border-radius: 1rem;
      width: 100%;
      height: 100%;
    }
  }
}

// ---- footer -----

footer {
  background: #040c12;

  .footer-container {
    padding: 3em 2em;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;

    .footer-container-links,
    .follow-container {
      width: calc(100% / 2 - 10px);

      h3 {
        font-size: 1.5rem;
        margin-bottom: 1em;
      }

      li {
        margin: 1.2em 0;
        a {
          display: block;
          font-size: 1.5rem;
        }
      }
    }
  }

  .copyright {
    font-size: 1.5rem;
    padding: 1rem 0;
  }
}

.copyright {
  font-size: 1rem;
  text-align: center;
  color: var(--neutral-500);
  a {
    color: var(--pink-500);
    font-weight: 700;
  }
}

@media (min-width: 610px) {
  .btn-register {
    padding: 0.5rem 1.5rem;
    span {
      display: inline-block;
    }
  }

  .main-header {
    &-container {
      margin: 1.5rem;
    }

    .navbar {
      right: 2rem;
    }
  }

  .hero {
    &-text {
      h1 {
        font-size: 3rem;
      }
      p {
        font-size: 1.4rem;
        padding-inline: 2rem;
      }
    }
  }

  .footer-container {
    &-links {
      li {
        a {
          font-size: 1.2rem;
        }
      }
    }
  }
}

@media (min-width: 1026px) {
  .main-header {
    &-container {
      margin: 2rem 4rem;
    }

    .navbar {
      position: static;
      translate: 0 0;
      background-color: transparent;
      transition: 0;
      &-links {
        display: flex;
        align-items: center;
        flex-direction: row;
        gap: 2rem;

        li {
          font-size: 1.2rem;
          font-weight: 400;

          a {
            color: var(--neutral-100);
            &:hover,
            &:focus {
              opacity: 80%;
            }
          }
        }
      }
    }
    .hamburger {
      display: none;
    }
  }

  .hero {
    &-text {
      h1 {
        font-size: 4.5rem;
      }

      p {
        font-size: 1.4rem;
        padding-inline: 4rem;
        width: 70%;
        margin: 0 auto;
      }
    }
  }

  .footer-container {
    &-links {
      li {
        a {
          font-size: 1.2rem;
        }
      }
    }
  }
}
