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

:root {
  --header-height: 3.5rem;
  --first-hue: 260;
  --first-sat: 58%;
  --first-lig: 72%;
  --second-hue: 220;
  --first-color: hsl(var(--first-hue), var(--first-sat), var(--first-lig));
  --first-color-alt: hsl(174, 63%, 52%);
  --title-color: hsl(var(--second-hue), 15%, 95%);
  --text-color: hsl(var(--second-hue), 8%, 75%);
  --text-color-light: hsl(var(--second-hue), 4%, 55%);
  --body-color: hsl(var(--second-hue), 48%, 8%);
  --container-color: hsl(var(--second-hue), 32%, 12%);
  --container-color-alt: hsl(var(--second-hue), 28%, 16%);
  --button-border: hsl(var(--first-hue), var(--first-sat), 82%);
  --button-shadow: hsl(174, 63%, 38%);
  --accent-yellow: #ffd93d;
  --accent-pink: #ff7eb6;
  --accent-cyan: #49f2d2;
  --body-font: "Poppins", sans-serif;
  --biggest-font-size: 1.75rem;
  --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;
  --tiny-font-size: .625rem;
  --font-medium: 500;
  --font-semibold: 600;
  --z-fixed: 100;
}

@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 2.5rem;
    --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;
  }
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  background:
    radial-gradient(circle at 12% 18%, hsla(var(--first-hue), var(--first-sat), var(--first-lig), .14), transparent 19rem),
    radial-gradient(circle at 88% 8%, hsla(174, 63%, 52%, .13), transparent 20rem),
    radial-gradient(circle at 80% 74%, rgba(255, 217, 61, .08), transparent 18rem),
    linear-gradient(135deg, hsla(var(--second-hue), 48%, 8%, 1), hsla(var(--second-hue), 48%, 6%, 1));
  color: var(--text-color);
  transition: background .35s, color .35s;
}

body.light-theme {
  --title-color: hsl(var(--second-hue), 15%, 15%);
  --text-color: hsl(var(--second-hue), 8%, 35%);
  --text-color-light: hsl(var(--second-hue), 4%, 45%);
  --body-color: hsl(var(--second-hue), 100%, 98%);
  --container-color: #ffffff;
  --container-color-alt: hsl(var(--second-hue), 60%, 96%);
  --button-border: hsl(var(--first-hue), var(--first-sat), 38%);
  --button-shadow: hsl(174, 63%, 68%);
  background:
    radial-gradient(circle at 12% 18%, hsla(var(--first-hue), var(--first-sat), var(--first-lig), .22), transparent 19rem),
    radial-gradient(circle at 88% 8%, hsla(174, 63%, 52%, .16), transparent 20rem),
    radial-gradient(circle at 80% 74%, rgba(255, 217, 61, .16), transparent 18rem),
    var(--body-color);
}

h1,
h2,
h3,
h4 {
  color: var(--title-color);
  font-weight: var(--font-semibold);
  line-height: 1.25;
  letter-spacing: 0;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  outline: none;
  background: transparent;
  cursor: pointer;
}

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

.container {
  max-width: 968px;
  margin-inline: 1rem;
}

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

.main {
  overflow: hidden;
}

.section {
  padding: 4.5rem 0 1rem;
}

.section__title,
.section__subtitle {
  text-align: center;
}

.section__title {
  color: var(--first-color);
  font-size: var(--h2-font-size);
  margin-bottom: 2rem;
}

.section__subtitle {
  display: block;
  color: var(--text-color-light);
  font-size: var(--smaller-font-size);
}

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

.header.scroll-header {
  background: rgba(15, 21, 30, .9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
  backdrop-filter: blur(16px);
}

.light-theme .header.scroll-header {
  background: rgba(255, 255, 255, .9);
}

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

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

.theme-toggle {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  color: var(--title-color);
  font-size: 1.15rem;
}

.home__container {
  position: relative;
  padding-top: 2rem;
  row-gap: 1.75rem;
  text-align: center;
}

.home__container > :not(.home__bg-icons) {
  position: relative;
  z-index: 1;
}

.home__bg-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.home__bg-icons i {
  position: absolute;
  width: 2.65rem;
  height: 2.65rem;
  display: grid;
  place-items: center;
  border: 1px solid hsla(var(--first-hue), var(--first-sat), var(--first-lig), .28);
  border-radius: 8px;
  background: hsla(var(--second-hue), 32%, 12%, .72);
  color: var(--first-color);
  font-size: 1.2rem;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .18);
  opacity: .72;
}

