:root {
  --bg: #faf9fd;
  --text: #1e1e2f;
  --muted: #666;
  --card: #ffffff;
  --accent: #7c5cff;
  --gradient: linear-gradient(135deg, #c3b8ff, #f7c8e0);
}

body.dark {
  --bg: #0e0e1a;
  --text: #f3f3f3;
  --muted: #aaa;
  --card: #1b1b2d;
}

* {
  box-sizing: border-box;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-family: Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

header.hero {
  overflow-x: hidden;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  color: #5a46f598;
  /* roxo elegante */
  text-decoration: none;
  font-weight: 600;

  transition: color 0.25s ease, transform 0.25s ease;
  text-shadow: 0 2px 6px rgba(124, 92, 255, 0.25);
}

.icon-link svg {
  fill: currentColor;
  transition: transform 0.25s ease;
}

/* hover suave */
.icon-link:hover {
  color: #5B3DF5;
  transform: translateY(-1px);
}

.icon-link:hover svg {
  transform: scale(1.1);
}

.block {
  max-width: 850px;
  margin: 100px auto;
  padding: 0 20px;
}

.section-title {
  background: linear-gradient(90deg, #5B3DF5, #9B7CFF);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.card {
  background: var(--card);
  padding: 28px;
  border-radius: 18px;
  margin-top: 28px;
  position: relative;

  /* efeito flutuante */
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.06),
    0 2px 8px rgba(124, 92, 255, 0.08);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-6px);
    box-shadow:
      0 18px 40px rgba(0, 0, 0, 0.08),
      0 6px 16px rgba(124, 92, 255, 0.12);
  }

  .skill-card:hover {
    transform: translateY(-6px);
    box-shadow:
      0 18px 40px rgba(0, 0, 0, 0.08),
      0 6px 16px rgba(124, 92, 255, 0.12);
  }
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.06);
}

.skill-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.06);
}

.destaque {
  border-left: 6px solid var(--accent);
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--card);
  padding: 22px;
  border-radius: 16px;
  cursor: zoom-in;
}

.project-card.ghost {
  opacity: 0.7;
  font-style: italic;
}

.fade {
  opacity: 0;
  transform: translateY(20px);
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
  transition: all .6s ease;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input,
textarea {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 12px;
  cursor: pointer;
}

.whatsapp {
  display: inline-block;
  margin-top: 20px;
  color: #25d366;
  font-weight: 600;
  text-decoration: none;
}

footer {
  text-align: center;
  padding: 40px;
  color: var(--muted);
}

@media (max-width: 700px) {
  .hero-content.horizontal {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .icon-link {
    color: #a908cf;
  }
}

/* 🐾 Cat pattern no fundo do site — mais visível */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background-color: var(--bg);

  background-image:
    /* patinhas */
    radial-gradient(circle at 25% 35%, rgba(124, 92, 255, 0.08) 5px, transparent 6px),
    radial-gradient(circle at 27% 37%, rgba(124, 92, 255, 0.08) 3px, transparent 4px),
    radial-gradient(circle at 23% 37%, rgba(124, 92, 255, 0.08) 3px, transparent 4px),

    /* bigodes */
    linear-gradient(transparent 47%, rgba(90, 70, 200, 0.06) 48%, transparent 49%),
    linear-gradient(transparent 53%, rgba(90, 70, 200, 0.06) 54%, transparent 55%),

    /* orelhas */
    linear-gradient(135deg, rgba(170, 150, 255, 0.07) 28%, transparent 29%),
    linear-gradient(225deg, rgba(170, 150, 255, 0.07) 28%, transparent 29%);

  background-size:
    160px 160px,
    160px 160px,
    160px 160px,
    260px 260px,
    260px 260px,
    220px 220px,
    220px 220px;

  background-position:
    0 0,
    0 0,
    0 0,
    80px 120px,
    80px 150px,
    120px 80px,
    160px 80px;
}

.corner-name {
  position: fixed;
  top: 24px;
  left: 28px;
  z-index: 10;

  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;

  color: rgba(30, 30, 47, 0.75);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);

  padding: 8px 14px;
  border-radius: 999px;

  display: flex;
  align-items: center;
  gap: 6px;

  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.06),
    inset 0 0 0 1px rgba(124, 92, 255, 0.15);
}

.corner-name .paw {
  font-size: 1.15em;
  opacity: 0.8;
}

.corner-name:hover .paw {
  transform: rotate(-10deg) scale(1.1);
}

.corner-name .paw {
  transition: transform 0.25s ease;
}

@media (max-width: 600px) {
  .corner-name {
    top: 16px;
    right: 16px;
    font-size: 0.85rem;
    padding: 6px 12px;
  }
}

/* 🐾 Paw animation (reutilizável) */
.paw {
  display: inline-block;
  margin-left: 4px;
  cursor: default;

  animation: catBlink 3.5s ease-in-out infinite;
  transform-origin: bottom center;
}

.footer .paw {
  animation: pawWiggle 2.8s ease-in-out infinite;
}

/* movimento suave */
@keyframes pawWiggle {
  0% {
    transform: rotate(0deg) scale(1);
  }

  10% {
    transform: rotate(-10deg) scale(1.05);
  }

  20% {
    transform: rotate(10deg) scale(1.05);
  }

  30% {
    transform: rotate(-6deg) scale(1.03);
  }

  40% {
    transform: rotate(6deg) scale(1.03);
  }

  50% {
    transform: rotate(0deg) scale(1);
  }

  100% {
    transform: rotate(0deg) scale(1);
  }
}

.paw {
  font-size: 1.05em;
  filter: drop-shadow(0 2px 2px rgba(124, 92, 255, 0.25));
}

footer .paw {
  font-size: 1.5em;
}

body.dark .paw {
  filter:
    drop-shadow(0 0 6px rgba(247, 200, 224, 0.55)) brightness(1.1);
}

/* 🐱 Cat animation */
.cat {
  display: inline-block;
  margin: 0 4px;

  font-size: 1.15em;

  animation: catBlink 3.5s ease-in-out infinite;
  transform-origin: center;
}

/* animação suave de "curiosidade" */
@keyframes catBlink {
  0% {
    transform: translateY(0) scale(1);
  }

  5% {
    transform: translateY(-2px) scale(1.05);
  }

  10% {
    transform: translateY(0) scale(1);
  }

  15% {
    transform: rotate(-5deg);
  }

  20% {
    transform: rotate(5deg);
  }

  25% {
    transform: rotate(0deg);
  }

  100% {
    transform: none;
  }
}

