/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  --hue: 162;
  --first-color: hsl(var(--hue), 100%, 40%);
  --first-color-alt: hsl(var(--hue), 56%, 35%);
  --title-color: hsl(228, 8%, 95%);
  --text-color: hsl(228, 8%, 65%);
  --body-color: hsl(228, 15%, 20%);
  --container-color: hsl(228, 15%, 15%);
  --surface-color: hsl(228, 14%, 18%);
  --border-color: hsl(228, 12%, 28%);
  --nav-menu-color: hsla(228, 15%, 15%, .96);
  --header-blur-color: hsla(228, 15%, 15%, .62);
  --shadow-color: hsla(228, 15%, 8%, .35);

  --body-font: "Poppins", sans-serif;
  --biggest-font-size: 2rem;
  --bigger-font-size: 1.25rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

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

body.light-theme {
  --first-color: hsl(var(--hue), 88%, 36%);
  --first-color-alt: hsl(var(--hue), 78%, 30%);
  --title-color: hsl(228, 14%, 15%);
  --text-color: hsl(228, 10%, 35%);
  --body-color: hsl(210, 28%, 96%);
  --container-color: hsl(0, 0%, 100%);
  --surface-color: hsl(210, 22%, 98%);
  --border-color: hsl(228, 15%, 86%);
  --nav-menu-color: hsla(0, 0%, 100%, .96);
  --header-blur-color: hsla(0, 0%, 100%, .72);
  --shadow-color: hsla(228, 16%, 30%, .16);
}

@media screen and (min-width: 1152px) {
  :root {
    --biggest-font-size: 4rem;
    --bigger-font-size: 2rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  background-color: var(--body-color);
  color: var(--text-color);
  transition: background-color .4s, color .4s;
}

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

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

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

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

.section__title,
.section__subtitle {
  text-align: center;
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

.section__title {
  font-size: var(--h1-font-size);
  margin-bottom: 1.5rem;
}

.section__subtitle {
  font-size: var(--small-font-size);
  margin-bottom: .25rem;
}

.section__subtitle span {
  color: var(--first-color);
}

.main {
  overflow: hidden;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  background-color: transparent;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
}

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

.nav__logo {
  color: var(--title-color);
  font-weight: var(--font-medium);
}

.nav__logo span {
  color: var(--first-color);
}

.nav__actions {
  position: relative;
  z-index: calc(var(--z-fixed) + 1);
  display: flex;
  align-items: center;
  column-gap: .75rem;
}

.visitor-counter {
  min-width: 4.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: .35rem;
  padding-inline: .65rem;
  border-radius: 999px;
  background-color: var(--surface-color);
  color: var(--title-color);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 22px var(--shadow-color);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  line-height: 1;
  cursor: default;
  transition: background-color .4s, border-color .4s, box-shadow .4s;
}

.visitor-counter i {
  color: var(--first-color);
  font-size: 1rem;
}

.theme-toggle {
  position: relative;
  width: 3.25rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: .4rem;
  border-radius: 999px;
  background-color: var(--surface-color);
  color: var(--title-color);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 22px var(--shadow-color);
  transition: background-color .4s, border-color .4s, box-shadow .4s;
}

.theme-toggle::after {
  content: "";
  position: absolute;
  left: .22rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background-color: var(--first-color);
  box-shadow: 0 4px 12px hsla(var(--hue), 100%, 32%, .32);
  transition: transform .35s;
}

.theme-toggle i {
  position: relative;
  z-index: 1;
  font-size: .95rem;
}

.light-theme .theme-toggle::after {
  transform: translateX(1.45rem);
}

.nav__toggle {
  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: var(--nav-menu-color);
    width: 75%;
    height: 100%;
    padding: 4.5rem 0 0 3rem;
    backdrop-filter: blur(24px);
    transition: right .4s;
  }
}

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

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

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


.show-menu {
  right: 0;
}

.blur-header {
  background-color: transparent;
}

.blur-header::after {
  content: "";
  position: absolute;
  width: 1000%;
  height: 100%;
  background-color: var(--header-blur-color);
  backdrop-filter: blur(24px);
  top: 0;
  left: 0;
  z-index: -1;
}

/*=============== HOME ===============*/
.home {
  background-color: var(--container-color);
}

.home__container {
  padding-top: 2rem;
  row-gap: 2.5rem;
}

.home__content {
  display: grid;
  row-gap: 2rem;
}

.home__data {
  text-align: center;
}

.home__subtitle,
.home__education {
  font-size: var(--bigger-font-size);
}

.home__subtitle span,
.home__title {
  color: var(--first-color);
}

.home__title {
  font-size: var(--biggest-font-size);
  font-weight: var(--font-semi-bold);
}

.home__description {
  margin-block: 1rem 1.5rem;
}

.home__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

.home__social {
  display: flex;
  justify-content: center;
  column-gap: 1.25rem;
}

.home__social-link {
  display: flex;
  background-color: var(--first-color-alt);
  padding: .5rem;
  color: var(--title-color);
  font-size: 1.5rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: transform .4s, background-color .4s;
}

.home__social-link:hover {
  transform: translateY(-.25rem);
  background-color: var(--first-color);
}

.home__image {
  justify-self: center;
}

.home__blob {
  width: 320px;
  fill: var(--first-color);
  filter: drop-shadow(0 12px 12px hsla(var(--hue), 100%, 40%, .18));
}

.home__img {
  transform: translateY(-1px);
}

/*=============== BUTTON ===============*/
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: .5rem;
  background-color: var(--first-color);
  padding: 1rem 1.75rem;
  border-radius: .5rem;
  color: var(--title-color);
  font-weight: var(--font-medium);
  transition: box-shadow .4s, background-color .4s;
}

