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

:root {
  --header-height: 3.5rem;

  --hue: 210;
  --first-color: hsl(var(--hue), 55%, 55%);
  --first-color-light: hsl(var(--hue), 55%, 65%);
  --first-color-alt: hsl(var(--hue), 50%, 50%);
  --title-color: hsl(var(--hue), 20%, 15%);
  --text-color: hsl(var(--hue), 10%, 40%);
  --text-color-light: hsl(var(--hue), 10%, 55%);
  --body-color: hsl(0, 0%, 98%);
  --container-color: hsl(0, 0%, 100%);

  --body-font: "Inter", sans-serif;
  --biggest-font-size: 2.75rem;
  --big-font-size: 1.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;

  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 4.5rem;
    --big-font-size: 2.5rem;
    --h1-font-size: 2rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body,
input,
textarea,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
}

input,
button,
textarea {
  border: none;
  outline: none;
}

h1, h2, h3 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

p {
  line-height: 1.6;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 2rem;
}

.section__title {
  text-align: center;
  font-size: var(--h1-font-size);
  font-weight: var(--font-bold);
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

.main {
  overflow: hidden;
}

.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: transparent;
  z-index: var(--z-fixed);
  transition: background .3s, box-shadow .3s;
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  color: var(--title-color);
  font-weight: var(--font-bold);
  font-size: var(--h2-font-size);
  letter-spacing: -0.03em;
}

.nav__toggle,
.nav__close {
  display: flex;
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
}

@media screen and (max-width: 1023px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    background-color: hsla(0, 0%, 100%, .95);
    width: 75%;
    height: 100%;
    padding: 4.5rem 0 0 3rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: right .4s;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 3rem;
}

.nav__link {
  color: var(--title-color);
  font-weight: var(--font-medium);
  transition: color .3s;
  font-size: var(--h3-font-size);
}