.cat:hover {
  transform: scale(1.25) rotate(-8deg);
  transition: transform 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  .cat {
    animation: none;
  }

  .pin {
    animation: none;
  }

  .star {
    animation: none;
  }
}

.section-header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 12px;
}

.section-header .cat {
  font-size: 1.8em;
}

/* 📍 Location pin animation */
.pin {
  display: inline-block;
  margin-right: 4px;

  font-size: 1.15em;

  animation: pinJump 3.5s ease-in-out infinite;
  transform-origin: bottom center;
}

/* animação de pulo */
@keyframes pinJump {
  0% {
    transform: translateY(0);
  }

  8% {
    transform: translateY(-6px);
  }

  16% {
    transform: translateY(0);
  }

  24% {
    transform: translateY(-4px);
  }

  32% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(0);
  }
}

.pin:hover {
  animation-play-state: paused;
  transform: translateY(-8px);
  transition: transform 0.2s ease;
}

/* ⭐ Star animation */
.star {
  display: inline-block;
  margin-right: 6px;
  font-size: 1.2em;

  animation: starTwinkle 2.2s ease-in-out infinite;
}

@keyframes starTwinkle {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

/* 🔗 Social links fixos no canto inferior direito */
.social-fixed {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 20;

  display: flex;
  gap: 18px;
}

.social-fixed .icon-link {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  padding: 10px 14px;
  border-radius: 999px;
}

@media (max-width: 600px) {
  .social-fixed {
    bottom: 16px;
    right: 16px;
    gap: 12px;
  }

  .social-fixed .icon-link {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}

/* 🧭 Horizontal projects */
.projects-horizontal {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding-bottom: 10px;

  scroll-snap-type: x mandatory;
}

.projects-horizontal::-webkit-scrollbar {
  height: 8px;
}

.projects-horizontal::-webkit-scrollbar-thumb {
  background: rgba(124, 92, 255, 0.3);
  border-radius: 999px;
}

/* Card */
.project-card {
  display: flex;
  flex-direction: column;
  min-width: 420px;
  max-width: 740px;
  min-height: 420px;

  background: var(--card);
  border-radius: 24px;
  padding: 24px;

  display: flex;
  flex-direction: column;
  gap: 18px;

  scroll-snap-align: start;

  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.07),
    0 4px 14px rgba(124, 92, 255, 0.10);

  transition: transform .3s ease, box-shadow .3s ease;
}


.project-card:hover {
  transform: translateY(-6px);
}

/* Media */
.project-media {
  border-radius: 16px;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
}

/* Gallery */
.project-media.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
}

.project-media.gallery img {
  height: 160px;
}

.project-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s ease;
}

.project-body:hover {
  transform: translateY(-2px);
}

/* Body */
.project-body h3 {
  margin: 0;
}

.project-body p {
  font-size: .95rem;
  line-height: 1.5;
  min-height: 90px;
}

/* Tags */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.project-tags span {
  background: rgba(124, 92, 255, 0.12);
  color: #5B3DF5;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .8rem;
}

.project-tags .tag {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;

  background: rgba(124, 92, 255, 0.12);
  color: #6F5BFF;
}

/* Footer */
.project-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(124, 92, 255, 0.08);
}

/* Seniority */
.level {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
}

/* variações */
.level-junior {
  background: rgba(255, 193, 7, 0.15);
  color: #b78103;
}

.level-pleno {
  background: rgba(255, 92, 168, 0.18);
  color: #f53d84;
}

