/* ============================================================= */
/*  Jesús Pérez — Portfolio                                        */
/*  Warm purple / white theme.                                     */
/* ============================================================= */

:root {
  --bg: #000;
  --text: #f0ebf7;
  --muted: #c7bdd6;
  --accent: #b49cff;        /* lavender — primary accent */
  --accent-strong: #7c5cff; /* violet — button fill */
  --accent-2: #8fa6ff;      /* periwinkle */
  --accent-3: #e6a4d4;      /* warm mauve / rose */
}

/* Offset anchor scrolling so the fixed header doesn't cover section titles */
#games,
#tools,
#skills,
#about,
#contact {
  scroll-margin-top: 120px;
}

/* ------------------------- */
/* Global Reset / Base Setup */
/* ------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Outfit", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  line-height: 1.1;
}

p {
  color: var(--muted);
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

button,
a {
  transition: all 0.2s ease;
}

/* ------------------------- */
/* Buttons                   */
/* ------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  min-width: 180px;
  padding: 0.9rem 1.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent-strong);
  color: #fff;
  border: 1px solid var(--accent-strong);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.16s ease,
    box-shadow 0.22s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(180, 156, 255, 0.18);
}

.btn:active {
  transform: translateY(0);
}

.btn-light {
  background: rgba(10, 16, 24, 0.78);
  color: #fff;
  border: 1px solid rgba(180, 156, 255, 0.32);
  backdrop-filter: blur(8px);
}

.btn-light:hover {
  background: var(--accent-strong);
  color: #fff;
  border-color: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(180, 156, 255, 0.08);
}

/* Card buttons (games + tools): outline idle, filled on hover */
.game-card__actions .btn,
.home-project-card__actions .btn {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.game-card__actions .btn:hover,
.home-project-card__actions .btn:hover {
  background: var(--accent-strong);
  color: #fff;
  border-color: var(--accent-strong);
}

/* ------------------------- */
/* Navbar                    */
/* ------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 2rem;
  transition: background-color 0.25s ease, backdrop-filter 0.25s ease,
    box-shadow 0.25s ease;
}

/* Balanced 3-section layout: brand left, nav centered, social right */
.header__brand {
  flex: 1 1 0;
  min-width: 0;
}

.header nav {
  flex: 0 0 auto;
}

.header__social {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.1rem;
}

.header__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  opacity: 0.85;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.header__social a:hover {
  color: var(--accent);
  opacity: 1;
  transform: translateY(-2px);
}

.header__social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

.header-bg {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.header__brand h1 {
  font-size: 2.25rem;
  line-height: 1;
  margin: 0;
  transition: color 0.2s ease;
}

.header__brand:hover h1 {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-menu li a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s ease;
}

.nav-menu li a:hover {
  color: var(--accent);
}

.nav-menu li a.active {
  color: var(--accent);
}

.nav-menu li a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.4rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ------------------------- */
/* Hero                      */
/* ------------------------- */
.home-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

.home-hero__mask {
  position: absolute;
  inset: 0;
}

.home-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.home-hero__mask::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.72) 42%,
      rgba(0, 0, 0, 0.48) 72%,
      rgba(0, 0, 0, 0.32) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.1) 0%,
      rgba(0, 0, 0, 0.16) 58%,
      rgba(0, 0, 0, 0.32) 74%,
      rgba(0, 0, 0, 0.62) 88%,
      rgba(0, 0, 0, 0.92) 96%,
      rgba(0, 0, 0, 1) 100%
    );
}

.home-hero__content {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.home-hero__eyebrow {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.home-hero__title {
  font-size: clamp(3rem, 6vw, 5.75rem);
  line-height: 0.98;
  max-width: 760px;
  margin-bottom: 1rem;
}

.home-hero__subtitle {
  max-width: 680px;
  font-size: 1.18rem;
  line-height: 1.75;
  color: #d6d6d6;
  margin-bottom: 2rem;
}

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

/* ------------------------- */
/* Specialties               */
/* ------------------------- */
.hero-specialties {
  padding: 0 2rem 2.5rem;
  background: var(--bg);
}

.hero-specialties__shell {
  max-width: 1140px;
  margin: 0 auto;
}

.hero-specialties__eyebrow {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1.75rem;
}

.hero-specialties__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-specialties__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(180, 156, 255, 0.16);
  background: rgba(8, 14, 24, 0.92);
  color: #f1f5ff;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 10px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease,
    color 0.2s ease;
}

.hero-specialties__pill:hover {
  transform: translateY(-2px);
  border-color: rgba(180, 156, 255, 0.5);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35),
    0 0 14px rgba(180, 156, 255, 0.12);
  color: var(--accent);
}

