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

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

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  /*   
        Purple: hsl(250, 66%, 75%)
        Blue: hsl(207, 90%, 72%)
        Pink: hsl(356, 66%, 75%)
        Teal: hsl(174, 63%, 62%)
  */
  --first-hue: 250;
  --sat: 66%;
  --lig: 75%;
  --second-hue: 219;
  --first-color: hsl(var(--first-hue), var(--sat), var(--lig));
  --first-color-alt: hsl(var(--first-hue), var(--sat), 71%); /* -4% */
  --title-color: hsl(var(--second-hue), 15%, 95%);
  --text-color: hsl(var(--second-hue), 8%, 75%);
  --text-color-light: hsl(var(--second-hue), 4%, 55%);
  --body-color: hsl(var(--second-hue), 48%, 8%);
  --container-color: hsl(var(--second-hue), 32%, 12%);

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

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

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

/* Responsive typography */
@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 2.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  background-color: var(--body-color);
  color: var(--text-color);
  transition: 0.4s; /* for light mode animation */
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

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

/*=============== CODE CURSOR ===============*/
body.has-code-cursor {
  cursor: none;
}

body.has-code-cursor a,
body.has-code-cursor button,
body.has-code-cursor label,
body.has-code-cursor .services__button,
body.has-code-cursor .work__item,
body.has-code-cursor .nav__link,
body.has-code-cursor .home__social-link,
body.has-code-cursor .footer__link {
  cursor: none;
}

body.has-code-cursor input,
body.has-code-cursor textarea {
  cursor: text;
}

body.has-code-cursor select {
  cursor: pointer;
}

.code-cursor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1101;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.code-cursor.is-visible {
  opacity: 1;
}

.code-cursor__dot,
.code-cursor__ring,
.code-cursor__label,
.code-cursor__particle {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
}

.code-cursor__dot,
.code-cursor__ring {
  transform: translate(-50%, -50%);
}

.code-cursor__dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--first-color);
  box-shadow: 0 0 18px hsla(var(--first-hue), var(--sat), var(--lig), 0.55);
}

.code-cursor__ring {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), 0.45);
  background: radial-gradient(
    circle,
    hsla(var(--first-hue), var(--sat), var(--lig), 0.14) 0%,
    transparent 70%
  );
  transition:
    width 0.2s ease,
    height 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.code-cursor.is-active .code-cursor__ring {
  width: 3.2rem;
  height: 3.2rem;
  border-color: var(--first-color);
  background: radial-gradient(
    circle,
    hsla(var(--first-hue), var(--sat), var(--lig), 0.2) 0%,
    transparent 72%
  );
}

.code-cursor__label {
  color: var(--first-color);
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.85;
  text-shadow: 0 0 12px hsla(var(--first-hue), var(--sat), var(--lig), 0.35);
}

.code-cursor__particle {
  color: var(--first-color);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: code-cursor-particle 0.9s ease forwards;
}

@keyframes code-cursor-particle {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(
        calc(-50% + var(--move-x, 0px)),
        calc(-50% + var(--move-y, -48px))
      )
      scale(1.08);
  }
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  body.has-code-cursor {
    cursor: auto;
  }

  body.has-code-cursor a,
  body.has-code-cursor button,
  body.has-code-cursor label,
  body.has-code-cursor .services__button,
  body.has-code-cursor .work__item,
  body.has-code-cursor .nav__link,
  body.has-code-cursor .home__social-link,
  body.has-code-cursor .footer__link,
  body.has-code-cursor input,
  body.has-code-cursor textarea,
  body.has-code-cursor select {
    cursor: auto;
  }

  .code-cursor {
    display: none;
  }
}

/*=============== INTERACTION FX ===============*/
.ripple-surface {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.tap-ripple {
  position: absolute;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    hsla(var(--first-hue), var(--sat), calc(var(--lig) + 8%), 0.45) 0%,
    hsla(var(--first-hue), var(--sat), var(--lig), 0.14) 62%,
    transparent 100%
  );
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  animation: tap-ripple 0.7s ease-out forwards;
}