.projects-wrapper {
  position: relative;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  background: none;
  border: none;
  padding: 0;

  font-size: 2.2rem;
  font-weight: 800;

  color: #6F5BFF;
  opacity: 0.45;

  cursor: pointer;
  user-select: none;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.scroll-btn.left {
  left: -56px;
}

.scroll-btn.right {
  right: -56px;
}

.scroll-btn:hover {
  opacity: 0.85;
  transform: translateY(-50%) scale(1.08);
}

.scroll-btn.left {
  left: -64px;
}

.scroll-btn.right {
  right: -64px;
}

/* esconder scrollbar feia */
.projects-horizontal {
  scrollbar-width: none;
}

.projects-horizontal::-webkit-scrollbar {
  display: none;
}

@media (max-width: 700px) {
  .scroll-btn {
    display: none;
  }

  .skills-list {
    font-size: 0.8em;
  }
}

@media (min-width: 701px) {
  .skills-list {
    font-size: 0.9em;
  }
}

@media (max-width: 530px) {
  .project-card {
    min-width: 92%;
  }

  .projects-horizontal {
    gap: 20px;
  }

  .project-media.gallery img {
    height: 80px;
  }

  .project-body p {
    font-size: .85rem;
  }
}

/* =========================
   CAROUSEL MODAL
========================= */
.carousel-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.carousel-modal.active {
  opacity: 1;
  pointer-events: all;
}

.carousel-track {
  display: flex;
  align-items: center;
  justify-content: center;

  max-width: 96vw;
  max-height: 92vh;
}

.carousel-track img {
  object-fit: contain;
  border-radius: 18px;

  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

/* Navegação */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;

  background: rgba(255, 255, 255, 0.85);
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav.left {
  left: 32px;
}

.carousel-nav.right {
  right: 32px;
}

/* Fechar */
.certificates-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.certificates-modal.active {
  opacity: 1;
  pointer-events: all;
}

.certificates-track {
  display: flex;
  align-items: center;
  justify-content: center;

  max-width: 96vw;
  max-height: 92vh;
}

.carousel-track img {
  max-width: 96vw;
  max-height: 92vh;
  max-width: 76vw;

  object-fit: contain;
  border-radius: 18px;

  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

/* Navegação */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;

  background: rgba(255, 255, 255, 0.85);
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav.left {
  left: 32px;
  right: auto;
}

.carousel-nav.right {
  right: 32px;
  left: auto;
}

/* Fechar */
.carousel-close {
  position: absolute;
  top: 24px;
  right: 32px;

  background: none;
  border: none;
  font-weight: 400;
  font-size: 2.2rem;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 600px) {
  .carousel-close {
    top: 16px;
    right: 16px;
    font-size: 1.8rem;
  }
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 48px;
  height: 48px;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);

  border: none;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.6rem;
  font-weight: 700;
  color: #6F5BFF;
  /* roxo principal */

  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.15),
    0 2px 8px rgba(111, 91, 255, 0.25);

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.scroll-btn.left {
  left: -72px;
  /* mais afastado */
}

.scroll-btn.right {
  right: -72px;
  /* mais afastado */
}

.scroll-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #5B3DF5;
  transform: translateY(-50%) scale(1.1);
}

.projects-horizontal {
  scrollbar-width: none;
}

.projects-horizontal::-webkit-scrollbar {
  display: none;
}

@media (max-width: 700px) {
  .scroll-btn {
    display: none;
  }
}

.level {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.scope {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.scope-empresarial {
  background: rgba(32, 201, 151, 0.15);
  color: #198754;
}

.scope-empresarial {
  box-shadow: inset 0 0 0 1px rgba(32, 201, 151, 0.15);
  ;
}

.scope-pessoal {
  background: rgb(207 65 65 / 15%);
  color: #d9434b;
}

@media (max-width: 500px) {
  .project-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

.blog-close {
  width: 34px;
  height: 34px;
  border-radius: 45%
}

textarea {
  min-height: 200px;
  resize: vertical;
}

.whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-weight: 600;
  text-decoration: none;

  color: #25d366;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.whatsapp .wa-icon {
  width: 20px;
  height: 20px;
}

.whatsapp:hover {
  transform: translateY(-1px);
  opacity: 0.85;
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.skill-card {
  max-width: 820px;
  background: var(--card);
  padding: 24px;
  border-radius: 20px;
  margin-top: 28px;
  position: relative;

  transform: translateY(0);

  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35), 0 4px 14px rgba(124, 92, 255, 0.12);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;

  will-change: transform;
}


.skill-card h3 {
  margin-top: auto;
  margin-bottom: 18px;
  color: #6F5BFF;
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skill-icon {
  font-size: 1.4rem;
  width: 32px;
  text-align: center;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.skill-level {
  max-height: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

/* níveis */
.skill-level.advanced {
  background: rgba(124, 92, 255, 0.15);
  color: #5B3DF5;
}

.skill-level.intermediate {
  background: rgba(255, 193, 7, 0.18);
  color: #b78103;
}

input:invalid,
textarea:invalid {
  border-color: #ff6b6b;
}

input:focus:invalid,
textarea:focus:invalid {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

.form-feedback {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #ff6b6b;
}

.textarea-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.textarea-wrapper textarea {
  min-height: 180px;
  resize: vertical;
}

.char-counter {
  font-size: 0.75rem;
  color: var(--muted);
  align-self: flex-end;
}

/* estado inválido */
textarea:invalid {
  border-color: #ff6b6b;
}

textarea:focus:invalid {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

/* ======================================================
   HERO EDITORIAL
====================================================== */
.hero {
  width: 100%;
  max-width: 100%;
}

header.hero {
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg,
      #c3b8ff 0%,
      #e6d9ff 55%,
      #faf9fd 100%);

  padding: 96px 15px 140px;
}

/* Fade suave para o conteúdo */
header.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 160px;

  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      var(--bg) 100%);

  pointer-events: none;
}

header.hero::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 28px;
  width: 140px;
  height: 140px;
  pointer-events: none;
  z-index: 1;

  background:
    /* almofada principal */
    radial-gradient(circle at 50% 60%, rgba(124, 92, 255, 0.18) 22%, transparent 24%),

    /* dedos */
    radial-gradient(circle at 30% 35%, rgba(124, 92, 255, 0.18) 10%, transparent 12%),
    radial-gradient(circle at 50% 25%, rgba(124, 92, 255, 0.18) 10%, transparent 12%),
    radial-gradient(circle at 70% 35%, rgba(124, 92, 255, 0.18) 10%, transparent 12%),
    radial-gradient(circle at 85% 55%, rgba(124, 92, 255, 0.18) 9%, transparent 11%);

  animation: pawWiggle 2.8s ease-in-out infinite;
}

header.hero.hero-editorial {
  padding: 90px 20px 100px;
}

.hero-editorial .hero-inner {
  max-width: 980px;
  margin: 10px auto;
  text-align: center;
}

/* pequeno texto acima */
.hero-editorial .hero-eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(30, 30, 47, 0.55);
}

.body-dark .hero-editorial .hero-eyebrow {
  color: rgb(208 208 211 / 55%);
}

/* subtítulo elegante */
.hero-editorial .hero-subtitle {
  margin-top: 18px;
  font-size: 1.15rem;
  font-weight: 400;
  color: #6F5BFF;
}

/* infos */
.hero-editorial .hero-meta {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: rgba(30, 30, 47, 0.7);
}

/* ações */
.hero-editorial .hero-actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 22px;
}

/* links mais editoriais */
.hero-editorial .icon-link {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ======================================================
   RESPONSIVO
====================================================== */

@media (max-width: 700px) {
  header.hero.hero-editorial {
    padding: 130px 20px 40px;
  }

  .block {
    margin: 100px auto;
  }

  .hero-editorial .hero-name {
    font-size: 3rem;
  }

  .hero-editorial .hero-meta {
    gap: 12px;
  }
}

/* Avatar no hero editorial */
.hero-editorial .hero-avatar {
  width: 200px;
  height: 200px;
  margin: 0 auto 26px;
  position: relative;

  border-radius: 50%;
  overflow: visible;

  background: transparent;

  /* sombra difusa */
  box-shadow:
    0 0 0 10px rgba(124, 92, 255, 0.12),
    0 0 40px rgba(124, 92, 255, 0.35);

  /* fade suave nas bordas */
  -webkit-mask-image: radial-gradient(circle,
      black 60%,
      rgba(0, 0, 0, 0.6) 72%,
      rgba(0, 0, 0, 0.3) 82%,
      transparent 100%);

  mask-image: radial-gradient(circle,
      black 60%,
      rgba(0, 0, 0, 0.6) 72%,
      rgba(0, 0, 0, 0.3) 82%,
      transparent 100%);
}


.hero-editorial .hero-avatar img {
  width: 110%;
  height: 110%;
  object-fit: cover;
}

/* leve flutuação */
@media (hover: hover) {
  .hero-editorial .hero-avatar:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow:
      0 18px 42px rgba(0, 0, 0, 0.12),
      inset 0 0 0 2px rgba(124, 92, 255, 0.4);
  }
}

@keyframes avatarGlow {
  0% {
    box-shadow: 0 0 0 10px rgba(124, 92, 255, 0.12), 0 0 40px rgba(124, 92, 255, 0.35);
  }

  50% {
    box-shadow: 0 0 0 14px rgba(124, 92, 255, 0.18), 0 0 55px rgba(124, 92, 255, 0.45);
  }

  100% {
    box-shadow: 0 0 0 10px rgba(124, 92, 255, 0.12), 0 0 40px rgba(124, 92, 255, 0.35);
  }
}

.hero-editorial .hero-avatar {
  animation: avatarGlow 6s ease-in-out infinite;
}

.highlight {
  font-weight: 500;
  letter-spacing: -0.02em;

  background: linear-gradient(90deg,
      #7c5cff,
      #a78bfa,
      #f7c8e0,
      #7c5cff);
  background-size: 300% 300%;

  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;

  animation: gradientMove 5s ease infinite;
}

.glow {
  display: inline-block;
  animation: floatText 6s ease-in-out infinite;
}

@keyframes floatText {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }

  100% {
    transform: translateY(0);
  }
}

.glow::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(120deg,
      transparent 30%,
      rgba(255, 255, 255, 0.45),
      transparent 70%);

  background-size: 200% 100%;
  animation: shine 6s ease-in-out infinite;

  mix-blend-mode: overlay;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {

  .highlight,
  .glow {
    animation: none;
  }
}

.hero-name {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 4.0rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;

  opacity: 0;
  transform: translateY(18px);

  animation: nameEnter 1.1s ease-out forwards;
  animation-delay: 0.2s;

  position: relative;
}

@keyframes nameEnter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nameFloat {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0);
  }
}

.hero-name {
  animation:
    nameEnter 1.1s ease-out forwards,
    nameFloat 7s ease-in-out infinite;
  animation-delay: 0.25s, 1.4s;
}

/* 📚 Blogs */
.blogs-horizontal {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;

  /* esconder scrollbar */
  scrollbar-width: none;
  /* Firefox */
}

.blogs-horizontal::-webkit-scrollbar {
  display: none;
  /* Chrome, Edge, Safari */
}

.blog-card {
  min-height: 380px;
  min-width: 340px;

  display: flex;
  flex-direction: column;

  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;

  scroll-snap-align: start;

  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(124, 92, 255, 0.12);

  transition: transform .3s ease, box-shadow .3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
}

.blog-media img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.blog-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.blog-body {
  padding: 20px 20px 14px;
}

.blog-body h3 {
  margin: 0;
}

.blog-body p {
  font-size: .9rem;
  color: var(--muted);
}

/* 🔍 Modal */
#blog-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 30, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 999;
}