.light-theme .home__bg-icons i {
  background: rgba(255, 255, 255, .8);
  box-shadow: 6px 6px 0 rgba(79, 70, 229, .12);
}

.home__bg-icons i:nth-child(1) {
  left: 8%;
  top: 22%;
}

.home__bg-icons i:nth-child(2) {
  right: 14%;
  top: 16%;
  color: var(--accent-cyan);
}

.home__bg-icons i:nth-child(3) {
  left: 17%;
  bottom: 17%;
  color: var(--accent-yellow);
}

.home__bg-icons i:nth-child(4) {
  right: 6%;
  bottom: 25%;
  color: var(--accent-pink);
}

.home__bg-icons i:nth-child(5) {
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  color: var(--accent-cyan);
}

.home__greeting,
.home__education {
  display: block;
  color: var(--title-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

.home__greeting {
  margin-bottom: .25rem;
}

.home__education {
  color: var(--text-color);
  margin-bottom: 2.5rem;
}

.home__name {
  font-size: var(--biggest-font-size);
}

.home__profile {
  position: relative;
  width: 190px;
  height: 270px;
  display: grid;
  margin-inline: auto;
  justify-self: center;
  align-items: end;
  border-radius: 8px;
  border: 1px solid hsla(var(--first-hue), var(--first-sat), var(--first-lig), .28);
  background: linear-gradient(180deg, hsla(var(--first-hue), var(--first-sat), var(--first-lig), .95), hsla(174, 63%, 52%, .35));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .38), 0 0 0 1px rgba(255, 255, 255, .04);
  overflow: hidden;
  animation: float-profile 5.5s ease-in-out infinite;
}

.home__profile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 12%, rgba(255, 255, 255, .22), transparent 42%);
  pointer-events: none;
}

.home__profile::after {
  content: "";
  position: absolute;
  inset: auto 1rem 1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  opacity: .55;
}

.home__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 1rem;
  object-fit: contain;
}

@keyframes float-profile {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.home__buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2.9rem;
  border-radius: 8px;
  border: 2px solid var(--button-border);
  background: var(--first-color);
  color: hsl(var(--second-hue), 48%, 8%);
  font-weight: var(--font-medium);
  padding: .8rem 1rem;
  box-shadow: 5px 5px 0 var(--button-shadow);
  transition: transform .25s, background .25s, border-color .25s, color .25s, box-shadow .25s;
}

.button:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--button-shadow);
}

.button--ghost {
  border: 1px solid var(--first-color);
  background: transparent;
  color: var(--first-color);
}

.button--ghost:hover {
  background: var(--first-color);
  color: hsl(var(--second-hue), 48%, 8%);
}

.home__social {
  position: absolute;
  left: 0;
  bottom: 4.75rem;
  display: grid;
  row-gap: .55rem;
}

.home__social::after {
  content: "";
  width: 1px;
  height: 2rem;
  margin: .25rem auto 0;
  background: var(--first-color);
}

.home__social-link {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--container-color);
  color: var(--first-color);
  font-size: 1.1rem;
  transition: background .25s, color .25s;
}

.home__social-link:hover {
  background: var(--first-color);
  color: hsl(var(--second-hue), 48%, 8%);
}

.home__scroll {
  position: absolute;
  right: -.25rem;
  bottom: 4.5rem;
  display: grid;
  row-gap: 2.25rem;
  color: var(--first-color);
  justify-items: center;
}

.home__scroll-icon {
  font-size: 1.25rem;
}

.home__scroll-name {
  font-size: var(--smaller-font-size);
  transform: rotate(90deg);
}

.about__container {
  row-gap: 2.5rem;
}

.about__image {
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 8px;
  background: var(--container-color);
  overflow: hidden;
}

.about__image img {
  width: 88%;
}

.about__data {
  text-align: center;
}

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

.about__box,
.skills__content,
.services__card,
.work__card,
.contact__card {
  border-radius: 8px;
  background: var(--container-color);
}

.about__box {
  padding: .85rem .5rem;
}

.about__icon {
  color: var(--first-color);
  font-size: 1.5rem;
  margin-bottom: .5rem;
}

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

.about__subtitle {
  color: var(--text-color-light);
  font-size: var(--tiny-font-size);
}

