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

html {
  font-size: 62.5%;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: #fcfcfc;
  color: #252525;
  padding: 2rem 5rem;
}

/* color
#61a0d7
#a5d0ef
#E8940E
#1D0BBC */

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding: 1rem;
  box-shadow: 0.5rem 0.8rem 1rem #e0e7ea; */
}

.nav__list--laptop {
  display: flex;
}

.nav__item {
  list-style: none;
  font-size: 1.8rem;
  margin-right: 1.5rem;
}

.nav__item:last-child {
  margin-right: 0;
}

.nav__logo {
  width: 10rem;
}

.hidden {
  opacity: 0;
}

.disable {
  display: none;
}

/* Mobile navigation */
.nav__icon {
  display: none;
  color: inherit;
  width: 8rem;
  height: 8rem;
  position: fixed;
  top: 2.5rem;
  right: 2.5rem;
  z-index: 1;
}

.nav__icon-svg__close {
  position: fixed;
  width: 8rem;
  height: 8rem;
  top: 2.5rem;
  right: 2.5rem;
}

@media (max-width: 460px) {
  .body {
    position: relative;
  }
  .nav {
    display: inline-block;
  }

  .nav__list--laptop {
    display: none;
  }

  .nav__list--mobile {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .nav__background {
    position: fixed;
    top: 0;
    left: 0;
    background-image: linear-gradient(#a5d0ef, #dcf0ff);
    height: 100vh;
    width: 100vh;
  }

  .nav__icon {
    display: inline-block;
  }
}

/* Header */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  height: 50rem;
}
.heading-primary {
  font-size: 5rem;

  background-image: linear-gradient(to right, #1d0bbc, #37b9ed);
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.text-primary {
  font-size: 1.8rem;
}

.header__img {
  width: 30rem;
}

/* Main: about */
.about {
  padding: 6rem 4rem;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-image: url(/wave.svg);
  height: 80rem;
  display: flex;
  align-items: center;
  margin-bottom: 5rem;
}

.about__container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 2fr;
  gap: 5rem 2rem;
}

.about__text-container {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
}

.heading-secondary {
  font-size: 4rem;
}

.about__btn-container {
  grid-column: 2 /3;
  grid-row: 2 /3;
}

.btn,
.btn:visited {
  text-decoration: none;
  border-radius: 10rem;
  color: #1d0bbc;
  text-transform: uppercase;
  transition: all 0.5s;
}

.btn--medium {
  border: 2px solid #1d0bbc;
  padding: 1.5rem 3rem;
  font-size: 1.6rem;
}

.btn--small {
  border: 1px solid #1d0bbc;
  padding: 0.5rem 1rem;
  font-size: 1.5rem;
}

.btn--small:first-child {
  margin-right: 0.8rem;
}

.btn:hover {
  background-color: #1d0bbc;
  color: #f3f3f3;
}

.about__image-container {
  position: relative;
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  margin-left: 5rem;
}

.about__image {
  width: 26rem;
  position: absolute;
}

.about__image--1 {
  top: 0;
  left: 0;
  z-index: 1;
}

.about__image--2 {
  top: 2rem;
  left: 23rem;
}

.about__image--3 {
  top: 15rem;
  left: 10rem;
  z-index: 2;
}

/* Skill */
.skill {
  display: flex;
  justify-content: center;
  column-gap: 1rem;
}

.skill__chip {
  /* color: #06563a; */
  color: #94008f;
  border: 1px solid #94008f;

  border-radius: 10rem;
}

.skill__chip--medium {
  padding: 0.8rem 1.5rem;
  font-size: 1.8rem;
}

/* Footer */
.footer {
  height: 30rem;
  padding-top: 15rem;
  position: relative;
}

.footer__link-container {
  display: flex;
  justify-content: center;
  column-gap: 1rem;
}

.footer__link--icon {
  width: 2.5rem;
}

.link,
.link:visited {
  font-size: 2rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.5s;
}

.link:hover {
  color: #94008f;
}

.copyright {
  font-size: 1.4rem;
  text-align: center;
  margin-top: 3rem;
  position: absolute;
  left: 50%;
  bottom: 30;
  transform: translateX(-50%);
}

.icon--heart {
  width: 1.62rem;
  vertical-align: text-top;
}

/* Responsive web */
@media (max-width: 1050px) {
  body {
    padding: 2rem 3rem;
  }

  .about__container {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2rem;
  }

  .about__text-container {
    grid-column: 1 / 4;
    grid-row: 1 / 2;
  }

  .about__image-container {
    display: flex;
    position: static;
    grid-column: 1 / 4;
    grid-row: 2 / 3;
    margin-left: 0;
  }

  .about__image {
    position: static;
    width: 33.33%;
  }

  .about__btn-container {
    grid-column: 1 / 4;
    grid-row: 3 / 4;
    justify-self: center;
  }
}

/* Project page */
.header__project {
  margin-top: 5rem;
  margin-bottom: 3rem;
}

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

.main__project {
  max-width: 140rem;
  margin: 0 auto;
}
.project {
  display: flex;
  justify-content: conter;
  gap: 1rem 3rem;
}

.project__box {
  display: flex;
  flex-direction: column;
  width: 40rem;
  box-shadow: 8px 8px 15px #ededed;
  border-radius: 1rem;
  padding: 3rem;
}

.project__image-box {
  width: 100%;
  margin-bottom: 1.5rem;
}

.project__img {
  display: inline-block;
  width: 100%;
  margin-bottom: 1rem;
}

.heading-tertiary {
  font-size: 1.8rem;
  font-weight: 700;
  color: #626262;
}

.skill__project {
  display: flex;
  justify-content: flex-start;
  column-gap: 0.6rem;
}

.skill__chip--small {
  padding: 0.3rem 0.7rem;
  font-size: 1rem;
}

.project__text {
  margin-top: 1rem;
  margin-bottom: 3rem;
}

.project__link {
  display: flex;
  justify-content: center;
}

.project__item {
  text-decoration: none;
  font-size: 1.6rem;
  color: inherit;
}

.project__item:first-child {
  margin-right: 0.5rem;
}

@media (max-width: 860px) {
  .header {
    flex-wrap: wrap;
    gap: 0;
  }

  .header__text-box {
    text-align: center;
  }

  .about {
    height: 60rem;
  }
  .about__container {
    display: block;
  }
  .about__text-container {
    margin-bottom: 3rem;
  }
  .about__image-container {
    display: none;
  }

  /* Project */
  .project {
    flex-direction: column;
    align-items: center;
    gap: 5rem 0;
  }
}

@media (max-width: 460px) {
  .about {
    height: 80rem;
  }
  .skill {
    flex-wrap: wrap;
  }
}
