/* =========================================================
   Dhionathan Jobim · seções
   Abertura, Sobre (com galeria), Jornada, Formação, Certificados, GitHub e chamada do rodapé.
   ========================================================= */

/* ---------- Abertura ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 940px); display: flex; align-items: center;
  padding: calc(var(--header-h) + clamp(28px, 6vw, 72px)) 0 clamp(64px, 8vw, 96px);
  background: radial-gradient(ellipse 70% 80% at 75% 35%, rgba(79,124,255,.16), transparent 60%),
              radial-gradient(ellipse 50% 60% at 95% 90%, rgba(139,92,246,.18), transparent 65%), var(--bg);
}
.hero__circuit {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.8) 45%, #000 70%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.8) 45%, #000 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero__id { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.hero__photo { position: relative; width: 64px; height: 64px; border-radius: 50%; padding: 2px; background: var(--grad); box-shadow: 0 0 30px rgba(110,100,255,.45); flex: none; }
.hero__photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg); }
.hero__where { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--text-soft); font-size: .95rem; }
.hero__where svg { width: 16px; height: 16px; color: var(--violet-300); }
.hero h1 { font-size: clamp(2.75rem, 6.4vw, 5rem); line-height: .98; letter-spacing: -0.04em; margin-bottom: 14px; }
.hero__role { font: 600 clamp(1.15rem, 2.2vw, 1.6rem)/1.3 var(--font-display); color: var(--text-dim); margin-bottom: 18px; }
.hero__lead { font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: var(--text-soft); max-width: 540px; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 620px; }
.link-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px;
  background: rgba(255,255,255,.035); border: 1px solid var(--line); color: var(--text-soft);
  font: 500 .85rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.link-chip svg { width: 16px; height: 16px; color: var(--violet-300); flex: none; }
.link-chip__txt b { display: none; }
.link-chip__txt { display: inline-flex; flex-direction: column; text-align: left; min-width: 0; }
.link-chip__txt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-chip:hover { color: #fff; border-color: var(--line-strong); background: rgba(139,92,246,.1); }

.hero__stage { position: relative; aspect-ratio: 440 / 500; width: 100%; max-width: 480px; justify-self: end; }
.hero__stage::before {     /* holofote no chão */
  content: ""; position: absolute; left: 8%; right: 8%; bottom: 3%; height: 18%; border-radius: 50%; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(139,92,246,.35), rgba(79,124,255,.12) 45%, transparent 70%);
  box-shadow: 0 0 0 1px rgba(180,156,255,.25) inset;
}
.hero__volt { position: absolute; inset: 0; }
.volt-hint {
  position: absolute; left: 50%; top: 2%; transform: translateX(-50%); margin: 0; width: max-content; max-width: 100%;
  padding: 7px 14px; border-radius: 999px; font-size: .8rem; color: var(--text-soft);
  background: rgba(17,15,32,.75); border: 1px solid var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: hint-pulse 3s ease-in-out infinite;
}
.volt-hint__touch { display: none; }
@media (hover: none) { .volt-hint__mouse { display: none; } .volt-hint__touch { display: inline; } }
@keyframes hint-pulse { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
html:not(.has-volt) .volt-hint { display: none; }
.hero__pix {
  position: absolute; right: 6%; bottom: 6%; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(50,188,173,.5); cursor: pointer;
  background: rgba(50,188,173,.12); color: #8EF0E4; font: 600 .9rem/1 var(--font);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.hero__pix svg { width: 16px; height: 16px; }
.hero__pix:hover { background: rgba(50,188,173,.22); transform: translateY(-2px); }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 24px; height: 38px; margin-left: -12px; border-radius: 14px; border: 2px solid var(--line-strong); }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--violet-300); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 920px) {
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 22px); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { display: none; }            /* no celular o Volt é o mini do canto */
  .scroll-cue { display: none; }
  .hero__text { display: flex; flex-direction: column; }
  .hero__id { order: 1; margin-bottom: 14px; }
  .hero h1 { order: 2; }
  .hero__role { order: 3; margin-bottom: 18px; }
  .hero__links { order: 4; margin-bottom: 22px; }
  .hero__lead { order: 5; }
  .hero__actions { order: 6; margin-bottom: 0; }
  /* contatos em destaque: grade de botões grandes */
  .hero__links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: none; }
  .hero__links li { min-width: 0; }
  .hero__links .link-chip { width: 100%; height: 100%; padding: 11px 12px; gap: 10px; border-radius: 14px; background: rgba(255,255,255,.05); border-color: var(--line-strong); }
  .hero__links .link-chip svg { width: 22px; height: 22px; }
  .link-chip__txt b { display: block; font-size: .9rem; color: var(--text); font-weight: 600; }
  .link-chip__txt span { font-size: .72rem; color: var(--text-dim); }
  .link-chip--wa { background: rgba(37,211,102,.12) !important; border-color: rgba(37,211,102,.45) !important; }
  .link-chip--wa svg { color: #4ADE80 !important; }
  .hero__links-cnpj { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .hero__actions .btn { width: 100%; }
  .hero__stage { max-width: 260px; }
}

/* ---------- Sobre ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about__text h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.about__text p { color: var(--text-soft); }
.about__sub { font: 600 .85rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin: 28px 0 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags--lg .tag { font-size: .9rem; padding: 7px 14px; color: var(--text); }

.gallery { margin: 0; }
.gallery__frame {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--card-solid); border: 1px solid var(--line); box-shadow: var(--glow);
}
.gallery__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.gallery__img.is-active { opacity: 1; }
.gallery__img[data-index="0"] { object-position: 50% 25%; }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; background: rgba(7,7,12,.6); color: #fff; cursor: pointer; backdrop-filter: blur(6px);
}
.gallery__nav svg { width: 20px; height: 20px; }
.gallery__nav--prev { left: 12px; } .gallery__nav--next { right: 12px; }
.gallery__zoom {
  position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(7,7,12,.6); color: #fff; font: 500 .8rem/1 var(--font); cursor: pointer; backdrop-filter: blur(6px);
}
.gallery__zoom svg { width: 14px; height: 14px; }
.gallery__dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.gallery__dot { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,.2); cursor: pointer; transition: width .3s var(--ease), background-color .3s var(--ease); }
.gallery__dot.is-active { width: 26px; background: var(--grad); }
@media (max-width: 920px) { .about { grid-template-columns: 1fr; } }

/* ---------- Jornada ---------- */
.journey { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
.timeline { position: relative; display: grid; gap: 18px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--violet), var(--blue) 60%, transparent); border-radius: 2px; }
.role { position: relative; }
.role__dot { position: absolute; left: -28px; top: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg-2); border: 3px solid var(--violet); box-shadow: 0 0 14px rgba(139,92,246,.7); }
.role__card { padding: 24px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.role__card:hover { border-color: var(--line-strong); box-shadow: var(--glow); }
.role__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.role__icon { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, rgba(79,124,255,.22), rgba(139,92,246,.22)); color: var(--violet-300); }
.role__icon svg { width: 22px; height: 22px; }
.role h3 { font-size: 1.2rem; margin: 2px 0 4px; }
.role__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: .875rem; color: var(--text-dim); }
.role__meta span { display: inline-flex; align-items: center; gap: 5px; }
.role__meta svg { width: 14px; height: 14px; }
.role__intro { color: var(--text-soft); margin-bottom: 10px; font-size: .98rem; }
.role__list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.role__list li { display: flex; gap: 9px; font-size: .95rem; color: var(--text-soft); }
.role__list svg { width: 16px; height: 16px; margin-top: 4px; color: var(--violet-300); flex: none; }
.journey__side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-radius: var(--radius-lg); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.stat { padding: 20px 14px; background: var(--card-solid); text-align: center; }
.stat b { display: block; font: 700 2rem/1 var(--font-display); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 6px; }
.stat span { font-size: .8rem; color: var(--text-dim); }
.company { padding: 18px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); }
.company__open {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; margin-bottom: 12px;
}
.company__open img { width: 100%; height: auto; display: block; transition: transform .4s var(--ease); }
.company__open:hover img { transform: scale(1.03); }
.company__open span {
  position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: rgba(7,7,12,.75); border: 1px solid var(--line-strong); color: #fff; font: 500 .8rem/1 var(--font); backdrop-filter: blur(6px);
}
.company__open span svg { width: 14px; height: 14px; }
.company p { color: var(--text-soft); font-size: .95rem; margin: 0; }
@media (max-width: 960px) { .journey { grid-template-columns: 1fr; } .journey__side { position: static; } }