.nav__link:hover {
  color: var(--first-color);
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.show-menu {
  right: 0;
}

.blur-header {
  background-color: hsla(0, 0%, 100%, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.active-link {
  color: var(--first-color);
}

.home {
  position: relative;
}

.home__container {
  padding-top: 8rem;
  row-gap: 3rem;
}

.home__content {
  text-align: center;
}

.home__name {
  font-size: var(--biggest-font-size);
  font-weight: var(--font-bold);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.home__profession {
  font-size: var(--big-font-size);
  font-weight: var(--font-light);
  color: var(--text-color-light);
  margin-bottom: 2rem;
  margin-top: .5rem;
}

.home__image {
  justify-self: center;
}

.home__image img {
  width: 240px;
  border-radius: 50%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

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

.home__scroll {
  display: none;
}

.button {
  display: inline-block;
  background-color: var(--title-color);
  color: #fff;
  padding: .875rem 2rem;
  border-radius: 50px;
  font-weight: var(--font-medium);
  font-size: var(--small-font-size);
  transition: all .3s;
  letter-spacing: 0.02em;
}

.button:hover {
  background-color: var(--first-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.work {
  padding-top: 6rem;
}

.work__container {
  grid-template-columns: repeat(1, 1fr);
  justify-content: center;
  row-gap: 1.5rem;
}

.work__card {
  background-color: var(--container-color);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: all .3s;
  border: 1px solid hsl(0, 0%, 92%);
}

.work__card:hover {
  border-color: var(--first-color);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.work__img {
  margin-bottom: 1rem;
  border-radius: .75rem;
}

.work__title {
  font-size: var(--h2-font-size);
  margin-bottom: .5rem;
  font-weight: var(--font-semi-bold);
}

.work__description {
  margin-bottom: 1.25rem;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.work__button {
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
  color: var(--first-color);
  font-weight: var(--font-medium);
  font-size: var(--small-font-size);
  transition: gap .3s;
}

.work__button i {
  font-size: 1.1rem;
  transition: transform .3s;
}

.work__button:hover i {
  transform: translateX(.25rem);
}

.info__container {
  grid-template-columns: repeat(1, 1fr);
  row-gap: 1.5rem;
}

.info__card {
  background-color: var(--container-color);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  border: 1px solid hsl(0, 0%, 92%);
}

.info__image {
  width: 48px;
  margin: 0 auto 1rem;
}

.info__title {
  font-size: var(--h2-font-size);
  margin-bottom: 1rem;
  font-weight: var(--font-semi-bold);
}

.about__description {
  text-align: center;
  font-size: var(--normal-font-size);
  color: var(--text-color);
}

.about__description b {
  color: var(--title-color);
}

.experience__content {
  display: grid;
  row-gap: 1.5rem;
  text-align: left;
}

.experience__data {
  padding-left: 0;
}

.experience__year {
  display: inline-block;
  background-color: var(--body-color);
  color: var(--first-color);
  padding: .25rem .75rem;
  border-radius: 50px;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  margin-bottom: .75rem;
}

.experience__title {
  font-size: var(--h3-font-size);
  margin-bottom: .35rem;
}

.experience__description {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.skills__content {
  display: grid;
  row-gap: 1.25rem;
  text-align: left;
}

.skills__data {
  position: relative;
}

.skills__name {
  margin-bottom: .5rem;
  font-size: var(--normal-font-size);
}

.skills__number {
  position: absolute;
  right: 0;
  top: 0;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  font-weight: var(--font-medium);
}

.skills__bar {
  position: relative;
  height: 4px;
  border-radius: 2px;
  background-color: hsl(0, 0%, 92%);
}

.skills__bar::after {
  content: '';
  position: absolute;
  height: 4px;
  border-radius: 2px;
  background-color: var(--first-color);
}

.skills__html::after { width: 90%; }
.skills__js::after { width: 80%; }
.skills__react::after { width: 70%; }

.services__container {
  grid-template-columns: repeat(1, 1fr);
  row-gap: 1.5rem;
}

.services__card {
  background-color: var(--container-color);
  border-radius: 1rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border: 1px solid hsl(0, 0%, 92%);
  transition: all .3s;
}

.services__card:hover {
  border-color: var(--first-color);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.services__icon {
  display: block;
  font-size: 2rem;
  color: var(--first-color);
  margin-bottom: 1rem;
}

.services__title {
  font-size: var(--h2-font-size);
  margin-bottom: .75rem;
}

.services__description {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.contact__container {
  padding-top: 1rem;
}

.contact__form,
.contact__group {
  display: grid;
  row-gap: 1rem;
}

.contact__form {
  position: relative;
}

.contact__input {
  padding: 1rem 1.25rem;
  border-radius: .75rem;
  background-color: var(--container-color);
  color: var(--title-color);
  border: 1px solid hsl(0, 0%, 92%);
  transition: border-color .3s;
}

.contact__input:focus {
  border-color: var(--first-color);
}

.contact__input::placeholder {
  color: var(--text-color-light);
}

.contact__form textarea {
  height: 11rem;
  resize: none;
  margin-bottom: 1.5rem;
}

.contact__button {
  justify-self: center;
  cursor: pointer;
  border: none;
}

.contact__message {
  position: absolute;
  left: 0;
  bottom: 4.5rem;
  font-size: var(--small-font-size);
  color: var(--title-color);
}

.footer {
  padding-block: 4rem 2rem;
}

.footer__container {
  row-gap: 2rem;
  text-align: center;
}

.footer__title {
  font-size: var(--h1-font-size);
  font-weight: var(--font-bold);
  margin-bottom: .25rem;
  letter-spacing: -0.02em;
}

.footer__education {
  font-size: var(--normal-font-size);
  color: var(--text-color-light);
  font-weight: var(--font-regular);
}

.footer__subtitle {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  font-weight: var(--font-medium);
}

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

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--body-color);
  color: var(--title-color);
  font-size: 1.25rem;
  transition: all .3s;
  border: 1px solid hsl(0, 0%, 92%);
}

.footer__social-link:hover {
  background-color: var(--first-color);
  color: #fff;
  border-color: var(--first-color);
  transform: translateY(-3px);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer__link {
  color: var(--text-color);
  font-size: var(--small-font-size);
  transition: color .3s;
}

.footer__link:hover {
  color: var(--first-color);
}

.footer__copy {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  margin-top: 2rem;
}

::-webkit-scrollbar {
  width: .5rem;
  background-color: hsl(0, 0%, 92%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(0, 0%, 70%);
  border-radius: .25rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(0, 0%, 55%);
}

.scrollup {
  position: fixed;
  right: 1.5rem;
  bottom: -20%;
  background-color: var(--container-color);
  padding: .5rem;
  display: flex;
  border-radius: 50%;
  color: var(--title-color);
  font-size: 1.25rem;
  z-index: var(--z-tooltip);
  transition: all .3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border: 1px solid hsl(0, 0%, 92%);
}

.scrollup:hover {
  transform: translateY(-.25rem);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.show-scroll {
  bottom: 3rem;
}

.whatsapp-button {
  position: fixed;
  left: 1.5rem;
  bottom: 3rem;
  background-color: #25d366;
  padding: .75rem;
  display: flex;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  z-index: var(--z-tooltip);
  transition: all .3s;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

@media screen and (min-width: 768px) {
  .whatsapp-button {
    left: 2rem;
    bottom: 4rem;
  }
}

@media screen and (min-width: 1024px) {
  .whatsapp-button {
    left: 3rem;
    bottom: 5rem;
  }
}

@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .home__image img {
    width: 180px;
  }
}

@media screen and (min-width: 576px) {
  .home__container,
  .work__container,
  .info__container,
  .services__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .home__container {
    align-items: center;
  }

  .home__content {
    text-align: left;
  }

  .home__name,
  .home__profession {
    text-align: left;
  }

  .home__name {
    align-self: flex-end;
  }

  .home__image {
    order: -1;
  }

  .home__button {
    justify-content: flex-start;
  }

  .contact__container {
    grid-template-columns: .8fr;
    justify-content: center;
  }
}

@media screen and (min-width: 768px) {
  .home__image img {
    width: 300px;
  }

  .work__container,
  .info__container {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact__container {
    grid-template-columns: .7fr;
    justify-content: center;
  }

  .contact__group {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
  }

  .footer__container {
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
  }

  .footer__social {
    justify-content: flex-start;
  }
}

@media screen and (min-width: 1023px) {
  .nav {
    height: calc(var(--header-height) + 2rem);
  }

  .nav__toggle,
  .nav__close {
    display: none;
  }

  .nav__list {
    flex-direction: row;
    column-gap: 3rem;
  }

  .nav__link {
    font-size: var(--normal-font-size);
  }

  .home__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .home__content {
    text-align: left;
  }

  .home__image img {
    width: 340px;
  }
}
