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

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

  /*========== Colors ==========*/
  /* Change favorite color */
  --hue-color: 225;
  /*Purple 250 - Green 142 - Blue 230 - Pink 340*/

  /* HSL color mode */
  --first-color: hsl(var(--hue-color), 69%, 61%);
  --first-color-second: hsl(var(--hue-color), 69%, 61%);
  --first-color-alt: hsl(var(--hue-color), 57%, 53%);
  --first-color-lighter: hsl(var(--hue-color), 92%, 85%);
  --title-color: hsl(var(--hue-color), 8%, 15%);
  --text-color: hsl(var(--hue-color), 8%, 45%);
  --text-color-light: hsl(var(--hue-color), 8%, 65%);
  --input-color: hsl(var(--hue-color), 70%, 96%);
  --body-color: hsl(var(--hue-color), 60%, 99%);
  --container-color: #fff;
  --scroll-bar-color: hsl(var(--hue-color), 12%, 90%);
  --scroll-thumb-color: hsl(var(--hue-color), 12%, 80%);

  /*========== Font and typography ==========*/
  --body-font: 'Poppins', sans-serif;

  /* .5rem = 8px, 1rem = 16px, 1.5rem = 24px ... */
  --big-font-size: 2rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.125rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

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

  /*========== Margenes Bottom ==========*/
  /* .25rem = 4px, .5rem = 8px, .75rem = 12px ... */
  --mb-0-25: .25rem;
  --mb-0-5: .5rem;
  --mb-0-75: .75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

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

/* Font size for large devices */
@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3rem;
    --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;
  }
}

/*========== Variables Dark theme ==========*/
body.dark-theme {
  /* HSL color mode */
  --first-color-second: hsl(var(--hue-color), 30%, 8%);
  --title-color: hsl(var(--hue-color), 8%, 95%);
  --text-color: hsl(var(--hue-color), 8%, 75%);

  --input-color: hsl(var(--hue-color), 29%, 16%);
  --body-color: hsl(var(--hue-color), 28%, 12%);
  --container-color: hsl(var(--hue-color), 29%, 16%);
  --scroll-bar-color: hsl(var(--hue-color), 12%, 48%);
  --scroll-thumb-color: hsl(var(--hue-color), 12%, 36%);
}

/*========== Button Dark/Light ==========*/
.nav__btns {
  display: flex;
  align-items: center;
}

.language-toggle {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-shrink: 0;
  width: 96px;
  height: 36px;
  margin-right: 1rem;
  padding: 3px;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 999px;
  background: linear-gradient(135deg, rgb(255 255 255 / 48%), rgb(238 241 249 / 24%));
  -webkit-backdrop-filter: blur(6px) saturate(140%);
  backdrop-filter: blur(6px) saturate(140%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 85%), inset 0 -1px 0 rgb(125 139 168 / 12%), 0 4px 14px rgb(35 48 77 / 9%), 0 0 0 1px rgb(35 48 77 / 6%);
  transition: box-shadow 220ms ease;
}

.language-toggle__slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc((100% - 6px) / 2);
  height: calc(100% - 6px);
  border-radius: inherit;
  background: linear-gradient(145deg, rgb(255 255 255 / 90%), rgb(255 255 255 / 40%));
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 95%), inset 0 -1px 1px rgb(255 255 255 / 60%), 0 2px 5px rgb(40 53 78 / 12%);
  transition: transform 220ms cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}

.language-toggle[data-language="en"] .language-toggle__slider {
  transform: translateX(100%);
}

.language-toggle__option {
  position: relative;
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--title-color);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  opacity: .6;
  transition: color 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.language-toggle__option[aria-pressed="true"] {
  opacity: 1;
}

.language-toggle:hover {
  box-shadow: inset 0 1px 0 white, inset 0 -1px 0 rgb(125 139 168 / 12%), 0 5px 18px rgb(35 48 77 / 13%), 0 0 0 1px rgb(35 48 77 / 8%);
}

.language-toggle__option:hover {
  color: var(--first-color);
  opacity: 1;
}

.language-toggle__option:active {
  transform: scale(.94);
}

.language-toggle__option:focus-visible {
  outline: 2px solid var(--first-color);
  outline-offset: 2px;
}

.dark-theme .language-toggle {
  border-color: rgb(255 255 255 / 20%);
  background: linear-gradient(135deg, rgb(66 69 87 / 48%), rgb(28 30 42 / 30%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 16%), inset 0 -1px 0 rgb(255 255 255 / 4%), 0 4px 14px rgb(0 0 0 / 18%);
}

.dark-theme .language-toggle__slider {
  background: linear-gradient(145deg, rgb(255 255 255 / 22%), rgb(255 255 255 / 7%));
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 24%), inset 0 -1px 1px rgb(255 255 255 / 6%), 0 2px 5px rgb(0 0 0 / 20%);
}

@supports not ((backdrop-filter: blur(6px)) or (-webkit-backdrop-filter: blur(6px))) {
  .language-toggle { background: rgb(247 249 253 / 88%); }
  .dark-theme .language-toggle { background: rgb(35 37 49 / 88%); }
}

@media (prefers-reduced-motion: reduce) {
  .language-toggle, .language-toggle__slider, .language-toggle__option {
    transition: none;
  }
  .language-toggle__option:active {
    transform: none;
  }
}

html[lang="zh-CN"] body {
  font-family: "Poppins", "PingFang SC", "Microsoft YaHei", sans-serif;
}

@media screen and (max-width: 767px) {
  .language-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    margin: 0;
  }
}

.change-theme {
  font-size: 1.25rem;
  color: var(--title-color);
  margin-right: var(--mb-1);
  cursor: pointer;
}

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




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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0 0 var(--header-height) 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*==================== REUSABLE CSS CLASSES ====================*/
.section {
  padding: 2rem 0 4rem;
}

.section__title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-3);
}

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

/*==================== LAYOUT ====================*/
.container {
  max-width: 768px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

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

.header {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--body-color);
}

/*==================== NAV ====================*/
.nav {
  max-width: 968px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

.nav__toggle {
  font-size: 1.1rem;
  cursor: pointer;

}

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

@media screen and (max-width:767px) {
  .nav__menu {
    display: none;
  }
}

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

.nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--small-font-size);
  color: var(--title-color);
  font-weight: var(--font-medium);
}

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

.nav__icon {
  font-size: 1.2rem;
}

