@import url("https://fonts.googleapis.com/css2?family=Barlow&family=Barlow+Condensed:wght@400;700&display=swap");
* {
  box-sizing: border-box;
}
:root {
  --very-dark-blue: hsl(230, 29%, 20%);
  --dark-grayish-blue: hsl(230, 11%, 40%);
  --grayish-blue: hsl(231, 7%, 65%);
  --light-grayish-blue: hsl(207, 33%, 95%);
}

body {
  background-color: #fff;
  color: var(--very-dark-blue);
  font-family: "Barlow", sans-serif;
  font-size: 1.2rem;
  overflow-x: hidden;
}
body::after {
  background-color: var(--light-grayish-blue);
  border-bottom-left-radius: 100px;
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  height: 50vh;
  width: 50vw;
  z-index: -1;
}
h1,
h2,
button,
nav a {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}

h1 {
  font-size: 4rem;
  margin: 0;
  line-height: 1;
}

h3 {
  color: var(--grayish-blue);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 1.2rem;
}
h3 span {
  background-color: var(--very-dark-blue);
  color: #fff;
  border-radius: 50px;
  padding: 5px 15px;
  margin: 0 1rem 0 0;
}

img {
  max-width: 100%;
}
p {
  color: var(--dark-grayish-blue);
  font-size: 1.4rem;
}

button {
  background-color: hsl(0, 100%, 68%);
  border: 0;
  color: #fff;
  border-radius: 10px;
  font-size: 1.3rem;
  padding: 15px 30px;
  margin-right: 40px;
}

.container {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 100%;
  width: 1200px;
}

.container > div {
  flex: 0.8;
}
.container > div:first-child {
  flex: 1.2;
}

.flex {
  display: flex;
  align-items: center;
  margin-top: 100px;
}
nav {
  margin: 40px 0;
}

.hamburger {
  display: none;
}

ul {
  display: flex;
  padding: 0;
  list-style-type: none;
}

ul li {
  margin-left: 40px;
}
ul li.active {
  position: relative;
  margin-left: 80px;
}

ul li a {
  color: var(--very-dark-blue);
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
}
ul li.active a {
  color: var(--grayish-blue);
}
ul li.active::before {
  border-radius: 50%;
  background-color: var(--grayish-blue);
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-40px, -50%);
  opacity: 0.5;
  height: 8px;
  width: 8px;
}
main {
  display: flex;
  align-items: center;
  height: calc(100vh - 250px);
}

.illustration {
  transform: scale(2) translateX(25%);
}

@media screen and (max-width: 760px) {
  body {
    font-size: 1rem;
    overflow-x: hidden;
  }
  body::after {
    right: -9px;
    height: 48vh;
  }
  body nav {
    margin-bottom: 4rem;
  }
  h1 {
    font-size: 2.6rem;
    width: 317px;
    margin: 1.6rem 0;
  }
  h3 {
    line-height: 1.5;
    font-size: 12px;
  }

  p {
    width: 333px;
  }
  .hamburger {
    display: block;
    background-color: transparent;
    cursor: pointer;
    border: none;
    position: relative;
    z-index: 99;
    margin-right: -40px;
  }

  .hamburger:hover {
    transform: scale(1);
  }
  .hamburger:focus {
    outline: none;
  }

  .icon-close {
    display: none;
  }

  .show-nav .icon-close {
    display: block;
  }

  .show-nav .icon-hamburger {
    display: none;
  }
  ul {
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    top: 100px;
    left: 20px;
    width: calc(100% - 40px);
    z-index: 100;
    position: absolute;
    flex-direction: column;
    margin: 0 auto;
    transform: translateX(120%);
    transition: transform 0.4s ease;
  }
  .show-nav ul {
    transform: translateX(0);
  }

  ul li {
    margin: 20px 0;
    text-align: center;
  }

  ul li.active {
    margin: 40px 0 20px;
  }

  ul li.active::before {
    top: 0;
    left: 0;
    transform: translate(0, -25px);
    height: 1px;
    width: 100%;
  }

  .mobile-reverse {
    flex-direction: column-reverse;
  }

  .flex {
    margin-top: 50px;
  }

  .illustration {
    transform: scale(1) translateX(15%);
    margin-bottom: 70px;
  }

  button {
    padding: 5px 30px;
  }
}
