.about__cert-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 84, 84, 0.4);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.about__cert-link:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}
.home__loop-inner:hover {
  animation-play-state: paused;
}

.home__loop-text span {
  color: var(--accent-color);
}

@keyframes loop-text {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Instrument+Serif:ital@1&family=Playfair+Display:wght@500;600;700&family=Roboto:wght@700&family=Space+Grotesk:wght@500;600;700&family=Syne:wght@500;600;700;800&display=swap");

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

  /*========== Colors ==========*/
  --body-color: #050505;
  --surface-color: #0e0e0f;
  --surface-alt: #161618;
  --border-color: rgba(255, 255, 255, 0.08);
  --title-color: #f7f7f7;
  --text-color: rgba(245, 245, 245, 0.72);
  --text-color-light: rgba(245, 245, 245, 0.48);
  --accent-color: #f05454;
  --accent-color-light: rgba(240, 84, 84, 0.08);
  --accent-color-soft: rgba(240, 84, 84, 0.28);
  --white-color: #ffffff;
  --black-color: #050505;

  /*========== Shadow ==========*/
  --shadow-sm: 0 12px 28px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 22px 45px rgba(0, 0, 0, 0.45);

  /*========== Typography ==========*/
  --body-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --display-font: "Syne", "Inter", sans-serif;
  --biggest-font-size: clamp(3rem, 6vw, 5rem);
  --h1-font-size: clamp(2.5rem, 4vw, 3.5rem);
  --h2-font-size: clamp(1.8rem, 3vw, 2.75rem);
  --h3-font-size: clamp(1.25rem, 2vw, 1.75rem);
  --normal-font-size: 1rem;
  --small-font-size: 0.9rem;
  --smaller-font-size: 0.8rem;

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

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

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: clamp(4rem, 5vw, 5.75rem);
    --h1-font-size: clamp(3.2rem, 4vw, 4rem);
    --h2-font-size: clamp(2.2rem, 3vw, 3.2rem);
    --h3-font-size: clamp(1.35rem, 2vw, 2rem);
    --normal-font-size: 1.05rem;
    --small-font-size: 0.95rem;
    --smaller-font-size: 0.85rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3Cfilter id='blur'%3E%3CfeGaussianBlur in='SourceGraphic' stdDeviation='1.5'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M10 8 L22 16 L10 24 Z' fill='%23b8b8b8' opacity='0.85' filter='url(%23blur)'/%3E%3Cpath d='M10 8 L22 16 L10 24 Z' fill='%23d8d8d8' opacity='0.7'/%3E%3C/svg%3E") 16 16, auto;
}

a,
button,
[role="button"],
input[type="submit"],
input[type="button"] {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3Cfilter id='blur'%3E%3CfeGaussianBlur in='SourceGraphic' stdDeviation='1.5'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M10 8 L22 16 L10 24 Z' fill='%23f05454' opacity='0.9' filter='url(%23blur)'/%3E%3Cpath d='M10 8 L22 16 L10 24 Z' fill='%23ff6b6b' opacity='0.8'/%3E%3C/svg%3E") 16 16, pointer;
}

h1,
h2,
h3,
h4 {
  color: var(--title-color);
  font-family: var(--display-font);
  font-weight: var(--font-extra-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.05;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*=============== THEME ===============*/


/*========== Variables Dark theme ==========*/


/*========== 
	Color changes in some parts of 
	the website, in dark theme
==========*/


/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

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

.section {
  padding-block: 6rem;
  position: relative;
}

.section:not(:first-of-type) {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.section__header .section__title-1,
.section__header .section__title-2 {
  margin-bottom: 0;
}

.section__title-1,
.section__title-2 {
  font-family: var(--display-font);
  font-size: var(--h2-font-size);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-color-light);
  margin-bottom: 5rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.section__button {
  flex-shrink: 0;
  background-color: var(--accent-color);
  color: var(--white-color);
  box-shadow: 0 12px 28px rgba(240, 84, 84, 0.3);
}

.section__button:hover {
  background-color: rgba(240, 84, 84, 0.9);
  box-shadow: 0 12px 28px rgba(240, 84, 84, 0.4);
}

.section__title-1::before,
.section__title-2::before {
  content: "";
  display: inline-flex;
  width: 64px;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--accent-color),
    rgba(240, 84, 84, 0)
  );
}

.geometric-box {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--first-color);
  rotate: -30deg;
}

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

.main {
  overflow: hidden; /* For animation ScrollReveal */
}