.tap-code-particle {
  position: fixed;
  top: 0;
  left: 0;
  color: var(--first-color);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1102;
  animation: tap-code-particle 0.95s ease forwards;
}

@keyframes tap-ripple {
  0% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(var(--ripple-scale, 12));
  }
}

@keyframes tap-code-particle {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(
        calc(-50% + var(--move-x, 0px)),
        calc(-50% + var(--move-y, -52px))
      )
      scale(1.05);
  }
}

.scroll-glow-item {
  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease,
    border-color 0.45s ease,
    filter 0.45s ease;
}

.scroll-glow-item.is-glow-visible {
  transform: translateY(-0.22rem);
  box-shadow: 0 14px 34px hsla(var(--first-hue), var(--sat), var(--lig), 0.16);
  filter: saturate(1.03);
}

.light-theme .scroll-glow-item.is-glow-visible {
  box-shadow: 0 14px 34px hsla(var(--second-hue), 48%, 8%, 0.14);
}

/*========== Variables light theme ==========*/
body.light-theme {
  --title-color: hsl(var(--second-hue), 15%, 15%);
  --text-color: hsl(var(--second-hue), 8%, 35%);
  --body-color: hsl(var(--second-hue), 100%, 99%);
  --container-color: #e9e9e9;
}

/*========== 
    Color changes in some parts of 
    the website, in light theme
==========*/
.light-theme .scroll-header {
  box-shadow: 0 2px 4px hsla(0, 0%, 1%, 0.1);
}

.light-theme .nav__menu {
  background-color: hsla(var(--second-hue), 32%, 90%, 0.8);
}

.light-theme .section__subtitle {
  color: var(--text-color);
}

.light-theme .home__social-link {
  box-shadow: 0 2px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.light-theme .home__social-link::after,
.light-theme .footer__social-link {
  background-color: var(--title-color);
}

.light-theme .home__social-link,
.light-theme .home__scroll,
.light-theme .button,
.light-theme .button:hover,
.light-theme .active-work,
.light-theme .footer__title,
.light-theme .footer__link,
.light-theme .footer__copy {
  color: var(--title-color);
}

.light-theme .about__box {
  box-shadow: 0 2px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.light-theme .button,
.light-theme .skills__content,
.light-theme .services__card,
.light-theme .work__card,
.light-theme .testimonial__card,
.light-theme .contact__card,
.light-theme .contact__form-div,
.light-theme .review-modal__content,
.light-theme .share-modal__content {
  box-shadow: 0 2px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.light-theme .tools-spotlight {
  background:
    radial-gradient(circle at top right, hsla(var(--first-hue), var(--sat), var(--lig), 0.16), transparent 32%),
    linear-gradient(135deg, hsla(0, 0%, 100%, 0.98), hsla(220, 38%, 96%, 0.96));
  box-shadow: 0 12px 28px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.light-theme .tools-spotlight__stat {
  background-color: hsla(0, 0%, 100%, 0.88);
}

.light-theme::-webkit-scrollbar {
  background-color: hsl(var(--second-hue), 8%, 80%);
}
/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 968px;
  margin-left: 1rem;
  margin-right: 1rem;
}

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

.main {
  overflow: hidden;
}

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

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

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

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

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

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

.nav__logo {
  color: var(--first-color);
  font-weight: var(--font-medium);
  transition: 0.4s;
  min-width: 0;
}

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

.nav__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  column-gap: 0.5rem;
  flex-shrink: 0;
}

.language-select {
  width: 4.15rem;
  height: 2rem;
  background-color: var(--container-color);
  color: var(--title-color);
  border: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), 0.35);
  border-radius: 1rem;
  padding: 0 1.45rem 0 0.65rem;
  font-size: var(--tiny-font-size);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--first-color) 50%),
    linear-gradient(135deg, var(--first-color) 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 2px),
    calc(100% - 9px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}

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

.change-theme-button {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: var(--title-color);
  background-color: var(--container-color);
  border: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), 0.35);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
  flex-shrink: 0;
}

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