.nav__close {
  position: absolute;
  right: 1.3rem;
  bottom: .5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--first-color);
}

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

/* show menu */
.show-menu {
  bottom: 0;
}

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

/* Change background header */
.scroll-header {
  box-shadow: 0 -1px 4px rgba(0, 0, 0, .15);
}

/*==================== HOME ====================*/
.home__container {
  gap: 1rem;
}

.home__content {
  grid-template-columns: .5fr 3fr;
  padding-top: 3.5rem;
  align-items: center;
}

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

.home__social-icon {
  font-size: 1.25rem;
  color: var(--first-color);
}

.home__social-icon:hover {
  color: var(--first-color-alt);
  transform: translateY(-.25rem);
  transition: 1.5s;
}

.home__blob {
  width: 200px;
  fill: #b8c9bf;
}

.home__blob-img {
  width: 200px;
}

.home__data {
  grid-column: 1/3;
}

.home__title {
  font-size: var(--big-font-size);
}

.home__subtitle {
  font-size: var(--h3-font-size);
  color: var(--text-color);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-0-75);
}

.home__subtitle > [data-en] {
  display: block;
}

.home__role-line {
  display: block;
  min-height: 1.5em;
  white-space: nowrap;
}

html[lang="en"] .home__role-line {
  font-size: clamp(.7rem, 1.5vw, 1rem);
}

.button.glass-cta {
  font: inherit;
  font-weight: var(--font-medium);
  cursor: pointer;
  border-radius: 999px;
  padding: 1rem 1.5rem;
  gap: .5rem;
  color: var(--first-color);
  border: 1px solid hsla(var(--hue-color), 69%, 61%, .25);
  background: hsla(var(--hue-color), 69%, 61%, .12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 50%), 0 3px 12px hsla(var(--hue-color), 40%, 30%, .06);
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.button.glass-cta:hover {
  transform: translateY(-2px);
  background: hsla(var(--hue-color), 69%, 61%, .19);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 60%), 0 6px 18px hsla(var(--hue-color), 40%, 30%, .1);
}

.button.glass-cta .button__icon {
  margin-left: 0;
  transition: transform 220ms ease;
}

.button.glass-cta:hover .button__icon {
  transform: translate(2px, -1px);
}

.button.glass-cta:active {
  transform: translateY(0) scale(.97);
  box-shadow: inset 0 1px 3px hsla(var(--hue-color), 40%, 30%, .1);
}

.button.glass-cta:focus-visible {
  outline: 2px solid var(--first-color);
  outline-offset: 4px;
}