/*=============== HEADER & NAV ===============*/
.header {
  position: sticky;
  top: 0;
  width: 100%;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.82), rgba(5, 5, 5, 0.68));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: var(--z-fixed);
}

.header.shadow-header {
  border-bottom-color: rgba(240, 84, 84, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.nav {
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  padding-top: 0;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 120px;
  width: auto;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

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

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__link {
  font-weight: var(--font-medium);
  color: var(--text-color-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  position: relative;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.65rem;
  width: 0%;
  height: 1px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav__link:hover,
.nav__link.active-link {
  color: var(--accent-color);
}

.nav__link:hover::after,
.nav__link.active-link::after {
  width: 100%;
}

.nav__button {
  white-space: nowrap;
  margin-left: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  flex-shrink: 0;
}


/* Navigation for mobile devices */
.nav__toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.nav__toggle,
.nav__close {
  background: none;
  border: none;
  color: var(--title-color);
  transition: color 0.3s ease;
  cursor: pointer;
}

.nav__toggle:hover,
.nav__close:hover {
  color: var(--accent-color);
}

.nav__close {
  font-size: 1.5rem;
  margin-left: auto;
  margin-bottom: 1.5rem;
  display: none;
}


/* Show menu */


/* Add shadow header */


/* Active link */


/*=============== HOME ===============*/
.home {
  position: relative;
  padding-top: calc(var(--header-height) + 5rem);
  background: radial-gradient(
      120% 120% at 20% 15%,
      rgba(240, 84, 84, 0.08) 0%,
      rgba(5, 5, 5, 0.92) 45%,
      #050505 100%
    ),
    linear-gradient(180deg, rgba(10, 10, 12, 0) 0%, rgba(10, 10, 12, 0.6) 100%);
  overflow: hidden;
}

.home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/img/random-lines.svg");
  opacity: 0.18;
  mix-blend-mode: screen;
  pointer-events: none;
}

.home__container {
  position: relative;
  z-index: 1;
  justify-content: flex-start;
  gap: 4rem;
}

.home__tag {
  font-family: var(--display-font);
  font-size: 0.9rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-color-light);
  display: inline-block;
  margin-bottom: 1.5rem;
}

.home__title {
  font-family: var(--display-font);
  font-size: var(--biggest-font-size);
  line-height: 0.95;
  color: var(--title-color);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.home__title span {
  color: var(--accent-color);
}

.home__description {
  color: var(--text-color);
  line-height: 1.8;
  max-width: 540px;
  margin-bottom: 2.5rem;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: clamp(1.1rem, 2.1vw, 1.4rem);
}

.home__description strong {
  font-weight: 700;
}

.highlight-text {
  position: relative;
  display: inline;
  background: linear-gradient(120deg, rgba(240, 84, 84, 0.5) 0%, rgba(240, 84, 84, 0.4) 50%, rgba(240, 84, 84, 0.2) 80%, transparent 100%);
  background-position: 0 0;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 0.15em 0.2em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.home__description-name {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  color: #f05454;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.home__description-name:hover {
  opacity: 0.8;
}

.home__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.home__social {
  display: grid;
  gap: 0.75rem;
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.home__social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-color-light);
  transition: color 0.3s ease;
}

.home__social-link i {
  font-size: 1.1rem;
  color: var(--accent-color);
}

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


.home__loop {
  margin-top: 4rem;
  padding: 1.2rem 0;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.home__loop-inner {
  display: flex;
  gap: 2rem;
  animation: loop-text 18s linear infinite;
  will-change: transform;
}

.home__loop-text {
  font-family: var(--display-font);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--text-color-light);
  white-space: nowrap;
}

.home__loop-inner > * {
  flex: 0 0 auto;
}


/* Animate scroll icon */


/*=============== SCROLL REVEAL ===============*/
[data-reveal] {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

[data-reveal="left"] {
  transform: translateX(-70px);
}

[data-reveal="right"] {
  transform: translateX(70px);
}

[data-reveal="scale"] {
  transform: scale(0.92);
}

[data-reveal="left"].is-visible,
[data-reveal="right"].is-visible {
  transform: translate3d(0, 0, 0);
}

[data-reveal="scale"].is-visible {
  transform: scale(1);
}


/*=============== BUTTON ===============*/
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  background-color: var(--title-color);
  color: var(--black-color);
  font-weight: var(--font-semi-bold);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.1);
}

.button:hover {
  transform: translateY(-2px);
  background-color: var(--accent-color);
  color: var(--white-color);
  box-shadow: var(--shadow-hard);
}

.button--ghost {
  background-color: transparent;
  color: var(--title-color);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.button--ghost:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white-color);
}

.button--secondary {
  background-color: transparent;
  color: var(--white-color);
  border: 1.5px solid var(--accent-color);
  box-shadow: none;
}

.button--secondary:hover {
  background-color: var(--accent-color);
  color: var(--white-color);
}


/*=============== ABOUT ===============*/
.about__container {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 6rem;
  align-items: start;
  margin-top: 1rem;
}

.about__image {
  justify-self: center;
}

.about__image img {
  width: min(380px, 100%);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(240, 84, 84, 0.18), transparent);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  margin: 0;
  display: block;
}

.about__description {
  margin-bottom: 2.5rem;
  color: var(--text-color);
  line-height: 1.85;
  max-width: 640px;
  text-align: justify;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
}

.about__highlights {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.about__card {
  display: block;
  padding: 1.75rem;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease,
    background 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.about__card p {
  color: var(--text-color);
  line-height: 1.7;
}

.about__card:hover {
  transform: translateY(-6px);
  border-color: rgba(240, 84, 84, 0.5);
  background: linear-gradient(145deg, rgba(240, 84, 84, 0.12), transparent);
}

.about__card--location {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
}

.about__card-icon-wrapper {
  display: grid;
  place-items: center;
  justify-items: start;
}

.about__card-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(240, 84, 84, 0.35));
}

.about__card-content h3 {
  margin-bottom: 0.5rem;
}

.about__card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-color);
}


