/* Inter auto-hospedada: corta o handshake com fonts.googleapis + fonts.gstatic.
   Os unicode-range vêm do Google Fonts — o navegador só busca o arquivo latin-ext
   se a página usar algum caractere fora do latin básico. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --card-w: 576px;
  --pad: 24px;
  --ink: #1f1a35;
  --muted: rgba(255, 255, 255, .75);
}

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

/* O preto fica no html, não só no body: se algo pintar um fundo no html
   (modo escuro forçado, extensão), o body para de propagar o dele pro canvas
   e passa a pintar a própria caixa — que cobriria o .page-bg. */
html { background: #000; color-scheme: dark; }

body {
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* A foto do hero, borrada, preenchendo a janela atrás do cartão.
   A fonte tem 27px de largura: esticada até a tela ela já sai difusa, então
   um blur curto termina o trabalho pelo qual o blur(80px) pagava caro. */
.page-bg {
  position: fixed;
  inset: -10%;
  background-image: url(assets/bg-blur.webp);
  background-size: cover;
  background-position: center;
  filter: blur(60px) saturate(1.2);
  opacity: .55;
  z-index: 0;
}

/* ---------- Barra ao rolar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -100%);
  width: min(100%, var(--card-w));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px var(--pad);
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(12px);
  transition: transform .25s ease;
  z-index: 10;
}
.topbar.is-visible { transform: translate(-50%, 0); }
.topbar__avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: 55% 40%; }
.topbar__name { font-size: 16px; font-weight: 700; letter-spacing: .25px; }

/* ---------- Cartão central ---------- */
.card {
  position: relative;
  z-index: 1; /* acima do .page-bg, que é fixo e fica na camada posicionada */
  width: min(100%, var(--card-w));
  margin: 0 auto;
  min-height: 100vh;
  background: #000;
}

/* ---------- Hero ---------- */
.hero { position: relative; aspect-ratio: 1 / 1; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.hero__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 25%, rgba(0, 0, 0, .55) 62%, #000 96%);
}
.hero__content {
  position: absolute;
  inset: auto 0 0;
  padding: 0 var(--pad) 16px;
  text-align: center;
}

.name {
  font-size: 32px;
  font-weight: 750;
  letter-spacing: .25px;
  line-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.badge { width: 20px; height: 20px; flex: none; }
.topbar .badge { width: 15px; height: 15px; }

.handle { font-size: 14px; font-weight: 500; color: var(--muted); margin-top: 2px; }

.socials { display: flex; justify-content: center; gap: 24px; margin: 16px 0 18px; }
.socials__btn {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .82);
  transition: opacity .15s ease, transform .15s ease;
}
.socials__btn:hover { opacity: .6; transform: translateY(-1px); }
.socials__btn svg { width: 22px; height: 22px; }

/* ---------- Corpo ---------- */
.body { padding: 14px var(--pad) 30px; }

.bio {
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  margin: 6px 0 14px;
}

/* ---------- Preview de vídeo (facade do YouTube) ---------- */
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: #000;
  transition: transform .15s ease, border-color .15s ease;
}
.video-wrap:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .28); }

.video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
  display: block;
  -webkit-tap-highlight-color: transparent;
}
.video__thumb { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Escurece a base para o título ler */
.video::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(to top, rgba(0, 0, 0, .8), transparent);
  pointer-events: none;
}

/* Botão de play estilo YouTube */
.video__play {
  position: absolute;
  z-index: 1;
  inset: 0;
  margin: auto;
  width: 66px;
  height: 46px;
  border-radius: 12px;
  background: #ff0000;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  transition: transform .15s ease, background .15s ease;
}
.video-wrap:hover .video__play { transform: scale(1.06); }
.video__play svg { width: 26px; height: 26px; fill: #fff; margin-left: 2px; }

.video__title {
  position: absolute;
  z-index: 1;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.section-title {
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  margin: 16px 0 10px;
}

/* ---------- Cards de link ---------- */
.links { display: grid; gap: 11px; }

.link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 90px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  transition: transform .15s ease, border-color .15s ease;
}
.link:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .3); }