.dark-theme .button.glass-cta {
  color: hsl(var(--hue-color), 85%, 88%);
  border-color: rgb(255 255 255 / 14%);
  background: linear-gradient(145deg, rgb(26 29 43 / 88%), rgb(46 49 70 / 72%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 13%), inset 0 -1px 0 rgb(0 0 0 / 18%), 0 5px 16px rgb(0 0 0 / 18%);
}

.dark-theme .button.glass-cta:hover {
  color: #fff;
  border-color: rgb(255 255 255 / 20%);
  background: linear-gradient(145deg, rgb(35 39 57 / 94%), rgb(58 62 86 / 82%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 17%), 0 8px 22px rgb(0 0 0 / 24%);
}

@media (prefers-reduced-motion: reduce) {
  .button.glass-cta, .button.glass-cta .button__icon { transition: none; }
  .button.glass-cta:hover,
  .button.glass-cta:active,
  .button.glass-cta:hover .button__icon { transform: none; }
}

.home__description {
  margin-bottom: var(--mb-2);
}

.home__scroll-button {
  color: var(--first-color);
  transition: .3s;
}

.home__scroll-button:hover {
  transform: translateY(0.25rem)
}

.home__scroll-mouse {
  font-size: 2rem;
}

.home__scroll-name {
  font-size: var(--small-font-size);
  color: var(--title-color);
  font-weight: var(--font-medium);
  margin-right: var(--mb-0-25);
}

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

/*==================== BUTTONS ====================*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  padding: 1rem;
  border-radius: .5rem;
  font-weight: var(--font-medium);
}

.button:hover {
  background-color: var(--first-color-alt);
}

.button__icon {
  font-size: 1.25rem;
  margin-left: var(--mb-0-5);
  transition: .3s;
}

.button--white {
  background-color: #fff;
  color: var(--first-color);
}

.button--white:hover {
  background-color: #fff;
}

.button--flex {
  display: inline-flex;
  align-items: center;
}

.button--small {
  padding: .75rem 1rem;
}

.button--link {
  padding: 0;
  background: transparent;
  color: var(--first-color);
}

.button--link:hover {
  background-color: transparent;
  color: var(--first-color);
}

/*==================== ABOUT ====================*/
.about__img {
  width: 200px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 65% 35%;
  border-radius: .5rem;
  justify-self: center;
  align-self: center;
}

.about__description {
  text-align: center;
  margin-bottom: var(--mb-2-5);
}

.about_info {
  display: flex;
  gap: .75rem;
  justify-content: space-evenly;
  margin-bottom: var(--mb-2-5);
}

.about_info > div { flex: 1; text-align: center; }
.button.glass-cta:disabled { cursor: default; }

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

.about__info-name {
  font-size: var(--smaller-font-size);
}

.about__info-title,
.about__info-name {
  display: block;
  text-align: center;
}

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

/*==================== SKILLS ====================*/
/* Compact offset cards with a separate composition for supporting text. */
.practice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .9rem;
  padding-inline: 1rem;
}
.practice-card {
  position: relative;
  isolation: isolate;
  --practice-surface: hsla(var(--hue-color), 55%, 72%, .09);
  --practice-ink: hsl(var(--hue-color), 25%, 46%);
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .2rem 1.2rem;
  align-items: center;
  padding: .7rem 1.5rem;
  border: 0;
  border-radius: 2.25rem;
  background: transparent;
  translate: -1rem 0;
  scale: 1;
  transition: scale 1100ms cubic-bezier(.25, .1, .25, 1);
}
.practice-card:nth-child(even) {
  translate: 1rem 0;
  --practice-surface: hsla(155, 25%, 65%, .10);
  --practice-ink: hsl(155, 26%, 44%);
}
.practice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: var(--practice-surface);
  filter: blur(8px);
  transition: background 280ms ease;
}
.practice-card::before {
  box-shadow: 14px 0 16px 2px var(--practice-surface);
}
.practice-card::after {
  content: "";
  position: absolute;
  inset: 0 20px auto;
  height: calc((100% - 5px) / 3);
  z-index: -1;
  pointer-events: none;
  border-radius: 1.8rem;
  background: var(--body-color);
  filter: url(#practice-inner-soft);
}
.practice-heading { grid-column: 1; display: flex; align-items: center; gap: .55rem; }
.practice-heading i { color: var(--first-color); font-size: 1.7rem; }
.practice-heading h3 { font-size: 1.2rem; line-height: 1.35; letter-spacing: -.025em; }
.practice-subtitle { margin: 0; max-width: 24rem; font-size: .95rem; line-height: 1.5; }
.practice-marquee {
  position: relative;
  left: calc(-100% - 2.7rem);
  width: calc(200% + 4.2rem);
  mask-image: linear-gradient(90deg, transparent 0%, transparent var(--practice-fade-start, 42%), #000 var(--practice-fade-end, 62%), #000 calc(100% - 48px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent var(--practice-fade-start, 42%), #000 var(--practice-fade-end, 62%), #000 calc(100% - 48px), transparent 100%);
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: stretch;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  padding-block: 0;
  display: grid;
  gap: .1rem;
}
.practice-track {
  display: flex;
  width: max-content;
  animation: practice-drift 20s linear infinite;
  will-change: transform;
}
.practice-list {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 1.25rem;
  padding-right: 1.25rem;
  justify-content: flex-start;
}
.practice-list li { flex: 0 0 auto; white-space: nowrap; }
.practice-name { font-size: 1rem; line-height: 1.5; color: var(--practice-ink); }
.practice-card:nth-child(2) .practice-track { animation-duration: 26s; }
.practice-card:nth-child(3) .practice-track { animation-duration: 23s; }
.practice-card:nth-child(4) .practice-track { animation-duration: 28s; }
.practice-card:nth-child(3) .practice-subtitle { text-align: center; }
.practice-marquee .practice-track:first-child { opacity: .32; }
.practice-marquee .practice-track:nth-child(2) { animation-duration: 31s; opacity: .7; }
body.dark-theme .practice-card { --practice-ink: hsl(var(--hue-color), 28%, 72%); }
body.dark-theme .practice-card:nth-child(even) { --practice-ink: hsl(155, 28%, 70%); }
@keyframes practice-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .practice-card:hover { scale: 1.03; }
}

@media screen and (max-width: 767px) {
  .practice-grid { padding-inline: .5rem; gap: .75rem; }
  .practice-card { padding: .65rem 1.2rem; gap: .15rem .9rem; border-radius: 2rem; translate: -.5rem 0; }
  .practice-card:nth-child(even) { translate: .5rem 0; }
  .practice-heading h3 { font-size: 1.15rem; }
  .practice-subtitle { font-size: .9rem; }
  .practice-name { font-size: .95rem; }
  .practice-marquee { left: calc(-100% - 2.1rem); width: calc(200% + 3.3rem); }
}
@media screen and (max-width: 420px) {
  .practice-card { grid-template-columns: minmax(0, 1fr); }
  .practice-subtitle { text-align: center; padding-inline: .35rem; }
  .practice-card { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
  .practice-marquee { grid-column: 2; grid-row: 1 / 3; left: calc(-90.47619% - 2.057143rem); width: calc(190.47619% + 3.257143rem); }
  .practice-heading h3 { font-size: 1rem; }
  .practice-heading i { font-size: 1.4rem; }
  .practice-subtitle { text-align: left; padding-inline: 0; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .practice-card, .practice-card::before, .practice-card[data-aos] { transition: none !important; }
  .practice-track { animation: none !important; width: auto; will-change: auto; }
  .practice-track .practice-list { flex-wrap: wrap; min-width: 0; gap: .25rem 1rem; padding-right: 0; }
  .practice-track .practice-list[aria-hidden="true"] { display: none; }
  .practice-list li { white-space: normal; }
  .practice-card[data-aos] { opacity: 1 !important; transform: none !important; }
}

.skills__container {
  row-gap: 0;
}

.skills__header {
  display: flex;
  align-items: center;
  margin-bottom: var(--mb-2-5);
  cursor: pointer;
}

.skills__icon,
.skills__arrow {
  font-size: 2rem;
  color: var(--first-color);
}

.skills__icon {
  margin-right: var(--mb-0-75);
}

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

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

.skills__arrow {
  margin-left: auto;
  transition: .4s;
}

.skills__list {
  row-gap: 1.5rem;
  padding-left: 2.7rem;
}

.skills__titles {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--mb-0-5);
}

.skills__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
}


.skills__bar,
.skills__percentage {
  height: 5px;
  border-radius: .25rem;
}

.skills__bar {
  background-color: var(--first-color-lighter);
}

.skills__percentage {
  display: block;
  background-color: var(--first-color);
}

.skills__html {
  width: 90%;
}

.skills__css {
  width: 70%;
}

.skills__js {
  width: 60%;
}

.skills__react {
  width: 40%;
}

.skills__php {
  width: 90%;
}

.skills__mysql {
  width: 72%;
}

.skills__node {
  width: 58%;
}

.skills__python {
  width: 94%;
}

.skills__blender {
  width: 50%;
}

.skills__photoshop {
  width: 42%;
}

.skills__adobeillustrator {
  width: 62%;
}

.skills__close .skills__list {
  height: 0;
  overflow: hidden;
}

.skills__open .skills__list {
  height: max-content;
  margin-bottom: var(--mb-2-5);
}

.skills__open .skills__arrow {
  transform: rotate(-180deg);
}

/*==================== QUALIFICATION ====================*/


/*==================== SERVICES ====================*/
.services__container {
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}

.services__content {
  position: relative;
  background-color: var(--container-color);
  padding: 3.5rem .5rem 1.25rem 1.5rem;
  border-radius: .25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
  transition: .3s;
}

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

.services__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
  font-weight: var(--font-medium);
}

.services__button {
  cursor: pointer;
  font-size: var(--small-font-size);
}

.services__button:hover .button__icon {
  transform: translateX(.25rem);
}

.services__modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: .3s;
}

.services__modal-content {
  position: relative;
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: .5rem;
}

.services__modal-services {
  row-gap: 1rem;
}

.service__modal-service {
  display: flex;
}