#blog-modal.show {
  opacity: 1;
  pointer-events: all;
}

.blog-modal-content {
  background: var(--card);
  max-width: 820px;
  max-height: 85vh;
  overflow-y: auto;

  padding: 36px;
  border-radius: 24px;
  position: relative;
}

.blog-modal-content h2 {
  margin-top: 0;
}

.blog-modal-content h3 {
  color: #6F5BFF;
}

.blog-modal-content pre {
  background: #0e0e1a;
  color: #f3f3f3;
  padding: 16px;
  border-radius: 12px;
  overflow-x: auto;
}

.blog-close {
  position: fixed;
  top: 18px;
  right: 18px;

  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

/* Tags */
.blog-tags .tag {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;

  background: rgba(124, 92, 255, 0.12);
  color: #6F5BFF;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-footer {
  margin-top: auto;
  /* empurra pro fundo */
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding-top: 14px;
  border-top: 1px solid rgba(124, 92, 255, 0.08);
}

.status {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status.aguardando {
  background: rgba(255, 193, 7, 0.18);
  color: #b78103;
}

.status.andamento {
  background: rgba(255, 92, 141, 0.15);
  color: #f53d84;
}

.status.concluido {
  background: rgba(32, 201, 151, 0.15);
  color: #198754;
}

.scope-referencia {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
}

.scope-referencia {
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.25);
}

/* Readme Blog */
.readme-blog {
  max-width: 900px;
  margin: auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1f2937;
  line-height: 1.6;
}

.intro {
  font-size: 1.1rem;
  color: #374151;
}

.patterns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pattern {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  padding-top: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pattern:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.pattern h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.pattern span {
  display: inline;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: #2563eb;
  font-weight: 500;
}

.examples {
  margin-top: 1rem;
  padding-left: 1.2rem;
}

.examples li {
  margin-bottom: 0.6rem;
}

.closing {
  margin-top: 2rem;
  font-size: 1.05rem;
  color: #374151;
}

.credits {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.9rem;
  color: #6b7280;
}

.credits a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.credits a:hover {
  text-decoration: underline;
}

/* Scroll geral */
::-webkit-scrollbar-thumb:hover {
  background: #6366f1;
}

/* Firefox */
* {
  scrollbar-color: #c7d2fe #f1f5f9;
}

.pattern-image {
  object-fit: cover;
  width: 100%;
  height: 160px;
  max-height: 220px;
  border-radius: 10px;
  margin-bottom: 1rem;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.image-wrapper {
  mask-image: linear-gradient(to bottom,
      transparent,
      black 10%,
      black 90%,
      transparent);
}

.pattern-image:hover {
  transform: scale(1.03);
}

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.image-modal img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  animation: zoomIn 0.3s ease;
}

.image-modal.active {
  opacity: 1;
  pointer-events: auto;
}

@keyframes zoomIn {
  from {
    transform: scale(0.95);
  }

  to {
    transform: scale(1);
  }
}

.page-scroll {
  max-height: 100vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* Scroll APENAS do container */
.page-scroll::-webkit-scrollbar {
  width: 8px;
}

.page-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.page-scroll::-webkit-scrollbar-thumb {
  background: #c7d2fe;
  border-radius: 6px;
}

.page-scroll::-webkit-scrollbar-thumb:hover {
  background: #6366f1;
}

/* Firefox */
.page-scroll {
  padding-right: 35px;
  scrollbar-width: none;
  ;
  scrollbar-color: #c7d2fe transparent;
}

.code-block {
  background: linear-gradient(145deg, #0f172a, #020617);
  color: #e5e7eb;
  padding: 1.2rem 1.5rem;
  border-radius: 12px;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  overflow-x: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* barra lateral sutil */
.code-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: #47bd67;
  border-radius: 12px 0 0 12px;
}

/* necessário pro ::before */
.code-block {
  position: relative;
}

/* variação para exemplos ruins */
.code-block.danger::before {
  background: #ef4444;
}

/* seleção bonita */
.code-block::selection,
.code-block code::selection {
  background: #334155;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #ffffff;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  border-radius: 16px;
  font-family: system-ui, sans-serif;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  border: none;
  background: none;
  cursor: pointer;
}

.architecture-block {
  margin-bottom: 1.5rem;
}

.blog-highlight {
  background: #f1f5f9;
  padding: 1.2rem;
  border-left: 4px solid #6366f1;
  border-radius: 8px;
}

.code-placeholder {
  background: #0f172a;
  color: #e5e7eb;
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 1.5rem;
  font-family: monospace;
}

/* =========================
   EXPERIENCE (logos)
========================= */

.experience-card {
  display: flex;
  align-items: center;
  gap: 22px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35), 0 4px 14px rgba(124, 92, 255, 0.12);
}

/* container do logo */
.experience-logo {
  width: 74px;
  height: 74px;
  flex-shrink: 0;

  border-radius: 14px;
  background: rgba(124, 92, 255, 0.08);

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(124, 92, 255, 0.18);
}

/* imagem do logo */
.experience-logo img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

/* fallback (empresa sem logo) */
.experience-logo.default {
  background: rgba(108, 117, 125, 0.15);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(108, 117, 125, 0.25);
}

.company-icon {
  font-size: 1.8rem;
  opacity: 0.75;
}

/* conteúdo */
.experience-content h3 {
  margin: 0;
}

.experience-content span {
  display: block;
  margin: 4px 0 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* responsivo */
@media (max-width: 600px) {
  .experience-card {
    align-items: flex-start;
  }

  .experience-logo {
    width: 52px;
    height: 52px;
  }
}

/* =========================
   EDUCATION
========================= */

.education-card {
  display: flex;
  align-items: center;
  gap: 22px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35), 0 4px 14px rgba(124, 92, 255, 0.12);
}

.education-logo {
  width: 74px;
  height: 74px;
  flex-shrink: 0;

  border-radius: 14px;
  background: rgba(124, 92, 255, 0.08);

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(124, 92, 255, 0.18);
}

.education-logo img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.education-logo.default {
  background: rgba(108, 117, 125, 0.15);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(108, 117, 125, 0.25);
}

.education-icon {
  font-size: 2rem;
  opacity: 0.75;
}

.education-content h3 {
  margin: 0;
}

.education-content span {
  display: block;
  margin: 4px 0 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  .education-card {
    align-items: flex-start;
  }

  .education-logo {
    width: 48px;
    height: 48px;
  }
}

.project-links {
  display: flex;
  gap: 14px;
  font-size: 0.85rem;
}

.project-links a {
  color: #6F5BFF;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.project-links a:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* limita visualmente a 3 imagens */
.project-media.gallery img {
  display: none;
}

.project-media.gallery img:nth-child(-n+3) {
  display: block;
}

/* overlay do +X */
.project-media.gallery {
  position: relative;
}

.project-media.gallery .more-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(30, 30, 47, 0.55);
  backdrop-filter: blur(3px);

  color: white;
  font-size: 2rem;
  font-weight: 700;

  border-radius: 16px;
  cursor: pointer;

  transition: background 0.25s ease;
}

.project-media.gallery .more-overlay:hover {
  background: rgba(30, 30, 47, 0.7);
}

.scroll-down {
  position: absolute;
  bottom: 32px;
  left: 32px;
  z-index: 5;

  width: 44px;
  height: 44px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.4rem;
  font-weight: 700;

  text-decoration: none;
  color: rgba(124, 92, 255, 0.55);

  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(124, 92, 255, 0.2);

  transition:
    transform 0.25s ease,
    color 0.25s ease,
    background 0.25s ease;

  animation: arrowFloat 2.4s ease-in-out infinite;
}

.scroll-down-fixed {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;

  width: 38px;
  height: 38px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.6rem;
  font-weight: 800;

  text-decoration: none;
  color: #6F5BFF;

  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.15),
    inset 0 0 0 2px rgba(124, 92, 255, 0.35);

  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    background 0.25s ease;

  animation: arrowBounce 2.2s ease-in-out infinite;
}

/* hover */
.scroll-down-fixed:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(6px) scale(1.05);
}

/* animação mais perceptível */
@keyframes arrowBounce {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }

  100% {
    transform: translateY(0);
  }
}

