/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Unbounded:wght@200..900&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  /* 
         Change favorite color:

         Default (Purple): hsl(255, 60%, 64%)
         Blue: hsl(220, 60%, 64%) - Pink: hsl(300, 60%, 64%)
         Green: hsl(110, 60%, 64%) - Cyan: hsl(180, 60%, 64%)
         Orange: hsl(15, 60%, 64%) - Red: hsl(358, 60%, 64%)

         For more colors visit: https://htmlcolorcodes.com/
         -> Choose any color 
         -> Copy the color mode (HSL)
  */
  --hue: 255;
  --first-color: hsl(var(--hue), 60%, 64%);
  --first-color-alt: hsl(var(--hue), 80%, 56%);
  --first-color-alt-2: hsl(var(--hue), 60%, 56%);
  --first-color-light: hsl(var(--hue), 60%, 74%);
  --title-color: hsl(240, 8%, 95%);
  --text-color: hsl(240, 8%, 70%);
  --text-color-light: hsl(240, 8%, 50%);
  --body-color: hsl(240, 100%, 2%);
  --container-color: hsl(240, 8%, 6%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --second-font: "Unbounded", sans-serif;
  --biggest-font-size: 2rem;
  --bigger-font-size: 1.75rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 3rem;
    --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: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

/*=============== BASE ===============*/
* {
  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-color: var(--body-color);
  color: var(--text-color);
}

button {
  outline: none;
  border: none;
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

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

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

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

.section__title {
  text-align: center;
  font-size: var(--h1-font-size);
  margin-bottom: 3rem;
}

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

.main {
  overflow: hidden;
}

/* Blob */
/* Blob animate */
.blob-animate {
  width: 100px;
  height: 100px;
  background: linear-gradient(
    180deg,
    var(--first-color-alt) 20%,
    var(--first-color-light) 100%
  );
  border-radius: 50%;
  position: absolute;
  filter: blur(35px);
  z-index: -1;
  animation: animateBlob 5s linear infinite;
}

@keyframes animateBlob {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Blob */
.blob {
  width: 250px;
  height: 250px;
  background: linear-gradient(
    180deg,
    var(--first-color) 0%,
    var(--first-color-alt) 100%
  );
  border-radius: 50%;
  filter: blur(50px);
  position: absolute;
  z-index: -1;
}

/* Background dots react to the native pointer without covering controls. */
.cursor-dot-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.main > section {
  position: relative;
}

/* Header Section And Nav */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: transparent;
  z-index: var(--z-fixed);
  pointer-events: none;
}

.header .blob-animate {
  display: none;
}

.nav {
  position: relative;
  height: 72px;
  width: min(900px, calc(100vw - 64px));
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  margin-block-start: 2rem;
  padding: 0 40px;
  border: 1px solid hsla(0, 0%, 100%, 0.1);
  border-radius: 48px;
  background: hsla(0, 0%, 100%, 0.03);
  box-shadow: 0 25px 50px -12px hsla(0, 0%, 0%, 0.25);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  pointer-events: auto;
  isolation: isolate;
}

.nav::before,
.nav::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.nav::before {
  z-index: -2;
  background: linear-gradient(180deg, hsla(0, 0%, 100%, 0.04), transparent);
}

.nav::after {
  z-index: -1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.65'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 120px;
  height: 32px;
  transition: color 0.4s;
}

.nav__logo::before {
  content: none;
}

.nav__logo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: left center;
  user-select: none;
  -webkit-user-drag: none;
}

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

.nav__menu {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  flex-direction: row;
  align-items: center;
  column-gap: 3rem;
  row-gap: 0;
}

.nav__link {
  color: var(--title-color);
  font: var(--font-semi-bold) var(--small-font-size) var(--second-font);
  transition:
    color 0.4s,
    text-shadow 0.4s;
}
.nav__link:hover {
  color: var(--first-color);
  text-shadow: 0 8px 16px var(--first-color);
}

/* Active link */
.active-link {
  color: var(--first-color);
  text-shadow: 0 8px 16px var(--first-color);
}

@media screen and (max-width: 720px) {
  .nav {
    width: calc(100vw - 32px);
    min-width: 0;
    height: 64px;
    margin-block-start: 1rem;
    padding: 0 22px;
  }

  .nav__list {
    column-gap: 1.25rem;
  }

  .nav__link {
    font-size: 0.72rem;
  }
}

@media screen and (max-width: 460px) {
  .nav {
    width: calc(100vw - 24px);
    justify-content: space-between;
    padding: 0 16px;
  }

  .nav__logo {
    flex: 0 1 auto;
    min-width: 0;
  }

  .nav__logo-img {
    max-width: none;
  }

  .nav__list {
    column-gap: 0.875rem;
  }

  .nav__link {
    font-size: 0.7rem;
  }
}

/* Home */
.home {
  position: relative;
}

.home__container {
  position: relative;
  padding-top: 3rem;
  row-gap: 1rem;
}

.home__greeting {
  font-size: var(--h2-font-size);
  font-weight: var(--font-regular);
  color: var(--first-color);
}

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

.home__image {
  position: relative;
  display: grid;
  overflow-y: clip;
}

.home__image .blob-animate {
  width: 250px;
  height: 250px;
  bottom: 0;
  justify-self: center;
}

.home__profile {
  width: 320px;
  justify-self: center;
}

.home_shadow,
.home__info,
.home__social,
.home__cv {
  position: absolute;
}

.home__shadow {
  width: 100%;
  bottom: 1rem;
  z-index: 1;
  background: linear-gradient(
    180deg,
    hsla(240, 100%, 2%, 0) 60%,
    hsl(240, 100%, 2%) 85%
  );
}

.home__info {
  z-index: 2;
  bottom: -2.5rem;
  justify-self: center;
}

.home__split {
  font-size: var(--h3-font-size);
  font-weight: var(--font-regular);
  color: var(--first-color);
}

.home__profession-1,
.home__profession-2 {
  font-size: var(--bigger-font-size);
  text-align: center;
  overflow: hidden;
}

.home__profession-1 {
  position: relative;
  color: var(--first-color);
}

.home__profession-1::after {
  content: "";
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, hsl(0, 0%, 0%) 10%, hsla(0, 0%, 0%, 0) 60%);
  position: absolute;
  top: 0;
  left: 0;
}

