/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: var(--body-color);
  z-index: var(--z-fixed);
  transition: box-shadow 0.4s, background-color 0.4s, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header--hidden {
  transform: translateY(-110%);
}

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

.nav__logo {
  display: flex;
  column-gap: 0.5rem;
  align-items: center;
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.nav__logo-circle,
.nav__toggle {
  width: 32px;
  height: 32px;
  background-color: var(--black-color);
  color: var(--white-color);
  display: grid;
  place-items: center;
}

.nav__logo-circle {
  border-radius: 50%;
}
.nav__toggle {
  font-size: 1.25rem;
  cursor: pointer;
}

@media screen and (max-width: 1150px) {
  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    background-color: hsla(0, 0%, 0%, 0.75);
    width: 100%;
    padding-block: 1.8rem 5rem;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: top 0.4s;
  }
}

.nav__title,
.nav__name,
.nav__close {
  color: var(--white-color);
}

.nav__title {
  display: block;
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 3.5rem;
}

.nav__name {
  position: relative;
  width: max-content;
  margin: 0 auto 3rem;
  font-size: var(--h2-font-size);
}

.nav__name::after,
.nav__name::before {
  content: "";
  width: 40px;
  height: 1px;
  background-color: var(--text-color-light);
  position: absolute;
  top: 50%;
  left: -4rem;
}

.nav__name::before {
  left: initial;
  right: -4rem;
}

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

.nav__link {
  position: relative;
  color: var(--text-color);
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  transition: color 0.3s;
}

.nav__link::after {
  content: "";
  width: 0;
  height: 2px;
  background-color: var(--white-color);
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  transition: width 0.3s;
}

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

.nav__link:hover::after {
  width: 25%;
}

.nav__close {
  position: absolute;
  font-size: 1.5rem;
  top: 1rem;
  right: 1.5rem;
  cursor: pointer;
}

.show-menu {
  top: 0;
}

.shadow-header {
  box-shadow: 0 1px 16px hsla(0, 0%, 0%, 0.12);
}

.active-link {
  color: var(--white-color);
}

.active-link::after {
  width: 25%;
}

/*=============== HOME ===============*/
.home {
  position: relative;
  overflow: hidden;
  padding-block: 40px 10px !important;
}

.home__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(hsla(0, 0%, 100%, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, hsla(0, 0%, 100%, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 30%, transparent 100%);
  pointer-events: none;
}

.home__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: blob-drift 10s ease-in-out infinite;
}

.home__glow--one {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -180px;
  background: radial-gradient(circle, hsla(192, 100%, 55%, 0.13), hsla(258, 72%, 65%, 0.08), transparent 70%);
  filter: blur(80px);
  animation-delay: 0s;
}

.home__glow--two {
  width: 520px;
  height: 520px;
  bottom: -180px;
  left: -160px;
  background: radial-gradient(circle, hsla(258, 72%, 65%, 0.12), hsla(14, 80%, 50%, 0.07), transparent 70%);
  filter: blur(90px);
  animation-delay: -5s;
}

@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -15px) scale(1.05); }
  66% { transform: translate(-15px, 10px) scale(0.97); }
}

.home__float-square {
  position: absolute;
  z-index: 0;
  border: 2px solid hsla(14, 100%, 58%, 0.35);
  background: hsla(14, 100%, 58%, 0.08);
  border-radius: 4px;
  animation: home-square-float 7s ease-in-out infinite;
  pointer-events: none;
}

.home__float-square--one {
  width: 16px;
  height: 16px;
  top: 18%;
  left: 8%;
}

.home__float-square--two {
  width: 10px;
  height: 10px;
  bottom: 24%;
  right: 6%;
  animation-delay: -3s;
}

.home__float-square--three {
  width: 14px;
  height: 14px;
  top: 45%;
  right: 10%;
  animation-delay: -1.5s;
}

.home__float-square--four {
  width: 12px;
  height: 12px;
  bottom: 35%;
  left: 8%;
  animation-delay: -4.5s;
}

.home__geo-box {
  position: absolute;
  z-index: 0;
  width: 22px;
  height: 22px;
  background-color: var(--first-color);
  rotate: -30deg;
  animation: home-square-float 5s ease-in-out infinite;
  pointer-events: none;
}