/* mobile */
@media (max-width: 600px) {
  .scroll-down-fixed {
    bottom: 20px;
    right: 20px;
    width: 34px;
    height: 34px;
    font-size: 1.4rem;
  }
}

/* 🌙 Theme toggle */
.theme-toggle {
  position: fixed;
  bottom: 32px;
  right: 96px;
  /* deixa espaço pra seta ↓ */
  z-index: 1000;

  width: 48px;
  height: 48px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.3rem;
  cursor: pointer;

  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);

  border: none;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.18),
    inset 0 0 0 2px rgba(124, 92, 255, 0.35);

  color: #6F5BFF;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.theme-toggle:hover {
  transform: translateY(-4px) scale(1.05);
  background: rgba(255, 255, 255, 0.85);
}

/* dark mode visual */
body.dark .theme-toggle {
  background: rgba(30, 30, 60, 0.7);
  color: #f7c8e0;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    inset 0 0 0 2px rgba(247, 200, 224, 0.35);
}

/* mobile */
@media (max-width: 600px) {
  .theme-toggle {
    bottom: 20px;
    right: 76px;
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }
}

/* 🌙 Theme toggle — topo direito */
.theme-toggle {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 1000;

  width: 46px;
  height: 46px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.2rem;
  cursor: pointer;

  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);

  border: none;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.18),
    inset 0 0 0 2px rgba(124, 92, 255, 0.35);

  color: #6F5BFF;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.theme-toggle:hover {
  transform: translateY(-3px) scale(1.05);
  background: rgba(255, 255, 255, 0.85);
}

/* dark */
body.dark .theme-toggle {
  background: rgba(30, 30, 60, 0.7);
  color: #f7c8e0;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    inset 0 0 0 2px rgba(247, 200, 224, 0.35);
}

body.dark header.hero {
  background:
    radial-gradient(circle at 50% 55%,
      rgba(247, 200, 224, 0.25) 0%,
      rgba(124, 92, 255, 0.25) 35%,
      rgba(20, 20, 40, 0.9) 80%);
}