.services__modal-title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-1-5);
}

.services__modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--first-color);
  cursor: pointer;
}

.services__modal-icon {
  color: var(--first-color);
  margin-right: var(--mb-0-25);
}

/* Active Modal */
.active-modal {
  opacity: 1;
  visibility: visible;
}

/*==================== PORTFOLIO ====================*/
.portfolio__container {
  overflow: initial;
}

.portfolio__content {
  padding: 0 1.5rem;
}

.portfolio__img {
  width: 265px;
  border-radius: .5rem;
  justify-self: center;
}

.portfolio__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-5);
}

.portfolio__description {
  margin-bottom: var(--mb-0-75);
}

.portfolio__button:hover .button__icon {
  transform: translateX(.25rem);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  content: '';
}

.swiper-portfolio-icon {
  font-size: 2rem;
  color: var(--first-color);
}

.swiper-button-prev {
  left: -.5rem;
}

.swiper-button-next {
  right: -.5rem;
}

.swiper-container-horizontal>.swiper-pagination-bullets {
  bottom: -2.5rem;
}

.swiper-pagination-bullet-active {
  background-color: var(--first-color);
}

.swiper-button-prev,
.swiper-button-next,
.swiper-pagination-bullet {
  outline: none;
}

/*==================== PROJECT IN MIND ====================*/
.project {
  text-align: center;
}

.project__bg {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, .3), transparent 32%),
    linear-gradient(135deg, hsl(226 63% 72%) 0%, hsl(252 51% 70%) 56%, hsl(284 40% 70%) 100%);
  padding-top: 3rem;
  overflow: hidden;
}

.project__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-0-75);
}

.project__description {
  margin-bottom: 1rem;
}

.project__title,
.project__description {
  color: #fff;
}

.button.glass-cta.project__cta {
  color: hsl(var(--hue-color), 70%, 52%);
  border-color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 8px 22px rgba(42, 28, 110, .16);
}

.button.glass-cta.project__cta:hover {
  background: rgba(255, 255, 255, .98);
  box-shadow: inset 0 1px 0 #fff, 0 12px 28px rgba(42, 28, 110, .22);
}

.project__visual {
  position: relative;
  width: min(116%, 430px);
  justify-self: center;
  align-self: end;
  transform: translateX(7%);
}

.project__img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 18px 28px rgba(31, 22, 82, .2));
  user-select: none;
}

.project__symbols {
  position: absolute;
  z-index: 3;
  top: -1%;
  left: 3%;
  width: 36%;
  height: 31%;
  pointer-events: none;
}

.project__symbol {
  position: absolute;
  left: var(--symbol-x);
  top: var(--symbol-y);
  font-size: var(--symbol-size);
  line-height: 1;
  opacity: 0;
  filter: drop-shadow(0 5px 9px rgba(42, 28, 110, .16));
  animation: project-symbol-float 3.6s cubic-bezier(.22, .8, .28, 1) forwards;
  will-change: transform, opacity;
}

@keyframes project-symbol-float {
  0% { opacity: 0; transform: translate3d(0, 12px, 0) rotate(var(--symbol-angle)) scale(.72); }
  20%, 66% { opacity: .92; }
  100% { opacity: 0; transform: translate3d(var(--symbol-drift), -34px, 0) rotate(calc(var(--symbol-angle) + 8deg)) scale(1.06); }
}



/*==================== TESTIMONIAL ====================*/
.testimonial__data,
.testimonial__header {
  display: flex;
}

.testimonial__data {
  justify-content: space-between;
  margin-bottom: var(--mb-1);
}

.testimonial__img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: var(--mb-0-75);
}

.testimonial__name {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
}

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

.testimonial__description {
  margin-bottom: var(--mb-2-5);
}

.swiper-container .swiper-pagination-testimonial {
  bottom: 0;
}


/*==================== CONTACT ME ====================*/
.contact__container {
  row-gap: 3rem;
}

.contact__information {
  display: flex;
  margin-bottom: var(--mb-2);
}

.contact__icon {
  font-size: 2rem;
  color: var(--first-color);
  margin-right: var(--mb-0-75);
}

.contact__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
}

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

.contact__content {
  background-color: var(--input-color);
  border-radius: .5rem;
  padding: .75rem 1rem .25rem;
}

.contact__label {
  font-size: var(--smaller-font-size);
  color: var(--title-color);
}

.contact__input {
  width: 100%;
  background-color: var(--input-color);
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  border: none;
  outline: none;
  padding: .25rem .5rem .5rem 0;
}

.button.glass-cta.contact__submit {
  min-height: 3.5rem;
  padding: 1rem 1.75rem;
  border-radius: 999px;
}

/*==================== THEME DISSOLVE ====================*/
body.theme-transitioning,
body.theme-transitioning .header,
body.theme-transitioning .nav__menu,
body.theme-transitioning .contact__content,
body.theme-transitioning .contact__input,
body.theme-transitioning .services__content,
body.theme-transitioning .practice-card,
body.theme-transitioning .footer__bg,
body.theme-transitioning .scrollup {
  transition: background-color 900ms cubic-bezier(.22, 1, .36, 1),
              color 760ms ease,
              border-color 820ms ease,
              box-shadow 900ms ease;
}

body.theme-transitioning h1,
body.theme-transitioning h2,
body.theme-transitioning h3,
body.theme-transitioning h4,
body.theme-transitioning p,
body.theme-transitioning span,
body.theme-transitioning a,
body.theme-transitioning i,
body.theme-transitioning label {
  transition: color 760ms ease, opacity 760ms ease;
}

body.theme-transitioning .button.glass-cta,
body.theme-transitioning .language-toggle,
body.theme-transitioning .language-toggle__slider {
  transition: color 760ms ease,
              background 900ms cubic-bezier(.22, 1, .36, 1),
              border-color 820ms ease,
              box-shadow 900ms ease,
              transform 220ms ease;
}

body.theme-transitioning::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal) + 10);
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 82% 8%, rgb(255 255 255 / 20%), transparent 45%),
              var(--theme-wash, rgb(18 21 33 / 16%));
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
  animation: theme-dissolve 1000ms cubic-bezier(.22, 1, .36, 1) both;
}

body.theme-to-dark { --theme-wash: rgb(17 20 32 / 18%); }
body.theme-to-light { --theme-wash: rgb(244 247 255 / 24%); }

