@import url("https://fonts.googleapis.com/css2?family=Alumni+Sans+Pinstripe&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --height: 1;
  /* Tema escuro neon — relevo neumorphism sobre superfície escura */
  --surface: #181d2e;
  --light: rgba(96, 122, 184, 0.45);   /* brilho superior-esquerdo */
  --shadow: rgba(0, 0, 0, 0.66);        /* sombra inferior-direita */
  --neon-cyan: #38e8ff;
  --neon-purple: #b06bff;
  --text: #e4e9f6;
  --text-dim: #a7b1d0;                  /* contraste reforçado (item 7) */

  /* Tipografia: Pinstripe só para display, Inter no corpo (item 2) */
  --font-display: "Alumni Sans Pinstripe", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Escala de espaçamento (item 10) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;

  /* Raios (item 10) */
  --r-1: 0.5rem;
  --r-2: 0.75rem;
  --r-3: 1rem;
  --r-4: 1.5rem;
  --r-full: 999px;

  /* Escala tipográfica fluida (item 10) */
  --fs-100: 0.95rem;
  --fs-200: 1.1rem;
  --fs-300: 1.3rem;
  --fs-400: clamp(1.5rem, 4vw, 2rem);
  --fs-500: clamp(2rem, 6vw, 3rem);
  --fs-600: clamp(2.6rem, 9vw, 4.5rem);
  --fs-700: clamp(3.5rem, 13vw, 7rem);

  /* Cores por cluster do mapa (item 4 — 5 regiões) */
  --c-about: 56, 232, 255;
  --c-expertise: 176, 107, 255;
  --c-work: 56, 255, 176;
  --c-experience: 92, 135, 255;
  --c-contact: 255, 107, 176;
}

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

html {
  scroll-behavior: smooth;
  /* base fluida em vez de 12px fixos no mobile (item 3) */
  font-size: clamp(13px, 0.55rem + 0.75vw, 16px);
}

body {
  /* Base índigo profunda; os brilhos neon vivem em camadas animadas
     (body::before / body::after) para se moverem lentamente. */
  background-color: #0b0e1a;
  background-image: linear-gradient(160deg, #0d1124 0%, #0b0e1a 45%, #0a0d18 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100vh;
  color: var(--text);
  /* corpo em Inter, caixa normal e respiro de leitura (item 2) */
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  text-align: center;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Elementos de "display" mantêm a fonte Pinstripe e a caixa alta (item 2) */
.home__word,
.hero__name,
.hero__title,
.section__title,
.section-heading,
.work-hero__title,
.project__title,
.page-title,
.panel__title,
.timeline .role,
.topnav a,
.tag,
.filter,
.menu .button,
.menu__circle,
.menu__updown,
.menu__down,
.menu__up {
  font-family: var(--font-display);
  text-transform: uppercase;
}

/* Foco visível global por teclado (item 7) */
:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 3px;
  border-radius: var(--r-1);
}
.moz__prov:focus-visible {
  outline: none; /* o realce do path trata do foco no mapa */
}

/* Camadas de brilho neon, fixas e animadas em sentidos opostos */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  will-change: transform, opacity;
}

body::before {
  background:
    radial-gradient(38rem 38rem at 18% 16%, rgba(56, 232, 255, 0.22) 0%, rgba(56, 232, 255, 0) 60%),
    radial-gradient(50rem 50rem at 80% 86%, rgba(56, 232, 255, 0.16) 0%, rgba(56, 232, 255, 0) 62%);
  animation: glowDriftA 28s ease-in-out infinite alternate;
}

body::after {
  background:
    radial-gradient(46rem 46rem at 86% 18%, rgba(176, 107, 255, 0.20) 0%, rgba(176, 107, 255, 0) 60%),
    radial-gradient(58rem 58rem at 26% 92%, rgba(176, 107, 255, 0.18) 0%, rgba(176, 107, 255, 0) 60%);
  animation: glowDriftB 38s ease-in-out infinite alternate;
}

@keyframes glowDriftA {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1);    opacity: 0.85; }
  50%  { transform: translate3d(2%, 3%, 0) scale(1.12);   opacity: 1; }
  100% { transform: translate3d(4%, -3%, 0) scale(1.05);  opacity: 0.8; }
}