.home__profession-2 {
  transform: translateY(-1rem);
}

.home__social {
  z-index: 2;
  left: 0;
  align-self: center;
  display: flex;
  flex-direction: column;
  row-gap: 0.75rem;
}

.home__social-link {
  color: var(--title-color);
  font-size: 1.25rem;
  transition:
    transform 0.4s,
    color 0.4s;
}

.home__social-link:hover {
  color: var(--first-color);
  transform: translateX(0.25rem);
}

.home__cv {
  z-index: 2;
  right: -2.5rem;
  bottom: 2.5rem;
  rotate: -90deg;
  color: var(--text-color-light);
  font-size: var(--font-medium) var(--small-font-size) var(--second-font);
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
  transition: color 0.4s;
}

.homw__cv i {
  font-size: 1rem;
}

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

/* Buttons */
.button {
  background-color: var(--body-color);
  border: 3px solid var(--first-color);
  color: var(--title-color);
  padding: 1rem 2rem;
  box-shadow:
    0 8px 32px hsla(var(--hue), 60%, 64%, 0.5),
    inset 8px -8px 30px var(--first-color-alt-2);
  border-radius: 4rem;
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  transition: box-shadow 0.4s;
}

.button i {
  font-weight: initial;
  font-size: 1rem;
}

.button:hover {
  box-shadow:
    0 8px 48px hsla(var(--hue), 60%, 64%, 0.7),
    inset 8px -8px 30px var(--first-color-alt-2);
}

/* About Section */
.about {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}

.about__container {
  row-gap: 3rem;
  overflow-y: clip;
}

.about__data .section__title {
  margin-bottom: 1.5rem;
  text-align: initial;
}

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

.about__description b {
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
}

.about__image {
  position: relative;
  justify-self: center;
}

.about__image .blob-animate:nth-child(1) {
  top: 1.5rem;
  left: 1rem;
}

.about__image .blob-animate:nth-child(2) {
  right: -0.5rem;
  bottom: 0.5rem;
}

.about__profile {
  width: 220px;
}

.about__shadow {
  width: 100%;
  height: 258px;
  position: absolute;
  bottom: 1rem;
  z-index: 1;
  background: linear-gradient(
    180deg,
    hsla(240, 100%, 2%, 0) 60%,
    var(--body-color) 95%
  );
}

/* Projects Section */
.projects .section__title {
  text-align: initial;
  margin-left: 1.5rem;
}

.projects__card {
  position: relative;
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 3rem;
  overflow: hidden;
}

.projects__card .blob {
  z-index: 0;
  right: -7.75rem;
  bottom: 0;
}

.projects__number,
.projects__data,
.projects__image {
  position: relative;
  z-index: 1;
}