.about__description {
  margin-bottom: 2rem;
  line-height: 1.7;
}

.skills__container {
  row-gap: 2rem;
  padding-top: 1rem;
}

.skills__content {
  position: relative;
  overflow: hidden;
  border: 1px solid hsla(var(--first-hue), var(--first-sat), var(--first-lig), .12);
  padding: 1.5rem;
}

.skills__content::before {
  content: "";
  position: absolute;
  width: 9rem;
  height: 9rem;
  top: -5rem;
  right: -4rem;
  border-radius: 50%;
  background: radial-gradient(circle, hsla(var(--first-hue), var(--first-sat), var(--first-lig), .18), transparent 68%);
  pointer-events: none;
}

.skills__title {
  position: relative;
  color: var(--first-color);
  font-size: var(--normal-font-size);
  text-align: center;
  margin-bottom: 1.5rem;
}

.skills__box {
  display: flex;
  justify-content: center;
  column-gap: 2rem;
}

.skills__group {
  display: grid;
  align-content: flex-start;
  row-gap: 1rem;
}

.skills__data {
  position: relative;
  display: flex;
  align-items: flex-start;
  column-gap: .7rem;
}

.skills__data i {
  color: var(--first-color);
}

.skills__icon {
  width: 2rem;
  height: 2rem;
  display: grid;
  flex: 0 0 2rem;
  place-items: center;
  border: 1px solid hsla(var(--first-hue), var(--first-sat), var(--first-lig), .2);
  border-radius: 8px;
  background: hsla(var(--second-hue), 28%, 16%, .78);
  color: var(--first-color);
  font-size: 1.05rem;
}

.skills__data:hover .skills__icon {
  background: var(--first-color);
  color: hsl(var(--second-hue), 48%, 8%);
}

.skills__name {
  font-size: var(--normal-font-size);
  line-height: 1.15;
}

.skills__level {
  color: var(--text-color-light);
  font-size: var(--tiny-font-size);
}

.services__container {
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-top: 1rem;
}

.services__card {
  padding: 1.25rem;
}

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

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

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

.work__container {
  padding-top: 1rem;
}

.work__card {
  position: relative;
  min-height: 13rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid hsla(var(--first-hue), var(--first-sat), var(--first-lig), .12);
  padding: 1.15rem;
}

.work__card::before {
  content: "";
  position: absolute;
  width: 8rem;
  height: 8rem;
  top: -4rem;
  right: -3.25rem;
  border-radius: 50%;
  background: radial-gradient(circle, hsla(174, 63%, 52%, .18), transparent 68%);
  pointer-events: none;
}

.work__tag {
  position: relative;
  width: max-content;
  display: inline-flex;
  align-items: center;
  border: 1px solid hsla(var(--first-hue), var(--first-sat), var(--first-lig), .28);
  border-radius: 999px;
  background: hsla(var(--first-hue), var(--first-sat), var(--first-lig), .1);
  color: var(--first-color);
  font-size: var(--tiny-font-size);
  font-weight: var(--font-semibold);
  padding: .32rem .55rem;
  margin-bottom: .9rem;
}

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