/* Foto ao fundo de cada card, escurecida à esquerda para o texto branco ler */
.link__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, .88) 42%, rgba(0, 0, 0, .5) 100%);
}
.link--com .link__bg { object-position: 50% 44%; filter: brightness(.72); }
.link--visionx .link__bg { object-position: 50% 50%; filter: brightness(.66); }
.link--skills .link__bg { object-position: 50% 33%; filter: brightness(.85) saturate(1.05); }
.link--skills { border-color: rgba(255, 140, 80, .45); }

.link__content { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.link__content small { font-size: 13px; color: var(--muted); }
.link__title { font-size: 18px; font-weight: 800; letter-spacing: .2px; line-height: 1.15; }

.link__arrow { width: 20px; height: 20px; flex: none; margin-left: auto; color: rgba(255, 255, 255, .55); }

/* ---------- Rodapé ---------- */
.footer {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
}
.footer__copy { color: rgba(255, 255, 255, .4); }

/* CTA de captação (WhatsApp da VisionX) — discreto */
.footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, .55);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.2;
  transition: color .15s ease;
}
.footer__cta:hover { color: #fff; }
.footer__cta svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.footer__cta strong { color: rgba(255, 255, 255, .9); font-weight: 700; }

@media (max-width: 420px) {
  :root { --pad: 16px; }
  .name { font-size: 28px; line-height: 34px; }
  .link__title { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Computador (1024px+): foto fixa de um lado, o conteúdo do outro ----------
   Celular e tablet seguem exatamente como antes (cartão central de 576px). */
@media (min-width: 64rem) {
  html { background: #000; }
  .page-bg, .topbar { display: none; }

  /* a foto ocupa a metade esquerda da janela, inteira e parada enquanto o lado direito rola */
  .hero { position: static; aspect-ratio: auto; }
  .hero__img { position: fixed; left: 0; top: 0; width: 50vw; height: 100vh; height: 100svh; z-index: 0; object-position: 50% 24%; }
  .hero__fade { position: fixed; left: 0; top: 0; width: 50vw; height: 100vh; height: 100svh; z-index: 0;
    background: linear-gradient(90deg, transparent 62%, #000 100%), linear-gradient(0deg, rgba(0, 0, 0, .45) 0%, transparent 28%); }

  .card { width: 50vw; max-width: none; margin: 0 0 0 50vw; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(1.25rem, 3.5vh, 3.5rem); }
  .hero__content, .body { width: min(100% - 4rem, 34rem); margin-inline: auto; }
  .hero__content { position: static; padding: 0; text-align: left; }
  .name { justify-content: flex-start; font-size: 44px; line-height: 52px; gap: 8px; }
  .badge { width: 26px; height: 26px; }
  .handle { font-size: 16px; margin-top: 4px; }
  .body { padding: 0; }
  .socials { justify-content: flex-start; margin: 20px 0 16px; gap: 20px; }
  .socials__btn { width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; }
  .bio { text-align: left; font-size: 16px; margin: 0 0 22px; color: rgba(255, 255, 255, .88); }
  .links { gap: 12px; }
  .link { min-height: 96px; }
  .footer { align-items: flex-start; margin-top: 22px; }
}
/* Computador: sem a foto grande. Na esquerda, sobre o fundo borrado, um cartão de vidro com a identidade (foto pequena, nome, redes, etiquetas) e o vídeo; na direita os links. */
.lado { margin-top: 11px; }
.lado__id { display: none; }
@media (min-width: 64rem) {
  .hero__img, .hero__fade { display: none; }
  .hero__content, .socials, .bio { display: none; }
  .page-bg { display: block; position: fixed; inset: -10% 50% -10% -10%; opacity: .62; }
  .lado {
    --wi: min(calc(44vw - 44px), calc((100svh - 21rem) * 16 / 9));
    position: fixed; z-index: 2; left: 3vw; top: 50%; transform: translateY(-50%); margin: 0;
    width: calc(var(--wi) + 44px); padding: 22px;
    display: flex; flex-direction: column; gap: 18px;
    border-radius: 26px; border: 1px solid rgba(255, 255, 255, .16);
    background: linear-gradient(160deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04));
    backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .12);
  }
  .lado__id { display: grid; gap: 14px; }
  .lado__topo { display: flex; align-items: center; gap: 14px; }
  .lado__avatar { width: 64px; height: 64px; flex: none; border-radius: 50%; object-fit: cover; object-position: 55% 38%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 6px 18px rgba(0, 0, 0, .4); }
  .lado__quem { min-width: 0; flex: 1; }
  .lado__nome { display: flex; align-items: center; gap: 6px; font-size: clamp(22px, 1.1rem + .7vw, 30px); line-height: 1.12; font-weight: 780; letter-spacing: -.01em; }
  .lado__nome .badge { width: 20px; height: 20px; }
  .lado__handle { margin-top: 3px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .72); }
  .lado__redes { display: flex; gap: 8px; flex: none; }
  .lado__redes .socials__btn { width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; background: rgba(255, 255, 255, .08); }
  .lado__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
  .lado__tags li { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .28); font-size: 14px; font-weight: 600; line-height: 1.2; color: rgba(255, 255, 255, .92); }
  .lado__tags li:first-child { background: rgba(255, 255, 255, .92); border-color: transparent; color: #111; }
  .video-wrap { position: relative; width: 100%; height: auto; z-index: auto; border-radius: 16px; }
  .video-wrap:hover { transform: none; }
  .card { justify-content: center; }
}
@media (min-width: 64rem) and (max-width: 79.99rem) {
  .lado__avatar { width: 52px; height: 52px; }
  .lado__redes .socials__btn { width: 40px; height: 40px; }
}
@media (min-width: 64rem) and (max-height: 1000px) {
  .name { font-size: 40px; line-height: 46px; }
  .link { min-height: 78px; padding-block: 10px; }
  .links { gap: 10px; }
  .socials { margin: 14px 0 12px; }
  .bio { margin-bottom: 16px; }
  .footer { margin-top: 20px; }
}
@media (min-width: 64rem) and (max-width: 79.99rem) {
  .name { font-size: 34px; line-height: 40px; gap: 6px; }
  .badge { width: 22px; height: 22px; }
}

/* Computador: tudo cabe na altura da janela, sem rolar. Quanto mais baixa a janela, mais compacto (celular não muda). */
@media (min-width: 64rem) and (max-height: 820px) {
  .card { padding-block: 14px; }
  .name { font-size: 34px; line-height: 40px; }
  .handle { font-size: 14px; margin-top: 2px; }
  .socials { margin: 10px 0 8px; gap: 14px; }
  .socials__btn { width: 40px; height: 40px; }
  .bio { font-size: 15px; line-height: 1.4; margin: 0 0 12px; }
  .links { gap: 8px; }
  .link { min-height: 62px; padding: 8px 18px; gap: 10px; }
  .link__title { font-size: 16px; }
  .link__content { gap: 2px; }
  .footer { margin-top: 12px; gap: 6px; }
}
@media (min-width: 64rem) and (max-height: 700px) {
  .name { font-size: 30px; line-height: 34px; }
  .bio { margin-bottom: 8px; }
  .link { min-height: 52px; padding-block: 6px; }
  .link small { display: none; }
  .socials { margin: 8px 0 6px; }
  .footer { margin-top: 8px; gap: 2px; }
}
@media (min-width: 64rem) and (max-height: 600px) {
  .handle { display: none; }
  .link { min-height: 46px; }
  .bio { font-size: 14px; margin-bottom: 6px; }
  .footer__cta { display: none; }
}