.projects__number {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.projects__number h3 {
  font-weight: var(--font-regular);
  font-size: var(--h3-font-size);
}

.projects__data {
  margin-block: 2rem;
}

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

.projects__subtitle {
  font-family: var(--second-font);
  font-size: var(--small-font-size);
  margin-bottom: 0.5rem;
}

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

.projects__img {
  border-radius: 1.5rem;
}

.projects__card--wolink,
.projects__card--ai,
.projects__card--hengsheng,
.projects__card--wocreate,
.projects__card--mc2,
.projects__card--rural,
.projects__card--repair {
  height: auto;
}

.projects__card--wolink .projects__title,
.projects__card--ai .projects__title,
.projects__card--hengsheng .projects__title,
.projects__card--wocreate .projects__title,
.projects__card--mc2 .projects__title,
.projects__card--rural .projects__title {
  font-size: 22px;
  white-space: nowrap;
}

.projects__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.projects__card--repair .projects__title {
  font-size: 20px;
  white-space: nowrap;
}

.projects__tags li {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  white-space: nowrap;
}

.projects__card--wolink .projects__img,
.projects__card--ai .projects__img,
.projects__card--hengsheng .projects__img,
.projects__card--wocreate .projects__img,
.projects__card--mc2 .projects__img,
.projects__card--rural .projects__img,
.projects__card--repair .projects__img {
  display: block;
  width: 100%;
  height: auto;
}

.projects__button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background-color: var(--body-color);
  border: 3px solid var(--first-color);
  border-radius: 50%;
  color: var(--title-color);
  font-size: 2rem;
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition:
    box-shadow 0.4s,
    opacity 0.4s;
}

.projects__button:hover {
  box-shadow: 0 0 24px var(--first-color);
}

.projects__image:hover .projects__button {
  opacity: 1;
  pointer-events: initial;
}

/* Swiper class */
.projects__card--wolink, .projects__card--ai, .projects__card--hengsheng, .projects__card--wocreate, .projects__card--mc2, .projects__card--rural, .projects__card--repair { cursor: pointer; }
.projects__card--wolink:hover .projects__button,
.projects__card--wolink:focus-within .projects__button,
.projects__card--ai:hover .projects__button,
.projects__card--ai:focus-within .projects__button,
.projects__card--hengsheng:hover .projects__button,
.projects__card--hengsheng:focus-within .projects__button,
.projects__card--wocreate:hover .projects__button,
.projects__card--wocreate:focus-within .projects__button,
.projects__card--mc2:hover .projects__button,
.projects__card--mc2:focus-within .projects__button,
.projects__card--rural:hover .projects__button,
.projects__card--rural:focus-within .projects__button,
.projects__card--repair:hover .projects__button,
.projects__card--repair:focus-within .projects__button {
  opacity: 1;
  pointer-events: auto;
}

.project-preview {
  position: fixed;
  inset: auto 0 20px;
  margin: 0 auto;
  width: min(1600px, calc(100% - 80px));
  max-width: none;
  height: calc(100dvh - 80px);
  max-height: none;
  padding: 0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 28px;
  background: #08080c;
  overflow: hidden;
  transform: translateY(calc(100% + 40px));
  transition: transform .52s cubic-bezier(.22,1,.36,1);
}
.project-preview.is-visible { transform: translateY(0); }
.project-preview::backdrop {
  background: rgba(0,0,0,.66);
  backdrop-filter: blur(16px);
}
.project-preview__pages {
  height: 100%;
  padding-inline: 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.project-preview__pages img { display: block; width: 100%; height: auto; }
.project-preview__pages img + img { margin-top: 24px; }
.project-preview__close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: #111;
  font-size: 26px;
  cursor: pointer;
}
@media (max-width: 600px) {
  .project-preview { width: calc(100% - 16px); bottom: 8px; height: calc(100dvh - 32px); border-radius: 16px; }
}
@media (hover: none) {
  .projects__card--wolink .projects__button,
  .projects__card--ai .projects__button,
  .projects__card--hengsheng .projects__button,
  .projects__card--wocreate .projects__button,
  .projects__card--mc2 .projects__button,
  .projects__card--rural .projects__button,
  .projects__card--repair .projects__button { opacity: 1; pointer-events: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .project-preview { transition: none; }
}

.projects__swiper {
  margin-inline: initial;
  padding: 2rem;
}

.projects .swiper-pagination-bullets {
  bottom: 0;
}

.projects .swiper-pagination-bullet {
  background-color: var(--first-color);
  transition: opacity 0.4s;
}

/* Work */
.work__tabs {
  background-color: var(--container-color);
  padding: 1.25rem 2rem;
  border-radius: 4rem;
  display: flex;
  justify-content: space-between;
}

.work__button {
  background: none;
  color: var(--text-color);
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
  font-size: var(--small-font-size);
  font-family: var(--second-font);
  cursor: pointer;
  transition: color 0.4s;
}

.work__button i {
  font-size: 1rem;
}

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

.work__area {
  position: relative;
  padding-left: 1rem;
}

.work__content {
  display: grid;
  row-gap: calc(4rem - 40px);
}

.work__card {
  display: grid;
  row-gap: 1rem;
}

.work__data {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.work__data > div { min-width: 0; }
.work__year { flex-shrink: 0; }
.work__year:has(span) { max-width: none; font-size: 22px; white-space: nowrap; }
.work__year span { white-space: nowrap; }

#experience {
  grid-auto-rows: minmax(160px, auto);
  align-content: start;
}

#experience .work__data {
  height: 160px;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

#experience .work__title { font-size: 16px; }
#experience .work__subtitle { font-size: 12px; line-height: 1.6; }
#experience .work__year {
  max-width: none;
  font-size: 16px;
  white-space: nowrap;
  line-height: 1.5;
}