.nav__menu {
  position: fixed;
  bottom: 1rem;
  background-color: hsla(var(--second-hue), 32%, 16%, 0.8);
  width: 90%;
  border-radius: 4rem;
  padding: 1rem 2.25rem;
  backdrop-filter: blur(10px);
  transition: 0.4s;
}

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

.nav__link {
  color: var(--text-color);
  font-size: 1.25rem;
  padding: 0.4rem;
  font-weight: var(--font-medium);
  text-decoration: none;
  transition: 0.4s;
  display: flex;
  border-radius: 5rem;
}

/* Active link */
.active-link {
  background: linear-gradient(
    180deg,
    hsla(var(--first-hue), var(--sat), var(--lig), 0.5),
    hsla(var(--first-hue), var(--sat), var(--lig), 0.2)
  );
  box-shadow: 0 0 16px hsla(var(--first-hue), var(--sat), var(--lig), 0.4);
  border-radius: 5rem;

  color: var(--title-color);
}

/* Change background header */
.scroll-header {
  box-shadow: 0 4px 4px hsla(0, 0%, 4%, 0.3);
}

/*=============== HOME ===============*/
.home__container {
  position: relative;
  row-gap: 4.5rem;
  padding-top: 2rem;
}

.home__container::before {
  content: "";
  position: absolute;
  inset: 0.25rem 0.25rem 1.5rem;
  border-radius: 2rem;
  background-image:
    linear-gradient(
      hsla(var(--first-hue), var(--sat), var(--lig), 0.09) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      hsla(var(--first-hue), var(--sat), var(--lig), 0.09) 1px,
      transparent 1px
    );
  background-size: 34px 34px;
  opacity: 0.45;
  mask-image: radial-gradient(circle at center, #000 34%, transparent 84%);
  -webkit-mask-image: radial-gradient(circle at center, #000 34%, transparent 84%);
  pointer-events: none;
  animation: home-grid-drift 18s linear infinite;
}

.home__container::after {
  content: "</>   const   {}   =>   function()";
  position: absolute;
  inset: auto 0 3.4rem;
  text-align: center;
  font-family: "Courier New", monospace;
  font-size: var(--smaller-font-size);
  letter-spacing: 0.2rem;
  color: hsla(var(--first-hue), var(--sat), var(--lig), 0.22);
  pointer-events: none;
  animation: home-code-drift 14s ease-in-out infinite alternate;
}

.home__data {
  position: relative;
  z-index: 1;
  text-align: center;
}

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

.home__greeting {
  display: block;
  color: var(--title-color);
  margin-bottom: 0.25rem;
}

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

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

.home__rating {
  display: grid;
  justify-content: center;
  row-gap: 0.2rem;
  margin: 0.65rem 0 0.5rem;
}

.home__rating-stars {
  color: var(--first-color);
  letter-spacing: 0.1rem;
}

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

.home__img {
  width: 200px;
}

.home__handle {
  justify-self: center;
  width: 190px;
  height: 293px;
  background: linear-gradient(
    180deg,
    hsla(var(--first-hue), var(--sat), var(--lig), 0.5),
    hsla(var(--first-hue), var(--sat), var(--lig), 0.1)
  );

  border-radius: 10rem 10rem 1rem 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.home__button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.home__terminal {
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  column-gap: 0.45rem;
  margin: 0 auto 1.45rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), 0.18);
  border-radius: 0.95rem;
  background: linear-gradient(
    135deg,
    hsla(var(--first-hue), var(--sat), var(--lig), 0.09),
    hsla(var(--second-hue), 32%, 16%, 0.18)
  );
  box-shadow: inset 0 1px 0 hsla(var(--first-hue), var(--sat), var(--lig), 0.08);
}

.home__terminal-prompt {
  color: var(--first-color);
  font-family: "Courier New", monospace;
  font-weight: 700;
}

.home__terminal-text {
  max-width: min(74vw, 420px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--title-color);
  font-family: "Courier New", monospace;
  font-size: var(--small-font-size);
}

.home__terminal-cursor {
  width: 0.6rem;
  height: 1rem;
  border-radius: 999px;
  background-color: var(--first-color);
  box-shadow: 0 0 10px hsla(var(--first-hue), var(--sat), var(--lig), 0.3);
  animation: terminal-cursor-blink 0.95s steps(1) infinite;
}

.review-open-button {
  margin-top: 0.85rem;
  padding: 0.55rem 0.95rem;
  border-radius: 0.7rem;
  font-size: var(--small-font-size);
  line-height: 1.1;
}

.home__social,
.home__scroll {
  position: absolute;
}

.home__social {
  bottom: 4rem;
  left: 0;
  display: grid;
  row-gap: 0.5rem;
  z-index: 1;
}

.home__social-link {
  width: max-content;
  background-color: var(--container-color);
  color: var(--first-color);
  padding: 0.25rem;
  border-radius: 0.5rem;
  display: flex;
  font-size: 1rem;
  transition:
    0.4s,
    transform 0.25s ease,
    box-shadow 0.25s ease;
  will-change: transform;
}

.home__social-link:hover {
  background-color: var(--first-color);
  color: #ffffff;
}

.home__social-link.is-magnetic,
.footer__social-link.is-magnetic {
  box-shadow: 0 10px 24px hsla(var(--first-hue), var(--sat), var(--lig), 0.24);
}

.home__social::after {
  content: "";
  width: 32px;
  height: 1px;
  background-color: var(--first-color);
  transform: rotate(90deg) translate(16px, 4px);
}

.home__scroll {
  color: var(--first-color);
  right: -1.5rem;
  bottom: 4rem;
  display: grid;
  row-gap: 2.25rem;
  justify-items: center;
  z-index: 1;
}

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

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

@keyframes home-grid-drift {
  0% {
    background-position: 0 0, 0 0;
  }

  100% {
    background-position: 34px 34px, 34px 34px;
  }
}

@keyframes home-code-drift {
  0% {
    transform: translateY(0);
    opacity: 0.16;
  }

  100% {
    transform: translateY(-0.35rem);
    opacity: 0.28;
  }
}

@keyframes terminal-cursor-blink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home__container::before,
  .home__container::after,
  .home__terminal-cursor,
  .tap-ripple,
  .tap-code-particle {
    animation: none;
  }

  .scroll-glow-item {
    transition: none;
  }
}