@media (max-width: 600px) {
  .theme-toggle {
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
}

@media (max-width: 700px) {
  h3 {
    font-size: 1.1rem;
  }

  .carousel-nav {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 580px) {
  .carousel-nav {
    width: 30px;
    height: 30px;
  }
}

body.dark .hero-name {
  text-shadow:
    0 10px 30px rgba(124, 92, 255, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.6);
}

body.dark .hero-editorial .hero-meta {
  color: #d1d5db;
}

.glow::after {
  background: none;
}

body.dark .readme-blog {
  color: #d1d5db;
}

body.dark .skill-card,
body.dark p {
  font-weight: 300;
}

body.dark b {
  font-weight: 700;
}

body.dark .carousel-nav {
  color: #fff;
  background: rgb(155 101 143 / 27%);
}

body.dark .carousel-nav:hover {
  background: rgb(255 255 255 / 40%);
}

body.dark .scroll-btn {
  background: rgb(255 255 255 / 26%);
}

body.dark .scroll-btn:hover {
  background: rgb(255 255 255 / 40%);
}

body.dark .readme-blog {
  color: var(--text);
}

body.dark .readme-blog h2 {
  color: #ffffff;
}

body.dark .readme-blog h3 {
  color: #e979ff;
}

body.dark .readme-blog p,
body.dark .readme-blog li,
.intro:not() {
  color: #d9d9d9;
}

body.dark .readme-blog a {
  color: #718ff3;
}

.readme-blog a {
  text-decoration: none;
}

body.dark .pattern {
  background: linear-gradient(180deg,
      #16182d 0%,
      #13152a 100%);

  border-radius: 18px;
  padding: 26px;

  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(124, 92, 255, 0.15);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.dark .pattern:hover {
  transform: translateY(-6px);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(124, 92, 255, 0.35);
}

body.dark .pattern h3 {
  color: #b7a6ff;
  font-weight: 600;
  margin-bottom: 10px;
}

body.dark .blog-highlight {
  background: #7253716e;
}

.pattern pre {
  background: linear-gradient(180deg,
      #0d0f1f 0%,
      #0a0b18 100%);

  border-radius: 14px;
  padding: 18px;
  margin: 16px 0;

  box-shadow:
    inset 0 0 0 1px rgba(124, 92, 255, 0.18),
    0 10px 30px rgba(0, 0, 0, 0.4);

  overflow-x: auto;
}

.pattern code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.decision-card {
  background: var(--card);
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35), 0 4px 14px rgba(124, 92, 255, 0.12);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.decision-card h3 {
  margin-top: 0;
  color: #6F5BFF;
}

.decision-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (hover: hover) {
  .decision-card:hover {
    transform: translateY(-4px);
    box-shadow:
      0 18px 40px rgba(0, 0, 0, 0.08),
      0 6px 16px rgba(124, 92, 255, 0.12);
  }
}

.cta-final {
  text-align: center;
  background: linear-gradient(135deg,
      rgba(124, 92, 255, 0.08),
      rgba(247, 200, 224, 0.12));
  border-radius: 24px;
  padding: 56px 24px;
}

.cta-final h2 {
  margin-top: 0;
}

.cta-final p {
  max-width: 520px;
  margin: 12px auto 28px;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-btn {
  background: var(--accent);
  color: white;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;

  box-shadow:
    0 10px 30px rgba(124, 92, 255, 0.35);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px rgba(124, 92, 255, 0.45);
}

.cta-link {
  color: #6F5BFF;
  font-weight: 600;
  text-decoration: none;
  align-self: center;
}

.brain {
  font-size: 1.6em;
  display: inline-block;
  margin-right: 8px;

  animation: brainPulse 2.8s ease-in-out infinite;
  transform-origin: center;
  filter: drop-shadow(0 0 0 rgba(124, 92, 255, 0.0));
}

@keyframes brainPulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(124, 92, 255, 0.0));
  }

  40% {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px rgba(124, 92, 255, 0.45));
  }

  60% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 14px rgba(167, 139, 250, 0.55));
  }

  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(124, 92, 255, 0.0));
  }
}

.tech-experience {
  font-weight: 200;
  font-size: 0.8em;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 24px;
}

.certificate-card {
  background: var(--card);
  border-radius: 22px;
  overflow: hidden;

  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.35),
    0 4px 14px rgba(124, 92, 255, 0.12);

  transition: transform .3s ease, box-shadow .3s ease;
}

.certificate-card:hover {
  transform: translateY(-6px);
}

.certificate-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform .35s ease;
}

.certificate-card:hover img {
  transform: scale(1.05);
}

.certificate-body {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.certificate-body h3 {
  margin: 0 0 10px;
}

.certificate-body p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  min-height: 90px;
}

/* Footer */
.certificate-footer {
  margin-top: auto;
  /* empurra pro fundo */
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(124, 92, 255, 0.08);
}

/* Badges */
.badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Tipos */
.badge-academic {
  background: rgba(72, 139, 247, 0.15);
  color: #4f89cf;
}

.badge-specialization {
  background: rgba(124, 92, 255, 0.18);
  color: #a78bfa;
}

.badge-technical {
  background: rgb(199 196 54 / 18%);
  color: #e9ce42;
}

/* Status */
.badge-complete {
  background: rgba(32, 201, 151, 0.15);
  color: #198754;
}

.badge-progress {
  background: rgba(234, 179, 8, 0.2);
  color: #facc15;
}

/* Ano */
.year {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--muted);
}

.badge-verify {
  margin-left: auto;
  font-size: 0.85rem;
  color: #7c6cff;
  text-decoration: none;
  font-weight: 500;
}

.badge-verify:hover {
  text-decoration: underline;
}

#blog-modal.show {
  display: flex;
}

/* 🔴 BOTÃO FECHAR */
.blog-close {
  position: fixed;
  /* 👈 importante para mobile */
  top: 16px;
  right: 16px;

  width: 44px;
  height: 44px;

  border-radius: 50%;
  border: none;

  background: rgb(124 124 124 / 10%);
  color: #f578e9c9;

  font-size: 22px;
  font-weight: 600;
  line-height: 1;

  cursor: pointer;
  z-index: 10000;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: background 0.2s ease, transform 0.15s ease;
}

.blog-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.blog-close:active {
  transform: scale(0.92);
}

/* 💡 Desktop: deixa o botão dentro do card */
.blog-close {
  position: fixed;
  top: 40px;
  right: 16px;
}