@keyframes glowDriftB {
  0%   { transform: translate3d(3%, 2%, 0) scale(1.08);   opacity: 0.8; }
  50%  { transform: translate3d(-2%, -3%, 0) scale(1);    opacity: 1; }
  100% { transform: translate3d(-4%, 3%, 0) scale(1.1);   opacity: 0.85; }
}

/* respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none;
  }
}

/* ============================================================
   TILES (modelo neumorphism original)
   ============================================================ */
.tile {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 6rem;
  height: 6rem;
  border-radius: 1rem;
}

.tile:before,
.tile:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 1rem;
}

.tile--circle {
  border-radius: 50%;
}

.tile--circle:before {
  border-radius: 50%;
}

.up {
  box-shadow: var(--shadow) calc(0.33rem * var(--height))
    calc(0.33rem * var(--height)) 0.6rem;
}

.up:before {
  box-shadow: var(--light) calc(-0.33rem * var(--height))
    calc(-0.33rem * var(--height)) 0.6rem;
}

.down {
  box-shadow: inset var(--shadow) calc(0.25rem * var(--height))
    calc(0.25rem * var(--height)) 0.6rem;
}

.down:before {
  box-shadow: inset var(--light) calc(-0.25rem * var(--height))
    calc(-0.25rem * var(--height)) 0.6rem;
}

/* Botão pressionável */
.button {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow) calc(0.33rem * var(--height))
    calc(0.33rem * var(--height)) 0.6rem;
  transition: box-shadow 0.15s 0.15s ease-in;
}

.button:before {
  box-shadow: var(--light) calc(-0.33rem * var(--height))
    calc(-0.33rem * var(--height)) 0.6rem;
  transition: box-shadow 0.15s 0.15s ease-in;
}

.button span {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease-in-out;
}

.button > div {
  box-shadow: inset var(--shadow) 0 0 0;
  transition: box-shadow 0.15s ease-in;
}

.button > div:before {
  box-shadow: inset var(--light) 0 0 0;
  transition: box-shadow 0.15s ease-in;
}

.button:hover {
  box-shadow: var(--shadow) 0 0 0;
  transition: box-shadow 0.15s ease-out;
}

.button:hover:before {
  box-shadow: var(--light) 0 0 0;
  transition: box-shadow 0.15s ease-out;
}

.button:hover > div {
  box-shadow: inset var(--shadow) calc(0.25rem * var(--height))
    calc(0.25rem * var(--height)) 0.6rem;
  transition: box-shadow 0.15s 0.15s ease-out;
}

.button:hover > div:before {
  box-shadow: inset var(--light) calc(-0.25rem * var(--height))
    calc(-0.25rem * var(--height)) 0.6rem;
  transition: box-shadow 0.15s 0.15s ease-out;
}

.button:hover span {
  transform: translateY(0.1516rem);
}

/* Botão circular */
.round-button {
  cursor: pointer;
  background: radial-gradient(
    circle at 50% 50%,
    var(--light) 15%,
    transparent 30%,
    var(--shadow)
  );
  background-position: -4rem -4rem;
  background-size: 200% 200%;
  box-shadow: var(--shadow) 0.33rem 0.33rem 0.6rem;
  transition: background 0.3s ease-in-out, box-shadow 0.15s 0.15s ease-in-out;
}

.round-button span {
  transition: transform 0.3s ease-in-out;
}