/*=============== SERVICES ===============*/
.services__container {
  display: grid;
  gap: 1rem;
}

.service__card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2.25rem 2rem;
  border-radius: 24px;
  background-color: var(--surface-alt);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.service__card:hover {
  border-color: rgba(240, 84, 84, 0.6);
  transform: translateX(6px);
}

.service__icon {
  font-family: var(--display-font);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--accent-color);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.service__card h3 {
  font-family: var(--display-font);
  text-transform: uppercase;
  font-size: clamp(1.2rem, 2vw, 1.85rem);
  margin-bottom: 0.6rem;
  color: var(--title-color);
}

.service__card p {
  color: var(--text-color-light);
  line-height: 1.75;
}

.service__card > div {
  display: grid;
  gap: 0.75rem;
}


/*=============== EXPERIENCE ===============*/
.timeline {
  display: grid;
  gap: 2.5rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(240, 84, 84, 0.6),
    rgba(255, 255, 255, 0.1)
  );
}

.timeline__item {
  padding: 0 0 0 3rem;
  position: relative;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 0 6px rgba(240, 84, 84, 0.12);
}

.timeline__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.3rem;
}

.timeline__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.04);
  padding: 0.5rem;
  flex-shrink: 0;
}

.timeline__item h3 {
  font-family: var(--display-font);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  margin-bottom: 0;
}

.timeline__date {
  display: inline-flex;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-color-light);
  margin-bottom: 1.2rem;
}

.timeline__item p {
  color: var(--text-color);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  max-width: 620px;
}

.timeline__item ul {
  display: grid;
  gap: 0.6rem;
  color: var(--text-color-light);
  padding-left: 1rem;
  list-style: disc;
}


/*=============== EDUCATION ===============*/
.education__container {
  display: grid;
  gap: 1.5rem;
}

.education__item {
  display: grid;
  gap: 0.85rem;
  padding: 2rem 2.25rem;
  border-radius: 24px;
  background-color: var(--surface-alt);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease;
  align-content: start;
}

.education__item .skills__container {
  width: 100%;
  max-width: 100%;
}

.education__item:has(.skills__container) {
  grid-column: 1 / -1;
}

.education__item:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 84, 84, 0.45);
}

.education__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.25rem;
  min-height: 64px;
}

.education__logo {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.04);
  padding: 0.5rem;
  flex-shrink: 0;
  display: block;
}

.education__item h3 {
  font-family: var(--display-font);
  font-weight: var(--font-extra-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0;
  line-height: 1.2;
  align-self: center;
}

.education__degree {
  font-family: var(--display-font);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: var(--font-bold);
  color: var(--title-color);
  margin: 0.75rem 0 0.5rem 0;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.education__date {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-color-light);
}

.education__item p {
  color: var(--text-color);
  line-height: 1.75;
}

.education__bullets {
  color: var(--text-color);
  line-height: 1.8;
  margin: 0;
}

.education__item ul {
  color: var(--text-color-light);
  display: grid;
  gap: 0.45rem;
  padding-left: 1rem;
  list-style: disc;
}

/*=============== LANGUAGES ===============*/
.languages__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.language__card {
  padding: 1.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.language__card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 84, 84, 0.4);
  background: linear-gradient(135deg, rgba(240, 84, 84, 0.12), transparent);
}