/*=============== BUTTONS ===============*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: var(--body-color);
  padding: 0.75rem 1rem;
  border-radius: 0.8rem;
  font-weight: var(--font-medium);
  transition:
    0.4s,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

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

.button:active {
  transform: translateY(1px) scale(0.985);
}

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

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

.about__img {
  width: 220px;
  border-radius: 1.5rem;
  justify-self: center;
}

.about__data {
  text-align: center;
}

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

.about__box {
  background-color: var(--container-color);
  border-radius: 0.75rem;
  padding: 0.75rem 0.5rem;
}

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

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

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

.about__description {
  margin-bottom: 2rem;
}

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

.skills__content {
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 1.25rem;
}

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

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

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

.skills__data {
  display: flex;
  column-gap: 0.5rem;
}

.skills .bxs-badge-check {
  font-size: 1rem;
  color: var(--first-color);
}

.skills__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  line-height: 18px;
}

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

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

.services__card {
  background-color: var(--container-color);
  padding: 3rem 1.5rem 1.5em;
  border-radius: 1.25rem;
}

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

.services__button {
  color: var(--first-color);
  font-size: var(--small-font-size);
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.services__button:hover .services__icon {
  transform: translateX(0.25rem);
}

.services__icon {
  font-size: 1rem;
  transition: 0.4s;
}

/* Services modal */
.services__modal {
  position: fixed;
  inset: 0;
  background-color: hsl(var(--second-hue), 28%, 16%, 0.7);
  padding: 2rem 1rem;
  display: grid;
  place-items: center;
  transition: 0.4s;
  z-index: var(--z-modal);
  visibility: hidden;
  opacity: 0;
}

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

.services__modal-title,
.services__modal-description {
  text-align: center;
}

.services__modal-title {
  font-size: var(--h3-font-size);
  color: var(--first-color);
  margin-bottom: 1rem;
}

.services__modal-description {
  font-size: var(--small-font-size);
  margin-bottom: 2rem;
}