.button--ghost {
  background-color: transparent;
  box-shadow: inset 0 0 0 2px var(--first-color);
}

.button:hover {
  background-color: var(--first-color-alt);
  box-shadow: 0 8px 24px hsla(var(--hue), 100%, 40%, .25);
}

/*=============== ABOUT ===============*/
.about__container {
  row-gap: 2.5rem;
}

.about__data {
  text-align: center;
}

.about__description {
  margin-bottom: 2rem;
}

.about__info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 2rem;
}

.about__info article {
  background-color: var(--container-color);
  border-radius: .5rem;
  padding: 1rem .75rem;
  text-align: center;
}

.about__info h3 {
  color: var(--first-color);
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
}

.about__info span {
  display: block;
  font-size: var(--smaller-font-size);
}

.about__image {
  justify-self: center;
}

.about__blob {
  width: 320px;
}

.about__blob-path {
  stroke: var(--first-color);
  stroke-width: 14;
  fill: transparent;
}

.about__img {
  transform: translateY(-2px);
}

/*=============== SKILLS ===============*/
.skills {
  background-color: var(--container-color);
}

.skills__container {
  padding-bottom: 2rem;
  row-gap: 3.5rem;
}

.skills__data {
  text-align: center;
}

.skills__description {
  margin-bottom: 2rem;
}

.skills__content,
.skills__group {
  display: grid;
}

.skills__content {
  grid-template-columns: repeat(2, max-content);
  column-gap: 4rem;
  justify-content: center;
  align-items: baseline;
}

.skills__group {
  row-gap: 1rem;
  list-style: decimal-leading-zero;
}

.skills__item {
  font-weight: var(--font-medium);
  color: var(--title-color);
}

.skills__item::marker {
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
}

/*=============== SERVICES ===============*/
.services__container {
  row-gap: 2rem;
  padding-block: 1rem;
}

.services__card {
  text-align: center;
  background-color: var(--container-color);
  padding: 3rem 1.25rem;
  border-radius: .5rem;
  border: 1px solid transparent;
  transition: border-color .4s, transform .4s;
}

.services__card:hover {
  border-color: var(--first-color);
  transform: translateY(-.25rem);
}

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

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