/* ---------- Formação ---------- */
.edu { display: grid; grid-template-columns: 1fr 1.6fr; gap: 20px; align-items: stretch; }
.edu__card { position: relative; padding: 28px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); }
.edu__card--now { background: linear-gradient(160deg, rgba(79,124,255,.14), rgba(139,92,246,.12)); border-color: var(--line-strong); }
.edu__badge { position: absolute; top: 20px; right: 20px; padding: 5px 11px; border-radius: 999px; font-size: .75rem; font-weight: 600; color: #fff; background: var(--grad); }
.edu__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(255,255,255,.06); color: var(--violet-300); }
.edu__icon svg { width: 26px; height: 26px; }
.edu__icon--logo { width: 72px; height: 72px; border-radius: 18px; overflow: hidden; background: none; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.edu__icon--logo img { width: 100%; height: 100%; object-fit: cover; }
.edu__card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.edu__school { color: var(--violet-300); font-size: .9rem; font-weight: 500; }
.edu__card p:not(.edu__school) { color: var(--text-soft); font-size: .98rem; }
.edu__card .tags { margin-bottom: 18px; }
@media (max-width: 860px) { .edu { grid-template-columns: 1fr; } }

/* ---------- Certificados ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--text-soft); font: 500 .9rem/1 var(--font); cursor: pointer; transition: all .2s var(--ease); }
.chip:hover { color: #fff; border-color: var(--line-strong); }
.chip.is-active { color: #fff; background: var(--grad); border-color: transparent; }
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cert {
  display: flex; flex-direction: column; padding: 22px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.cert:hover { border-color: var(--line-strong); box-shadow: var(--glow); transform: translateY(-3px); }
.cert[hidden] { display: none; }
.cert { position: relative; cursor: pointer; }
.cert__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }   /* o cartão inteiro abre a credencial */
.cert:hover .cert__link { border-color: var(--violet-300); color: #fff; background: rgba(139,92,246,.12); }
.cert:focus-within { border-color: var(--line-strong); box-shadow: var(--glow); }
.cert__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cert__logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: none; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.cert__issuer { margin: 0; font-weight: 600; font-size: .95rem; }
.cert__year { margin: 0; font-size: .8rem; color: var(--text-dim); }
.cert h3 { font: 600 1.05rem/1.35 var(--font); letter-spacing: -.01em; margin-bottom: 12px; }
.cert .tags { margin-bottom: 16px; }
.cert .tag { font-size: .75rem; padding: 4px 9px; }
.cert__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cert__id { font-size: .72rem; color: var(--text-dim); max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1020px) { .certs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .certs { grid-template-columns: 1fr; } }

/* ---------- GitHub ---------- */
.gh { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.gh__card {
  display: grid; place-items: center; min-height: 200px; padding: 20px; border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--text);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.gh__card:hover { border-color: var(--line-strong); box-shadow: var(--glow); transform: translateY(-3px); color: var(--text); }
.gh__card img { width: 100%; height: auto; }
.gh__loading { color: var(--text-dim); font-size: .95rem; }
.gh__me { display: grid; justify-items: center; gap: 6px; text-align: center; }
.gh__me img { width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--violet); box-shadow: 0 0 24px rgba(139,92,246,.5); }
.gh__me h3 { margin: 6px 0 0; font-size: 1.15rem; }
.gh__me p { margin: 0; color: var(--text-dim); font-size: .9rem; }
.gh__nums { display: flex; gap: 18px; margin-top: 8px; }
.gh__nums b { display: block; font: 700 1.25rem/1 var(--font-display); }
.gh__nums span { font-size: .75rem; color: var(--text-dim); }
@media (max-width: 960px) { .gh { grid-template-columns: 1fr; max-width: 520px; } }

/* ---------- Chamada do rodapé ---------- */
.footer-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: clamp(24px, 4vw, 40px); margin-bottom: 48px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(79,124,255,.14), rgba(139,92,246,.16)); border: 1px solid var(--line-strong);
}
.footer-cta h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin-bottom: 6px; }
.footer-cta p { margin: 0; color: var(--text-soft); }
.footer-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-note { margin-top: 14px; font-size: .85rem; color: var(--text-dim); }