/* ------------------------- */
/* Projects                  */
/* ------------------------- */
.home-projects {
  padding: 3.5rem 2rem 3.5rem;
  background: var(--bg);
}

.home-projects__shell {
  max-width: 1140px;
  margin: 0 auto;
}

.home-projects__intro {
  margin-bottom: 2.5rem;
}

.home-projects__eyebrow {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.home-projects__title {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 760px;
}

.home-projects__copy {
  max-width: 760px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: #d2d2d2;
}

.home-projects__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.home-project-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    180deg,
    rgba(28, 28, 28, 0.96) 0%,
    rgba(12, 12, 12, 0.98) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 20px 40px rgba(0, 0, 0, 0.55), 0 8px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.home-project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(180, 156, 255, 0.25);
  box-shadow: 0 0 0 1px rgba(180, 156, 255, 0.08),
    0 26px 50px rgba(0, 0, 0, 0.6), 0 10px 22px rgba(0, 0, 0, 0.5);
}

.home-project-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.home-project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.home-project-card:hover .home-project-card__img {
  transform: scale(1.04);
}

/* Banner / logo art: show full image, centered on a styled backdrop */
.home-project-card__media--contain {
  padding: 1.5rem;
  background: radial-gradient(
    circle at 50% 28%,
    rgba(124, 92, 255, 0.12),
    #0a0a0a 72%
  );
}

.home-project-card__media--contain .home-project-card__img {
  object-fit: contain;
}

/* Video media: play overlay + link */
.home-project-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0.38) 100%
  );
  transition: background 0.25s ease;
}

.home-project-card__video:hover .home-project-card__play {
  background: linear-gradient(
    180deg,
    rgba(124, 92, 255, 0.18) 0%,
    rgba(0, 0, 0, 0.42) 100%
  );
}

.home-project-card__play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(124, 92, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45),
    0 0 22px rgba(124, 92, 255, 0.4);
  transition: transform 0.25s ease, background 0.25s ease;
}

.home-project-card__video:hover .home-project-card__play-btn {
  transform: scale(1.1);
  background: var(--accent-strong);
}

.home-project-card__play-btn svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
  fill: #fff;
  display: block;
}

.home-project-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 30px;
  padding: 0 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(12, 22, 36, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(180, 156, 255, 0.22);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.home-project-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.6rem;
}

.home-project-card__title {
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 0 0 0.85rem;
}

.home-project-card__subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: #cfd3dd;
  margin: 0 0 1.25rem;
}

.home-project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.35rem;
}

.home-project-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #2a2a2a;
  background: #111;
  color: #f2f2f2;
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-project-card__tag:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

.home-project-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: auto;
}

.home-project-card__actions .btn {
  min-width: 0;
  width: 100%;
}

/* ------------------------- */
/* Game cards                */
/* ------------------------- */
.game-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    180deg,
    rgba(28, 28, 28, 0.96) 0%,
    rgba(12, 12, 12, 0.98) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 20px 40px rgba(0, 0, 0, 0.55), 0 8px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(180, 156, 255, 0.25);
  box-shadow: 0 0 0 1px rgba(180, 156, 255, 0.08),
    0 26px 50px rgba(0, 0, 0, 0.6), 0 10px 22px rgba(0, 0, 0, 0.5);
}

.game-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.game-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.game-card:hover .game-card__image {
  transform: scale(1.04);
}

.game-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.6rem;
}

.game-card__title {
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 0 0 0.35rem;
}

.game-card__tagline {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.game-card__subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: #cfd3dd;
  margin: 0 0 1.25rem;
}

.game-card__downloads {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem 0.4rem 0.6rem;
  border-radius: 999px;
  background: rgba(12, 10, 22, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(180, 156, 255, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(180, 156, 255, 0.06);
}

.game-card__downloads svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: var(--accent);
  filter: drop-shadow(0 0 6px rgba(180, 156, 255, 0.5));
}

.game-card__downloads-count {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
}

.game-card__downloads-label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e3e4ec;
}

.game-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.35rem;
}

.game-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: auto;
}

.game-card__actions .btn {
  min-width: 0;
  width: 100%;
}

/* ------------------------- */
/* Skills                    */
/* ------------------------- */
.home-skills {
  padding: 0 2rem 4rem;
  background: var(--bg);
}

.home-skills__shell {
  max-width: 1140px;
  margin: 0 auto;
}

.home-skills__intro {
  margin-bottom: 2.5rem;
}

.home-skills__eyebrow {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent-3);
  margin-bottom: 1rem;
}

.home-skills__title {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.15;
  max-width: 760px;
}