@keyframes theme-dissolve {
  0% { opacity: 0; }
  32% { opacity: 1; }
  100% { opacity: 0; }
}

.change-theme {
  transition: color 760ms ease, transform 900ms cubic-bezier(.22, 1, .36, 1);
  transform-origin: center;
}

body.dark-theme .change-theme {
  color: hsl(var(--hue-color), 82%, 86%);
  transform: rotate(180deg) scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  body.theme-transitioning,
  body.theme-transitioning *,
  .change-theme {
    transition: none !important;
  }
  body.theme-transitioning::before { display: none; }
}

/*==================== FOOTER ====================*/
.footer {
  padding-top: 2rem;
}

.footer__container {
  row-gap: 3.5rem;
}

.footer__bg {
  background-color: var(--first-color);
  padding: 2rem 0 3rem;
  border-top: 1px solid transparent;
}

.dark-theme .footer__bg {
  background-color: hsl(var(--hue-color), 32%, 9%);
  border-top-color: rgb(255 255 255 / 8%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 3%), 0 -14px 36px rgb(0 0 0 / 8%);
}

.footer__title {
  font-size: var(--h1-font-size);
  margin-bottom: var(--mb-0-25);
}

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

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

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

.footer__social {
  font-size: 1.25rem;
  margin-right: var(--mb-1-5);
}

footer .footer__social a:hover {
  color: var(--first-color-lighter);
}

.footer__copy {
  font-size: var(--smaller-font-size);
  text-align: center;
  color: var(--text-color-light);
  margin-top: var(--mb-3);
}

.footer__title,
.footer__subtitle,
.footer__link,
.footer__social {
  color: #fff;
}


/*========== SCROLL UP ==========*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background-color: var(--first-color);
  opacity: .8;
  padding: 0 .3rem;
  border-radius: .4rem;
  z-index: var(--z-tooltip);
  transition: .4s;
}

.scrollup:hover {
  background-color: var(--first-color-alt);
}

.scrollup__icon {
  font-size: 1.5rem;
  color: #fff;
}



/* Show scroll */
.show-scroll {
  bottom: 5rem;
}

/*========== SCROLL BAR ==========*/
::-webkit-scrollbar {
  width: 0.6rem;
  background-color: var(--scroll-bar-color);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb-color);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-color-light);
}

/*==================== MEDIA QUERIES ====================*/
/* For small devices */
@media screen and (max-width: 350px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }

  .nav__menu {
    padding: 2rem .25rem 4rem;
  }

  .nav__list {
    column-gap: 0;
  }

  .home__content {
    grid-template-columns: .25fr 3fr;
  }

  .home__blob {
    width: 180px;
  }

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

  .services__container {
    grid-template-columns: max-content;
    justify-content: center;
  }

  .services__content {
    padding-right: 3.5rem;
  }

  .services__modal {
    padding: 0 .5rem;
  }

  .project__img {
    width: 200px;
  }

  .swiper-error{
    visibility: hidden;
  }

  .testimonial__data,
  .testimonial__header {
    flex-direction: column;
    align-items: center;
  }

  .testimonial__img {
    margin-right: 0;
    margin-bottom: var(--mb-0-25);
  }

  .testimonial__data,
  .testimonial__description {
    text-align: center;
  }
}

/* For medium devices */
@media screen and (min-width: 568px) {
  .home__content {
    grid-template-columns: max-content 1fr 1fr;
  }

  .home__data {
    grid-column: initial;
  }

  .home__img {
    order: 1;
    justify-self: center;
  }

  .about__container,
  .skills__container,
  .portfolio__content,
  .project__container,
  .contact__container,
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 768px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  body {
    margin: 0;
  }

  .section {
    padding: 6rem 0 2rem;
  }

  .section__subtitle {
    margin-bottom: 4rem;
  }

  .header {
    top: 0;
    bottom: initial;
  }

  .header,
  .main,
  .footer__container {
    padding: 0 1rem;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
    column-gap: 1rem;
  }

  .nav__icon,
  .nav__close,
  .nav__toggle {
    display: none;
  }

  .nav__list {
    display: flex;
    column-gap: 2rem;
  }

  .nav__menu {
    margin-left: auto;
  }

  .change-theme {
    margin: 0;
  }

  .home__container {
    row-gap: 5rem;
  }

  .home__content {
    padding-top: 5.5rem;
    column-gap: 2rem;
  }

  .home__blob {
    padding-top: 5.5rem;
  }

  .home {
    display: block;
  }

  .home__scroll-button {
    margin-left: 3rem;
  }

  .about__container {
    column-gap: 5rem;
  }

  .about__img {
    width: 350px;
  }

  .about__description {
    text-align: initial;
  }

  .about__info {
    justify-content: space-between;
  }

  .about__buttons {
    justify-content: initial;
  }

  .services__container {
    grid-template-columns: repeat(3, 218px);
    justify-content: center;
  }

  .services__icon {
    font-size: 2rem;
  }

  .services__content {
    padding: 6rem 0 2rem 2.5rem;
  }

  .services__modal-content {
    width: 450px;
  }

  .swiper-error{
    visibility: hidden;
  }

  .portfolio__img {
    width: 320px;
  }

  .portfolio__content {
    align-items: center;
  }

  .project {
    text-align: initial;
  }

  .project__bg {
    background: none;
  }

  .project__container {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
      radial-gradient(circle at 86% 12%, rgba(255, 255, 255, .24), transparent 28%),
      radial-gradient(circle at 22% 118%, rgba(117, 221, 255, .22), transparent 42%),
      linear-gradient(135deg, hsl(226 63% 72%) 0%, hsl(252 51% 70%) 56%, hsl(284 40% 70%) 100%);
    border-radius: 1rem;
    padding: 3rem 2.5rem 0;
    grid-template-columns: minmax(0, .9fr) minmax(330px, 1.1fr);
    column-gap: 1.25rem;
  }

  .project__data {
    align-self: center;
    padding: 0 0 1.4rem .75rem;
    position: relative;
    z-index: 2;
  }

  .project__visual {
    width: min(128%, 500px);
    justify-self: end;
    transform: translateX(14%);
  }

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

  .footer__bg {
    padding: 3rem 0 3.5rem;
  }

  .footer__links {
    flex-direction: row;
    column-gap: 2rem;
  }

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

  .footer__copy {
    margin-top: 4.5rem;
  }
}