@media (min-width: 1200px) {
  #experience .work__title { font-size: 22px; }
  #experience .work__subtitle { font-size: 16px; }
  #experience .work__year { font-size: 16px; }
}

.work__title {
  font-size: var(--h2-font-size);
  margin-bottom: 0.5rem;
}

.work__subtitle {
  font-size: var(--normal-font-size);
  font-weight: var(--font-regular);
  color: var(--first-color);
}

.work__year {
  font-size: var(--h1-font-size);
}

.work__line {
  transform: scaleY(-1);
  width: 4px;
  height: 100%;
  background: linear-gradient(
    180deg,
    hsla(var(--hue), 60%, 64%, 0),
    var(--first-color-alt-2)
  );
  position: absolute;
  left: -0.25rem;
}

.work__line::after {
  content: "";
  width: 16px;
  height: 16px;
  background-color: var(--first-color-alt-2);
  border-radius: 50%;
  position: absolute;
  bottom: -1px;
  left: -6px;
}

/* Show & hide sections */
.work__area [data-content] {
  display: none;
}

.work-active[data-content] {
  display: grid;
}

/* Active tab */
.work__button.work-active {
  color: var(--first-color);
}

/* Services */
.services__container {
  row-gap: 2rem;
}

.services__card {
  position: relative;
  background-color: var(--container-color);
  padding: 2rem 1.5rem;
  border-radius: 3rem;
  display: grid;
  row-gap: 1.5rem;
  overflow: hidden;
}

.services__card .blob {
  z-index: 0;
  top: -7.75rem;
  left: -7.75rem;
}

.services__card .blob-2 {
  left: initial;
  right: -7.75rem;
}

.services__data,
.services__info {
  position: relative;
  z-index: 1;
}

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

.services__subtitle {
  font-size: var(--small-font-size);
  font-weight: var(--font-regular);
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.services__skills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.25rem;
}

.services__skill {
  background-color: var(--container-color);
  color: var(--title-color);
  border: 1px solid var(--title-color);
  padding: 4px 10px;
  border-radius: 4rem;
  font-size: var(--smaller-font-size);
  font-family: var(--second-font);
}

.services__button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background-color: var(--body-color);
  border: 2px solid var(--first-color);
  color: var(--title-color);
  border-radius: 0.5rem;
  font-size: 1.5rem;
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  cursor: pointer;
}

.services__button i {
  transition: rotate 0.4s;
}

/* Hide services info */
.services__close .services__info {
  height: 0;
  opacity: 0;
  overflow: hidden;
}

/* Rotate icon */
.services__open .services__button i {
  rotate: -180deg;
}

.services__info {
  transition:
    height 0.4s ease,
    opacity 0.4s ease;
}

/* Testimonials */
.testimonials .section__title {
  text-align: initial;
  margin-left: 1.5rem;
}

.testimonials__container {
  position: relative;
  margin-inline: 0;
  overflow: hidden;
}

.testimonials__card {
  position: relative;
  width: 320px;
  background-color: var(--container-color);
  padding: 1.5rem 1rem 2.5rem;
  margin-inline: 1rem;
  border-radius: 3rem;
  text-align: center;
  overflow: hidden;
}

.testimonials__card .blob {
  z-index: 0;
  left: 0;
  right: 0;
  margin-inline: auto;
  bottom: -12.5rem;
}

.testimonials__data {
  position: relative;
  z-index: 1;
}

.testimonials__img {
  width: 60px;
  border-radius: 50%;
  margin: 0 auto 0.5rem;
}

.testimonials__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-regular);
  margin-bottom: 1.5rem;
}