.services__modal-list {
  display: grid;
  row-gap: 0.75rem;
}

.services__modal-item {
  display: flex;
  align-items: flex-start;
  column-gap: 0.5rem;
}

.services__modal-icon {
  font-size: 1.5rem;
  color: var(--first-color);
}

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

.services__modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--first-color);
  background: transparent;
  border: 0;
  padding: 0;
  line-height: 1;
  cursor: pointer;
}
/*Active modal*/

.active-modal {
  visibility: visible;
  opacity: 1;
}

/*=============== WORK ===============*/

.work__container {
  padding-top: 1rem;
}

.work__filters {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 0.75rem;
  row-gap: 0.55rem;
  margin-bottom: 2rem;
}

.tools-spotlight {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1.25rem;
  align-items: center;
  max-width: 968px;
  margin: 0 auto 2rem;
  padding: 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), 0.18);
  background:
    radial-gradient(circle at top right, hsla(var(--first-hue), var(--sat), var(--lig), 0.18), transparent 32%),
    linear-gradient(135deg, hsla(var(--second-hue), 32%, 14%, 0.96), hsla(var(--second-hue), 28%, 11%, 0.98));
  box-shadow: 0 18px 42px hsla(var(--second-hue), 48%, 8%, 0.22);
}

.tools-spotlight::before {
  content: "";
  position: absolute;
  inset: auto auto -4rem -3rem;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: hsla(var(--first-hue), var(--sat), var(--lig), 0.14);
  filter: blur(10px);
}

.tools-spotlight > * {
  position: relative;
  z-index: 1;
}

.tools-spotlight__copy,
.tools-spotlight__stat {
  display: grid;
  gap: 0.45rem;
}

.tools-spotlight__eyebrow {
  width: fit-content;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background-color: hsla(var(--first-hue), var(--sat), var(--lig), 0.14);
  color: var(--first-color);
  font-size: var(--tiny-font-size);
  font-weight: var(--font-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.tools-spotlight__text {
  max-width: 38rem;
}

.tools-spotlight__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 0.75rem;
}

.tools-spotlight__stat {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background-color: hsla(var(--second-hue), 24%, 18%, 0.62);
  border: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), 0.12);
}

.tools-spotlight__stat strong {
  color: var(--title-color);
  font-size: 1.35rem;
}

.tools-spotlight__button {
  width: max-content;
  justify-self: start;
}

.work__item {
  cursor: pointer;
  color: var(--title-color);
  padding: 0.25rem 0.75rem;
  font-weight: var(--font-medium);
  border-radius: 0.5rem;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.work__card {
  background-color: var(--container-color);
  padding: 1rem;
  border-radius: 1rem;
}

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

.work__title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  margin-bottom: 0.25rem;
}

.work__button {
  width: max-content;
  color: var(--first-color);
  font-size: var(--small-font-size);
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
  cursor: pointer;
}

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

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

/* Active item work*/
.active-work {
  background-color: var(--first-color);
  color: var(--body-color);
}

/*=============== TESTIMONIAL ===============*/
.testimonial__card {
  background-color: var(--container-color);
  padding: 1.25rem 1.5rem;
  border-radius: 1.5rem;
  margin-bottom: 3rem;
}

.testimonial__img {
  width: 60px;
  border-radius: 3rem;
  margin-bottom: 1rem;
}

.testimonial__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  margin-bottom: 0.25rem;
}

.testimonial__description {
  font-size: var(--small-font-size);
  margin-bottom: 0.15rem;
}

/* Swiper class */
.swiper-pagination-bullet {
  background-color: var(--text-color-light);
}

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

/* Keep Swiper layout stable when page direction is RTL */
html[dir="rtl"] .testimonial__container {
  direction: ltr;
}

html[dir="rtl"] .testimonial__card {
  direction: rtl;
  text-align: right;
}

/*=============== REVIEW ===============*/
.review-modal {
  position: fixed;
  inset: 0;
  background-color: hsl(var(--second-hue), 28%, 16%, 0.7);
  padding: 2rem 1rem;
  display: grid;
  place-items: center;
  transition: 0.4s;
  z-index: var(--z-modal);
  visibility: hidden;
  opacity: 0;
}

