/* =========================================
   Variáveis (cores, fontes, espaçamentos)
   ========================================= */
:root {
  --color-bg: #0d1117;
  --color-surface: #161b22;
  --color-border: #30363d;
  --color-text: #e6edf3;
  --color-text-muted: #8b949e;
  --color-accent: #58a6ff;

  --font-main: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --max-width: 1200px;
  --radius: 12px;
}

/* =========================================
   Reset básico
   ========================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

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

ul,
ol {
  list-style: none;
}

/* =========================================
   Menu fixo
   ========================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.navbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  height: 60px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.navbar__brand {
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.navbar__links {
  display: flex;
  gap: 1.5rem;
}

.navbar__links a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.navbar__links a:hover,
.navbar__links a:focus-visible {
  color: var(--color-accent);
}

/* compensa a altura do menu ao clicar nos links */
section[id] {
  scroll-margin-top: 80px;
}

/* =========================================
   Layout
   ========================================= */
.container {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================================
   Hero / Sobre mim
   ========================================= */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero__photo {
  width: 320px;
  height: 320px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
  /* anel branco (borda) + anel azul colado por fora (sombra sólida), sempre concêntricos */
  border: 6px solid #fff;
  box-shadow:
    0 0 0 4px var(--color-accent),
    0 0 0 14px rgba(88, 166, 255, 0.08),
    0 0 60px rgba(88, 166, 255, 0.35);
}

/* foto com os badges das certificações encaixados na borda inferior direita */
.hero__media {
  position: relative;
  flex-shrink: 0;
}

.hero__badges {
  position: absolute;
  left: 50%;
  transform: translateX(-50%); /* centraliza os badges sob a foto */
  width: max-content;          /* sem isso o contêiner fica com metade da foto e os badges transbordam */
  bottom: -40px;
  display: flex;
  gap: 0.15rem;
}

.hero__badges img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
  transition: transform 0.2s;
}

.hero__badges img:hover {
  transform: translateY(-4px) scale(1.06);
}