.testimonial__rating {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.testimonial__stars {
  display: flex;
  column-gap: 0.25rem;
}

.testimonial__stars i {
  font-size: 1rem;
  color: var(--title-color);
}

.testimonials__number {
  font-size: var(--h3-font-size);
}

.testimonial__content {
  display: flex;
  width: max-content;
  animation: scroll 18s linear infinite;
}

.testimonials__reverse {
  flex-direction: row-reverse;
  animation-direction: reverse;
  animation-delay: -1s;
}

.testimonial__content:hover {
  animation-play-state: paused;
}

/* Infinite scroll animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Contact */
.contact__container {
  row-gap: 4rem;
  padding-bottom: 2rem;
}

.contact .section__title {
  margin-bottom: 1rem;
}
.contact__data {
  text-align: center;
}

.contact__description {
  font-family: var(--second-font);
  margin-bottom: 1.5rem;
}

.contact__email {
  display: none;
}

.contact__button {
  cursor: pointer;
}

.contact__content {
  row-gap: 3rem;
}

.contact__info {
  row-gap: 1rem;
}

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

.contact__address {
  color: var(--title-color);
  font-style: normal;
  font-weight: var(--font-regular);
  text-align: center;
}

.contact__links {
  display: grid;
  grid-template-columns: max-content;
  justify-content: center;
  row-gap: 0.25rem;
}

.contact__link {
  color: var(--title-color);
  font-weight: var(--font-medium);
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 0.5rem;
  transition:
    transform 0.4s,
    color 0.4s;
}

.contact__link i {
  font-size: 1.5rem;
}

.contact__link:hover {
  transform: translateX(0.35rem);
  color: var(--text-color);
}

/* Footer */
.footer {
  position: relative;
  padding-block: 4rem 2rem;
  text-align: center;
  row-gap: 1rem;
  overflow: hidden;
}

.footer .blob-animate {
  right: -3rem;
  bottom: -3rem;
}

.footer__copy {
  color: var(--title-color);
}

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

.footer__year {
  font-family: var(--second-font);
}

/* Scroll Bar */
::-webkit-scrollbar {
  width: 0.6rem;
  background-color: hsl(240, 6%, 12%);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb {
  background-color: hsl(240, 6%, 20%);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(240, 6%, 24%);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px) {
  .container {
    margin-inline: 1rem;
  }

  .blob,
  .home__image .blob-animate {
    width: 220px;
    height: 220px;
  }

  .projects__card {
    padding-inline: 1rem;
  }

  .work__tabs {
    padding-inline: 1rem;
  }

  .testimonials__card {
    width: 250px;
    padding-bottom: 2rem;
  }
}

/* For medium devices */
@media screen and (min-width: 540px) {
  .home__container {
    width: 460px;
    margin-inline: auto;
  }

  .about__container,
  .work__container,
  .services__container {
    grid-template-columns: 460px;
    justify-content: center;
  }

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

  :is(.projects, .testimonials) .section__title {
    text-align: center;
    margin-left: 0;
  }

  .projects__card {
    width: 350px;
  }

  .work__tabs {
    width: 330px;
    justify-self: center;
  }
}

@media screen and (min-width: 768px) {
  .home__container {
    width: 600px;
  }

  .work__container {
    grid-template-columns: 600px;
  }

  .work__area {
    padding-left: 0;
  }

  .work__card {
    grid-template-columns: repeat(2, 270px);
    justify-content: center;
    column-gap: 3rem;
  }

  .work__line {
    left: 0;
    right: 0;
    margin-inline: auto;
  }

  .services__container {
    grid-template-columns: repeat(2, 350px);
    align-items: flex-start;
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }

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

  .section-top {
    padding-block: 0rem 0rem;
  }

  .section-two {
    margin-top: -3rem;
  }
  .section__title {
    margin-bottom: 4rem;
  }

  .blob {
    width: 300px;
    height: 300px;
  }

  .nav {
    height: 72px;
    align-items: center;
  }

  .nav__logo {
    align-self: initial;
  }

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

  .home__container {
    width: initial;
    padding-top: 3rem;
  }

  .home__profile {
    width: 600px;
  }

  .home__image .blob-animate {
    width: 450px;
    height: 450px;
    bottom: 2rem;
    filter: blur(50px);
  }

  .home__shadow {
    width: 700px;
    /* height: 700px; */
    left: 0;
    right: 0;
    margin-inline: auto;
    background: linear-gradient(
      180deg,
      hsla(240, 100%, 2%, 0) 60%,
      hsl(240, 100%, 2%) 95%
    );
  }

  .home__data {
    position: absolute;
    top: 12rem;
    left: 3rem;
    z-index: 2;
  }

  .home__info {
    top: 12rem;
    right: 1rem;
    bottom: initial;
  }

  .home__split {
    font-size: var(--h2-font-size);
  }

  .home__profession-1 {
    font-size: var(--biggest-font-size);
    text-align: initial;
  }

  .home__profession-2 {
    font-size: var(--biggest-font-size);
    transform: translateY(-1.5rem);
  }

  .home__social {
    bottom: 3rem;
    row-gap: 1.5rem;
  }

  .home__social-link {
    font-size: 1.5rem;
  }

  .home__cv {
    font-size: var(--normal-font-size);
    rotate: 0deg;
    right: 0;
  }

  .about__container {
    grid-template-columns: repeat(2, 500px);
    align-items: center;
    column-gap: 5.5rem;
    padding-top: 2rem;
  }

  .about__data,
  .about__data .section__title {
    text-align: initial;
    z-index: 2;
  }

  .about__description {
    margin-bottom: 3rem;
  }

  .about__profile {
    width: 500px;
  }

  .about__image {
    order: -1;
  }

  .about__image .blob-animate {
    width: 200px;
    height: 200px;
    filter: blur(50px);
  }

  .about__image .blob-animate:nth-child(1) {
    left: 4rem;
    top: 4rem;
  }

  .about__image .blob-animate:nth-child(2) {
    right: -1rem;
    bottom: 3rem;
  }

  .about__shadow {
    height: 600px;
    bottom: 0;
  }

  .projects {
    padding-block: 9rem 4rem;
  }

  .projects__swiper {
    padding-bottom: 4rem;
  }

  .projects__container {
    max-width: 1380px;
  }

  .projects__card {
    width: 440px;
    padding: 2.5rem;
    border-radius: 4rem;
  }

  .projects__subtitle,
  .projects__description {
    font-size: var(--normal-font-size);
  }

  .projects__img {
    border-radius: 2rem;
  }

  .projects__button {
    top: 1.5rem;
    right: 1.5rem;
  }

  .work__container {
    grid-template-columns: 1050px;
    row-gap: 3rem;
  }

  .work__content {
    row-gap: calc(5rem - 40px);
  }

  .work__card {
    grid-template-columns: repeat(2, 450px);
    column-gap: 9rem;
  }

  .work__title {
    font-size: var(--bigger-font-size);
  }

  .work__subtitle,
  .work__desciption {
    font-size: var(--h3-font-size);
  }

  .services__container {
    grid-template-columns: repeat(2, 455px);
    column-gap: 5rem;
  }

  .services__card {
    padding: 3rem 3rem 4rem 3rem;
    border-radius: 4rem;
    row-gap: 2rem;
  }

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

  .services__button {
    right: 2rem;
    bottom: 2rem;
  }

  .testimonials__container {
    row-gap: 3rem;
  }

  .testimonials__container::after,
  .testimonials__container::before {
    content: "";
    position: absolute;
    top: 0;
    width: 20%;
    height: 100%;
  }

  .testimonials__container::after {
    left: 0;
    background: linear-gradient(
      90deg,
      hsl(0, 0%, 0%) 0%,
      hsla(0, 0%, 0%, 0) 100%
    );
  }

  .testimonials__container::before {
    right: 0;
    z-index: 1;
    background: linear-gradient(
      90deg,
      hsla(0, 0%, 0%, 0) 0%,
      hsl(0, 0%, 0%) 100%
    );
  }

  .testimonials__card {
    width: 370px;
    padding: 3rem 2rem;
    border-radius: 4rem;
  }

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

  .contact {
    padding-block: 9rem 4rem;
  }

  .contact__container {
    row-gap: 8rem;
  }

  .contact__description {
    font-size: var(--h2-font-size);
  }

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

  .contact__info {
    row-gap: 1.5rem;
    justify-self: flex-start;
  }

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

  .contact__title {
    margin-bottom: 0.75rem;
  }

  .contact__links {
    row-gap: 0.5rem;
  }

  .contact__link {
    font-size: 1.25rem;
  }
}

/* For 2K resolutions (2048 x 1152, 2048 x 1536) */
@media screen and (min-width: 2048px) {
  body {
    zoom: 1.4;
  }
}

#about .about__data {
  text-align: left;
  min-width: 0;
}

.about__greeting {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  font-size: 14px;
}

.about__greeting::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--first-color);
}