.review-modal.active-review-modal {
  visibility: visible;
  opacity: 1;
}

.review-modal__content {
  width: min(100%, 560px);
  background-color: var(--body-color);
  border-radius: 1.25rem;
  padding: 2.25rem 1.5rem 1.5rem;
  position: relative;
}

.review-modal__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  font-size: 1.5rem;
  color: var(--first-color);
  background: none;
  border: none;
  cursor: pointer;
}

.review-modal__title {
  color: var(--first-color);
  text-align: center;
  margin-bottom: 1rem;
}

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

.review__field {
  display: grid;
  row-gap: 0.35rem;
}

.review__label {
  color: var(--title-color);
  font-size: var(--small-font-size);
}

.review__input {
  width: 100%;
  border: 2px solid var(--text-color-light);
  background: none;
  border-radius: 0.75rem;
  padding: 0.8rem 1rem;
  color: var(--text-color);
  outline: none;
}

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

.review__textarea {
  resize: vertical;
  min-height: 7rem;
}

.review__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

html[dir="rtl"] .review__form {
  text-align: right;
}

html[dir="rtl"] .review-modal__close {
  right: auto;
  left: 0.9rem;
}

/*=============== SHARE ===============*/
.share-float {
  position: fixed;
  right: 1.25rem;
  bottom: 5.75rem;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background-color: var(--first-color);
  color: var(--body-color);
  box-shadow: 0 8px 24px hsla(var(--first-hue), var(--sat), var(--lig), 0.35);
  z-index: var(--z-fixed);
  transition: 0.4s;
}

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

.share-float i {
  font-size: 1.35rem;
}

.share-modal {
  position: fixed;
  inset: 0;
  background-color: hsl(var(--second-hue), 28%, 16%, 0.7);
  padding: 2rem 1rem;
  display: grid;
  place-items: center;
  transition: 0.4s;
  z-index: var(--z-modal);
  visibility: hidden;
  opacity: 0;
}

.share-modal.active-share-modal {
  visibility: visible;
  opacity: 1;
}

.share-modal__content {
  width: min(100%, 420px);
  background-color: var(--body-color);
  border-radius: 1.25rem;
  padding: 2.25rem 1.5rem 1.5rem;
  position: relative;
  text-align: center;
}

.share-modal__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  font-size: 1.5rem;
  color: var(--first-color);
  background: none;
  border: none;
  cursor: pointer;
}

.share-modal__title {
  color: var(--first-color);
}

.share-modal__description {
  margin: 0.75rem 0 1.25rem;
  font-size: var(--small-font-size);
}

.share-modal__qr {
  width: fit-content;
  min-width: 212px;
  min-height: 212px;
  margin: 0 auto 1rem;
  padding: 1rem;
  background-color: #ffffff;
  border-radius: 1rem;
}

.share-modal__qr img,
.share-modal__qr canvas {
  display: block;
}

.share-modal__link-label {
  display: block;
  color: var(--title-color);
  font-size: var(--small-font-size);
  margin-bottom: 0.5rem;
}

.share-modal__link {
  display: inline-block;
  max-width: 100%;
  word-break: break-all;
  color: var(--first-color);
  font-size: var(--small-font-size);
}

html[dir="rtl"] .share-modal__close {
  right: auto;
  left: 0.9rem;
}

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

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

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

.contact__card {
  background-color: var(--container-color);
  padding: 2rem 1rem;
  border-radius: 0.75rem;
  text-align: center;
}

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

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

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

.contact__card-data {
  display: block;
  margin-bottom: 0.75rem;
}

.contact__button {
  color: var(--first-color);
  font-size: var(--small-font-size);
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.25rem;
  cursor: pointer;
}

.contact__button:hover .contact__button-icon {
  transform: translateX(0.25rem);
}

.contact__button-icon {
  font-size: 1rem;
  transition: 0.4s;
}

.contact__form-div {
  position: relative;
  margin-bottom: 2rem;
  height: 4rem;
}