.home__geo-box::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 3px solid var(--black-color);
  left: -5px;
  top: -5px;
}

.home__geo-box--one {
  top: 20%;
  right: 14%;
}

.home__geo-box--two {
  bottom: 22%;
  left: 15%;
  animation-delay: -2s;
}

.home__geo-box--three {
  top: 10%;
  left: 30%;
  animation-delay: -3.5s;
}

.home__geo-line {
  position: absolute;
  top: 30%;
  right: -2rem;
  width: 90px;
  height: 1px;
  rotate: -45deg;
  background: linear-gradient(90deg, transparent, hsla(14, 100%, 58%, 0.4), transparent);
  pointer-events: none;
}

.home__particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: hsla(14, 100%, 62%, 0.5);
  animation: home-particle-drift 8s ease-in-out infinite;
  pointer-events: none;
}

.home__particle--one {
  top: 12%;
  left: 22%;
}

.home__particle--two {
  top: 65%;
  left: 12%;
  animation-delay: -2.5s;
}

.home__particle--three {
  top: 40%;
  right: 14%;
  animation-delay: -5s;
}

.home__particle--four {
  top: 25%;
  right: 30%;
  animation-delay: -1s;
}

.home__particle--five {
  bottom: 45%;
  left: 30%;
  animation-delay: -6.5s;
}

.home__particle--six {
  top: 55%;
  right: 22%;
  animation-delay: -3s;
}

@keyframes home-square-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(15deg);
  }
}

@keyframes home-particle-drift {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.2;
  }
  50% {
    transform: translate(8px, -14px);
    opacity: 0.8;
  }
}

.home__container {
  position: relative;
  z-index: 1;
  padding-top: 2rem;
}