.about__heading {
  font-size: 36px;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 32px;
  letter-spacing: 0;
}

.about__heading span,
#about .about__description span {
  color: var(--first-color);
}

#about .about__description {
  color: var(--title-color);
  font-size: 20px;
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 48px;
}

@font-face {
  font-family: "D-DIN-PRO";
  src: url("../brand/D-DIN-PRO-400-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin-top: 64px;
  color: var(--title-color);
}

.about__stats > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.about__stats dt {
  font-size: 18px;
  opacity: .7;
}

.about__stats dd {
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
  order: -1;
  margin: 0;
  font-size: 48px;
  line-height: 1.1;
  white-space: nowrap;
}

.resume-button-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  object-fit: contain;
}

#experience .work__card:nth-last-child(2) {
  -webkit-mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, .45));
  mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, .45));
}

#experience .work__card:last-child {
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .45), transparent 85%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .45), transparent 85%);
}

.about__stats small {
  font-size: 24px;
}

#contact {
  padding-block: 120px 80px;
  text-align: center;
}

.contact__headline {
  text-wrap: balance;
  font-family: Arial, sans-serif;
  font-size: 96px;
  font-weight: 900;
  line-height: .98;
  letter-spacing: 0;
  background: linear-gradient(#fff, #999);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin: 0 auto 32px;
}

#contact .contact__description {
  max-width: 660px;
  margin: 0 auto 40px;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .7);
}

.contact__phone {
  display: block;
  width: fit-content;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  text-decoration: none;
  transition: color .2s ease;
}

.contact__phone:hover,
.contact__phone:focus-visible {
  color: rgba(255, 255, 255, .96);
}