.round-button:hover {
  background-position: -2rem -2rem;
  box-shadow: var(--shadow) 0 0 0;
  transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.round-button:hover span {
  transform: translateY(0.1516rem);
}

/* ============================================================
   SITE
   ============================================================ */
/* Botão Home (VM) — fixo no canto superior esquerdo */
.home {
  position: fixed;
  top: 2.5rem;
  left: 2.5rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  height: 5rem;
  padding: 0 1.4rem;
  border-radius: 1.25rem;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  box-shadow: 6px 6px 14px var(--shadow), -6px -6px 14px var(--light);
  transition: box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.home:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 4px 4px 10px var(--shadow), -4px -4px 10px var(--light);
}

.home:active {
  transform: translateY(0);
  box-shadow: inset 4px 4px 8px var(--shadow),
    inset -4px -4px 8px var(--light);
}

/* VM = compressão de VALTER MICAS: as letras do meio recolhem */
.home__word {
  font-family: "Alumni Sans Pinstripe", sans-serif;
  font-size: 2.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

/* cor base das letras mantida; luz a passar por dentro delas */
.home__word,
.home__rest {
  background-image: linear-gradient(
    100deg,
    #aebbd6 0%,
    #aebbd6 44%,
    #ffffff 49%,
    #cfe2ff 51%,
    #5e87ff 53%,
    #aebbd6 58%,
    #aebbd6 100%
  );
  background-size: 250% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: vmShine 3.5s linear infinite;
}

@keyframes vmShine {
  from {
    background-position: 180% 0;
  }
  to {
    background-position: -40% 0;
  }
}

/* letras do meio: aparecem de imediato no hover (sem animação de "escrita") */
.home__rest {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  vertical-align: bottom;
}

.home:hover .home__rest {
  max-width: 6rem;
}


/* seta de scroll no fundo, lado direito */
.scroll-down {
  position: absolute;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  color: var(--text-dim);
  background: var(--surface);
  box-shadow: 5px 5px 10px var(--shadow), -5px -5px 10px var(--light);
  animation: scrollBounce 1.8s ease-in-out infinite;
  transition: box-shadow 0.15s ease, color 0.15s ease;
}

.scroll-down svg {
  width: 1.6rem;
  height: 1.6rem;
}

.scroll-down:hover {
  color: #fff;
}

.scroll-down:active {
  box-shadow: inset 4px 4px 8px var(--shadow), inset -4px -4px 8px var(--light);
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* ===== Botão "voltar ao topo" (subpáginas com scroll) ===== */
.to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  color: var(--neon-cyan);
  background: var(--surface);
  box-shadow: 5px 5px 12px var(--shadow), -5px -5px 12px var(--light);
  /* escondido até haver scroll */
  opacity: 0;
  transform: translateY(1rem) scale(0.9);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease,
    box-shadow 0.15s ease, color 0.15s ease;
}

.to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.to-top svg {
  width: 1.5rem;
  height: 1.5rem;
}

.to-top:hover {
  color: #fff;
  box-shadow: 5px 5px 12px var(--shadow), -5px -5px 12px var(--light),
    0 0 14px rgba(56, 232, 255, 0.55);
}

.to-top:active {
  box-shadow: inset 4px 4px 8px var(--shadow), inset -4px -4px 8px var(--light);
}

@media (max-width: 600px) {
  .to-top {
    bottom: 1.25rem;
    right: 1.25rem;
  }
}

.hero {
  position: relative;
  overflow: hidden;        /* sem scroll na primeira página */
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 0;
}

/* mobile: hero ocupa exatamente o ecrã, sem scroll (como no PC).
   O mapa é dimensionado pela ALTURA para caber tagline + mapa + legenda + ©. */
@media (max-width: 760px) {
  .hero {
    height: 100vh;
    overflow: hidden;
  }
  .hero__stage {
    width: fit-content;
    height: auto;
    margin: 0 auto;
  }
  .hero__map {
    width: auto;
  }
  .moz {
    width: auto;
    height: 56vh;
  }
}

/* fundo animado (relevo.jpg) com efeito Ken Burns */
/* fundo navy-blue */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 50% 30%, rgba(56, 232, 255, 0.10) 0%, rgba(56, 232, 255, 0) 55%),
    radial-gradient(circle at 78% 70%, rgba(176, 107, 255, 0.12) 0%, rgba(176, 107, 255, 0) 55%),
    radial-gradient(circle at 50% 38%, #14182b 0%, #0e1222 60%, #0a0d18 100%);
}

/* ===== Mapa de Moçambique (desenhado) — navegação por províncias ===== */
/* palco: mapa + texto a girar à volta */
.hero__stage {
  position: relative;
  /* altura = 1.5×largura (viewBox 600×900); largura ~66vh => altura ~99vh */
  width: min(66vh, 94vw);
  margin: 0 auto;
}

.hero__map {
  display: block;
  width: 100%;
  margin: 0;
}

/* legenda — canto superior direito do hero */
.hero__caption {
  position: absolute;
  top: 4rem;
  right: clamp(1.5rem, 5vw, 4rem);
  max-width: 14rem;
  text-align: right;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  letter-spacing: 2px;
  line-height: 1.2;
  color: var(--text-dim);
  text-shadow: 0 0 10px rgba(56, 232, 255, 0.35);
}

/* na página inicial, © por baixo da legenda (centro-direita) */
body:not(.subpage) {
  position: relative;
}



.moz {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* cada província = botão (liga a uma secção) */
.moz__prov {
  cursor: pointer;
  outline: none;
  /* cor por defeito; cada cluster redefine --glow (item 4) */
  --glow: var(--c-about);
  --fill: #1b2236;
}

/* 5 clusters = 5 regiões, cada uma com a sua cor (item 4) */
.moz__prov--about      { --glow: var(--c-about);      --fill: #16243a; }
.moz__prov--expertise  { --glow: var(--c-expertise);  --fill: #221a3a; }
.moz__prov--work       { --glow: var(--c-work);       --fill: #163026; }
.moz__prov--experience { --glow: var(--c-experience); --fill: #192038; }
.moz__prov--contact    { --glow: var(--c-contact);    --fill: #2a1a2c; }

/* relevo neumorphism com contorno na cor do cluster */
.moz__prov path {
  fill: var(--fill);
  stroke: rgba(var(--glow), 0.34);
  stroke-width: 1.2;
  stroke-linejoin: round;
  filter: url(#neu);
  transition: fill 0.2s ease, stroke 0.2s ease, filter 0.2s ease;
}

/* hover/focus = a região acende-se claramente na sua cor (item 5) */
.moz__prov:hover path,
.moz__prov:focus-visible path {
  fill: color-mix(in srgb, rgb(var(--glow)) 24%, #131a2c);
  stroke: rgba(var(--glow), 0.95);
  filter: drop-shadow(0 0 7px rgba(var(--glow), 0.7))
    drop-shadow(0 0 18px rgba(var(--glow), 0.45));
}

/* estado "focado" via storytelling/JS (item 13) */
.moz__prov.is-focus path {
  fill: color-mix(in srgb, rgb(var(--glow)) 24%, #131a2c);
  stroke: rgba(var(--glow), 0.95);
  filter: drop-shadow(0 0 7px rgba(var(--glow), 0.7))
    drop-shadow(0 0 18px rgba(var(--glow), 0.45));
}

/* luz que circula pelos contornos de TODO o mapa (mesmo efeito do VM) */
.moz__light {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 18 1000;
  filter: drop-shadow(0 0 3px #8ab4ff) drop-shadow(0 0 7px #5e87ff);
  animation: mapTrace 30s linear infinite;
  pointer-events: none;
}

@keyframes mapTrace {
  to {
    stroke-dashoffset: -1018;
  }
}

/* rótulo "Sobre" (Tete) — mesmas características do VM:
   letras em contorno + luz a circular pelos contornos */
.moz__sobre-base,
.moz__sobre-light {
  font-family: "Alumni Sans Pinstripe", sans-serif;
  font-size: 17px;
  text-transform: uppercase;
  text-anchor: middle;
  fill: none;
  pointer-events: none;
}

/* contorno base, sempre visível */
.moz__sobre-base {
  stroke: rgba(150, 190, 255, 0.45);
  stroke-width: 0.7;
}

/* a luz que viaja pelo contorno das letras */
.moz__sobre-light {
  stroke: #fff;
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-dasharray: 7 400;
  filter: drop-shadow(0 0 2px #8ab4ff) drop-shadow(0 0 5px #5e87ff);
  animation: sobreTrace 4.5s linear infinite;
}

@keyframes sobreTrace {
  to {
    stroke-dashoffset: -407;
  }
}

.hero__title {
  font-size: clamp(4rem, 16vw, 9rem);
  font-weight: 400;
  letter-spacing: 3px;
  line-height: 0.85;
  color: var(--text);
}

.hero__sub {
  font-size: clamp(1rem, 3vw, 1.6rem);
  color: var(--text-dim);
  letter-spacing: 2px;
}

/* Menu = os botões neumorphism no formato original (tile + button) */
.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  /* largura para exatamente 4 botões por linha (4×8rem + 3×2rem) */
  max-width: 38rem;
  margin: 2rem auto 0;
}

.menu .tile.button {
  width: 8rem;
  height: 8rem;
  font-size: 1.4rem;
}

/* o div interno preenche todo o botão (mantém o efeito de pressionar) */
.menu .tile.button > div {
  width: 100%;
  height: 100%;
}

/* fundo sólido nos botões do menu, para o relevo neumorphism ler sobre o hero escuro
   (o círculo .round-button mantém o seu próprio gradiente) */
.menu .button,
.menu .button > div,
.menu .up,
.menu .down {
  background: var(--surface);
}

/* botão Sobre: círculo com profundidade (esfera) */
.menu__circle {
  width: 8rem;
  height: 8rem;
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--text);
}

/* botão CyberSecurity: formato up & down (saliente por fora, afundado por dentro) */
.menu__updown {
  width: 8rem;
  height: 8rem;
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--text);
}

.menu__updown > div {
  width: 100%;
  height: 100%;
}

/* botão Software Developer: formato down (afundado) */
.menu__down {
  width: 8rem;
  height: 8rem;
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--text);
}

/* botão Contato: formato up (saliente) */
.menu__up {
  width: 8rem;
  height: 8rem;
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--text);
}

/* ===== Secções ===== */
.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  padding: 4rem 1rem;
}

.section__mark {
  font-size: 2rem;
  text-transform: none;
}

.section__title {
  font-size: clamp(2.5rem, 9vw, 5rem);
  font-weight: 400;
  letter-spacing: 2px;
}

.panel {
  max-width: 36rem;
  width: 100%;
  padding: 2.5rem 2rem;
  border-radius: 1.5rem;
  text-transform: none;
  line-height: 1.4;
  font-size: 1.5rem;
  color: var(--text);
  /* cartão "glass" sobre o fundo neon */
  background: rgba(22, 27, 44, 0.55);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border: 1px solid rgba(120, 160, 255, 0.10);
}

/* o painel reusa o efeito .up, mas com raio maior */
.panel.up,
.panel.up:before {
  border-radius: 1.5rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.tag {
  width: auto;
  height: auto;
  min-width: 5rem;
  padding: 0.6rem 1rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--neon-cyan);
  background: rgba(16, 20, 34, 0.6);
}

.back {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.2s ease;
}

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

/* ===== Projetos ===== */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 2rem;
  max-width: 56rem;
  width: 100%;
}

.project {
  max-width: none;
  padding: 2rem 1.75rem;
}

.project__title {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.project__links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.link-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow) 0.2rem 0.2rem 0.4rem,
    var(--light) -0.2rem -0.2rem 0.4rem;
  transition: box-shadow 0.15s ease, color 0.15s ease;
}

.link-btn:hover {
  color: var(--neon-cyan);
  box-shadow: inset var(--shadow) 0.18rem 0.18rem 0.35rem,
    inset var(--light) -0.18rem -0.18rem 0.35rem,
    0 0 12px rgba(56, 232, 255, 0.45);
}

/* ===== Work — cabeçalho "My Work" ===== */
.work-hero {
  text-align: left;
  margin: 1rem 0 2.5rem;
}

.work-hero__title {
  font-size: clamp(3.5rem, 13vw, 7rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 2px;
  color: #eaf6ff;
  text-shadow: 0 0 18px rgba(56, 232, 255, 0.4),
    0 0 38px rgba(176, 107, 255, 0.28);
}

.work-hero__intro {
  max-width: 38rem;
  margin-top: 1.5rem;
  text-transform: none;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--text-dim);
}

/* ===== Work — filtros por categoria ===== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.filter {
  cursor: pointer;
  border: none;
  font-family: inherit;
  padding: 0.6rem 1.2rem;
  border-radius: 0.9rem;
  font-size: 1.2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--surface);
  box-shadow: 4px 4px 8px var(--shadow), -4px -4px 8px var(--light);
  transition: box-shadow 0.15s ease, color 0.15s ease;
}

.filter__count {
  font-size: 0.78em;
  vertical-align: super;
  margin-left: 0.35rem;
  color: var(--neon-cyan);
}

.filter:hover {
  color: #fff;
}

.filter.is-active {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(56, 232, 255, 0.6);
  box-shadow: inset 4px 4px 8px var(--shadow), inset -4px -4px 8px var(--light);
}

/* ===== Work — grelha de projetos ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.75rem;
}

.subpage .projects-grid .panel {
  margin: 0;
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-card .tags {
  margin-bottom: 0.5rem;
}

.project-card .project__links {
  margin-top: auto;
  padding-top: 1.25rem;
}

.project-card.is-hidden {
  display: none;
}

/* ===== Contato — redes sociais ===== */
.socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social {
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  color: var(--text-dim);
  background: var(--surface);
  box-shadow: 5px 5px 12px var(--shadow), -5px -5px 12px var(--light);
  transition: color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.social svg {
  width: 1.7rem;
  height: 1.7rem;
}

.social:hover {
  color: var(--neon-cyan);
  transform: translateY(-3px);
  box-shadow: 5px 5px 12px var(--shadow), -5px -5px 12px var(--light),
    0 0 14px rgba(56, 232, 255, 0.55);
}

.social:active {
  transform: translateY(0);
  box-shadow: inset 4px 4px 8px var(--shadow), inset -4px -4px 8px var(--light);
}

/* ===== Contato ===== */
.contact__lead {
  text-transform: none;
  font-size: 1.4rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* badge de disponibilidade com ponto "online" */
.contact__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.contact__status::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #3effa6;
  box-shadow: 0 0 8px #3effa6;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.8); }
}

@media (prefers-reduced-motion: reduce) {
  .contact__status::before { animation: none; }
}

.contact__email {
  text-transform: none;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(56, 232, 255, 0.4);
  padding-bottom: 0.15rem;
  transition: color 0.2s ease, border-color 0.2s ease, text-shadow 0.2s ease;
}

.contact__email:hover {
  color: #fff;
  border-color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(56, 232, 255, 0.7);
}

.contact__btn {
  width: auto;
  height: auto;
  min-width: 12rem;
  border-radius: 1rem;
}

.contact__btn > div,
.contact__btn > div:before {
  border-radius: 1rem;
}

.contact__btn > div {
  width: 100%;
  height: 100%;
  padding: 1.5rem 2rem;
  font-size: 1.6rem;
  text-transform: none;
}

/* ===== Footer ===== */
.footer {
  padding: 2.5rem 1rem;
  color: var(--text-dim);
  font-size: 1.1rem;
  letter-spacing: 1px;
}
/* ============================================================
   SUBPÁGINAS (multi-página)
   ============================================================ */
.subhead {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem);
  min-height: 5rem;
}

/* VM fixo: acompanha o scroll (só o botão Home, sem barra) */
.home--bar {
  position: fixed;
  top: 1.5rem;
  left: clamp(1rem, 4vw, 2.5rem);
  z-index: 150;
}

/* etiqueta "Home" por baixo do botão VM (só nas subpáginas) */
.home__label {
  display: none;
}

.home--bar .home__label {
  display: block;
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: var(--text-dim);
  transition: color 0.2s ease;
  /* a etiqueta é decorativa: não captura o rato (evita o flicker do hover) */
  pointer-events: none;
}

.home--bar:hover .home__label {
  color: var(--neon-cyan);
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.topnav a {
  padding: 0.55rem 1.15rem;
  border-radius: 0.9rem;
  font-family: "Alumni Sans Pinstripe", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
  background: var(--surface);
  box-shadow: 4px 4px 8px var(--shadow), -4px -4px 8px var(--light);
  transition: box-shadow 0.15s ease, color 0.15s ease;
}

.topnav a:hover {
  color: #fff;
}

.topnav a[aria-current="page"] {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(56, 232, 255, 0.6);
  box-shadow: inset 4px 4px 8px var(--shadow), inset -4px -4px 8px var(--light);
}

.subpage main {
  max-width: 58rem;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 4vw, 2rem) 4rem;
}

.page-title {
  font-size: clamp(2.6rem, 9vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 2px;
  text-align: center;
  margin: 1rem 0 2.5rem;
  color: #eaf6ff;
  text-shadow: 0 0 14px rgba(56, 232, 255, 0.45),
    0 0 32px rgba(176, 107, 255, 0.3);
}

.section-heading {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  margin: 3.5rem 0 2rem;
}

.subpage .panel {
  max-width: none;
  margin: 0 auto 1.75rem;
  text-align: left;
}

.panel__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.panel__icon {
  font-size: 2rem;
}

.panel__title {
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: #eaf1ff;
  text-shadow: 0 0 10px rgba(56, 232, 255, 0.35);
}

.panel .tags {
  justify-content: flex-start;
  margin-top: 1.25rem;
}

.muted {
  color: var(--text-dim);
  font-size: 1.2rem;
}

/* timeline simples (Experience) */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  position: relative;
  padding: 0 0 1.5rem 1.5rem;
  border-left: 2px solid rgba(56, 232, 255, 0.22);
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 2px 2px 4px var(--shadow), -2px -2px 4px var(--light);
}

.timeline .role {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline .meta {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin: 0.2rem 0 0.5rem;
}

/* ============================================================
   HERO — título + tagline + dica (item 1)
   ============================================================ */
.hero__intro {
  margin: 0 auto var(--sp-3);
  padding: 0 var(--sp-4);
  max-width: 46rem;
}

.hero__name {
  font-size: var(--fs-600);
  font-weight: 400;
  letter-spacing: 3px;
  line-height: 0.9;
  color: #eaf6ff;
  text-shadow: 0 0 18px rgba(56, 232, 255, 0.4),
    0 0 40px rgba(176, 107, 255, 0.28);
}

.hero__roles {
  margin-top: var(--sp-3);
  font-size: clamp(1rem, 2.6vw, 1.4rem);
  letter-spacing: 1px;
  color: var(--text);
}

.hero__roles b {
  font-weight: 600;
  color: var(--neon-cyan);
}

.hero__hint {
  margin-top: var(--sp-2);
  font-size: var(--fs-100);
  letter-spacing: 0.5px;
  color: var(--text-dim);
}

/* stage dimensionado pela altura para caber tagline + mapa sem scroll */
/* (sobrepõe-se à regra .hero__stage original mais acima) */
.hero__stage {
  width: min(52vh, 88vw);
}

/* legenda + © à direita, à altura de Inhambane (sul do mapa) */
.hero__caption {
  position: absolute;
  top: 59vh;
  right: clamp(1.5rem, 6vw, 5rem);
  max-width: 14rem;
  margin: 0;
  text-align: right;
  z-index: 5;
}

body:not(.subpage) .footer {
  position: absolute;
  top: 79vh;
  right: clamp(1.5rem, 6vw, 5rem);
  z-index: 5;
  padding: 0;
  text-align: right;
}

/* mobile: legenda e © ancorados ao fundo do ecrã (fora do fluxo),
   para o hero só ter de caber a tagline + o mapa — sem scroll. */
@media (max-width: 760px) {
  .hero__caption {
    position: absolute;
    top: auto;
    bottom: 3.2rem;
    left: 0;
    right: 0;
    margin: 0;
    max-width: none;
    text-align: center;
  }
  body:not(.subpage) .footer {
    position: absolute;
    top: auto;
    bottom: 1rem;
    left: 0;
    right: 0;
    padding: 0;
    text-align: center;
  }
}

/* ============================================================
   CABEÇALHO DAS SUBPÁGINAS — evitar sobreposição do botão VM
   ============================================================ */
/* o VM não expande para "VALTER MICAS" nas subpáginas (sobrepunha o menu) */
.home--bar:hover .home__rest {
  max-width: 0;
}

/* ecrã largo: reservar espaço à esquerda para o VM fixo */
@media (min-width: 981px) {
  .subhead {
    padding-left: 12rem;
  }
}

/* até 980px: empilhar VM por cima e menu por baixo (sem sobreposição) */
@media (max-width: 980px) {
  .subhead {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding-left: clamp(1rem, 4vw, 2.5rem);
    padding-top: 1.25rem;
  }
  .home--bar {
    position: static;
  }
  .home--bar .home__label {
    display: none;
  }
  .topnav {
    justify-content: center;
  }

  /* página inicial: esconder o logótipo VM fixo (sobrepunha o título;
     na home é redundante, pois só faz scroll para o topo) */
  .home:not(.home--bar) {
    display: none;
  }
}

/* ============================================================
   CURSOR NEON (item 13) — só em ponteiros finos
   ============================================================ */
.cursor-neon {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0);
  background: radial-gradient(
    circle,
    rgba(56, 232, 255, 0.55) 0%,
    rgba(176, 107, 255, 0.35) 45%,
    rgba(56, 232, 255, 0) 70%
  );
  mix-blend-mode: screen;
  will-change: transform;
  transition: width 0.18s ease, height 0.18s ease, opacity 0.2s ease;
  opacity: 0;
}

.cursor-neon.is-on {
  opacity: 1;
}

.cursor-neon.is-active {
  width: 46px;
  height: 46px;
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-neon {
    display: none;
  }
}

/* o SVG do mapa anima a viewBox no clique (item 13) */
.moz {
  transition: none; /* a animação da viewBox é feita por JS */
}