/* For large devices */
@media screen and (min-width: 1024px) {

  .header,
  .main,
  .footer__container {
    padding: 0;
  }

  .home__blob {
    width: 320px;
  }

  .home__social {
    transform: translateX(-6rem);
  }

  .services__container {
    grid-template-columns: repeat(3, 238px);
  }

  .swiper-error{
    visibility: visible;
  }

  .portfolio__content {
    column-gap: 5rem;
  }

  .swiper-portfolio-icon {
    font-size: 3.5rem;
  }

  .swiper-button-prev {
    left: -3.5rem;
  }

  .swiper-button-next {
    right: -3.5rem;
  }

  .swiper-container-horizontal>.swiper-pagination-bullets {
    bottom: -4.5rem;
  }

  .contact__form {
    width: 460px;
  }

  .contact__inputs {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*==================== Waving hand  ====================*/
.wave {
  animation-name: wave-animation;
  /* Refers to the name of your @keyframes element below */
  animation-duration: 2.5s;
  /* Change to speed up or slow down */
  animation-iteration-count: infinite;
  /* Never stop waving :) */
  transform-origin: 70% 70%;
  /* Pivot around the bottom-left palm */
  display: inline-block;
}

@keyframes wave-animation {
  0% {
    transform: rotate(0.0deg)
  }

  10% {
    transform: rotate(14.0deg)
  }

  /* The following five values can be played with to make the waving more or less extreme */
  20% {
    transform: rotate(-8.0deg)
  }

  30% {
    transform: rotate(14.0deg)
  }

  40% {
    transform: rotate(-4.0deg)
  }

  50% {
    transform: rotate(10.0deg)
  }

  60% {
    transform: rotate(0.0deg)
  }

  /* Reset for the last half to pause */
  100% {
    transform: rotate(0.0deg)
  }
}

/*==================== Skills logo ====================*/
.main, .footer, .nav__menu {
  opacity: 1;
  transition: opacity 480ms ease;
}

.language-changing .main,
.language-changing .footer,
.language-changing .nav__menu {
  opacity: 0;
  transition-duration: 280ms;
}

@media (prefers-reduced-motion: reduce) {
  .main, .footer, .nav__menu {
    transition: none;
  }
}

.skills__logo:hover{
  transform: translateY(-.25rem);
  transition: 1s;
}

/* A separate viewport overlay keeps click coordinates exact during card scaling. */
.skill-click-heart {
  position: fixed;
  z-index: 10000;
  width: var(--heart-size);
  height: var(--heart-size);
  color: #ef4058;
  pointer-events: none;
  animation: skill-heart-float 1200ms ease-out forwards;
}
.skill-click-heart svg { display: block; width: 100%; height: 100%; }
@keyframes skill-heart-float {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--heart-angle)) scale(.65); }
  15% { opacity: .95; transform: translate(-50%, -65%) rotate(var(--heart-angle)) scale(1); }
  65% { opacity: .8; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--heart-drift)), calc(-50% - 48px)) rotate(var(--heart-angle)) scale(.9); }
}
@media (prefers-reduced-motion: reduce) {
  .skill-click-heart { animation-name: skill-heart-fade; }
}
@keyframes skill-heart-fade {
  from { opacity: .9; transform: translate(-50%, -50%) rotate(var(--heart-angle)); }
  to { opacity: 0; transform: translate(-50%, -50%) rotate(var(--heart-angle)); }
}