.contact__wechat {
  position: relative;
  display: inline-block;
}

#contact-btn .ri-wechat-fill { font-size: 24px; }

.contact__wechat-card {
  position: absolute;
  bottom: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 140px);
  overflow-y: auto;
  padding: 26px;
  background: linear-gradient(145deg, rgba(65, 66, 67, .94), rgba(15, 16, 18, .98) 70%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: #f5f5f5;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 24px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .09), 0 24px 64px #0009;
  z-index: 10;
  text-align: left;
}

@property --wechat-border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.contact__wechat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(from var(--wechat-border-angle), transparent 0deg 230deg, rgba(149, 112, 225, .12) 275deg, rgba(173, 139, 246, .55) 310deg, transparent 355deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: wechat-border-orbit 9s linear infinite;
}

@keyframes wechat-border-orbit {
  to { --wechat-border-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  .contact__wechat-card::before { animation: none; }
}

.contact__wechat-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #bdbdbd;
  font-size: 22px;
  cursor: pointer;
}

.contact__qr {
  margin: 18px 0 0;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 14px;
  text-align: center;
  color: #666;
  background: #fff;
}

.contact__wechat-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact__qr img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.contact__wechat-avatar {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center 25%;
  background: #a4a29c;
  border: 1px solid #ffffff80;
  border-radius: 14px;
}

.contact__wechat-profile strong {
  font-size: 18px;
  line-height: 1.4;
}

.contact__wechat-profile p {
  margin-top: 4px;
  font-size: 14px;
  color: #ffffffb3;
}

@media (max-width: 767px) {
  .contact__headline { font-size: 56px; }
}
@media (max-width: 479px) {
  .contact__headline { font-size: 34px; }
}

/* Custom cursor is hidden for mobile devices */
@media (pointer: coarse) {
  .cursor {
    display: none;
  }
}