.language__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  min-height: 60px;
}

.language__flag {
  font-size: 2.5rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(240, 84, 84, 0.2));
}

.language__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.language__name {
  font-family: var(--display-font);
  font-size: 1.1rem;
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--title-color);
  margin: 0;
}

.language__level {
  font-size: 0.85rem;
  color: var(--text-color-light);
  letter-spacing: 0.05em;
}

.language__cert {
  font-size: 0.75rem;
  color: var(--text-color-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.7;
  min-height: 1.2rem;
}

.language__card:not(:has(.language__cert)) .language__header {
  margin-bottom: auto;
}

.language__progress {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-top: auto;
}

.language__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-color), rgba(240, 84, 84, 0.8));
  border-radius: 3px;
  transition: width 0.6s ease;
}

.education__link {
  color: var(--accent-color);
  font-weight: var(--font-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  transition: opacity 0.3s ease;
}

.education__link:hover {
  opacity: 0.75;
}

/*=============== SKILLS ===============*/
.skills__container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 1rem;
  width: 100%;
}

.skills__category {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.skills__category-title {
  font-family: var(--display-font);
  font-size: 0.85rem;
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-color-light);
  margin-bottom: 0.5rem;
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 1.25rem;
  width: 100%;
}

.skill__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  min-height: 90px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.skill__item:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 84, 84, 0.4);
  background-color: rgba(240, 84, 84, 0.08);
}

.skill__icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(240, 84, 84, 0.2));
}

.skill__name {
  font-size: 0.85rem;
  font-weight: var(--font-medium);
  color: var(--text-color);
  text-align: center;
  letter-spacing: 0.05em;
}

/*=============== PROJECTS ===============*/
.projects__container {
  display: grid;
  gap: 2.5rem;
}

.project__card {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
  padding: 2.5rem;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.35s ease, border-color 0.3s ease,
    background 0.3s ease;
  overflow: hidden;
}

.project__card:hover {
  transform: translateY(-8px);
  border-color: rgba(240, 84, 84, 0.45);
  background: linear-gradient(135deg, rgba(240, 84, 84, 0.12), transparent);
}

.project__preview {
  position: fixed;
  width: 700px;
  height: 500px;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  will-change: transform, opacity;
  background-color: rgba(14, 14, 15, 0.95);
}

.project__preview.is-visible {
  opacity: 1;
  transform: scale(1);
}

.project__preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.project__image img {
  width: 100%;
  border-radius: 24px;
  height: 280px;
  object-fit: cover;
  filter: grayscale(20%);
}

.project__badge {
  font-family: var(--display-font);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--accent-color);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  line-height: 1.1;
  display: block;
  font-weight: var(--font-extra-bold);
}

.project__meta {
  display: inline-flex;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--text-color-light);
}

.project__content h3 {
  font-family: var(--display-font);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-block: 0.6rem 1rem;
  color: var(--title-color);
}

.project__content p {
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.project__content ul {
  color: var(--text-color-light);
  margin-bottom: 1.75rem;
  display: grid;
  gap: 0.6rem;
  padding-left: 1rem;
  list-style: disc;
}

/*=============== CONTACT ===============*/
.contact__container {
  display: grid;
  gap: 2rem;
}

.contact__info p {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.contact__list {
  display: grid;
  gap: 1rem;
  color: var(--text-color);
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact__list i {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.contact__list span,
.contact__list a {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}

.contact__list a {
  color: var(--text-color);
  transition: color 0.3s ease;
}

.contact__list a:hover {
  color: var(--accent-color);
}

.contact__form {
  background-color: var(--surface-alt);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 1.5rem;
}

.contact__form-group {
  display: grid;
  gap: 0.5rem;
}

.contact__form label {
  font-weight: var(--font-medium);
  color: var(--title-color);
}

.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(255, 255, 255, 0.04);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--title-color);
  transition: border 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px var(--accent-color-light);
  background-color: rgba(255, 255, 255, 0.08);
}

.contact__form input::placeholder,
.contact__form textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
}

.contact__form textarea {
  resize: vertical;
  min-height: 150px;
}


/* Opaque placeholder */


/* Move label up & sticky label */


/*=============== FOOTER ===============*/
.footer {
  padding-block: 2.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 5, 5, 0.95);
}

