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

/* remove bounce on scroll */
html {
  overflow: hidden;
  height: 100%;
}
body {
  height: 100%;
  overflow: auto;
  margin: 0;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}
.bg {
  background-color: #e7f3f3;
}

h1 {
  font-family: "Merriweather", serif;
  font-size: 48px;
  line-height: 1em;

  @media screen and (min-width: 640px) {
    font-size: 60px;
  }
}

h2 {
  font-family: "Merriweather", serif;
  font-size: 24px;
  line-height: 1.1em;
  margin-bottom: 24px;

  @media screen and (min-width: 640px) {
    font-size: 28px;
  }
}

h3 {
  font-family: "Merriweather", serif;
  font-size: 20px;
  line-height: 1.3em;

  @media screen and (min-width: 640px) {
    font-size: 24px;
  }
}

p {
  font-family: "Fira Sans", sans-serif;
  font-size: 16px;
  line-height: 1.35em;
}

#cta > div {
  height: 100%;
  position: relative;
}

/* Navigation bar */
nav {
  position: absolute;
  right: 0;
}
nav a {
  text-decoration: none;
  font-family: "Fira Sans", sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: black;
  margin-right: 20px;
  position: relative;
}
nav a:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: black;
  visibility: hidden;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transition: all 0.3s ease-in-out 0s;
  transition: all 0.3s ease-in-out 0s;
}
nav a:hover::before {
  visibility: visible;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

/* CTA section */
#cta {
  height: 100vh;
  position: relative;
  background-image: url("images/trianglify.svg");
  background-repeat: no-repeat;
  background-size: cover;
}
.tagline {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tagline h1 {
  margin-bottom: 16px;
}
.tagline p {
  font-size: 24px;

  @media screen and (min-width: 640px) {
    font-size: 28px;
  }
}
.tagline #changing {
  font-style: italic;
  font-weight: 600;
}

/* about section */
#about .content {
  display: flex;
  flex-direction: column;
  column-gap: 32px;

  @media screen and (min-width: 640px) {
    flex-direction: row;
  }
}

#about .content > div {
  flex-basis: 50%;
  line-height: 1.6;
}

#about .content p {
  margin-bottom: 16px;
}

#about .content img {
  display: block;
  width: 100%;
}

/* skills section */
#skills h3 {
  margin-bottom: 16px;
}
#skills > div {
  clear: both;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;

  @media screen and (min-width: 640px) {
    grid-template-columns: 1fr 1fr;
  }
}

#skills .logos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

#skills .logos img {
  height: 50px;

  @media screen and (min-width: 640px) {
    height: 70px;
  }
}

#skills .logos .rect {
  width: 150px;
}

/* portfolio section */
#portfolio h2 {
  border-bottom: 2px solid #eee;
}
#portfolio h3 {
  margin-bottom: 16px;
}
.work {
  display: flex;
  flex-direction: column;
  column-gap: 32px;
  row-gap: 16px;
  margin-bottom: 60px;

  @media screen and (min-width: 640px) {
    flex-direction: row;
  }
}
.work.reverse {
  @media screen and (min-width: 640px) {
    flex-direction: row-reverse;
  }
}
.work > div {
  flex-basis: 100%;
}
.work > div > img {
  width: 100%;
}
.work > div > p {
  margin-bottom: 12px;
}
.buttons {
  display: flex;
  column-gap: 16px;
  margin-top: 24px;
}
.button {
  border: 2px solid #008080;
  color: #008080;
  font-size: 1em;
  text-decoration: none;
  padding: 8px;
  display: inline-block;
}
.button:hover {
  background-color: #008080;
  color: white;
  cursor: pointer;
}
.button img,
.button p {
  display: inline-block;
  vertical-align: middle;
  height: 20px;
  line-height: 20px;
  margin: 0 5px;
  font-weight: normal;
}

/* professional section */
#professional h2 {
  border-bottom: 2px solid #eee;
}
#professional .subtitle {
  display: flex;
}
#professional .subtitle__vertical {
  border-left: 4px solid #008080;
  margin-right: 8px;
}
.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 16px;
  margin: 32px 0;

  @media screen and (min-width: 640px) {
    grid-template-columns: 1fr 1fr;
  }

  @media screen and (min-width: 1048px) {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.projects a {
  color: black;
  font-size: 17px;
  text-decoration: none;
}
.projects a img {
  width: 100%;
  display: block;
  margin-bottom: 8px;
}
.projects a:hover img {
  opacity: 0.8;
}

/* contact footer section */
#contact h3 {
  margin-bottom: 16px;
}
#contact .social {
  display: flex;
  margin-top: 16px;
  gap: 16px;
}
#contact img {
  display: block;
  height: 30px;
  opacity: 0.8;
}
#contact img:hover {
  opacity: 1;
}