.services__date {
  display: block;
  color: var(--first-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  margin-bottom: .75rem;
}

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

/*=============== PROJECTS ===============*/
.projects {
  background-color: var(--container-color);
}

.projects__container {
  row-gap: 2rem;
  justify-content: center;
  padding-block: 1rem;
}

.projects__card {
  position: relative;
  border-radius: .5rem;
  overflow: hidden;
  width: min(100%, 340px);
}

.projects__img {
  width: 100%;
  aspect-ratio: 1.6;
  object-fit: cover;
  display: block;
}

.projects__modal {
  position: absolute;
  left: 0;
  bottom: -100%;
  width: 100%;
  height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  background: linear-gradient(180deg, hsla(var(--hue), 24%, 40%, .25), hsla(var(--hue), 100%, 40%, .9));
  backdrop-filter: blur(4px);
  transition: bottom .4s;
}

.projects__subtitle,
.projects__button {
  color: var(--title-color);
  font-size: var(--small-font-size);
}

.projects__subtitle {
  display: block;
  margin-bottom: .25rem;
}

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

.projects__description {
  width: 88%;
  color: var(--title-color);
  font-size: var(--small-font-size);
  text-align: center;
}

.projects__button {
  display: flex;
  align-items: center;
  column-gap: .5rem;
  font-weight: var(--font-medium);
}

.projects__button i {
  font-size: 1.25rem;
}

.projects__card:hover .projects__modal {
  bottom: 0;
}

/*=============== CONTACT ===============*/
.contact__container {
  padding-top: 1rem;
  row-gap: 2rem;
}

.contact__info {
  display: grid;
  gap: 1rem;
}

.contact__card {
  display: flex;
  align-items: center;
  column-gap: .75rem;
  background-color: var(--container-color);
  color: var(--title-color);
  padding: 1rem 1.25rem;
  border-radius: .5rem;
  border: 1px solid transparent;
  transition: border-color .3s, transform .3s;
}

.contact__card:hover {
  border-color: var(--first-color);
  transform: translateY(-.15rem);
}

.contact__card i {
  color: var(--first-color);
  font-size: 1.25rem;
}

.contact__card span {
  overflow-wrap: anywhere;
}

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

.contact__form {
  position: relative;
}

.contact__input {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: .5rem;
  background-color: var(--container-color);
  color: var(--title-color);
  border: 1px solid transparent;
  transition: border-color .3s;
}

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

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

.contact__form textarea {
  height: 11rem;
  resize: none;
}

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

.contact__button {
  justify-self: center;
  margin-top: 1rem;
}

/*=============== FOOTER ===============*/
.footer {
  background-color: var(--container-color);
  padding-block: 3.5rem 2rem;
}

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

.footer__title {
  font-size: var(--h1-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: .25rem;
}

.footer__title span {
  color: var(--first-color);
}

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

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

.footer__social-link {
  display: flex;
  background-color: var(--first-color-alt);
  padding: .5rem;
  color: var(--title-color);
  font-size: 1.25rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: transform .4s, background-color .4s;
}

.footer__social-link:hover {
  transform: translateY(-.25rem);
  background-color: var(--first-color);
}

.footer__copy {
  font-size: var(--smaller-font-size);
  color: var(--text-color);
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: .6rem;
  border-radius: .5rem;
  background-color: hsl(228, 12%, 25%);
}

::-webkit-scrollbar-thumb {
  border-radius: .5rem;
  background-color: hsl(228, 8%, 35%);
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(228, 8%, 45%);
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--body-color);
  padding: 6px;
  display: inline-flex;
  color: var(--title-color);
  font-size: 1.25rem;
  border-radius: .25rem;
  box-shadow: 0 4px 12px var(--shadow-color);
  z-index: var(--z-tooltip);
  transition: bottom .4s, transform .4s;
}

.scrollup:hover {
  transform: translateY(-.25rem);
}

.show-scroll {
  bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/
@media screen and (max-width: 575px) {
  .nav__actions {
    column-gap: .5rem;
  }

  .visitor-counter {
    min-width: 3.75rem;
    height: 2.5rem;
    padding-inline: .55rem;
    border-radius: .75rem;
    background-color: var(--container-color);
    border-color: var(--first-color);
  }

  .visitor-counter i {
    font-size: 1.25rem;
  }

  .theme-toggle {
    width: 2.5rem;
    height: 2.5rem;
    justify-content: center;
    padding: 0;
    border-radius: .75rem;
    background-color: var(--container-color);
    border-color: var(--first-color);
  }

  .theme-toggle::after {
    display: none;
  }

  .theme-toggle i {
    font-size: 1.25rem;
  }

  .theme-toggle__moon {
    display: none;
  }

  .light-theme .theme-toggle__sun {
    display: none;
  }

  .light-theme .theme-toggle__moon {
    display: block;
  }
}

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

  .home__title {
    font-size: 1.75rem;
  }

  .about__info {
    grid-template-columns: 1fr;
  }

  .skills__content {
    grid-template-columns: max-content;
    row-gap: 1rem;
  }

  .services__card {
    padding: 2rem 1rem;
  }
}

@media screen and (min-width: 576px) {
  .home__container,
  .about__container,
  .skills__container {
    grid-template-columns: 360px;
    justify-content: center;
  }

  .projects__container {
    grid-template-columns: repeat(2, 260px);
  }

  .contact__form {
    width: 360px;
    justify-self: center;
  }

  .contact__info {
    width: 360px;
    justify-self: center;
  }
}

@media screen and (min-width: 768px) {
  .nav__menu {
    width: 55%;
  }

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

  .home__data,
  .about__data,
  .skills__data,
  :is(.about__data, .skills__data) :is(.section__subtitle, .section__title) {
    text-align: initial;
  }

  .home__actions,
  .home__social {
    justify-content: initial;
  }

  .about__data {
    order: 1;
  }

  .skills__content {
    justify-content: initial;
  }

  .projects__container {
    grid-template-columns: repeat(2, 320px);
  }

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

  .contact__form,
  .contact__info {
    width: 600px;
  }

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

  .footer__social {
    justify-content: center;
  }

  .footer__copy {
    justify-self: flex-end;
  }
}

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

  .nav__toggle {
    display: none;
  }

  .nav__actions {
    order: 1;
  }

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

  .nav__menu {
    width: initial;
  }

  .blur-header::after {
    backdrop-filter: blur(25px);
  }
}