.contact__form-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--text-color-light);
  background: none;
  border-radius: 0.75rem;
  padding: 1.5rem;
  font-size: var(--normal-font-size);
  color: var(--text-color);
  outline: none;
  z-index: 1;
}

.contact__form-tag {
  position: absolute;
  top: -0.75rem;
  left: 1.25rem;
  font-size: var(--smaller-font-size);
  padding: 0.25rem;
  background-color: var(--body-color);
  z-index: 10;
}

.contact__form-area {
  height: 17rem;
}

.contact__form-area textarea {
  resize: none;
}
/*=============== FOOTER ===============*/
.footer {
  background-color: var(--first-color);
}

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

.footer__title,
.footer__link {
  color: var(--body-color);
}

.footer__title {
  text-align: center;
  margin-bottom: 2rem;
}

.footer__list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 1.5rem;
  row-gap: 0.75rem;
  margin-bottom: 2rem;
}

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

.footer__social-link {
  background-color: var(--body-color);
  color: var(--first-color);
  padding: 0.35rem;
  border-radius: 0.25rem;
  font-size: 1rem;
  display: inline-flex;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.4s ease,
    color 0.4s ease;
  will-change: transform;
}

.home__social-link:active,
.footer__social-link:active {
  transform: scale(0.92);
}

.footer__copy {
  display: block;
  margin-top: 4.5rem;
  color: var(--container-color);
  text-align: center;
  font-size: var(--smaller-font-size);
  margin-bottom: 2rem;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.5rem;
  border-radius: 0.5rem;
  background-color: var(--container-color);
}

::-webkit-scrollbar-track {
  border-radius: 1.5rem;
}

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