.home-skills__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.home-skills__heading {
  font-size: 1.9rem;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.home-skills__heading--green {
  color: var(--accent);
}
.home-skills__heading--blue {
  color: var(--accent-2);
}
.home-skills__heading--pink {
  color: var(--accent-3);
}

.home-skills__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.home-skills__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(180, 156, 255, 0.18);
  background: rgba(8, 14, 24, 0.92);
  color: #f1f5ff;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-skills__pill:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

.home-skills__pill--blue {
  border-color: rgba(143, 166, 255, 0.18);
}
.home-skills__pill--blue:hover {
  border-color: var(--accent-2);
}
.home-skills__pill--pink {
  border-color: rgba(230, 164, 212, 0.18);
}
.home-skills__pill--pink:hover {
  border-color: var(--accent-3);
}

/* ------------------------- */
/* About                     */
/* ------------------------- */
.home-about {
  padding: 0 2rem 4rem;
  background: var(--bg);
}

.home-about__shell {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}

.home-about__content {
  max-width: none;
}

.home-about__media {
  display: flex;
  justify-content: center;
}

.home-about__photo-frame {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(180, 156, 255, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 40px rgba(124, 92, 255, 0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.home-about__photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(124, 92, 255, 0.12) 0%,
    rgba(0, 0, 0, 0) 38%,
    rgba(0, 0, 0, 0.28) 100%
  );
  pointer-events: none;
}

.home-about__photo-frame:hover {
  transform: translateY(-4px);
  border-color: rgba(180, 156, 255, 0.5);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 50px rgba(124, 92, 255, 0.24);
}

.home-about__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.home-about__eyebrow {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.home-about__title {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1.75rem;
  max-width: none;
}

.home-about__copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.home-about__copy p {
  font-size: 1.075rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: none;
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
}

.home-about__copy strong {
  color: var(--text);
  font-weight: 600;
}

/* ------------------------- */
/* Footer                    */
/* ------------------------- */
.footer {
  width: 100%;
  padding: 5rem 2rem 2.5rem;
  background: linear-gradient(
    180deg,
    rgba(14, 14, 14, 0.92) 0%,
    rgba(10, 10, 10, 0.98) 100%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ------------------------- */
/* Back to top               */
/* ------------------------- */
.back-to-top {
  position: fixed;
  right: 1.75rem;
  bottom: 1.75rem;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(180, 156, 255, 0.45);
  border-radius: 50%;
  background: rgba(124, 92, 255, 0.18);
  color: var(--accent);
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(124, 92, 255, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease,
    background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5),
    0 0 22px rgba(124, 92, 255, 0.4);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
}

@media screen and (max-width: 640px) {
  .back-to-top {
    right: 1.1rem;
    bottom: 1.1rem;
    width: 46px;
    height: 46px;
  }
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer-left,
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.footer-item__icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.footer-item p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #d2d2d2;
}

.footer-email {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.footer-email:hover {
  color: var(--accent);
}

.footer-title {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.2;
  color: #fff;
}

.footer-copy {
  margin: 0;
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #d2d2d2;
}

.social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.25rem;
}

.social a {
  font-weight: 600;
  position: relative;
}

.social a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.social a:hover::after {
  transform: scaleX(1);
}

.footer-legal {
  max-width: 1140px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: #8a8a8a;
}

/* ------------------------- */
/* Responsive                */
/* ------------------------- */
@media screen and (max-width: 980px) {
  .home-projects__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-skills__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media screen and (max-width: 900px) {
  .header {
    padding: 0 1.25rem;
  }

  .header__brand {
    margin-right: auto;
  }

  .header__brand h1 {
    font-size: 2rem;
  }

  .header__social {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    height: 100vh;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu li a {
    font-size: 2rem;
    font-weight: 600;
  }
}

@media screen and (max-width: 768px) {
  .home-hero__content {
    padding: 0 1.25rem;
  }

  .home-hero__title {
    max-width: 100%;
  }

  .home-hero__subtitle {
    font-size: 1rem;
    line-height: 1.65;
  }

  .home-hero__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero__actions .btn {
    width: 100%;
  }

  .hero-specialties {
    padding: 0 1.25rem 2.5rem;
  }

  .home-about {
    padding: 0 1.25rem 4rem;
  }

  .home-about__shell {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .home-about__content {
    order: 2;
  }

  .home-about__media {
    order: 1;
  }

  .home-about__photo-frame {
    max-width: 300px;
  }

  .home-about__copy p {
    font-size: 1rem;
    line-height: 1.75;
  }

  .footer {
    padding: 4rem 1.25rem 2.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-title {
    font-size: 1.35rem;
  }
}

@media screen and (max-width: 640px) {
  .home-projects {
    padding: 3rem 1.25rem 3rem;
  }

  .home-projects__grid {
    grid-template-columns: 1fr;
  }

  .home-skills {
    padding: 0 1.25rem 4rem;
  }
}