.footer__container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
  color: var(--text-color);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

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

.footer__links {
  display: flex;
  gap: 1.75rem;
}

.footer__links a {
  color: var(--text-color-light);
  transition: color 0.3s ease;
}

.footer__links a:hover {
  color: var(--accent-color);
}


/*=============== SCROLL BAR ===============*/


/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1.5rem;
  bottom: -4rem;
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: var(--white-color);
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
  transition: bottom 0.3s ease, transform 0.3s ease;
  z-index: var(--z-tooltip);
}

.scrollup:hover {
  transform: translateY(-4px);
}

.show-scroll {
  bottom: 2rem;
}


/*=============== SCROLL PROGRESS BAR ===============*/
.scroll-progress {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 200px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  z-index: var(--z-tooltip);
  overflow: hidden;
}

.scroll-progress__bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--accent-color), rgba(240, 84, 84, 0.8));
  border-radius: 2px;
  transition: height 0.1s ease-out;
}

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


/* Show Scroll Up */


/*=============== CURSOR TRAIL EFFECT ===============*/
.cursor-trail {
  position: fixed;
  left: 0;
  top: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(240, 84, 84, 0.2) 0%,
    rgba(240, 84, 84, 0.1) 40%,
    rgba(240, 84, 84, 0) 70%
  );
  filter: blur(18px);
  mix-blend-mode: screen;
  animation: cursor-trail-fade 0.6s ease-out forwards;
  z-index: 5;
}

@keyframes cursor-trail-fade {
  0% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(0.45);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
  }
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 767px) {
  /* Ocultar preview de proyectos en dispositivos móviles */
  .project__preview {
    display: none !important;
  }

  .nav__menu {
    position: fixed;
    top: 1.25rem;
    right: -100%;
    width: min(280px, calc(100vw - 3rem));
    max-width: 85%;
    background-color: rgba(10, 10, 12, 0.95);
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-md);
    transition: right 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
    display: flex;
    flex-direction: column;
    z-index: var(--z-fixed);
    opacity: 0;
    visibility: hidden;
    box-sizing: border-box;
  }

  .nav__menu.show-menu {
    right: 1.5rem;
    opacity: 1;
    visibility: visible;
  }

  body {
    overflow-x: hidden;
    position: relative;
  }

  html {
    overflow-x: hidden;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .nav__close {
    display: block;
  }

  .nav__button {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .nav__toggle {
    display: block;
  }

  .home__container {
    text-align: center;
  }

  .home__title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .home__description {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding-inline: 0.5rem;
  }

  .home__cta {
    justify-content: center;
  }

  .home__social {
    justify-items: center;
  }

  .home__image img {
    width: min(280px, 100%);
  }

  .scrollup {
    right: 1rem;
  }

  .container {
    width: min(1200px, 95%);
    padding-inline: 1rem;
  }

  .section {
    padding-block: 4rem 3rem;
  }

  .section__title-1,
  .section__title-2 {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .about__description,
  .project__content p,
  .timeline__item p,
  .education__item p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .about__description {
    text-align: left;
    text-align-last: left;
  }

  .about__container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about__content {
    width: 100%;
    max-width: 100%;
  }

  .about__card--location {
    grid-template-columns: 60px 1fr;
    gap: 1rem;
    padding: 1.5rem;
  }

  .about__card-icon {
    width: 48px;
    height: 48px;
  }

  .home__data {
    width: 100%;
    max-width: 100%;
  }
}

/* For medium devices */
@media screen and (min-width: 768px) {
  .section {
    padding-block: 5rem 3.5rem;
  }

  .home__container,
  .about__container {
    grid-template-columns: minmax(0, 360px) minmax(0, 640px);
    align-items: start;
  }

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

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

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

  .education__item:has(.skills__container) {
    grid-column: span 2;
  }

  .skills__grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .contact__container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

/* For large devices */
@media screen and (min-width: 1024px) {
  .container {
    padding-inline: 2rem;
  }

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

  .nav__menu {
    position: static;
    width: auto;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .nav__list {
    flex-direction: row;
  }

  .nav__toggle {
    display: none !important;
  }

  .home__container {
    grid-template-columns: minmax(0, 620px);
  }

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

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

  .project__card {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .project__image img {
    height: 100%;
  }

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

  .education__item:nth-child(4),
  .education__item:nth-child(5),
  .education__item:has(.skills__container) {
    grid-column: span 3;
  }

  .skills__grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1.5rem;
  }
}