::-webkit-scrollbar-thumb:hover {
  background-color: var(--first-color-alt);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px) {
  .home__terminal {
    max-width: 90vw;
    padding: 0.62rem 0.78rem;
  }

  .home__terminal-text {
    max-width: 62vw;
    font-size: var(--smaller-font-size);
  }

  .home__container::after {
    font-size: var(--tiny-font-size);
    letter-spacing: 0.08rem;
    bottom: 3rem;
  }

  .nav {
    gap: 0.4rem;
  }

  .nav__logo {
    max-width: calc(100% - 7.5rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav__actions {
    column-gap: 0.35rem;
  }

  .language-select {
    width: 3.55rem;
    height: 1.85rem;
    padding-left: 0.5rem;
    padding-right: 1.2rem;
    font-size: var(--smaller-font-size);
    border-radius: 0.85rem;
  }

  .change-theme-button {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 1.05rem;
  }

  .nav__menu {
    padding: 1rem 1.5rem;
  }

  .home__button {
    flex-direction: column;
  }

  .home__handle {
    width: 150px;
    height: 253px;
  }

  .home__img {
    width: 130px;
  }

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

  .skills__box {
    column-gap: 1rem;
  }

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

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

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

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

  .work__filters {
    column-gap: 0.25rem;
  }

  .tools-spotlight__stats {
    grid-template-columns: 1fr;
  }

  .tools-spotlight {
    padding: 1rem;
  }
}

@media screen and (min-width: 435px) {
  .work__container {
    justify-content: center;
    grid-template-columns: repeat(2, max-content);
  }

  .work__img {
    width: 165px;
  }
}

/* For medium devices */
@media screen and (max-width: 629px) {
  .home__terminal {
    max-width: 88vw;
  }

  .home__terminal-text {
    max-width: 65vw;
  }

  .home__container::after {
    font-size: var(--tiny-font-size);
    letter-spacing: 0.12rem;
    bottom: 3.1rem;
  }

  .nav {
    gap: 0.5rem;
  }

  .nav__logo {
    font-size: var(--smaller-font-size);
    max-width: calc(100% - 7.8rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav__actions {
    column-gap: 0.4rem;
  }

  .language-select {
    width: 3.7rem;
    height: 1.9rem;
    padding-left: 0.55rem;
    padding-right: 1.25rem;
    font-size: var(--smaller-font-size);
  }

  .change-theme-button {
    width: 1.9rem;
    height: 1.9rem;
    font-size: 1.1rem;
  }

  .tools-spotlight {
    padding: 1.2rem;
  }

  .tools-spotlight__button {
    width: 100%;
    text-align: center;
  }

  .work__filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -0.2rem;
    padding-inline: 0.2rem;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .work__filters::-webkit-scrollbar {
    display: none;
  }

  .work__item {
    flex: 0 0 auto;
    white-space: nowrap;
    min-width: max-content;
    padding: 0.55rem 1rem;
  }
}

@media screen and (min-width: 630px) {
  .nav__menu {
    width: 328px;
    left: 0;
    right: 0;
    margin: 0 auto;
  }

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

  .about__description {
    padding: 1rem 5rem;
    width: 600px;
    margin: 0 auto 2rem auto;
  }

  .about__box {
    padding: 1.75rem 0.95rem;
  }

  .skills__container {
    justify-content: center;
  }

  .skills__content {
    padding: 4rem 8.8rem;
  }

  .skills__title {
    font-size: var(--h3-font-size);
    margin-bottom: 1.5rem;
  }

  .skills__box {
    column-gap: 5.5rem;
  }

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

  .services__modal-content {
    width: 500px;
    padding: 4.5rem 2.5rem 2.5rem;
  }

  .services__modal-description {
    padding: 0 3.5rem;
  }

  .work__container {
    justify-content: center;
    grid-template-columns: repeat(2, max-content);
  }

  .work__img {
    width: 250px;
  }

  .tools-spotlight {
    grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.9fr) auto;
  }

  .testimonial__container {
    width: 600px;
    margin: auto;
  }

  .contact__container {
    display: grid;
    grid-template-columns: 220px 340px;
    column-gap: 2rem;
    justify-content: center;
  }

  .contact__info {
    grid-template-columns: 200px;
    gap: 1rem;
  }

  .contact__form {
    width: 340px;
  }
  /* .contact__info {
    grid-template-columns: 350px;
    justify-content: center;
  }

  .contact__form {
    width: 360px;
    margin: 0 auto;
  } */
}

/* @media screen and (min-width: 767px) {
  /* .work__container {
    grid-template-columns: repeat(2, max-content);
  } */

/* .contact__info {
    grid-template-columns: 300px;
  }

  .contact__container {
    grid-template-columns: repeat(2, 325px);
    justify-content: center;
  }
} */

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

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

  .section__title {
    margin-bottom: 3.5rem;
  }

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

  .home__handle {
    width: 290px;
    height: 400px;
  }

  .home__img {
    width: 220px;
  }
  .home__social-link {
    padding: 0.4rem;
    font-size: 1.25rem;
  }

  .home__social::after {
    transform: rotate(90deg) translate(16px, -1px);
  }

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

  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    column-gap: 4rem;
  }

  .about__img {
    width: 350px;
  }

  .about__data {
    text-align: initial;
  }

  .about__info {
    justify-content: initial;
    gap: 2rem;
  }

  .about__box {
    text-align: center;
    padding: 1rem 1.25rem;
  }

  .about__description {
    padding: 0 4rem 0 0;
    margin-bottom: 2.5rem;
  }

  .skills__container {
    grid-template-columns: repeat(2, 460px);
    column-gap: 3rem;
  }

  .skills__title {
    margin-bottom: 3.5rem;
  }

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

  .services__card {
    padding: 5rem 2rem 1.5rem;
  }

  .work__container {
    grid-template-columns: repeat(3, max-content);
    gap: 3rem;
  }

  .work__card {
    padding: 1.25rem;
  }

  .work__img {
    margin-bottom: 2rem;
  }

  .work__title {
    margin-bottom: 0.5rem;
  }

  .testimonial__container {
    width: 970px;
  }

  .testimonial__card {
    padding: 1.5rem 2rem;
  }

  .contact__info {
    grid-template-columns: 430px;
    gap: 1rem;
  }

  .contact__form {
    width: 430px;
  }

  .contact__form-area {
    height: 18rem;
  }

  .contact__container {
    grid-template-columns: repeat(2, 430px);
    column-gap: 6rem;
  }

  .footer__social-link {
    font-size: 1.25rem;
    padding: 0.4rem;
    border-radius: 0.5rem;
  }
}