.theme-toggle.hidden-by-modal {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (max-width: 500px) {
  .blog-title {
    font-size: 1.2em;
  }

  .blog-close {
    width: 32px;
    height: 32px;
  }

  .project-links {
    margin-top: 15px;
    justify-content: flex-end;
  }

  .project-footer,
  .blog-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .project-body {
    height: 80%;
  }
}

.theme-toggle,
.scroll-down-fixed {
  font-size: 1.7em;
  max-width: calc(100vw - 16px);
}

body.dark .skill-level.advanced {
  background: rgb(172 159 225 / 15%);
  color: #826cf3;
}

body.dark .skill-level.intermediate {
  background: rgba(255, 193, 7, 0.18);
  color: #c1ad13;
}

@media (max-width: 700px) {

  .projects-horizontal,
  .blogs-horizontal {
    padding-right: 20vw;
    /* mostra pedaço do próximo */
  }

  .project-card,
  .blog-card {
    min-width: 95%;
    max-height: 80%;
  }

  .project-footer,
  .blog-footer {
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .project-links {
    padding-left: 5px;
  }
}

.scroll-hint {
  display: none;
}

@media (max-width: 700px) {
  .scroll-hint {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: #361de5;
    margin-bottom: 8px;
    opacity: 0.7;
  }
}

.projects-horizontal {
  touch-action: pan-x;
}

img.is-default {
  cursor: default;
  pointer-events: auto;
}

div.is-default {
  cursor: default;
  pointer-events: auto;
}

.project-card img:not(.is-default),
.project-card div:not(.is-default) {
  cursor: zoom-in;
}

body.dark .project-card,
body.dark .blog-card,
body.dark .certificate-card {
  background: linear-gradient(180deg,
      #232244 0%,
      #1b1a33 100%);

  border: 1px solid rgba(255, 255, 255, 0.06);

  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.55),
    0 6px 18px rgba(124, 92, 255, 0.18);
}

@media (max-width: 768px) {

  .projects-horizontal,
  .blogs-horizontal,
  .certificates-horizontal {
    gap: 20px;
  }

  .project-card,
  .blog-card,
  .certificate-card {
    margin-bottom: 16px;
  }
}

body.dark .project-card:hover,
body.dark .blog-card:hover,
body.dark .certificate-card:hover {
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.6),
    0 8px 22px rgba(124, 92, 255, 0.35);
}

/* 🔥 remove a cor no modo dark */
body.dark .hero-editorial .hero-eyebrow {
  color: rgba(204, 204, 250, 0.712);
}

body.dark .scroll-down-fixed {
  color: #a8a2d3;
  background: rgb(189 145 211 / 65%);
}

.project-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.project-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
}

@media (max-width: 480px) {
  .project-media {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }

  .project-media img {
    flex: 0 0 85%;
    height: 100px;
    scroll-snap-align: start;
  }

  .project-media::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 300px) {
  .project-media.gallery img {
    height: 50px;
  }

  h3 {
    font-size: 0.85rem;
  }
}

.carousel-modal {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* iOS */
}

.carousel-track {
  touch-action: pan-x pan-y;
}

html,
body {
  height: 100%;
  overscroll-behavior: none;
}

.carousel-modal {
  overscroll-behavior: contain;
}

.carousel-track {
  padding-bottom: 32px;
}

.scroll-down-fixed {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-down-fixed.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.project-hint,
.blog-hint {
  position: absolute;
  right: 12px;
  bottom: -32px;

  font-size: 3em;
  font-weight: 900;
  color: rgba(124, 92, 255, 0.7);

  transition: opacity 0.25s ease, transform 0.25s ease;
}

.project-hint.hidden,
.blog-hint.hidden {
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
}

/* Container do modal */
.blog-modal-content {
  margin: 6vh auto;
  padding: clamp(20px, 4vw, 36px);

  max-height: 88vh;
  overflow-y: auto;

  border-radius: 18px;
}

.blog-modal-content {
  position: relative;
}

/* Faixa roxa no topo */
.blog-modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;

  display: block;
  width: 100%;
  height: 4px;

  background: linear-gradient(90deg,
      rgba(124, 92, 255, 0.15),
      rgba(124, 92, 255, 0.55),
      rgba(124, 92, 255, 0.15));

  border-radius: 12px 12px 0 0;
}

body.dark .blog-modal-content::before {
  background: linear-gradient(90deg,
      rgba(124, 92, 255, 0.2),
      rgba(180, 160, 255, 0.65),
      rgba(124, 92, 255, 0.2));
}

body:not(.dark) .blog-modal-content::before {
  background: linear-gradient(90deg,
      rgba(124, 92, 255, 0.12),
      rgba(124, 92, 255, 0.35),
      rgba(124, 92, 255, 0.12));
}

.blog-modal-content {
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    0 -6px 24px rgba(124, 92, 255, 0.08);
}

body.dark .intro {
  color: #c474ffb3;
}

.intro {
  color: #fd0f7c;
  font-weight: 400;
}

body.dark .closing {
  color: #94abcf;
}

body.dark .credits {
  color: #f7c8e08f;
}

html,
body {
  touch-action: pan-y;
  overscroll-behavior: none;
}

.modal,
.blog-modal,
#carousel-modal,
#certificates-modal,
#image-modal {
  touch-action: manipulation;
}

.modal img,
#carousel-modal img,
#certificate-modal-img {
  touch-action: pinch-zoom;
}

.modal img:not(.no-zoom) {
  touch-action: pinch-zoom;
}

/* Área do modal */
#carousel-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* Track do carrossel */
#carousel-modal .carousel-track {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}

/* Imagem */
#carousel-modal .carousel-track img {
  margin-top: 15px;
  max-width: 88%;
  /* 👈 ESSENCIAL */
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(20, 20, 40, 0.6);
  color: #0000005c;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.2s ease;
}

.carousel-nav.left {
  left: 16px;
  right: auto;
}

.carousel-nav.right {
  right: 16px;
  left: auto;
}

@media (max-width: 600px) {
  .carousel-nav {
    width: 26px;
    height: 26px;
    background: rgba(20, 20, 40, 0.7);
  }

  .carousel-nav.left {
    left: 8px;
  }

  .carousel-nav.right {
    right: 8px;
  }
}

.carousel-modal.single-image .carousel-nav {
  display: none;
}

#carousel-modal {
  padding-top: env(safe-area-inset-top, 16px);
  padding-bottom: env(safe-area-inset-bottom, 16px);
}

.carousel-close {
  top: 4px;
  right: 3px;
}

.carousel-nav {
  background: linear-gradient(135deg,
      rgba(140, 120, 255, 0.95),
      rgba(180, 150, 255, 0.95));
  box-shadow: 0 6px 18px rgba(124, 92, 255, 0.35);
}