.work__description {
  position: relative;
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.work__button {
  position: relative;
  display: inline-flex;
  width: max-content;
  align-items: center;
  column-gap: .35rem;
  margin-top: auto;
  border: 1px solid hsla(var(--first-hue), var(--first-sat), var(--first-lig), .55);
  border-radius: 8px;
  background: linear-gradient(135deg, hsla(var(--first-hue), var(--first-sat), var(--first-lig), .18), hsla(174, 63%, 52%, .08));
  color: var(--first-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  padding: .55rem .7rem;
  transition: transform .25s, border-color .25s, background .25s;
}

.work__button:hover {
  border-color: var(--first-color);
  background: var(--first-color);
  color: hsl(var(--second-hue), 48%, 8%);
  transform: translateY(-2px);
}

.work__icon {
  font-size: 1rem;
  transition: transform .25s;
}

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

.contact__container {
  row-gap: 2rem;
  padding-bottom: 3rem;
}

.contact__title {
  text-align: center;
  font-size: var(--h3-font-size);
  margin-bottom: 1.5rem;
}

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

.contact__card {
  display: block;
  text-align: center;
  padding: 1rem;
  border: 1px solid transparent;
  transition: border-color .25s, transform .25s;
}

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

.contact__card-icon {
  color: var(--first-color);
  font-size: 2rem;
  margin-bottom: .35rem;
}

.contact__card-title,
.contact__card-data {
  display: block;
  font-size: var(--small-font-size);
}

.contact__card-data {
  color: var(--text-color-light);
  margin-bottom: .75rem;
}

.contact__button {
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  border-radius: 8px;
  color: var(--first-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

.contact__description {
  max-width: 28rem;
  margin-inline: auto;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  text-align: center;
}

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

.footer {
  background: var(--first-color);
  padding: 2rem 0 2.5rem;
}

.footer__container {
  text-align: center;
}

.footer__title {
  color: hsl(var(--second-hue), 48%, 8%);
  font-size: var(--h1-font-size);
  margin-bottom: 1rem;
}

.footer__list,
.footer__social {
  display: flex;
  justify-content: center;
}

.footer__list {
  column-gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer__link,
.footer__copy {
  color: hsl(var(--second-hue), 48%, 8%);
}

.footer__social {
  column-gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer__social-link {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: hsl(var(--second-hue), 48%, 8%);
  color: var(--first-color);
  font-size: 1.25rem;
}

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

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition: opacity .72s ease, transform .72s ease, filter .72s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.motion-ready .home__greeting,
.motion-ready .home__name,
.motion-ready .home__education,
.motion-ready .home__buttons,
.motion-ready .home__profile {
  animation: hero-rise .72s ease both;
}

.motion-ready .home__name {
  animation-delay: .08s;
}

.motion-ready .home__education {
  animation-delay: .16s;
}

.motion-ready .home__buttons {
  animation-delay: .24s;
}

.motion-ready .home__profile {
  animation-name: hero-rise, float-profile;
  animation-duration: .72s, 5.5s;
  animation-delay: .32s, 1.05s;
  animation-timing-function: ease, ease-in-out;
  animation-fill-mode: both, none;
  animation-iteration-count: 1, infinite;
}

.motion-ready .home__bg-icons i {
  animation: drift-icon 6s ease-in-out infinite;
}

.motion-ready .home__bg-icons i:nth-child(2) {
  animation-delay: .6s;
}

.motion-ready .home__bg-icons i:nth-child(3) {
  animation-delay: 1.1s;
}

.motion-ready .home__bg-icons i:nth-child(4) {
  animation-delay: 1.6s;
}

.motion-ready .home__bg-icons i:nth-child(5) {
  animation-delay: 2.1s;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift-icon {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .motion-ready .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

::-webkit-scrollbar {
  width: .6rem;
  background: var(--container-color);
}

::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: var(--first-color);
}

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

  .home__buttons {
    flex-direction: column;
  }

  .home__profile {
    width: 170px;
    height: 245px;
  }

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

  .skills__box {
    column-gap: 1rem;
  }

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

@media screen and (max-width: 575px) {
  .home__bg-icons i {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1rem;
    opacity: .52;
  }

  .home__bg-icons i:nth-child(1) {
    left: 5%;
    top: 11rem;
  }

  .home__bg-icons i:nth-child(2) {
    right: 6%;
    top: 9rem;
  }

  .home__bg-icons i:nth-child(3) {
    left: 14%;
    bottom: 11rem;
  }

  .home__bg-icons i:nth-child(4),
  .home__bg-icons i:nth-child(5) {
    display: none;
  }
}

@media screen and (min-width: 576px) {
  .about__info {
    grid-template-columns: repeat(3, 8.5rem);
    justify-content: center;
  }

  .skills__container,
  .services__container,
  .work__container,
  .contact__container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media screen and (min-width: 767px) {
  .work__container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact__container {
    align-items: start;
  }
}

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

  .section {
    padding: 6.5rem 0 1rem;
  }

  .home__container {
    min-height: 86vh;
    padding-top: 3.5rem;
  }

  .home__profile {
    width: 240px;
    height: 330px;
  }

  .home__social {
    left: 6rem;
  }

  .home__scroll {
    right: 6rem;
  }

  .about__container {
    grid-template-columns: 350px 1fr;
    align-items: center;
  }

  .about__image {
    width: 260px;
    height: 260px;
  }

  .about__data,
  .about__description {
    text-align: initial;
  }

  .about__info {
    justify-content: initial;
  }

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

  .footer {
    padding-bottom: 3rem;
  }
}
