
/* Self-hosted variable fonts (latin subset). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-var.woff2") format("woff2");
}

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("assets/fonts/sora-var.woff2") format("woff2");
}

:root {
  --bg: #081126;
  --bg-soft: #0f1b35;
  --surface: #121f3f;
  --surface-2: #18284e;
  --text: #e9f0ff;
  --muted: #a8b7d6;
  --border: rgba(148, 172, 216, 0.24);
  --accent: #70d9a5;
  --accent-2: #70d9a5;
  --radius: 16px;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
}

body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  background: #080e1c;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: none;
  padding-inline: clamp(1rem, 14vw, 16rem);
  margin: 0 auto;
}

.section {
  padding: 4.8rem 0;
}

.section + .section {
  border-top: 1px solid rgba(132, 155, 198, 0.14);
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  margin: 0;
  border-radius: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(7, 14, 31, 0.72);
  border-bottom: 1px solid rgba(132, 155, 198, 0.18);
}

.header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  width: 100%;
  max-width: 100%;
  padding-inline: clamp(0.8rem, 2.4vw, 1.4rem);
}

.brand {
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1c2f5b, #13244a);
  border: 1px solid var(--border);
}

.site-nav {
  display: flex;
  gap: 0.7rem;
  margin-left: auto;
  margin-right: 0.2rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(125, 164, 225, 0.18);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
}

.desktop-cv {
  font-size: 0.88rem;
}

.section-kicker {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-cover {
  min-height: calc(100vh - 64px);
  min-height: calc(100dvh - 64px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2.5rem 0 1.5rem;
}

.hero-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(155, 177, 218, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 177, 218, 0.08) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px;
}

.hero-cover::after {
  content: "";
  position: absolute;
  left: 10%;
  bottom: 38%;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(73, 129, 206, 0.16);
  filter: blur(8px);
}

.hero-center {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 740px;
  margin: 0 auto;
  padding: 0;
}

#home .container {
  padding-inline: clamp(1rem, 6vw, 4.5rem);
}

.hero-name {
  margin: 0 0 0.35rem;
  color: #96a4c3;
  letter-spacing: 0.22em;
  font-size: clamp(0.84rem, 1.2vw, 1rem);
  font-weight: 700;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.08em;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-family: "Sora", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(2.65rem, 8vw, 5.2rem);
  font-weight: 800;
  color: #f3f6ff;
  position: relative;
}

.hero-title-main,
.hero-title-accent {
  display: block;
  white-space: nowrap;
}

.hero-title.is-compact {
  font-size: clamp(2.3rem, 6.9vw, 4.4rem);
}

.hero-title::before {
  content: "";
  position: absolute;
  left: -0.58rem;
  top: 0.14em;
  width: 3px;
  height: 76%;
  border-radius: 999px;
  background: var(--accent);
}

.hero-title-accent {
  color: var(--accent);
}

.hero-subtitle {
  max-width: 620px;
  margin: 0.95rem auto 0;
  color: #a8b7d4;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(1rem, 1.65vw, 1.24rem);
  font-weight: 600;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.social-row {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.social-icons .icon-link {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8fa5cf;
  border: 0;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-icons .icon-link:hover {
  color: #dfe9fb;
  transform: translateY(-1px);
}

.social-icons svg {
  width: 42px;
  height: 42px;
  fill: currentColor;
}

.scroll-note {
  margin: 0;
  font-size: 0.88rem;
  color: #92a4c8;
}

.scroll-arrow {
  display: inline-block;
  margin-top: 0.15rem;
  color: #9eb2d6;
  font-size: 1.35rem;
  line-height: 1;
}

.hero-scroll {
  position: absolute;
  inset-inline: 0;
  bottom: 1.1rem;
  width: max-content;
  margin-inline: auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(179, 201, 240, 0.42);
  filter: drop-shadow(0 0 4px rgba(132, 176, 248, 0.22));
  animation: heroParticleFloat 9s ease-in-out infinite, heroParticlePulse 3.4s ease-in-out infinite;
  transition: transform 0.35s ease, opacity 0.35s ease, filter 0.35s ease;
}

.hero-particles span:nth-child(1) { top: 22%; left: 8%; }
.hero-particles span:nth-child(2) { top: 34%; left: 18%; width: 4px; height: 4px; }
.hero-particles span:nth-child(3) { top: 52%; left: 12%; width: 5px; height: 5px; }
.hero-particles span:nth-child(4) { top: 46%; left: 33%; width: 4px; height: 4px; }
.hero-particles span:nth-child(5) { top: 62%; left: 27%; width: 5px; height: 5px; }
.hero-particles span:nth-child(6) { top: 18%; right: 18%; }
.hero-particles span:nth-child(7) { top: 30%; right: 28%; width: 4px; height: 4px; }
.hero-particles span:nth-child(8) { top: 54%; right: 14%; width: 5px; height: 5px; }
.hero-particles span:nth-child(9) { top: 67%; right: 24%; width: 4px; height: 4px; }
.hero-particles span:nth-child(10) { top: 44%; right: 38%; width: 5px; height: 5px; }

.hero-particles span:nth-child(2n) {
  animation-duration: 11.5s, 2.8s;
}

.hero-particles span:nth-child(3n) {
  animation-duration: 13s, 3.7s;
}

.hero-cover:hover .hero-particles span {
  opacity: 0.96;
  filter: drop-shadow(0 0 8px rgba(138, 184, 255, 0.45));
}

.hero-cover:hover .hero-particles span:nth-child(odd) {
  transform: translate3d(4px, -4px, 0) scale(1.18);
}

.hero-cover:hover .hero-particles span:nth-child(even) {
  transform: translate3d(-4px, 4px, 0) scale(1.18);
}

@keyframes heroParticleFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  25% {
    transform: translate3d(3px, -6px, 0);
  }
  50% {
    transform: translate3d(-3px, -2px, 0);
  }
  75% {
    transform: translate3d(2px, 5px, 0);
  }
}

@keyframes heroParticlePulse {
  0%,
  100% {
    opacity: 0.42;
  }
  50% {
    opacity: 0.88;
  }
}

.btn {
  border: 1px solid transparent;
  border-radius: 11px;
  text-decoration: none;
  padding: 0.62rem 0.98rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(38, 68, 120, 0.3);
}

.btn-primary {
  background: var(--accent);
  color: #081b13;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--text);
}

.btn-cv {
  background: linear-gradient(135deg, #e7f1ff, #cfdff7);
  color: #11243d;
  border-color: #adc4e6;
}

.card {
  background: linear-gradient(150deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
}

h3 {
  margin: 0 0 0.7rem;
}

p {
  margin: 0 0 0.8rem;
}

.about-heading {
  text-align: center;
  margin-bottom: 1.2rem;
}

.about-heading h2 {
  font-family: "Sora", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(2rem, 4.8vw, 3.1rem);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.about-heading p {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.35fr);
  gap: clamp(1.4rem, 3.2vw, 2.8rem);
  align-items: center;
  max-width: none;
  margin: 0 auto;
}

.about-media {
  display: grid;
  gap: 0.8rem;
  align-self: start;
}

.profile-frame {
  padding: 0.65rem;
  border-radius: 18px;
}

.profile-placeholder {
  aspect-ratio: 4 / 4.1;
  min-height: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 22%, rgba(180, 196, 226, 0.18), transparent 44%),
    linear-gradient(165deg, #0f1830, #0a1228);
  display: grid;
  place-items: center;
  color: #9fb3d6;
  font-size: 0.95rem;
  overflow: hidden;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.mini-stat {
  text-align: center;
  padding: 0.9rem 0.7rem;
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mini-stat:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(133, 188, 255, 0.55);
  box-shadow: 0 12px 26px rgba(14, 36, 74, 0.4);
}

.mini-stat strong {
  display: block;
  font-family: "Sora", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 1.85rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.mini-stat span {
  color: var(--muted);
  font-size: 0.82rem;
}

.about-content p {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #d3def4;
  text-align: left;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.65;
  font-weight: 600;
}

.about-content {
  padding-top: 0.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-meta-row {
  margin: 1rem 0 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.1rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.about-location {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.about-location::after {
  content: "";
  width: 18px;
  height: 12px;
  border-radius: 2px;
  background-image: url("assets/flag-ar.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.about-location:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.about-content p.about-subtitle {
  margin: 0.2rem 0 0.45rem;
  color: #dbe6f8;
  font-family: "Sora", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 1.03rem;
  font-weight: 600;
  text-align: center;
}

.about-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.about-tags span {
  border: 1px solid var(--border);
  background: rgba(29, 43, 79, 0.68);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.84rem;
  color: #ccdaf4;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.about-tags span:hover {
  transform: translateY(-2px) scale(1.04);
  background: rgba(53, 77, 132, 0.72);
  border-color: rgba(133, 188, 255, 0.55);
  color: #f2f7ff;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
}

.card-header p {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.stack {
  color: var(--muted);
  font-size: 0.93rem;
}

.projects-section .section-kicker,
.projects-section h2,
.projects-intro,
.projects-count {
  text-align: center;
}

#skills .section-kicker,
#skills h2,
#experience .section-kicker,
#experience h2,
#games .section-kicker,
#games h2 {
  text-align: center;
}

#skills {
  background: #0a142c;
}

#home,
#skills,
#contact {
  background: #080e1c;
}

#about,
#experience,
#projects,
#games {
  background: #0d1525;
}

#skills .skills-header {
  text-align: center;
}

#skills .section-kicker {
  margin: 0;
  color: rgba(210, 223, 245, 0.78);
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  font-weight: 700;
}

#skills h2 {
  margin: 0.7rem 0 0;
  font-family: "Sora", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(2.3rem, 5.8vw, 4.6rem);
  letter-spacing: -0.015em;
  font-weight: 800;
  line-height: 1.05;
}

.skills-ticker-strip {
  margin-top: 1.3rem;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(128, 152, 196, 0.26);
  border-bottom: 1px solid rgba(128, 152, 196, 0.26);
  background: #111d3c;
}

.skills-ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: skillsTickerScroll 26s linear infinite;
}

.skills-ticker-content {
  margin: 0;
  padding: 0.85rem 1.45rem;
  display: flex;
  flex-shrink: 0;
  min-width: max-content;
  align-items: center;
  gap: 0.8rem;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(204, 219, 247, 0.7);
  font-size: 0.75rem;
  font-weight: 700;
}

.skills-ticker-content span {
  color: rgba(204, 219, 247, 0.75);
}

.projects-intro {
  margin: 0.7rem auto 0;
  max-width: 680px;
  color: var(--muted);
}

.projects-toolbar {
  margin: 1.45rem auto 0;
  max-width: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
}

.projects-control {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(20, 34, 63, 0.95);
  color: var(--text);
  font: inherit;
  height: 40px;
  padding: 0 0.85rem;
}

.projects-control::placeholder {
  color: #9eb0d1;
}

.projects-select {
  min-width: 128px;
}

.projects-count {
  margin-top: 1rem;
  color: #a9bbda;
}

.projects-error {
  margin-top: 0.8rem;
  text-align: center;
  color: #f8b8b8;
  min-height: 1.2rem;
}

.repo-grid {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

@media (max-width: 1180px) {
  .repo-card {
    flex-basis: calc((100% - 1rem) / 2);
  }
}

.repo-card {
  flex: 0 1 calc((100% - 2rem) / 3);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(18, 30, 55, 0.95), rgba(14, 24, 46, 0.98));
  padding: 0.95rem 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.repo-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  text-transform: none;
}

.repo-description {
  margin: 0;
  color: #c6d5f2;
  font-size: 0.92rem;
  min-height: 3.1rem;
}

.repo-links {
  margin-top: auto;
  padding-top: 0.1rem;
  display: flex;
  gap: 0.85rem;
}

.repo-link {
  font-size: 0.86rem;
  text-decoration: none;
  color: #b4cbf7;
  display: inline-block;
  transition: transform 0.18s ease, color 0.18s ease;
}

.repo-link:hover {
  transform: scale(1.06);
  color: #d7e6ff;
}

.repo-empty {
  margin: 0;
  width: 100%;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.inline-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: transform 0.18s ease, color 0.18s ease;
}

.inline-link:hover {
  transform: scale(1.06);
  color: #d7e6ff;
}

.embed-wrap {
  position: relative;
  margin: 0.8rem 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(7, 13, 28, 0.7);
}

.embed-wrap iframe {
  width: 100%;
  border: 0;
  display: block;
  aspect-ratio: 4 / 3;
}

.embed-facade {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #0a1424;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
}

.embed-facade img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  opacity: 0.88;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.embed-facade:hover img,
.embed-facade:focus-visible img {
  transform: scale(1.03);
  opacity: 1;
}

.embed-facade-cta {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(112, 217, 165, 0.55);
  background: rgba(8, 17, 38, 0.88);
  color: #eaf7f1;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.embed-facade-cta::before {
  content: "▶";
  color: var(--accent);
  font-size: 0.68rem;
}

.embed-wrap.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 3px solid rgba(112, 217, 165, 0.25);
  border-top-color: var(--accent);
  animation: embedSpin 0.9s linear infinite;
}

@keyframes embedSpin {
  to {
    transform: rotate(360deg);
  }
}

.skills-carousel {
  margin-top: 1.25rem;
  overflow: hidden;
  padding: clamp(1.3rem, 2.8vw, 2rem);
}

.skills-category-tags {
  margin: 0 auto 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  max-width: 960px;
}

.skills-category-tag {
  position: relative;
  min-height: 44px;
  min-width: 220px;
  border: 1px solid #1e2a38;
  background: #12181f;
  color: rgba(202, 215, 236, 0.78);
  border-radius: 12px;
  padding: 0.52rem 0.68rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.03em;
  line-height: 1.26;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.skills-tag-icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(150, 169, 206, 0.25);
  background: rgba(121, 142, 182, 0.12);
  color: rgba(187, 205, 237, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skills-tag-icon svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.skills-tag-label {
  display: block;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
}

.skills-tag-count {
  margin-left: auto;
  min-width: 22px;
  padding: 0.12rem 0.45rem 0.1rem;
  border-radius: 999px;
  border: 1px solid rgba(143, 160, 194, 0.36);
  background: rgba(90, 106, 134, 0.2);
  color: rgba(194, 207, 229, 0.75);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  text-align: center;
}

.skills-category-tag:hover {
  border-color: rgba(113, 145, 199, 0.58);
  color: rgba(230, 240, 255, 0.94);
}

.skills-category-tag.is-active {
  border-color: rgba(61, 220, 132, 0.48);
  background: rgba(61, 220, 132, 0.12);
  color: #d7ffe8;
}

.skills-category-tag.is-active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  width: 3px;
  border-radius: 12px 0 0 12px;
  background: #3ddc84;
}

.skills-category-tag.is-active .skills-tag-label {
  font-weight: 700;
}

.skills-category-tag.is-active .skills-tag-icon {
  border-color: rgba(61, 220, 132, 0.44);
  background: rgba(61, 220, 132, 0.16);
  color: #7df2b0;
}

.skills-category-tag.is-active .skills-tag-count {
  border-color: rgba(61, 220, 132, 0.55);
  background: rgba(61, 220, 132, 0.18);
  color: #8ef6bb;
}

.skills-carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.45s ease;
  will-change: transform;
}

.skills-slide {
  flex: 0 0 100%;
  min-width: 100%;
  max-width: 100%;
  text-align: center;
  overflow: hidden;
}

.skills-slide-kicker {
  display: none;
}

.skills-slide h3 {
  margin: 1rem 0 0.6rem;
  font-family: "Sora", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(2.05rem, 5.8vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.skills-slide h3 span {
  color: #4fc17f;
}

.skills-slide-copy {
  margin: 0 auto;
  max-width: 720px;
  color: #b5c4df;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(1.05rem, 1.95vw, 1.42rem);
  font-weight: 600;
  line-height: 1.5;
}

.skills-tools-grid {
  margin: 1.65rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  max-width: 820px;
}

.skills-tool {
  text-align: center;
  min-width: 96px;
  transition: transform 0.22s ease;
}

.skills-tool-icon {
  width: 56px;
  height: 56px;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  margin: 0 auto;
  display: grid;
  place-items: center;
  transition: transform 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease;
}

.skills-tool img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.skills-tool-fallback {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: #dbe6fb;
  text-shadow: 0 1px 8px rgba(62, 143, 243, 0.35);
}

.skills-tool span {
  margin-top: 0.55rem;
  display: block;
  color: #dbe6fb;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.22s ease;
}

.skills-tool:hover {
  transform: translateY(-3px);
}

.skills-tool:hover .skills-tool-icon {
  filter: drop-shadow(0 8px 14px rgba(45, 117, 220, 0.28));
  transform: scale(1.08);
}

.skills-tool:hover span {
  color: #ffffff;
}

.skills-carousel-dots {
  margin-top: 1.05rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.skills-carousel-controls {
  margin-top: 1.05rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
}

.skills-dot {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: width 0.2s ease;
}

.skills-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(200, 213, 236, 0.45);
  transition: width 0.2s ease, background-color 0.2s ease;
}

.skills-dot.is-active {
  width: 44px;
}

.skills-dot.is-active::after {
  width: 30px;
  background: #42be74;
}

.skills-arrow {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(20, 34, 63, 0.9);
  color: #dbe6fb;
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.skills-arrow:hover {
  transform: translateY(-1px);
  background: rgba(55, 86, 139, 0.8);
}

.artwork-carousel {
  margin-top: 1.1rem;
  overflow: hidden;
  max-width: 920px;
  margin-inline: auto;
}

.artwork-carousel-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.artwork-slide {
  min-width: 100%;
}

#games .artwork-slide.card {
  padding: 0.85rem 0.9rem 0.8rem;
}

#games .artwork-slide .embed-wrap iframe {
  aspect-ratio: 16 / 10;
  pointer-events: auto;
}

.artwork-carousel-controls {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
}

.artwork-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.artwork-arrow {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(20, 34, 63, 0.9);
  color: #dbe6fb;
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.artwork-arrow:hover {
  transform: translateY(-1px);
  background: rgba(55, 86, 139, 0.8);
}

.artwork-dot {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: width 0.2s ease;
}

.artwork-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(200, 213, 236, 0.45);
  transition: width 0.2s ease, background-color 0.2s ease;
}

.artwork-dot.is-active {
  width: 44px;
}

.artwork-dot.is-active::after {
  width: 30px;
  background: #42be74;
}

.contact-panel p {
  color: var(--muted);
}

#contact {
  padding-inline: clamp(1.2rem, 9vw, 10rem);
}

#contact .contact-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.6rem, 4vw, 3.8rem);
  align-items: start;
}

#contact .contact-copy {
  max-width: 560px;
}

#contact .contact-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(225, 236, 255, 0.72);
}

#contact h2 {
  margin: 0.65rem 0 0;
  color: #ffffff;
  font-family: "Sora", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(2rem, 3.2vw, 2.375rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

#contact .contact-accent-line {
  display: inline-block;
  width: 36px;
  height: 2px;
  margin-top: 1rem;
  background: #42be74;
}

#contact .contact-description {
  margin: 1rem 0 0;
  max-width: 46ch;
  color: rgba(226, 238, 255, 0.62);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
}

#contact .contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#contact .contact-link {
  min-height: 52px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  justify-content: flex-start;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(182, 200, 230, 0.35);
  background: transparent;
  color: rgba(225, 236, 255, 0.78);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 10px;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

#contact .contact-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

#contact .contact-link span {
  display: block;
  overflow-wrap: anywhere;
}

#contact .contact-link:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(200, 216, 244, 0.52);
  color: rgba(241, 247, 255, 0.9);
}

#contact .contact-link.is-primary {
  border-color: rgba(66, 190, 116, 0.6);
  background: rgba(66, 190, 116, 0.14);
  color: #89eab0;
}

@media (max-width: 900px) {
  #contact {
    padding-inline: 1rem;
  }

  #contact .contact-layout {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-content a {
  text-decoration: none;
  display: inline-block;
  transition: transform 0.18s ease, color 0.18s ease;
}

.footer-content a:hover {
  transform: scale(1.06);
  color: var(--text);
}

@keyframes skillsTickerScroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 930px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 3.4rem;
    right: 4vw;
    flex-direction: column;
    background: #111c37;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 180px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .desktop-cv {
    display: none;
  }
}

@media (max-width: 760px) {
  .container {
    padding-inline: 1rem;
  }

  .skills-carousel {
    padding: 0.9rem 0.55rem 1.2rem;
  }

  .skills-category-tags {
    margin-bottom: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
    max-width: 100%;
    padding: 0;
    gap: 0.35rem;
  }

  .skills-category-tag {
    min-width: 100%;
    width: 100%;
    font-size: 0.7rem;
    padding: 0.45rem 0.58rem;
  }

  .skills-tag-label {
    white-space: nowrap;
  }

  .skills-slide h3 {
    font-size: clamp(1.75rem, 9vw, 2.55rem);
  }

  .skills-slide-copy {
    font-size: clamp(0.95rem, 4.2vw, 1.12rem);
  }

  .skills-tool-icon {
    width: 48px;
    height: 48px;
  }

  .skills-tool img,
  .skills-tool-fallback {
    width: 34px;
    height: 34px;
  }

  .repo-grid {
    justify-content: stretch;
  }

  .repo-card {
    flex-basis: 100%;
  }

  .projects-toolbar {
    grid-template-columns: 1fr;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 0;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-title {
    font-size: clamp(2.15rem, 11.5vw, 3.5rem);
    line-height: 1.02;
    align-items: center;
  }

  .hero-title.is-compact {
    font-size: clamp(1.55rem, 8.4vw, 2.85rem);
  }

  .hero-title::before {
    left: -0.42rem;
    top: 0.18em;
    height: 72%;
  }

  .scroll-note {
    margin-top: 0;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .hero-title {
    font-size: clamp(2.3rem, 10.4vw, 5rem);
  }

  .hero-title.is-compact {
    font-size: clamp(2.05rem, 8.8vw, 4.1rem);
  }
}

/* Portfolio layout: consistent widths, project evidence, chronological experience. */
.container { max-width: 1200px; padding-inline: 40px; }
h2, h3 { font-family: "Sora", "Inter", sans-serif; }
.section-kicker, .hero-title-accent, .skills-slide h3 span { color: var(--accent); }
.projects-section h2, .projects-section .section-kicker,
.projects-intro, .projects-count, #experience h2, #experience .section-kicker { text-align: left; }
.projects-intro { margin-inline: 0; max-width: 60ch; }
.projects-toolbar { max-width: none; }
.repo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.repo-card { min-width: 0; padding: 0; gap: 0; overflow: hidden; background: #101a2b; border-radius: 16px; }
.repo-image { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border-bottom: 1px solid var(--border); }
.repo-content { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px; flex: 1; }
.repo-language { color: var(--accent); font-size: .78rem; font-weight: 600; }
.repo-title { font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.3; overflow-wrap: anywhere; }
.repo-description { min-height: 0; font-size: 1rem; line-height: 1.65; color: var(--muted); }
.repo-links { flex-wrap: wrap; gap: 12px; padding-top: 12px; }
.repo-link { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 9px 16px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-weight: 600; }
.repo-link-demo { color: #081b13; background: var(--accent); border-color: var(--accent); }
.repo-link:hover { transform: translateY(-2px); color: var(--text); border-color: var(--accent); }
.repo-link-demo:hover { color: #081b13; background: #8ae6b9; }
.experience-list { margin-top: 32px; }
.experience-entry { display: grid; grid-template-columns: 280px minmax(0, 1fr); column-gap: 48px; padding: 28px 0; border-top: 1px solid var(--border); }
.experience-entry .card-header { grid-column: 1; grid-row: 1 / span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; justify-content: flex-start; }
.experience-entry h3 { margin: 0; font-size: 1.2rem; }
.experience-role { font-size: .9rem; color: var(--text); }
.experience-current { color: var(--accent); font-size: .8rem; font-weight: 600; }
.experience-entry .card-header p { margin: 0; font-size: .85rem; color: var(--muted); }
.experience-entry > p { grid-column: 2; margin: 0 0 12px; color: var(--muted); }
.experience-entry .stack { font-size: .8rem; color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (min-width: 1400px) { .repo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .container { padding-inline: 20px; }
  .repo-grid { grid-template-columns: 1fr; gap: 20px; }
  .repo-content { padding: 24px; }
  .experience-entry { grid-template-columns: 1fr; gap: 16px; }
  .experience-entry .card-header { grid-row: auto; }
  .experience-entry > p { grid-column: 1; }
}

.repo-grid { align-items: stretch; }

.game-status { display: inline-block; border: 1px solid var(--border); border-radius: 8px; padding: 5px 10px; font-size: .78rem; color: var(--accent); font-weight: 600; }
.game-upcoming { background: transparent; border-style: dashed; }
#game-projects { scroll-margin-top: 90px; }
@media (min-width: 931px) and (max-width: 1050px) { .site-nav { gap: .2rem; } .site-nav a { padding-inline: .35rem; font-size: .85rem; } .header-content { gap: .7rem; } }

.games-carousel { max-width: 760px; margin: 32px auto 0; }
.games-grid { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 16px; }
.games-grid::-webkit-scrollbar { display: none; }
.games-grid > .repo-card { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.games-grid .repo-image { max-height: 320px; object-fit: cover; }
.games-carousel .artwork-arrow { width: 44px; height: 44px; }
.game-position { min-width: 56px; text-align: center; color: var(--muted); font-size: .85rem; }

/* Skills navigation: equal-sized tabs with a clear selected state. */
.skills-category-tags { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 1040px; margin-bottom: 28px; }
.skills-category-tag { width: 100%; min-width: 0; min-height: 64px; padding: 12px; gap: 10px; text-align: left; background: #101a2b; border-color: rgba(148, 172, 216, .18); border-radius: 12px; color: #c6d5e8; font-size: .8rem; letter-spacing: 0; }
.skills-tag-icon { width: 28px; height: 28px; border: 0; border-radius: 8px; background: rgba(148, 172, 216, .09); color: #a8b7d6; }
.skills-tag-icon svg { width: 16px; height: 16px; }
.skills-tag-label { flex: 1; min-width: 0; white-space: normal; overflow: visible; text-overflow: clip; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
.skills-tag-count { flex-shrink: 0; min-width: 24px; padding: 4px 6px; border: 0; background: rgba(148, 172, 216, .09); color: #a8b7d6; font-size: .7rem; }
.skills-category-tag:hover { background: #172338; border-color: rgba(148, 172, 216, .4); color: #e9f0ff; }
.skills-category-tag.is-active { background: #122b25; border-color: var(--accent); color: #ecfff4; }
.skills-category-tag.is-active::before { display: none; }
.skills-category-tag.is-active .skills-tag-label { font-weight: 600; }
.skills-category-tag.is-active .skills-tag-icon, .skills-category-tag.is-active .skills-tag-count { border: 0; background: rgba(112, 217, 165, .12); color: var(--accent); }
@media (max-width: 1100px) { .skills-category-tags { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .skills-category-tags { gap: 8px; } .skills-category-tag { min-height: 76px; padding: 10px; font-size: .75rem; gap: 8px; } .skills-tag-icon { width: 24px; height: 24px; } .skills-tag-count { display: none; } }
/* Game slides size to their own content rather than the tallest sibling. */
.games-grid { align-items: flex-start; }
.games-grid > .repo-card { height: auto; }
.games-grid .repo-content { flex: none; padding: clamp(24px, 4vw, 40px); gap: 18px; }
.games-grid .repo-title { font-size: clamp(1.8rem, 4vw, 2.65rem); letter-spacing: -.035em; line-height: 1.15; }
.games-grid .repo-description { max-width: 48ch; }
.games-grid .repo-links { margin-top: 8px; padding-top: 0; }
.games-grid .game-upcoming { background: #101e24; border: 1px solid rgba(112, 217, 165, .3); }
.games-grid .game-status { background: rgba(112, 217, 165, .1); color: var(--accent); border: 0; padding: 6px 10px; }

/* Monochrome brand icons (simple-icons) rendered light on dark surfaces. */
.skills-tool img.icon-mono {
  filter: invert(88%) sepia(8%) saturate(700%) hue-rotate(180deg) brightness(104%) contrast(95%);
}

/* Pause control for the auto-rotating skills carousel. */
.skills-pause {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(20, 34, 63, 0.9);
  color: #dbe6fb;
  font-size: 0.68rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.skills-pause:hover {
  transform: translateY(-1px);
  background: rgba(55, 86, 139, 0.8);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-particles span,
  .skills-ticker-track {
    animation: none;
  }

  .skills-carousel-track,
  .artwork-carousel-track,
  .skills-dot,
  .skills-dot::after,
  .artwork-dot,
  .artwork-dot::after {
    transition: none;
  }
}