.carousel-container-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 400px) {
  h3 {
    font-size: 0.9rem;
  }

  .carousel-nav {
    width: 20px;
    height: 20px;
  }

  .carousel-close {
    top: 50px;
    right: 3px;
  }

  .carousel-container-nav {
    position: absolute;
    bottom: 30%;
    justify-content: center;
    gap: 24px;
  }

  .carousel-nav.left {
    order: 1;
  }

  .carousel-nav.right {
    order: 2;
  }

  #carousel-modal .carousel-track img {
    max-width: 80%;
  }
}

@media (max-width: 480px) {

  .skills-card {
    padding: 16px;
    border-radius: 18px;
  }

  .skills-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .skill-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
  }

  body.dark .skill-item {
    background: rgba(255, 255, 255, 0.05);
  }

  .skill-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .skill-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }

  .skill-name {
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .skill-level {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 999px;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {

  .certificate-card {
    padding: 14px;
    border-radius: 20px;
  }

  .certificate-media img {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 14px;
  }

  .certificate-body {
    padding-top: 12px;
  }

  .certificate-body h3 {
    font-size: 1rem;
    line-height: 1.2;
  }

  .certificate-body p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .certificate-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
  }

  .certificate-footer .year {
    margin-left: auto;
    font-size: 0.75rem;
    opacity: 0.7;
  }
}

body.dark .skills-card,
body.dark .certificate-card {
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(124, 92, 255, 0.15);
}

@media (max-width: 480px) {
  .scroll-down-fixed {
    bottom: 16px;
    right: 14px;
    transform: scale(0.9);
  }
}

@media (max-width: 360px) {
  .skill-level {
    display: none;
  }
}

.project-hint,
.blog-hint {
  cursor: pointer;
  user-select: none;
}

.project-hint:hover,
.blog-hint:hover {
  opacity: 0.85;
}

.carousel-container-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0 16px;
  transform: translateY(-50%);
}

.carousel-nav.left {
  order: 1;
}

.carousel-nav.right {
  order: 2;
}

@media (max-width: 400px) {
  .carousel-container-nav {
    position: absolute;
    top: auto;
    left: 0;
    right: 0;

    transform: none;

    justify-content: center;
    gap: 24px;
  }

  .carousel-nav.left {
    order: 1;
  }

  .carousel-nav.right {
    order: 2;
  }
}

@media (max-width: 400px) {
  .carousel-nav {
    font-size: 1.4rem;
  }

  #carousel-modal .carousel-track {
    min-width: 120%;
  }

  .blog-modal-content h2 {
    font-size: 1.3em;
  }
}

.carousel-modal img,
.carousel-track img {
  outline: none;
  border: none;
}

.carousel-modal img:focus,
.carousel-track img:focus {
  outline: none;
}

.carousel-modal,
.carousel-track {
  outline: none;
}

.carousel-modal:focus,
.carousel-track:focus {
  outline: none;
}

* {
  -webkit-tap-highlight-color: transparent;
}

.projects-horizontal,
.blogs-horizontal {
  overflow-x: auto;
  overflow-y: visible;

  /* 🔑 chave do problema */
  touch-action: pan-y pan-x;
}

.projects-horizontal,
.blogs-horizontal {
  -webkit-overflow-scrolling: touch;
}

.carousel-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 14px;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
  touch-action: pan-x pinch-zoom;
}

.carousel-track img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;

  /* 🔍 permite zoom */
  touch-action: pinch-zoom;
  user-select: none;
}

.certificates-modal .carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.certificates-modal.carousel-track img {
  max-width: 100%;
  height: auto;
  scroll-snap-align: center;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}

body.dark .icon-link {
  color: #aba1f5b0;
}

.carousel-viewport {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 16px;
  /* 🔥 cria área clicável */
  box-sizing: border-box;
}

.blog-modal-content h2 {
  margin-top: inherit;
}

/* =====================================================
   NAV GLASS + MENU TOGGLE
===================================================== */

/* ---------- NAV (DESKTOP) ---------- */
.nav-glass {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;

  display: flex;
  gap: 22px;

  padding: 10px 22px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px);

  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.14),
    inset 0 0 0 1px rgba(124, 92, 255, 0.25);

  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.nav-glass a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  color: #6F5BFF;
  opacity: 0.85;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    color 0.2s ease;
}

.nav-glass a:hover {
  opacity: 1;
  transform: translateY(-1px);
  color: #5B3DF5;
}

/* ---------- DARK MODE ---------- */
body.dark .nav-glass {
  background: rgba(30, 30, 60, 0.75);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(247, 200, 224, 0.35);
}

body.dark .nav-glass a {
  color: #f7c8e0;
}

body.dark .nav-glass a:hover {
  color: #ffffff;
}

/* ---------- MENU TOGGLE (MOBILE BUTTON) ---------- */
.menu-toggle {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 1100;

  width: 46px;
  height: 46px;
  border-radius: 50%;

  display: none;
  align-items: center;
  justify-content: center;

  font-size: 1.4rem;
  font-weight: 700;

  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);

  border: none;
  cursor: pointer;

  color: #6F5BFF;

  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.18),
    inset 0 0 0 2px rgba(124, 92, 255, 0.35);

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.menu-toggle:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.85);
}

/* dark */
body.dark .menu-toggle {
  background: rgba(30, 30, 60, 0.75);
  color: #f7c8e0;

  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.55),
    inset 0 0 0 2px rgba(247, 200, 224, 0.35);
}

/* ---------- MOBILE LAYOUT ---------- */
@media (max-width: 768px) {

  .menu-toggle {
    display: flex;
  }

  .nav-glass {
    top: 0;
    left: 0;
    transform: none;

    width: 100%;
    height: 100vh;

    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;

    padding: 0;
    border-radius: 0;

    display: none;
  }

  .nav-glass.open {
    display: flex;
  }

  .nav-glass a {
    font-size: 1.25rem;
    letter-spacing: 0.22em;
  }
}

/* ---------- ACESSIBILIDADE ---------- */
.nav-glass a:focus-visible,
.menu-toggle:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(124, 92, 255, 0.45);
}

/* Desktop – glow completo */
@media (hover: hover) and (pointer: fine) {
  .hero-editorial .hero-avatar {
    animation: avatarGlow 6s ease-in-out infinite;
  }
}

/* Mobile – animação leve */
@media (hover: none) and (pointer: coarse) {
  .hero-editorial .hero-avatar {
    animation: avatarFloat 4s ease-in-out infinite;
  }
}

@keyframes avatarFloat {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.98;
  }
  50% {
    transform: translateY(-6px) scale(1.03);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.98;
  }
}

.hero-editorial .hero-avatar::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(124, 92, 255, 0.35),
    transparent 70%
  );
  z-index: -1;
}