.hero__greeting {
  color: var(--color-accent);
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.hero__name {
  font-size: 2.75rem;
  line-height: 1.2;
}

.hero__role {
  color: var(--color-text-muted);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
}

.hero__meta {
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

.hero__bio {
  max-width: 60ch;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* =========================================
   Botões
   ========================================= */
.btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
}

.btn:hover,
.btn:focus-visible {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

/* =========================================
   Seções
   ========================================= */
.section {
  padding: 4rem 0;
}

.section__title {
  font-size: 1.75rem;
  margin-bottom: 2.5rem;
}

.section__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 0.5rem;
  border-radius: 2px;
  background-color: var(--color-accent);
}

/* =========================================
   Experiência: linha do tempo alternada
   Cada cargo é uma coluna com 3 faixas: [em cima] [barra] [embaixo].
   Ímpares: ícone em cima e texto embaixo. Pares: o contrário.
   Como vizinhos ficam em lados opostos, o texto pode ser mais largo que a coluna.
   ========================================= */
.timeline {
  padding: 0 6%; /* espaço para os textos das pontas, que são mais largos que a coluna */
}

.timeline__track {
  display: grid;
  /* minmax(0, 1fr): colunas sempre iguais, mesmo com textos mais largos que a coluna */
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: auto 26px auto;
}

.step {
  --c: var(--color-accent); /* cor do cargo (definida no HTML) */
  display: grid;
  grid-row: 1 / 4;
  grid-template-rows: subgrid;
  grid-template-columns: minmax(0, 1fr); /* o texto largo não pode alargar a coluna */
  min-width: 0;
  position: relative; /* referência para o tooltip */
}

/* trecho da barra horizontal */
.step__bar {
  grid-row: 2;
  background-color: var(--c);
}

/* as pontas da barra avançam sobre o recuo da .timeline (6%) para alinhar com as margens do site.
   6% da linha do tempo = 34,09% de uma coluna (cada coluna tem 88% / 5 = 17,6%) */
.step:first-child .step__bar {
  margin-left: -34.09%;
  border-radius: 999px 0 0 999px;
}

.step:last-child .step__bar {
  margin-right: -34.09%;
  border-radius: 0 999px 999px 0;
}

/* ícone redondo + haste até a barra */
.step__icon {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step__icon::after {
  content: "";
  width: 2px;
  height: 32px;
  background-color: var(--c);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: none;
  border-radius: 50%;
  color: #fff;
  background-color: var(--c);
  cursor: help;
  transition: transform 0.2s, box-shadow 0.2s;
}

.icon-btn svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step:hover .icon-btn,
.icon-btn:focus-visible {
  transform: scale(1.08);
  outline: none;
}

/* cargo em destaque (com tooltip aberto): anel + brilho */
.step:hover .icon-btn,
.step:focus-within .icon-btn {
  box-shadow:
    0 0 0 4px var(--color-bg),
    0 0 0 6px var(--c),
    0 0 28px var(--c);
}

/* texto: ano, empresa, cargo e tecnologias */
.step__text {
  justify-self: start;
  width: 150%;
  margin-left: -25%; /* centraliza o texto largo sobre a coluna */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.9rem 0;
  text-align: center;
  position: relative; /* referência para o tooltip, que abre sobre o texto */
}

.step__year {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--c);
}

/* tecnologias sempre em uma linha só, para todos os cargos ficarem alinhados.
   Mais tecnologias? Coloque no tooltip (.role__details). */
.step__text .tags {
  justify-content: center;
  flex-wrap: nowrap;
  margin-top: 0.35rem;
  white-space: nowrap;
}

.step:nth-child(odd) .step__icon {
  grid-row: 1;
  align-self: end;
}

.step:nth-child(odd) .step__text {
  grid-row: 3;
  align-self: start;
}

.step:nth-child(even) .step__icon {
  grid-row: 3;
  align-self: start;
  flex-direction: column-reverse; /* haste em cima, ícone embaixo */
}

.step:nth-child(even) .step__text {
  grid-row: 1;
  align-self: end;
}

.step:nth-child(even) .step__year {
  order: 1; /* nos pares, o ano fica colado na barra */
}

.role__company {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.role__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

/* =========================================
   Tooltip com os detalhes do cargo: abre sobre o próprio texto.
   Ímpares (texto embaixo da barra): começa no topo do texto e cresce para baixo.
   Pares (texto em cima da barra): começa na base do texto e cresce para cima.
   ========================================= */
.role__details {
  position: absolute;
  z-index: 20;
  left: 50%;
  width: 360px;
  margin-left: -180px; /* centraliza sobre a coluna */
  padding: 1rem 1.15rem;
  text-align: left;
  background-color: #1c2230;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--c);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.step:nth-child(odd) .role__details {
  top: 0;
  transform: translateY(6px);
}

.step:nth-child(even) .role__details {
  bottom: 0;
  transform: translateY(-6px);
}

/* nas pontas, o tooltip alinha pela borda do texto para não sair da tela */
.step:first-child .role__details {
  left: 0;
  margin-left: 0;
}

.step:last-child .role__details {
  left: auto;
  right: 0;
  margin-left: 0;
}

.step:hover .role__details,
.step:focus-within .role__details {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.role__period {
  font-size: 0.8rem;
  color: var(--c);
  margin-bottom: 0.6rem;
}

.role__details .role__list {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.role__details .role__list:last-child {
  margin-bottom: 0;
}

.role__list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.role__list li {
  position: relative;
  padding-left: 1.1rem;
}

.role__list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tags > * {
  font-size: 0.75rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
}

/* =========================================
   Projetos
   ========================================= */
.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.project {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1.6rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}

.project:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

/* card de destaque: largura toda e fundo com brilho */
.project--featured {
  grid-column: 1 / -1;
  padding: 2rem;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(88, 166, 255, 0.12), transparent 55%),
    var(--color-surface);
  border-color: rgba(88, 166, 255, 0.45);
}

.project--featured .project__title {
  font-size: 1.6rem;
}

.project--featured .project__desc {
  max-width: 75ch;
}

.project__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.project__type {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}

.project__type--oss {
  color: #3fb950;
  background-color: rgba(63, 185, 80, 0.12);
  border: 1px solid rgba(63, 185, 80, 0.4);
}

.project__type--case {
  color: var(--color-accent);
  background-color: rgba(88, 166, 255, 0.12);
  border: 1px solid rgba(88, 166, 255, 0.4);
}

.project__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.project__status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #3fb950;
}

.project__status--wip .dot {
  background-color: #d29922;
}

.project__title {
  font-size: 1.2rem;
  line-height: 1.3;
}

.project__desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.project .tags {
  margin-top: auto; /* tags e link no rodapé do card */
}

.project__link {
  align-self: flex-start;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}

.project__link:hover,
.project__link:focus-visible {
  text-decoration: underline;
}

/* Camadas do Lakehouse (arquitetura medalhão) */
.medallion {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
  margin: 0.5rem 0 0.75rem;
}

.layer {
  --layer: var(--color-text-muted);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.5rem;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--layer);
  border-radius: var(--radius);
}

/* seta entre as camadas */
.layer:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -1.35rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.layer__count {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--layer);
}

.layer__name {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.layer--landing { --layer: #8b949e; }
.layer--raw     { --layer: #cd7f32; }
.layer--silver  { --layer: #c9d1d9; }
.layer--gold    { --layer: #e3b341; }

/* =========================================
   Stack: nuvem de ferramentas
   ========================================= */
.stack-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter {
  padding: 0.4rem 1rem;
  font: inherit;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.filter:hover,
.filter:focus-visible {
  color: var(--color-text);
  border-color: var(--color-accent);
  outline: none;
}

.filter.is-active {
  color: var(--color-bg);
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  font-weight: 600;
}

/* a "nuvem": fundo com brilho suave e pílulas centralizadas */
.cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 0.7rem;
  padding: 2.5rem 4rem;
  border-radius: 32px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(124, 92, 255, 0.14), transparent 55%),
    radial-gradient(ellipse at 75% 80%, rgba(34, 193, 230, 0.12), transparent 55%);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem 0.4rem 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--color-text);
  background-color: rgba(22, 27, 34, 0.85);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s, opacity 0.25s, filter 0.25s;
}

/* logo num círculo claro: garante contraste para logos escuros (Kafka, AWS) */
.chip img {
  width: 26px;
  height: 26px;
  padding: 4px;
  border-radius: 50%;
  background-color: #eef2f7;
  object-fit: contain;
}

.chip--md {
  font-size: 0.95rem;
}

.chip--md img {
  width: 32px;
  height: 32px;
  padding: 5px;
}

.chip--lg {
  font-size: 1.1rem;
  font-weight: 600;
  padding-right: 1.2rem;
  border-color: rgba(88, 166, 255, 0.45);
}

.chip--lg img {
  width: 40px;
  height: 40px;
  padding: 6px;
}

.chip:hover {
  transform: translateY(-4px) scale(1.04);
  border-color: var(--color-accent);
  box-shadow: 0 10px 24px rgba(88, 166, 255, 0.25);
}

/* filtro ativo: ferramentas de outras categorias ficam apagadas */
.chip.is-dim {
  opacity: 0.18;
  filter: grayscale(1);
  transform: scale(0.94);
}

/* =========================================
   Formação
   ========================================= */
.education {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.edu {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}

.edu:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

.edu__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 12px;
  color: var(--color-accent);
  background-color: rgba(88, 166, 255, 0.12);
}

.edu__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.edu__level {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.edu__course {
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.edu__school {
  font-size: 0.9rem;
}

/* período sempre no rodapé do card, alinhado entre todos */
.edu__period {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-accent);
}

/* =========================================
   Certificações
   ========================================= */
.certs-featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.12), transparent 60%),
    var(--color-surface);
  border: 1px solid rgba(88, 166, 255, 0.45);
  border-radius: var(--radius);
}

.cert-card__badge {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.cert-card__code {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-accent);
}

.cert-card__title {
  font-size: 1rem;
  line-height: 1.35;
  margin: 0.2rem 0 0.35rem;
}

.cert-card__meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.certs-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.certs-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.cert {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 1.1rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.cert:hover {
  border-left-color: var(--color-accent);
}

.cert__title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.cert__meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* =========================================
   YouTube (canal + comentários)
   ========================================= */
.yt-intro {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
  background:
    radial-gradient(ellipse at 0% 50%, rgba(255, 0, 0, 0.1), transparent 55%),
    var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.yt-intro__logo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}

.yt-intro__text {
  max-width: 75ch;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.yt-intro__text strong {
  color: var(--color-text);
}

/* comentários em colunas (efeito "mural") */
.testimonials {
  columns: 3;
  column-gap: 1.25rem;
}

.testimonial {
  break-inside: avoid;
  margin: 0 0 1.25rem;
  padding: 1.4rem 1.5rem 1.2rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.testimonial:hover {
  border-color: var(--color-accent);
}

.testimonial blockquote {
  position: relative;
  padding-top: 1.4rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* aspas decorativas */
.testimonial blockquote::before {
  content: "\201C";
  position: absolute;
  top: -0.6rem;
  left: -0.1rem;
  font-family: Georgia, serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.6;
}

.testimonial figcaption {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.testimonial--featured {
  border-color: rgba(88, 166, 255, 0.45);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(88, 166, 255, 0.12), transparent 60%),
    var(--color-surface);
}

.testimonial--featured blockquote {
  font-size: 1.1rem;
  font-weight: 500;
}

/* =========================================
   Rodapé
   ========================================= */
.footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}

/* =========================================
   Responsivo
   ========================================= */
@media (max-width: 700px) {
  .hero {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    padding: 3rem 0;
  }

  .hero__photo {
    width: 220px;
    height: 220px;
  }

  .hero__badges {
    bottom: -28px;
  }

  .hero__badges img {
    width: 66px;
    height: 66px;
  }

  .hero__name {
    font-size: 2rem;
  }

  .hero__bio {
    margin: 0 auto 1rem;
  }

  .hero__links {
    justify-content: center;
  }

  /* no celular o menu mostra só os links, com rolagem lateral se precisar */
  .navbar__brand {
    display: none;
  }

  .navbar__links {
    gap: 1.1rem;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .navbar__links a {
    font-size: 0.9rem;
  }
}

/* Telas médias: Formação em 2 colunas */
@media (max-width: 1100px) {
  .testimonials {
    columns: 2;
  }

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

/* Telas estreitas: a linha do tempo vira uma lista vertical (ícone à esquerda, texto à direita) */
@media (max-width: 900px) {
  .testimonials {
    columns: 1;
  }

  .yt-intro {
    flex-direction: column;
    text-align: center;
  }

  /* Projetos: uma coluna; camadas do Lakehouse em 2x2 */
  .projects {
    grid-template-columns: 1fr;
  }

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

  .layer:nth-child(2)::after {
    display: none;
  }

  .education,
  .certs-featured,
  .certs-list {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding: 0;
  }

  .timeline__track {
    position: relative;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 1.75rem;
  }

  /* linha vertical ligando os ícones */
  .timeline__track::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 28px;
    bottom: 28px;
    width: 2px;
    background: linear-gradient(#7c5cff, #22c1e6);
  }

  .step {
    grid-row: auto;
    grid-template-rows: none;
    grid-template-columns: 56px 1fr;
    column-gap: 1.25rem;
    align-items: center;
  }

  .step__bar,
  .step__icon::after {
    display: none;
  }

  .step:nth-child(n) .step__icon {
    grid-row: 1;
    grid-column: 1;
    align-self: center;
  }

  .step:nth-child(n) .step__text {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
    width: auto;
    margin: 0;
    padding: 0;
    align-items: flex-start;
    text-align: left;
  }

  .step:nth-child(n) .step__year {
    order: 0;
    font-size: 1.3rem;
  }

  .icon-btn {
    position: relative; /* fica por cima da linha vertical */
    width: 56px;
    height: 56px;
  }

  .icon-btn svg {
    width: 24px;
    height: 24px;
  }

  .step__text .tags {
    justify-content: flex-start;
    flex-wrap: wrap; /* no celular pode quebrar linha, não há alinhamento a manter */
  }

  /* sem mouse no celular: os detalhes abrem embaixo do cargo ao tocar no ícone */
  .step:nth-child(n) .role__details {
    position: static;
    width: auto;
    margin: 0.75rem 0 0;
    transform: none;
    display: none;
  }

  .step:hover .role__details,
  .step:focus-within .role__details {
    display: block;
  }
}