@media screen and (min-width: 1152px) {
  .container {
    margin-inline: auto;
  }

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

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

  .home__container {
    grid-template-columns: 500px 500px;
    column-gap: 4rem;
    padding-block: 2rem 3rem;
  }

  .home__blob {
    width: 500px;
  }

  .home__content {
    row-gap: 2.5rem;
  }

  .home__description {
    margin-block: 1.5rem 2.5rem;
  }

  .home__social {
    column-gap: 1.5rem;
  }

  .about__container {
    grid-template-columns: 550px 460px;
    column-gap: 4.5rem;
    padding-bottom: 1rem;
  }

  .about__blob {
    width: 550px;
  }

  .about__description {
    margin-bottom: 3rem;
  }

  .skills__container {
    grid-template-columns: 340px 425px;
    column-gap: 10rem;
    padding-bottom: 4rem;
  }

  .skills__description {
    margin-bottom: 3rem;
  }

  .skills__content {
    column-gap: 8rem;
  }

  .skills__group {
    row-gap: 1.5rem;
  }

  .services__container {
    grid-template-columns: repeat(3, 320px);
    column-gap: 1.5rem;
    padding-block: 2rem 4rem;
  }

  .services__card {
    padding: 4rem 2rem;
  }

  .projects__container {
    grid-template-columns: repeat(3, 340px);
    gap: 2rem;
    padding-block: 2rem 4rem;
  }

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

  .contact__form,
  .contact__info {
    width: 680px;
  }

  .contact__form textarea {
    height: 15rem;
  }

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

  .scrollup {
    right: 3rem;
  }
}