.home__name {
  font-family: var(--display-font);
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--title-color) 60%, hsla(14, 80%, 60%, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.home__image {
  position: relative;
  width: 220px;
}

.home__image::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: radial-gradient(circle, rgba(255, 90, 44, 0.12), transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.home__badge {
  position: absolute;
  top: -0.4rem;
  right: -1.5rem;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
  color: var(--white-color);
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: home-badge-float 5s ease-in-out infinite;
}

/* Connector line pointing down to the photo corner */
.home__badge::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: 0.6rem;
  transform: translateX(-50%);
  background: linear-gradient(hsla(0, 0%, 100%, 0.25), transparent);
}

@keyframes home-badge-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.home__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #2ecc71;
  box-shadow: 0 0 0 0 hsla(140, 70%, 50%, 0.6);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0% {
    box-shadow: 0 0 0 0 hsla(140, 70%, 50%, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px hsla(140, 70%, 50%, 0);
  }
  100% {
    box-shadow: 0 0 0 0 hsla(140, 70%, 50%, 0);
  }
}

.home__img {
  position: relative;
  z-index: 10;
  border: 1px solid hsla(0, 0%, 100%, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  animation: float 6s ease-in-out infinite;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.home__image:hover .home__img {
  border-color: hsla(14, 100%, 58%, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 30px hsla(14, 100%, 58%, 0.2);
}

.home__shadow {
  width: 100%;
  height: 100%;
  background-color: var(--container-color);
  position: absolute;
  bottom: -0.75rem;
  right: -0.75rem;
  border: 1px solid hsla(0, 0%, 100%, 0.08);
  z-index: 5;
  transition: background-color 0.4s;
}

.home__corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid hsla(14, 100%, 58%, 0.7);
  z-index: 11;
  pointer-events: none;
}

.home__corner--tl {
  top: -6px;
  left: -6px;
  border-right: 0;
  border-bottom: 0;
}

.home__corner--br {
  bottom: 6px;
  right: -6px;
  border-left: 0;
  border-top: 0;
}

.home__perfil .geometric-box {
  top: 2.5rem;
  left: -0.7rem;
  z-index: 10;
}

.home__social {
  height: max-content;
  position: absolute;
  left: -3rem;
  top: 0rem;
  bottom: 0;
  margin: auto 0;
  display: grid;
  row-gap: 1rem;
}

.home__social-link {
  background-color: var(--black-color-light);
  color: var(--white-color);
  font-size: 1.25rem;
  padding: 6px;
  display: grid;
  place-items: center;
  transition: background-color 0.3s;
}

.home__social-link:hover {
  background-color: var(--black-color);
}

.home__info {
  margin-top: 4rem;
}

.home__description {
  text-align: center;
  color: var(--title-color);
  font-size: 18px !important;
}

.home__description b,
.home__typewriter {
  background: linear-gradient(
    90deg,
    hsla(14, 98%, 50%, 0.3),
    hsla(258, 72%, 65%, 0.15),
    hsla(14, 98%, 50%, 0)
  );
  padding: 0 4px;
  border-radius: 4px;
}

/* ===== TYPEWRITER ANIMATION ===== */
.home__typewriter {
  position: relative;
  display: inline-block;
}

.home__typewriter-word {
  display: none;
  color: var(--first-color);
  font-weight: 700;
}

.home__typewriter-word.active {
  display: inline;
  animation: typewriter-fade 0.5s ease;
}

@keyframes typewriter-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.home__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.home__stat {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem;
  text-align: center;
  border-radius: 16px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s, border-color 0.4s, box-shadow 0.4s;
}

.home__stat:hover {
  transform: translateY(-4px);
  border-color: var(--first-color);
  box-shadow: 0 12px 32px hsla(14, 80%, 50%, 0.18);
}

.home__stat-number {
  font-family: var(--display-font);
  font-size: var(--h2-font-size);
  font-weight: 800;
  color: var(--title-color);
  margin-bottom: 0.2rem;
}

.home__stat-label {
  color: var(--text-color-light);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.home__scroll {
  display: block;
  width: max-content;
  margin: 1rem auto 0;
}

.home__scroll-text {
  display: none;
  color: black !important;
}

.home__scroll-box {
  background-color: var(--black-color);
  color: var(--white-color);
  width: 11px;
  height: 11px;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.4s;
}

.home__scroll-box i {
  animation: scroll-down 3s infinite;
}

@keyframes scroll-down {
  0% {
    transform: translateY(-1rem);
    opacity: 0;
  }
  50% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(0.6rem);
    opacity: 0;
  }
}

/*=============== ABOUT ===============*/
.about {
  background-color: var(--container-color);
  transition: background-color 0.4s;
  padding-top: 32px !important;
}

.about__container {
  row-gap: 0;
}

.about__perfil {
  position: relative;
  justify-self: center;
  margin-block: 2.5rem 4.5rem;
}

.about__image {
  width: 220px;
}

.about__img {
  position: relative;
  border: 4px solid var(--white-color);
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

.about__shadow,
.about__line,
.about__box {
  position: absolute;
}

.about__shadow {
  width: 150px;
  height: 385px;
  background-color: var(--body-color);
  top: -2.5rem;
  right: -3.5rem;
  border-bottom: 4px solid var(--first-color);
  transition: background-color 0.4s;
}

.about__perfil .geometric-box {
  top: 1.5rem;
  right: -2.8rem;
}

.about__line {
  filter: invert(1);
  right: -1.25rem;
  top: 6rem;
  width: 50px;
  transition: filter 0.4s;
  animation: float-reversed 5s ease-in-out infinite;
}

.about__box {
  width: 40px;
  height: 40px;
  background-color: var(--first-color);
  right: -0.5rem;
  bottom: 1.5rem;
}

.about__info {
  padding-left: 1.25rem;
}

.about__description {
  position: relative;
  color: var(--title-color);
  font-size: 15px !important;
  text-align: justify;
  line-height: 1.4;
}


.about__description b {
  background: linear-gradient(
    90deg,
    hsla(14, 98%, 50%, 0.35),
    hsla(14, 98%, 50%, 0)
  );
  font-weight: var(--font-bold);
}

.about__description::after {
  content: "";
  width: 8px;
  height: 8px;
  background-color: var(--title-color);
  position: absolute;
  left: -1.25rem;
  top: 0.5rem;
}

.about__list {
  list-style: square;
  color: var(--title-color);
  
}

.about__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.about__skill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.about__skill:hover {
  transform: translateY(-4px) scale(1.1);
  border-color: var(--first-color);
  background: rgba(255, 90, 44, 0.1);
  box-shadow: 0 8px 24px hsla(14, 80%, 50%, 0.28);
}

.about__skill img {
  width: 22px;
  height: 22px;
}

.about__skill i {
  font-size: 1.2rem;
  color: hsl(14, 80%, 50%);
}

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

.about__btn-cv {
  padding: 1.1rem 1.5rem;
  white-space: nowrap;
}

/*=============== SERVICES (WHAT I BUILD) ===============*/
.services {
  position: relative;
  overflow: hidden;
  padding-block: 32px 4rem !important;
  background-color: var(--container-color);
  transition: background-color 0.4s;
}

.services__bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, hsla(14, 80%, 50%, 0.15), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pulse-glow 4s ease-in-out infinite;
}

.services__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(hsla(0, 0%, 0%, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, hsla(0, 0%, 0%, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.services__float-square {
  position: absolute;
  z-index: 1;
  border: 2px solid hsla(14, 100%, 58%, 0.3);
  background: hsla(14, 100%, 58%, 0.07);
  border-radius: 4px;
  animation: home-square-float 7s ease-in-out infinite;
  pointer-events: none;
}

.services__float-square--one {
  width: 16px;
  height: 16px;
  top: 15%;
  left: 8%;
}

.services__float-square--two {
  width: 12px;
  height: 12px;
  bottom: 18%;
  right: 7%;
  animation-delay: -3s;
}

.services__geo-box {
  position: absolute;
  z-index: 1;
  width: 22px;
  height: 22px;
  background-color: var(--first-color);
  rotate: -30deg;
  animation: home-square-float 5s ease-in-out infinite;
  pointer-events: none;
}

.services__geo-box::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 3px solid var(--black-color);
  left: -5px;
  top: -5px;
}

.services__geo-box--one {
  top: 20%;
  right: 15%;
}

.services__geo-box--two {
  bottom: 20%;
  left: 16%;
  animation-delay: -2s;
}

.services__particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: hsla(14, 100%, 62%, 0.45);
  animation: home-particle-drift 8s ease-in-out infinite;
  pointer-events: none;
}

.services__particle--one {
  top: 12%;
  right: 30%;
}

.services__particle--two {
  bottom: 30%;
  left: 25%;
  animation-delay: -2.5s;
}

.services__particle--three {
  top: 50%;
  left: 10%;
  animation-delay: -5s;
}

.services__header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.services__heading {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--title-color);
  margin-bottom: 1rem;
}

.services__subtitle {
  color: var(--text-color);
  font-size: var(--normal-font-size);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.services__container {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  position: relative;
  z-index: 2;
}

.services__card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services__card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 25px 50px hsla(0, 0%, 0%, 0.1);
}

.services__card-glow {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), hsla(14, 80%, 50%, 0.1), transparent 40%);
  z-index: 1;
}

.services__card:hover .services__card-glow {
  opacity: 1;
}

.services__card-border {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, hsla(0, 0%, 0%, 0.08), hsla(0, 0%, 0%, 0.03));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.services__card:hover .services__card-border {
  background: linear-gradient(135deg, hsl(14, 80%, 50%), hsl(14, 90%, 60%), hsl(14, 80%, 50%));
}

.services__card-content {
  position: relative;
  z-index: 3;
  background: hsla(0, 0%, 100%, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.services__icon-wrapper {
  width: 56px;
  height: 56px;
  background: hsl(14, 80%, 50%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.services__icon-wrapper i {
  font-size: 1.5rem;
  color: var(--white-color);
}

.services__card:hover .services__icon-wrapper {
  transform: rotate(8deg) scale(1.1);
}

.services__link i {
  transition: transform 0.3s ease;
}

.services__link:hover {
  color: hsl(14, 80%, 50%);
}

.services__link:hover i {
  transform: translate(4px, -4px);
}

.services__title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--title-color);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.services__card:hover .services__title {
  color: hsl(14, 80%, 50%);
}

.services__description {
  color: var(--text-color);
  font-size: var(--small-font-size);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.services__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.services__tag {
  background-color: var(--body-color);
  color: var(--text-color);
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.services__card:hover .services__tag {
  border-color: hsl(14, 80%, 50%);
  color: hsl(14, 80%, 50%);
  transform: translateY(-2px);
}

.services__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  font-size: var(--small-font-size);
  font-weight: 500;
  transition: all 0.3s ease;
}

.services__link i {
  transition: transform 0.3s ease;
}

.services__link:hover {
  color: hsl(14, 80%, 50%);
}

.services__link:hover i {
  transform: translate(4px, -4px);
}

/*=============== EXPERIENCE ===============*/
.experience {
  position: relative;
  background-color: var(--body-color);
  overflow: hidden;
  padding-top: 32px !important;
}

.experience::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -140px;
  top: -120px;
  background-color: var(--first-color);
  opacity: 0.12;
  filter: blur(60px);
  border-radius: 50%;
}

.experience::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  left: -120px;
  bottom: -140px;
  background: radial-gradient(
    circle,
    hsla(14, 90%, 60%, 0.25),
    hsla(14, 90%, 60%, 0)
  );
  filter: blur(50px);
  border-radius: 50%;
  opacity: 0.7;
}

.experience__container {
  row-gap: 2.5rem;
  padding-bottom: 5rem;
}

.experience__intro {
  display: grid;
  row-gap: 1.5rem;
}

.experience__text {
  color: var(--title-color);
  font-size: var(--h3-font-size);
  line-height: 1.6;
  text-align: center;
  margin-inline: auto;
  max-width: 620px;
  white-space: nowrap;
}

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

.experience__stat {
  background-color: var(--container-color);
  border: 3px solid var(--black-color);
  padding: 1.25rem 1.5rem;
  transition: background-color 0.4s, border 0.4s, transform 0.4s;
}

.experience__stat:hover {
  transform: translateY(-0.4rem);
}

.experience__stat-number {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  margin-bottom: 0.35rem;
}

.experience__stat-label {
  color: var(--text-color);
  font-size: var(--small-font-size);
}

.experience__timeline {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding-left: 1.75rem;
}

.experience__timeline::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background-color: var(--black-color);
  opacity: 0.2;
}

.experience__item {
  position: relative;
}

.experience__item-marker {
  position: absolute;
  left: -0.1rem;
  top: 1.4rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--first-color);
  border: 3px solid var(--black-color);
  z-index: 5;
}

.experience__item-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--first-color);
  padding: 1.25rem;
  border-radius: 12px;
  transition: background 0.4s, border-color 0.4s, transform 0.3s, box-shadow 0.3s;
}