/* Design landing screen */
.home--design {
  margin-top: 0;
  background: radial-gradient(ellipse at 50% 0%, #49176a80, transparent 56%), radial-gradient(ellipse at 10% 35%, #14216b55, transparent 60%), #070510;
}
.home__light-rays {
  position: absolute;
  inset: 0 0 auto;
  height: min(800px, 100%);
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  mix-blend-mode: screen;
  mask-image: linear-gradient(#000 55%, transparent);
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
}
.home__light-rays canvas { display: block; width: 100%; height: 100%; }
.home--design .home__container { width: min(1440px, calc(100% - 40px)); padding-top: 160px; display: flex; flex-direction: column; }
.home--design .home__data { position: relative; inset: auto; flex: none; z-index: 10; }
.home--design .home__eyebrow { display: inline-block; padding: 10px 18px; border: 1px solid #9849d650; border-radius: 24px; background: #6e28a52b; color: #e6b8ff; font-size: 11px; }
.home--design .home__headline { font-family: Arial, sans-serif; font-size: 72px; line-height: 1.12; letter-spacing: 0; }
.home--design .home__headline em { color: #886cda; }
.home--design .home__intro { font-size: 16px; margin-top: 24px; }
.home__design-stage { position: relative; width: 100%; height: 460px; flex: none; isolation: isolate; margin: 64px auto 0; --step: 200px; }
.home__design-card {
  position: absolute; left: 50%; top: 0; width: 205px; height: auto; aspect-ratio: 470 / 600;
  padding: 0; border: 1px solid #9a49d783; border-radius: 22px;
  background: linear-gradient(145deg,#151132,#0a0712); color: #fff; cursor: pointer;
  transform: translateX(calc(-50% + var(--position) * var(--step))) translateY(var(--drop)) rotate(calc(var(--position) * 9deg)) scale(var(--card-scale, 1));
  transition: transform .7s cubic-bezier(.22,1,.36,1), box-shadow .7s;
  box-shadow: 0 18px 36px #0009, 0 5px 12px #0006;
  display: flex; flex-direction: column; gap: 14px; overflow: hidden;
}
.home__design-card[aria-pressed="true"] {
  --card-scale: 1.12;
  box-shadow: 0 26px 50px #000b, 0 8px 20px #0008, 0 0 24px #886cda30;
}
.home__design-card span { font-size: 16px; text-align: left; min-height: 42px; }
.home__design-card img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.home__design-card small { margin-top: auto; text-align: left; }
.home__design-card:focus-visible { outline: 2px solid #c283ff; outline-offset: 4px; }
@property --card-glow-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.home__design-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--card-glow-angle), transparent 10%, #7572ff 30%, #efb0ff 40%, transparent 55%, #5ad5ff 80%, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
}
.home__design-card:hover, .home__design-card:focus-visible {
  box-shadow: 0 26px 50px #000b, 0 8px 20px #0008, 0 0 18px #8252ff80, 0 0 36px #396cff45;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .home__design-card:hover {
    z-index: 20 !important;
    transform: translateX(calc(-50% + var(--position) * var(--step))) translateY(calc(var(--drop) - 24px)) rotate(0deg) scale(1.16);
    transition: transform .45s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
  }
}
.home__design-card:hover::after, .home__design-card:focus-visible::after {
  opacity: 1;
  animation: card-glow-orbit 2.4s linear infinite;
}
@keyframes card-glow-orbit { to { --card-glow-angle: 360deg; } }
@media(max-width: 1100px) {
  .home--design .home__headline { font-size: 56px; }
  .home__design-stage { --step: 135px; }
  .home__design-card { width: 175px; }
}
@media(max-width: 600px) {
  .home--design .home__container { padding-top: 140px; }
  .home--design .home__headline { font-size: 32px; }
  .home--design .home__intro { font-size: 14px; }
  .home__design-stage { --step: 44px; height: 390px; margin-top: 48px; }
  .home__design-card { width: 132px; height: auto; padding: 0; }
  .home__design-card span { font-size: 12px; }
  .home__design-card img { height: 100%; }
}
@media(prefers-reduced-motion: reduce) { .home__design-card { transition: none; } .home__design-card::after { animation: none !important; } }

/* Previous landing defaults */
.home {
  min-height: 100svh;
  display: grid;
  align-items: start;
  overflow: hidden;
}
.home__container { width: min(1100px, calc(100% - 48px)); padding-top: 9rem; }
.home__data { text-align: center; position: relative; z-index: 2; }
.home__eyebrow { color: #e9f56a; font-size: .75rem; margin-bottom: 1.1rem; }
.home__headline { color: #f7f7f7; font-size: clamp(2.5rem, 5vw, 5.6rem); line-height: .98; letter-spacing: -.04em; margin: 0; }
.home__headline em { color: #f7f7f7; font-style: normal; }
.home__intro { color: rgba(255,255,255,.7); font-size: 1rem; line-height: 1.45; margin: 1.5rem 0 0; }
.home__avatar-stage { position: relative; height: 390px; max-width: 1000px; margin: 1.5rem auto 0; }
.home__avatar-card {
  position: absolute; bottom: -40px; left: 50%; width: 220px; height: 300px;
  border: 0; border-radius: 28px 28px 0 0; color: white; cursor: pointer;
  background-image: url("/reference-portfolio/assets/img/avatar-lineup.png");
  background-size: 500% 100%; background-repeat: no-repeat;
  box-shadow: 0 -16px 45px rgba(0,0,0,.22);
  transition: transform .55s cubic-bezier(.22,1,.36,1), filter .55s, opacity .55s;
}
.home__avatar-card:nth-child(1) { background-position: 0 0; transform: translateX(-330px) rotate(-12deg) scale(.86); }
.home__avatar-card:nth-child(2) { background-position: 25% 0; transform: translateX(-175px) rotate(-6deg) scale(.94); }
.home__avatar-card:nth-child(3) { background-position: 50% 0; transform: translateX(-50%); z-index: 3; }
.home__avatar-card:nth-child(4) { background-position: 75% 0; transform: translateX(-45px) rotate(6deg) scale(.94); }
.home__avatar-card:nth-child(5) { background-position: 100% 0; transform: translateX(110px) rotate(12deg) scale(.86); }
.home__avatar-card span, .home__avatar-card strong, .home__avatar-card small, .home__avatar-card b { position:absolute; text-align:left; }
.home__avatar-card span { top: 18px; left: 18px; font-size: 1rem; }
.home__avatar-card strong { top: 20px; left: 20px; font-size: 1.5rem; }
.home__avatar-card small { top: 49px; left: 20px; }
.home__avatar-card b { top: 20px; right: 14px; padding: 8px 12px; border-radius: 20px; background: white; color: #222; font-size: .65rem; }
.home__avatar-card.is-active { transform: translateX(-50%) translateY(-22px) scale(1.08); z-index: 5; filter: saturate(1.08); }
.home__avatar-card.is-active ~ .home__avatar-card { opacity: .45; }
@media (max-width: 700px) {
  .home__container { width: calc(100% - 24px); padding-top: 8rem; }
  .home__headline { font-size: 2.8rem; }
  .home__intro { font-size: .85rem; }
  .home__break { display:none; }
  .home__avatar-stage { height: 300px; margin-top: 2rem; }
  .home__avatar-card { width: 150px; height: 220px; border-radius: 20px 20px 0 0; }
  .home__avatar-card:nth-child(1) { transform: translateX(-220px) rotate(-12deg) scale(.75); }
  .home__avatar-card:nth-child(2) { transform: translateX(-125px) rotate(-6deg) scale(.84); }
  .home__avatar-card:nth-child(4) { transform: translateX(-25px) rotate(6deg) scale(.84); }
  .home__avatar-card:nth-child(5) { transform: translateX(70px) rotate(12deg) scale(.75); }
}
