:root {
  --color-primary: #19a5da;
  --color-primary-lightest: #f1fafd;
  --color-primary-dark: #1484ae;

  --color-secondary-light: #e8fbf7;
  --color-secondary: #19daad;
  --color-secondary-med: #17c49c;
  --color-secondary-dark: #129979;
  --color-secondary-darker: #074134;

  --color-light-gray: #999;
  --color-med-gray: #666;
  --color-dark-gray: #333;
  --color-dark-gray-trans: rgba(34, 34, 34, 0.6);
  --color-darkest-gray: #222;
  --color-black-shadow: rgba(0, 0, 0, 0.075);
  --color-white: #fff;

  --mar-bot-small: 0.8rem;
  --mar-bot-med: 2.4rem;

  --section-padding: 8rem 0;

  --transition-quick: all 0.1s linear;
  --transition-4: all 0.4s;
  --transition-6: all 0.6s;

  --border-radius-8: 8px;
  --border-radius-5: 5px;
}

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

html {
  font-size: 62.5%;
}

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-dark-gray);
}

/* ******* General ******* */

.secondary-heading {
  font-size: 3rem;
  font-weight: 700;
  font-family: 'Roboto Slab', serif;
  color: var(--color-secondary-darker);
  text-align: center;
  margin-bottom: 6rem;
}

.tertiary-heading {
  font-size: 3.2rem;
}

.btn {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  text-decoration: none;
  transition: var(--transition-quick);
}

.btn-primary,
.btn-secondary {
  border-radius: var(--border-radius-8);
}

.btn-primary {
  color: #fff;
  background-color: var(--color-secondary);
}

.btn-primary:hover {
  color: #fff;
  background-color: var(--color-secondary-med);
}

.link {
  color: inherit;
  font-family: inherit;
  text-decoration: none;
  transition: var(--transition-quick);
}

.link:hover {
  color: var(--color-secondary);
}

.background-circle {
  position: absolute;
  opacity: 0.4;
  z-index: -1;
}

.secondary-heading,
.skills__grid-box,
.skill__item,
.project-box,
.about__legend,
.about__option,
.about__text,
.about__length-text,
.contact__text,
.contact__label,
.contact__btn,
.contact__btn-email {
  transition: opacity 0.4s ease, transform 0.6s ease-out;
}

/* ******* Utils ******* */
.center-section {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 4rem;
}

.transY-30 {
  opacity: 0;
  transform: translateY(30px);
}

.transY-80 {
  opacity: 0;
  transform: translateY(80px);
}

.trans-scale-0 {
  opacity: 0;
  transform: scale(0);
}

.trans-scale-2 {
  opacity: 0;
  transform: scale(0.2);
}

.trans-scale-5 {
  opacity: 0;
  transform: scale(0.5);
}

/* ******* Loading ******* */
body.is-loading {
  overflow: hidden;
}

#loading {
  position: fixed;
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--color-primary-lightest);
  z-index: 9999;
}

.wave {
  width: 5px;
  height: 100px;
  background: linear-gradient(
    45deg,
    var(--color-secondary),
    var(--color-secondary-light)
  );
  margin: 10px;
  animation: wave 1s linear infinite;
  border-radius: 20px;
}
.wave:nth-child(2) {
  animation-delay: 0.1s;
}
.wave:nth-child(3) {
  animation-delay: 0.2s;
}
.wave:nth-child(4) {
  animation-delay: 0.3s;
}
.wave:nth-child(5) {
  animation-delay: 0.4s;
}
.wave:nth-child(6) {
  animation-delay: 0.5s;
}
.wave:nth-child(7) {
  animation-delay: 0.6s;
}
.wave:nth-child(8) {
  animation-delay: 0.7s;
}
.wave:nth-child(9) {
  animation-delay: 0.8s;
}
.wave:nth-child(10) {
  animation-delay: 0.9s;
}

@keyframes wave {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}

/* ******* Header ******* */
#header {
  height: 6.8rem;
}

.header__container {
  background-color: var(--color-white);
  padding: 2rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 99;
  transition: all 0.2s linear;
}

.header-shrink {
  padding: 1.2rem 0;
  box-shadow: 0 1.2rem 3.2rem var(--color-black-shadow);
}

.nav__list {
  margin: 0 auto;
  max-width: 130rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  padding: 0 3rem;
  font-size: 2rem;
}

.nav__btn {
  padding: 0.6rem 3rem;
}

.menu__btn {
  position: absolute;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 30px;
  height: 30px;
  top: 30px;
  left: 30px;
  background: none;
  border: none;
  display: none;
  z-index: 999;
}

.menu__btn-line {
  position: absolute;
  width: 30px;
  height: 2px;
  background-color: #333;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu__btn-line:nth-child(1) {
  top: 0;
}

.menu__btn-line:nth-child(2) {
  top: 10px;
}

.menu__btn-line:nth-child(3) {
  top: 20px;
}

.menu__btn-line:nth-child(1).close {
  transform: rotate(45deg) translate(7px, 7px);
}

.menu__btn-line:nth-child(2).close {
  opacity: 0;
}

.menu__btn-line:nth-child(3).close {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ******* hero ******* */
#hero {
  padding: 12rem 0;
  background-color: var(--color-primary-lightest);
}

.hero__container {
  position: relative;
}