.experience__item:hover .experience__item-card {
  transform: translateY(-3px);
  border-color: var(--first-color);
  box-shadow: 0 16px 40px hsla(14, 80%, 50%, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.experience__item-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

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

.experience__period {
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.experience__company {
  color: var(--first-color) !important;
  font-size: var(--small-font-size);
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

.experience__summary {
  color: var(--title-color);
  margin-bottom: 0.75rem;
  padding-left: 1.25rem;
  list-style: disc !important;
}

.experience__summary li {
  margin-bottom: 0.3rem;
  line-height: 1.5;
}

.experience__summary li:last-child {
  margin-bottom: 0;
}

.experience__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.experience__tag {
  background-color: var(--black-color);
  color: var(--white-color);
  font-size: var(--smaller-font-size);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.dark-theme .experience__item-card {
  background: rgba(255, 255, 255, 0.04);
  border-left-color: var(--first-color);
}

.dark-theme .experience__item:hover .experience__item-card {
  background: rgba(255, 255, 255, 0.07);
}

.dark-theme .experience__stat {
  background-color: var(--container-color);
}

.dark-theme .experience__timeline::before {
  background-color: var(--text-color-light);
  opacity: 0.4;
}

/*=============== PROJECTS ===============*/
.projects {
  background-color: var(--container-color);
  transition: background-color 0.4s;
  position: relative;
  overflow: hidden;
  padding-top: 32px !important;
}

.projects::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -160px;
  top: 40px;
  background: radial-gradient(
    circle,
    hsla(14, 90%, 60%, 0.2),
    hsla(14, 90%, 60%, 0)
  );
  filter: blur(60px);
  border-radius: 50%;
  opacity: 0.6;
  pointer-events: none;
}

.projects__container {
  row-gap: 0;
  column-gap: 0;
  padding-top: 0;
}

.projects__card {
  padding: 1rem 1rem 2rem;
  border-radius: 1rem;
  transition: background-color 0.4s, transform 0.4s;
}

.projects__card:hover {
  transform: translateY(-0.5rem);
}

.projects__image {
  position: relative;
  margin-bottom: 1.5rem;
  width: 100%;
  height: 200px;
}

.projects__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
}

.projects__button {
  position: absolute;
  right: 1.5rem;
  bottom: -1.25rem;
  padding: 1rem;
  border-radius: 30%;
}

.projects__content {
  margin-bottom: 1.25rem;
}

.projects__subtitle {
  position: relative;
  display: inline-block;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);
  margin-bottom: 0.75rem;
  padding-left: 1.75rem;
}

.projects__subtitle::after {
  content: "";
  width: 20px;
  height: 1px;
  background-color: var(--text-color);
  position: absolute;
  top: 50%;
  left: 0;
}

.projects__title {
  font-size: var(--h3-font-size);
  margin-bottom: 0.75rem;
}

.projects__buttons {
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

.projects__link {
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
  color: var(--text-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  transition: color 0.4s;
}

.projects__link i {
  font-size: 1rem;
  color: var(--title-color);
  transition: color 0.4s;
}

.projects__link:hover,
.projects__link:hover i {
  color: var(--first-color);
}

.projects__card:hover {
  background-color: var(--white-color);
}

/*=============== CONTACT ===============*/
.contact {
  position: relative;
  overflow: hidden;
  padding-top: 30px !important;
}

.contact::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  left: -180px;
  top: 80px;
  background: radial-gradient(
    circle,
    hsla(14, 90%, 60%, 0.18),
    hsla(14, 90%, 60%, 0)
  );
  filter: blur(70px);
  border-radius: 50%;
  opacity: 0.6;
  pointer-events: none;
}

.contact__container {
  position: relative;
  text-align: center;
}

.contact__subtitle {
  color: var(--text-color);
  font-size: var(--normal-font-size);
  max-width: 550px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.contact__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.contact__card {
  position: relative;
  background-color: var(--container-color);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem 1.25rem 0;
  text-decoration: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.3s, border-color 0.3s;
  overflow: hidden;
}

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

.contact__card-arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.1rem;
  color: var(--text-color-light);
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: opacity 0.3s, transform 0.3s;
}

.contact__card:hover .contact__card-arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--first-color);
}

.contact__card-icon {
  width: 36px;
  height: 36px;
  background-color: hsla(14, 80%, 50%, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--first-color);
}

.contact__card-label {
  color: var(--text-color);
  font-size: 0.75rem;
  font-weight: var(--font-medium);
}

.contact__card-value {
  color: var(--title-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  word-break: break-word;
}

.contact__cta {
  padding: 2rem 2rem 0;
}

.contact__cta-title {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-bottom: 0.75rem;
}

.contact__cta-text {
  color: var(--text-color);
  font-size: var(--normal-font-size);
  max-width: 500px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.contact__cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--black-color);
  color: var(--white-color);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: var(--font-semi-bold);
  font-size: var(--normal-font-size);
  transition: transform 0.3s, background-color 0.3s;
}

.contact__cta-button:hover {
  transform: translateY(-2px);
  background-color: var(--first-color);
}

.copyright {
  text-align: center;
  padding: 4px;
}

.copyright p {
  color: var(--text-color-light);
  font-size: var(--smaller-font-size);
}

.copyright a {
  color: var(--title-color);
  font-weight: var(--font-medium);
  transition: color 0.3s;
}

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

/*=============== FOOTER ===============*/
.footer {
  background-color: var(--black-color);
}

.footer__container {
  padding-block: 3rem 2rem;
  row-gap: 2.5rem;
}

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

.footer__link {
  color: var(--white-color);
  transition: color 0.4s;
}

.footer__link:hover {
  color: var(--text-color-light);
}

.footer__copy {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  text-align: center;
}

.footer__copy a {
  color: var(--white-color);
  font-weight: var(--font-medium);
}

/*=============== ANIMATIONS ===============*/
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes float-reversed {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/*=============== BUTTON SHIMMER ===============*/
.button:not(.projects__button) {
  position: relative;
  overflow: hidden;
}

.button:not(.projects__button)::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  pointer-events: none;
}

.button:not(.projects__button):hover::before {
  left: 125%;
}