/* Display content stays free of accidental double-click selections. */
body {
  -webkit-user-select: none;
  user-select: none;
}
input, textarea, [contenteditable="true"],
.contact__subtitle, .contact__information, [data-selectable] {
  -webkit-user-select: text;
  user-select: text;
}
img, svg image {
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Slightly larger reading text without scaling headings or controls. */
.home__description, .about__description, .portfolio__description,
.project__description, .testimonial__description, .services__modal-description {
  font-size: calc(var(--normal-font-size) * 1.07);
}
.practice-subtitle { font-size: 1.015rem; }
@media screen and (max-width: 767px) {
  .practice-subtitle { font-size: .963rem; }
}
@media screen and (max-width: 420px) {
  .practice-subtitle { font-size: .856rem; }
}

.home_title { white-space: nowrap; }

.home__likes { display: flex; justify-content: center; align-items: center; gap: .45rem; margin-top: .85rem; color: var(--text-color); font-size: 1rem; font-variant-numeric: tabular-nums; }
.home__likes svg { width: 18px; height: 18px; color: #ef4058; }

.certificate-single { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.certificate-image-link { display: block; border-radius: 1.1rem; overflow: hidden; }
.certificate-image-link img { display: block; width: 100%; height: auto; }
.certificate-details h3 { font-size: 1.15rem; line-height: 1.4; }
.certificate-details p { margin-top: .5rem; }
.certificate-details .certificate-date { font-size: .85rem; color: var(--text-color-light); margin-bottom: 1.25rem; }

.project-screenshot { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 1rem; cursor: default; }

.services__link { color: inherit; text-decoration: none; cursor: pointer; position: relative; overflow: hidden; transition: transform .7s cubic-bezier(.22,1,.36,1), background-color .7s ease; }
.services__link::after { content:""; position:absolute; inset:auto -35% -65% 30%; height:120px; border-radius:50%; background:hsla(var(--hue-color),69%,61%,.12); filter:blur(18px); transition:transform .8s ease; }
.services__link:hover { transform: translateY(-6px); }
.services__link:hover::after { transform:translate(-20%,-28%); }
.services__summary { max-width:16rem; font-size:.78rem; line-height:1.55; color:var(--text-color); margin-bottom:1.25rem; }
.services__link .services__button { position:relative; z-index:1; }

/*==================== TYPOGRAPHY + LIGHTWEIGHT CARD REFINEMENT ====================*/
/* Scale the four home shortcuts visually without changing their layout footprint. */
.home__social-icon i {
  display: inline-block;
  transform: scale(1.3);
  transform-origin: center;
}

/* Section subtitles were intentionally removed; keep a calm title-to-content rhythm. */
.about > .section__title,
.skills > .section__title,
.certificate > .section__title,
.services > .section__title,
.portfolio > .section__title,
.contact > .section__title {
  margin-bottom: 2.35rem;
}

.about__description {
  font-size: 1.1rem;
  line-height: 1.85;
}

.about__info-name {
  font-size: .95rem;
  line-height: 1.45;
}

.certificate-details > p:not(.certificate-date) {
  font-size: 1.08rem;
  line-height: 1.6;
}

.certificate-details .certificate-date {
  font-size: 1rem;
  line-height: 1.5;
}

/* Rounded, compact service cards with the icon lifted into the top-right corner. */
.services__content {
  display: flex;
  flex-direction: column;
  min-height: 218px;
  padding: 1.55rem 1.6rem 1.35rem;
  border-radius: 2rem;
  box-shadow: 0 2px 5px rgb(24 33 58 / 10%);
}

.services__content > div {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.services__icon {
  position: absolute;
  z-index: 2;
  top: 1.25rem;
  right: 1.4rem;
  margin: 0;
  font-size: 2.45rem;
  line-height: 1;
}

.services__title {
  max-width: calc(100% - 3.25rem);
  margin: 0 0 .8rem;
  font-size: 1.3rem;
  line-height: 1.35;
}

.services__summary {
  max-width: 100%;
  margin: 0 0 1rem;
  color: var(--text-color);
  font-size: .98rem;
  line-height: 1.62;
  opacity: .68;
}

.services__button {
  margin-top: auto;
}

.services__link::after {
  border-radius: 50%;
}

.project__description {
  font-size: 1.12rem;
  line-height: 1.65;
  opacity: .62;
}

.contact__subtitle {
  color: var(--text-color);
  font-size: .98rem;
  line-height: 1.5;
  opacity: .62;
}

.contact__label {
  color: var(--text-color);
  font-size: .98rem;
  line-height: 1.4;
  opacity: .62;
}

.button.glass-cta.contact__submit {
  font-size: 1.05rem;
}

.footer__subtitle {
  display: inline-block;
  font-size: 1.02rem;
  line-height: 1.5;
  opacity: .58;
}

.footer__link {
  font-size: 1.08rem;
  line-height: 1.45;
  opacity: .78;
}

@media screen and (max-width: 767px) {
  .about > .section__title,
  .skills > .section__title,
  .certificate > .section__title,
  .services > .section__title,
  .portfolio > .section__title,
  .contact > .section__title {
    margin-bottom: 1.8rem;
  }

  .about__description { font-size: 1.08rem; }
  .about__info-name { font-size: .88rem; }
  .services__content { min-height: 205px; }
}

/*==================== IMAGE FEATHER + SECOND-PASS SURFACES ====================*/
.about__container {
  position: relative;
  isolation: isolate;
}

.about__media {
  position: relative;
  isolation: isolate;
  grid-column: 1;
  grid-row: 1;
  width: calc(200% + 1.5rem);
  max-width: none;
  margin-left: 0;
  margin-right: -100%;
  padding-bottom: 12px;
  margin-bottom: -12px;
  overflow: hidden;
  border-radius: 1.65rem;
  justify-self: center;
  align-self: center;
}

.about__media::before {
  content: none;
}

.about__media::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(90deg,
    rgb(12 18 31 / 68%) 0%,
    rgb(12 18 31 / 38%) 42%,
    rgb(12 18 31 / 8%) 60%,
    rgb(12 18 31 / 2%) 100%);
}

.about__img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  justify-self: start;
  border: 0;
  border-radius: 1.55rem;
  box-shadow: 0 14px 16px -17px rgb(27 37 68 / 30%);
  filter: none;
  transform: scale(1);
  transform-origin: center;
  transition: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.about__data {
  position: relative;
  z-index: 3;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  min-width: 0;
  padding: 2rem .65rem 2rem 1.15rem;
}

.about__data .about__description {
  margin-bottom: 1.55rem;
  color: rgb(255 255 255 / 84%);
  font-size: .98rem;
  line-height: 1.72;
  text-align: left;
  text-shadow: 0 1px 12px rgb(4 8 18 / 28%);
}

.about__data .about_info {
  width: 100%;
  max-width: 19rem;
  margin: 0 auto 1.55rem;
  gap: .35rem;
  align-items: start;
  justify-content: center;
}

.about__data .about__info-title {
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.25;
  text-shadow: 0 1px 10px rgb(4 8 18 / 28%);
}

.about__data .about__info-name {
  margin-top: .28rem;
  color: rgb(255 255 255 / 70%);
  font-size: .78rem;
  line-height: 1.4;
}

.about__data .about__buttons {
  width: 100%;
  justify-content: center;
}

.services__content {
  border: 0;
  box-shadow: 0 2px 7px hsla(var(--hue-color), 50%, 68%, .14);
}

.services__link:hover {
  transform: scale(1.025);
  box-shadow: 0 3px 13px 2px hsla(var(--hue-color), 55%, 66%, .22);
}

.services__link:hover::after {
  transform: translate(-10%, -15%) scale(1.08);
}

.dark-theme .services__content {
  box-shadow: 0 2px 8px hsla(var(--hue-color), 72%, 72%, .09);
}

.dark-theme .services__link:hover {
  box-shadow: 0 3px 14px 2px hsla(var(--hue-color), 72%, 72%, .16);
}

.contact__content {
  border: 0;
  border-radius: 1.35rem 1.35rem 0 0;
}

@media screen and (max-width: 567px) {
  .about__media {
    width: 100%;
    max-width: 398px;
    margin: 0 auto;
  }

  .about__img {
    width: 100%;
    max-width: 398px;
    margin: 0;
  }

  .about__data {
    grid-column: 1;
    grid-row: 1;
    padding: 1.5rem;
  }

  .about__media::after {
    background: linear-gradient(90deg,
      rgb(12 18 31 / 72%) 0%,
      rgb(12 18 31 / 42%) 58%,
      rgb(12 18 31 / 8%) 100%);
  }
}

@media screen and (min-width: 768px) {
  .about__media { width: calc(200% + 5rem); }
}

/*==================== MOBILE COMPATIBILITY ====================*/

/* Local card reveal: content remains visible when JavaScript is unavailable. */
.card-reveal {
  --card-reveal-y: 28px;
  opacity: 0;
  transform: translate3d(0, var(--card-reveal-y), 0);
  will-change: opacity, transform;
}

.card-reveal.card-reveal--from-top {
  --card-reveal-y: -28px;
}

.card-reveal.card-reveal--visible {
  animation: card-reveal-in 1200ms cubic-bezier(.22, 1, .36, 1)
    var(--card-reveal-delay, 0ms) both;
}

@keyframes card-reveal-in {
  from {
    opacity: 0;
    transform: translate3d(0, var(--card-reveal-y), 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-reveal,
  .card-reveal.card-reveal--visible {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}

@media screen and (max-width: 767px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .main,
  .section,
  .footer,
  .project__bg {
    width: 100%;
    max-width: 100%;
  }

  .container {
    width: auto;
    max-width: calc(100% - 2rem);
    margin-right: 1rem;
    margin-left: 1rem;
  }

  /* Anchor navigation should leave the fixed controls visible. */
  section[id] {
    scroll-margin-top: 1rem;
  }

  /* Legacy AOS attributes no longer control visibility. */
  [data-aos]:not(.card-reveal),
  [data-aos].aos-animate:not(.card-reveal) {
    opacity: 1 !important;
    transform: none !important;
  }

  .card-reveal {
    --card-reveal-y: 18px;
  }

  .card-reveal.card-reveal--from-top {
    --card-reveal-y: -18px;
  }

  .language-toggle {
    top: max(.75rem, env(safe-area-inset-top, 0));
    right: .75rem;
    z-index: calc(var(--z-fixed) + 2);
    width: 88px;
    height: 34px;
  }

  .header {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .nav {
    max-width: none;
  }

  .home {
    min-height: auto;
    padding-top: 3.75rem;
    padding-bottom: 1.25rem;
  }

  .home__container,
  .home__content,
  .home__data,
  .home__img {
    min-width: 0;
    max-width: 100%;
  }

  .home__content {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 1rem;
    padding-top: 0;
  }

  .home__img {
    order: 0;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    align-self: center;
  }

  .home__blob {
    width: min(58vw, 220px);
    max-width: 100%;
  }

  .home__data {
    grid-column: 1 / -1;
  }

  .home__data > .button.glass-cta {
    display: flex;
    width: max-content;
    margin-left: auto;
  }

  .home_title {
    max-width: 100%;
    font-size: clamp(1.72rem, 8vw, 2.25rem);
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .home__subtitle,
  .home__role-line {
    max-width: 100%;
  }

  .home__role-line {
    min-height: 2.8em;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .home__description,
  .contact__subtitle,
  .portfolio__description {
    overflow-wrap: anywhere;
  }

  .home__scroll {
    margin-top: .25rem;
  }

  .about.section {
    padding-top: 1.5rem;
  }

  .practice-grid {
    max-width: calc(100% - 1rem);
    margin-right: .5rem;
    margin-left: .5rem;
    padding-inline: .25rem;
  }

  .practice-card,
  .practice-card:nth-child(even) {
    max-width: 100%;
    translate: 0 0;
  }

  .certificate-single,
  .services__container,
  .portfolio__content,
  .contact__container,
  .contact__inputs,
  .footer__container {
    grid-template-columns: minmax(0, 1fr);
  }

  .certificate-single {
    gap: 1.25rem;
  }

  .certificate-image-link {
    width: 100%;
    max-width: 34rem;
    margin-inline: auto;
  }

  .certificate-details {
    min-width: 0;
    text-align: center;
  }

  .services__container {
    gap: 1rem;
  }

  .services__content {
    width: 100%;
    min-height: 184px;
    padding: 1.35rem 1.4rem 1.25rem;
  }

  .services__title {
    padding-right: .5rem;
  }

  .portfolio__container {
    width: calc(100% - 1rem);
    max-width: calc(100% - 1rem);
    margin-right: .5rem;
    margin-left: .5rem;
    overflow: hidden;
  }

  .portfolio__content {
    gap: 1rem;
    padding: 0 2.25rem;
  }

  .portfolio__img {
    width: 100%;
    max-width: 32rem;
  }

  .portfolio__data {
    min-width: 0;
    text-align: center;
  }

  .project__container {
    max-width: calc(100% - 2rem);
  }

  .project__visual {
    width: min(108%, 430px);
    max-width: none;
    transform: translateX(4%);
  }

  .contact__container {
    row-gap: 2rem;
  }

  .contact__details,
  .contact__form,
  .contact__content,
  .contact__input {
    min-width: 0;
    max-width: 100%;
  }

  .contact__information > div {
    min-width: 0;
  }

  .contact__form {
    width: 100%;
  }

  .footer__container {
    row-gap: 2rem;
  }

  .footer__links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: .85rem 1.5rem;
  }

  .footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer__social {
    margin-right: 0;
  }

  .scrollup {
    right: .75rem;
  }
}

@media screen and (max-width: 420px) {
  .section {
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
  }

  .container {
    max-width: calc(100% - 1.5rem);
    margin-right: .75rem;
    margin-left: .75rem;
  }

  .home {
    padding-top: 3.5rem;
    padding-bottom: 1rem;
  }

  .about.section {
    padding-top: 1.25rem;
  }

  .home__content {
    grid-template-columns: 2rem minmax(0, 1fr);
    column-gap: .7rem;
  }

  .home__social {
    row-gap: .85rem;
  }

  .home__social-icon {
    font-size: 1.1rem;
  }

  .about__container {
    max-width: calc(100% - 1.25rem);
    margin-right: .625rem;
    margin-left: .625rem;
  }

  .about__media {
    height: 35rem;
    min-height: 35rem;
  }

  html[lang="en"] .about__media {
    height: 42rem;
    min-height: 42rem;
  }

  .about__img {
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 65% 35%;
  }

  .about__data {
    padding: 1.2rem 1rem;
  }

  .about__data .about__description {
    font-size: clamp(.78rem, 3.6vw, .93rem);
    line-height: 1.62;
  }

  .about__data .about_info {
    margin-bottom: 1.1rem;
  }

  .about__data .about__info-title {
    font-size: 1.08rem;
  }

  .about__data .about__info-name {
    font-size: .7rem;
  }

  .practice-card {
    grid-template-columns: minmax(7.5rem, .95fr) minmax(0, 1.05fr);
    padding: .65rem .85rem;
  }

  .practice-marquee {
    left: calc(-90.47619% - 1.35rem);
    width: calc(190.47619% + 2.4rem);
  }

  .services__content {
    min-height: 172px;
  }

  .portfolio__content {
    padding-inline: 1.8rem;
  }

  .swiper-button-prev {
    left: -.25rem;
  }

  .swiper-button-next {
    right: -.25rem;
  }

  .button.glass-cta {
    max-width: 100%;
  }
}