.hero__background-circle-sm {
  top: -35%;
  left: 45%;
  height: 80px;
  width: auto;
}

.hero__background-circle-md {
  bottom: 3%;
  right: 10%;
  height: 120px;
  width: auto;
}

.hero__background-circle-lg {
  bottom: -25%;
  left: -20%;
  height: 200px;
  width: auto;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 4rem;
  align-items: center;
}

.hero__text-container {
  position: relative;
}

.hero__heading-text {
  margin-bottom: 6rem;
}

.hero__heading {
  margin-bottom: 2rem;
  font-size: 5rem;
  color: var(--color-secondary-darker);
}

.hero__span {
  color: var(--color-secondary);
}

.hero__subheading {
  font-size: 2rem;
  width: 90%;
  line-height: 1.8;
}

.hero__btn {
  font-size: 2rem;
  padding: 0.8rem 4rem;
  display: block;
  width: fit-content;
  margin-left: 2rem;
}

.hero__image-wrapper {
  width: 43rem;
  position: relative;
}

.hero__dots-mid,
.hero__dots-bot {
  position: absolute;
  opacity: 0.6;
  width: auto;
  height: 120px;
}

.hero__dots-mid {
  top: 5%;
  right: -10%;
}

.hero__dots-bot {
  bottom: 0;
  left: -10%;
}

.hero__image {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 50%;
  background: rgb(140, 250, 224);
  background: linear-gradient(
    180deg,
    rgba(140, 250, 224, 1) 0%,
    rgba(101, 215, 189, 1) 52%,
    rgba(84, 182, 219, 1) 100%
  );
}

/* ******* Skills & Tools ******* */
#skills-tools {
  padding: var(--section-padding);
}

.skills__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2%;
}

.skills__grid-box {
  width: 32%;
  min-width: 275px;
  flex: 1;
  box-shadow: 0 0.6rem 1.2rem rgba(0, 0, 0, 0.075);
  border-radius: var(--border-radius-5);
  padding: 4rem;
}

.skills__header {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 2rem;
  color: var(--color-secondary-darker);
}

.skill__list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.skill__item {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.skill__image-wrapper {
  width: 32px;
  height: 32px;
}

.skill__name {
  font-size: 2rem;
}

.skill__image {
  width: auto;
  height: 100%;
}

/* ******* Projects ******* */
#projects {
  padding: var(--section-padding);
  background-color: var(--color-primary-lightest);
}

.projects__container {
  position: relative;
}

.project-boxes__container {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.project-box {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  box-shadow: 0 0.6rem 1.2rem rgba(0, 0, 0, 0.075);
  background-color: var(--color-white);
  border-radius: var(--border-radius-5);
  padding: 4rem 6rem;
  align-items: center;
}

.project-box:nth-child(even) {
  flex-wrap: wrap-reverse;
}

.project-box__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-box__heading {
  text-align: center;
  margin-bottom: 1rem;
}

.project-box__description {
  font-size: 1.8rem;
  margin-bottom: 3rem;
  line-height: 1.8;
  text-align: center;
}

.project-box__btns {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.project__btn {
  flex: 1;
  max-width: 18rem;
  font-size: 2rem;
  padding: 0.8rem 2rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project__image-wrapper {
  width: 50rem;
  height: auto;
}

.project__image {
  width: 100%;
}

/* ******* About ******* */
#about {
  padding: var(--section-padding);
  background-color: #fff;
}

.about__container {
  margin: 0 auto;
  max-width: 80rem;
}

.about__length-control {
  margin-bottom: 2.6rem;
}

.about__fieldset {
  border: none;
  max-width: 60rem;
  margin: 0 auto;
}

.about__legend {
  margin-bottom: 5rem;
  font-size: 2rem;
  text-align: center;
}

.about__length-options {
  display: grid;
  justify-items: center;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: 1fr 1fr;
  column-gap: 3rem;
  row-gap: 1.4rem;
}

.about__option {
  height: 30px;
  width: 30px;
  position: relative;
}

.about__label {
  cursor: pointer;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 20px;
  width: 20px;
}

.about__label::before {
  content: '';
  border: 2px solid var(--color-primary-dark);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  width: 100%;
  z-index: 1;
}

.about__label::after {
  content: '';
  width: 80%;
  height: 80%;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  position: absolute;
  opacity: 0;
}

.about__input:checked + .about__label::after {
  background-color: var(--color-secondary-med);
  opacity: 1;
  transition: opacity 0.4s ease-out;
}

.about__input {
  cursor: pointer;
  opacity: 0;
}

.about__length-text {
  font-size: 1.6rem;
  color: var(--color-dark-gray-trans);
}

.about__length-text:last-child {
  grid-column: 5;
}

.about__text {
  font-size: 1.8rem;
  margin-bottom: 8rem;
  line-height: 1.8;
}

/* ******* Contact ******* */

.contact__btns-container {
  display: flex;
  justify-content: space-around;
}

.contact__btn {
  flex: 1;
  max-width: 6rem;
}

.contact__icon {
  opacity: 0.8;
  width: 100%;
  transition: opacity 0.1s ease;
}

.contact__icon:hover {
  opacity: 0.6;
}

/* ******* Footer ******* */
.footer__container {
  background-color: var(--color-secondary-med);
  text-align: center;
  padding: 1rem 0;
}

.footer__link {
  color: #fff;
  font-size: 1.6rem;
}
