:root {
  --bg: #030305;
  --bg-soft: #07070c;
  --panel: #0d0d14;
  --panel-strong: #14131d;
  --text: #f5f0f4;
  --muted: #bdb4bd;
  --subtle: #827985;
  --pink: #ff2d92;
  --pink-soft: #ff74bd;
  --wine: #841451;
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 0 0 1px rgba(255, 45, 146, 0.28), 0 0 26px rgba(255, 45, 146, 0.2),
    0 24px 64px rgba(0, 0, 0, 0.62);
  --radius: 18px;
  --radius-lg: 30px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 45, 146, 0.2), transparent 29rem),
    radial-gradient(circle at 92% 10%, rgba(255, 116, 189, 0.14), transparent 32rem),
    radial-gradient(circle at 78% 78%, rgba(0, 184, 255, 0.08), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

@keyframes soft-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -8px, 0);
  }
}

@keyframes pulse-border {
  0%,
  100% {
    opacity: 0.28;
  }

  50% {
    opacity: 0.66;
  }
}

@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}

@keyframes certificate-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 13px));
  }
}

@keyframes circuit-drift {
  from {
    background-position:
      0 0,
      180px 90px,
      0 0,
      0 0;
  }

  to {
    background-position:
      760px 0,
      -340px 180px,
      180px 0,
      0 140px;
  }
}

@keyframes circuit-pulse {
  0%,
  100% {
    opacity: 0.24;
  }

  48% {
    opacity: 0.4;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='760' height='360' viewBox='0 0 760 360'%3E%3Cg fill='none' stroke='%23ff4fb0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 62h82v38h86v-58h70'/%3E%3Cpath d='M316 24v76h-42v76h84v48h92'/%3E%3Cpath d='M518 44h74v56h132'/%3E%3Cpath d='M74 228h98v-52h68'/%3E%3Cpath d='M432 286h72v-64h88v-42h132'/%3E%3Cpath d='M206 316v-58h92v-38h72'/%3E%3Cpath d='M606 302v-52h-48'/%3E%3C/g%3E%3Cg fill='%23ffd2ea'%3E%3Ccircle cx='18' cy='62' r='4'/%3E%3Ccircle cx='256' cy='42' r='5'/%3E%3Ccircle cx='518' cy='44' r='4'/%3E%3Ccircle cx='724' cy='100' r='5'/%3E%3Ccircle cx='74' cy='228' r='4'/%3E%3Ccircle cx='724' cy='180' r='4'/%3E%3Ccircle cx='206' cy='316' r='5'/%3E%3Ccircle cx='606' cy='302' r='4'/%3E%3C/g%3E%3Crect x='342' y='102' width='76' height='130' rx='34' fill='none' stroke='%23ff8bc9' stroke-width='3.4'/%3E%3Crect x='356' y='116' width='48' height='102' rx='24' fill='none' stroke='%23ffd2ea' stroke-width='1.6' opacity='.72'/%3E%3Cpath d='M372 84h18m-30 10h42' stroke='%23ff8bc9' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='260' viewBox='0 0 520 260'%3E%3Cg fill='none' stroke='%23ff2d92' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M0 34h70v34h64v48h82'/%3E%3Cpath d='M300 0v44h58v50h104v42h58'/%3E%3Cpath d='M24 196h118v-42h70'/%3E%3Cpath d='M268 238h78v-64h92'/%3E%3C/g%3E%3Cg fill='%23ffb4dd'%3E%3Ccircle cx='70' cy='34' r='3.5'/%3E%3Ccircle cx='216' cy='116' r='3.5'/%3E%3Ccircle cx='462' cy='136' r='3.5'/%3E%3Ccircle cx='142' cy='196' r='3.5'/%3E%3Ccircle cx='438' cy='174' r='3.5'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(90deg, rgba(255, 45, 146, 0.08) 0 1px, transparent 1px 120px),
    linear-gradient(0deg, rgba(255, 116, 189, 0.055) 0 1px, transparent 1px 120px);
  background-repeat: repeat;
  background-size:
    760px 360px,
    520px 260px,
    120px 120px,
    120px 120px;
  filter: drop-shadow(0 0 8px rgba(255, 45, 146, 0.72)) drop-shadow(0 0 22px rgba(255, 45, 146, 0.25));
  mix-blend-mode: screen;
  animation: circuit-drift 42s linear infinite, circuit-pulse 7s ease-in-out infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 45, 146, 0.05), transparent 25rem),
    linear-gradient(90deg, rgba(3, 3, 5, 0.92), rgba(3, 3, 5, 0.5) 22%, rgba(3, 3, 5, 0.44) 50%, rgba(3, 3, 5, 0.7) 78%, rgba(3, 3, 5, 0.94)),
    linear-gradient(180deg, rgba(3, 3, 5, 0.12), rgba(3, 3, 5, 0.68) 70%, rgba(3, 3, 5, 0.98));
}

.site-header,
main {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 3, 5, 0.86);
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 45, 146, 0.5);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--pink), var(--wine));
  box-shadow: 0 0 22px rgba(255, 45, 146, 0.35);
}

.nav {
  gap: clamp(10px, 2vw, 24px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

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

.section-shell {
  width: calc(100% - clamp(28px, 4vw, 72px));
  max-width: none;
  margin: 0 auto;
  padding: 96px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) minmax(360px, 520px);
  min-height: calc(100svh - 77px);
  align-items: center;
  gap: clamp(42px, 8vw, 150px);
  padding-top: 58px;
}

.hero-copy {
  max-width: 980px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--pink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-text,
.section-heading p,
.prose,
.timeline-item p,
.content-card p,
.project-card p,
.stack-group p,
.contact p {
  color: var(--muted);
}

.hero-text {
  max-width: 820px;
  margin-bottom: 32px;
  font-size: clamp(1rem, 1.9vw, 1.24rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  border: 1px solid var(--line);
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    filter 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
  filter: saturate(1.18);
}

.button.primary {
  border-color: rgba(255, 45, 146, 0.65);
  background: linear-gradient(135deg, var(--pink), var(--wine));
  box-shadow: 0 0 24px rgba(255, 45, 146, 0.3);
}

.button.ghost {
  border-color: rgba(255, 45, 146, 0.46);
  background: linear-gradient(135deg, rgba(255, 45, 146, 0.72), rgba(132, 20, 81, 0.78));
  box-shadow: 0 0 18px rgba(255, 45, 146, 0.18);
}

.button.primary:hover,
.button.ghost:hover {
  border-color: rgba(255, 116, 189, 0.95);
  box-shadow:
    0 0 0 1px rgba(255, 116, 189, 0.44),
    0 0 28px rgba(255, 45, 146, 0.58),
    0 14px 34px rgba(255, 45, 146, 0.22);
}

.sound-toggle {
  gap: 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.sound-toggle[aria-pressed="true"] {
  color: var(--text);
  border-color: rgba(255, 116, 189, 0.68);
  box-shadow: 0 0 24px rgba(255, 45, 146, 0.24);
}

.sound-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--subtle);
  box-shadow: 0 0 0 rgba(255, 45, 146, 0);
}

.sound-toggle[aria-pressed="true"] .sound-dot {
  background: var(--pink-soft);
  box-shadow: 0 0 16px rgba(255, 45, 146, 0.85);
}

.neon-card {
  position: relative;
  border: 1px solid rgba(255, 45, 146, 0.24);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(8, 8, 12, 0.98), rgba(1, 1, 4, 0.98));
  box-shadow: var(--shadow);
}

.interactive-card {
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.interactive-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 116, 189, 0.28), transparent 28%),
    linear-gradient(135deg, rgba(255, 45, 146, 0.16), transparent 46%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.interactive-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 116, 189, 0.62);
  box-shadow:
    0 0 0 1px rgba(255, 45, 146, 0.36),
    0 0 34px rgba(255, 45, 146, 0.34),
    0 28px 70px rgba(0, 0, 0, 0.42);
}

.interactive-card:hover h3,
.interactive-card:hover .card-kicker,
.interactive-card:hover .teaching-number {
  color: var(--text);
}

.interactive-card:hover::after {
  opacity: 1;
}

.hero-panel {
  position: relative;
  padding: 26px;
  overflow: hidden;
  animation: soft-float 7s ease-in-out infinite;
}

.hero-panel,
.contact {
  border-radius: var(--radius-lg);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 45, 146, 0.18), transparent 35%);
  opacity: 0.65;
  pointer-events: none;
}

.portrait-frame {
  position: relative;
  display: grid;
  width: min(100%, 360px);
  aspect-ratio: 0.9;
  margin: 0 auto 28px;
  place-items: center;
  border: 1px solid rgba(255, 116, 189, 0.2);
  border-radius: 34px 34px 110px 34px;
  background:
    linear-gradient(145deg, rgba(255, 45, 146, 0.2), rgba(255, 255, 255, 0.04)),
    #08080f;
  box-shadow:
    inset 0 0 35px rgba(255, 45, 146, 0.1),
    0 24px 48px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 116, 189, 0.18);
  border-radius: 24px 24px 84px 24px;
  animation: pulse-border 3s ease-in-out infinite;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.05) contrast(1.04);
  transform: scale(1.01);
  transition:
    filter 220ms ease,
    transform 220ms ease;
}

.hero-panel:hover .portrait-frame img {
  filter: saturate(1.14) contrast(1.08);
  transform: scale(1.045);
}

.hero-panel > * {
  position: relative;
}

.status-pill {
  display: inline-flex;
  margin-bottom: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--pink-soft);
  background: rgba(255, 255, 255, 0.028);
  font-size: 0.82rem;
  font-weight: 800;
}

.typewriter-title {
  min-height: 5em;
}

.typed-text {
  display: inline;
}

.typing-cursor {
  display: inline-block;
  width: 0.08em;
  height: 0.82em;
  margin-left: 0.08em;
  border-radius: 999px;
  background: var(--pink-soft);
  box-shadow: 0 0 22px rgba(255, 45, 146, 0.75);
  transform: translateY(0.1em);
  animation: cursor-blink 760ms steps(2, start) infinite;
}

.hero-metric {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-metric strong,
.hero-metric span {
  display: block;
}

.hero-metric strong {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.hero-metric span {
  margin-top: 6px;
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: clamp(36px, 7vw, 104px);
  border-top: 1px solid var(--line);
}

.teaching-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  padding-top: 0;
}

.teaching-card {
  min-height: 210px;
  padding: 34px;
  border-radius: 34px 12px 34px 12px;
}

.teaching-card h3 {
  max-width: 520px;
  margin-bottom: 14px;
  font-size: clamp(1.25rem, 1.45vw, 1.65rem);
}

.teaching-card p {
  color: var(--muted);
  max-width: 620px;
  font-size: clamp(1.02rem, 1.05vw, 1.18rem);
  line-height: 1.7;
}

.timeline-item h3,
.content-card h3,
.project-card h3,
.stack-group h3,
.certificate-card h3 {
  font-size: clamp(1.15rem, 1.15vw, 1.34rem);
}

.tag-list li,
.card-kicker,
.project-card a,
.content-card strong {
  font-size: 0.94rem;
}

.prose p {
  margin-bottom: 18px;
}

.prose,
.hero-text,
.section-heading p,
.timeline-item p,
.content-card p,
.project-card p,
.stack-group p,
.contact p {
  font-size: 1.04rem;
}

.prose {
  max-width: 920px;
  line-height: 1.78;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 30px;
}

.timeline,
.content-grid,
.project-grid,
.stack-grid {
  display: grid;
  gap: 26px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  padding: 24px;
  border-radius: 12px 34px 12px 34px;
}

.timeline-meta {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.timeline-date,
.card-kicker {
  color: var(--pink-soft);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.company-logo {
  position: relative;
  display: flex;
  width: 152px;
  height: 96px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px 10px 22px 10px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.38);
  box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.08), 0 0 22px rgba(255, 45, 146, 0.12);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
}

.company-logo img {
  width: 124px;
  height: 70px;
  display: block;
  object-fit: contain;
}

.company-logo-bradesco {
  padding: 0;
}

.company-logo-bradesco img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-logo-vivo img {
  width: 124px;
  height: 70px;
}

.company-logo-vivo {
  padding: 0;
}

.company-logo-vivo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-logo-bradesco {
  background: linear-gradient(145deg, rgba(230, 0, 45, 0.16), rgba(0, 0, 0, 0.52));
}

.company-logo-vivo {
  background: linear-gradient(145deg, rgba(110, 42, 144, 0.22), rgba(0, 0, 0, 0.52));
}

.timeline-item:hover .company-logo {
  transform: translateY(-3px) scale(1.03);
  filter: saturate(1.14);
}

.timeline-item:hover .company-logo-bradesco {
  box-shadow: 0 0 28px rgba(230, 0, 45, 0.32), 0 18px 34px rgba(0, 0, 0, 0.28);
}

.timeline-item:hover .company-logo-vivo {
  box-shadow: 0 0 28px rgba(126, 52, 178, 0.42), 0 18px 34px rgba(0, 0, 0, 0.28);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  border: 1px solid rgba(255, 45, 146, 0.23);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  background: rgba(255, 45, 146, 0.045);
  font-size: 0.82rem;
  font-weight: 700;
}

.content-grid,
.project-grid,
.stack-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline-item {
  grid-template-columns: 190px 1fr;
}

.project-grid {
  grid-template-columns: repeat(4, minmax(260px, 1fr));
}

.content-grid {
  grid-template-columns: repeat(4, minmax(240px, 1fr));
}

.stack-grid {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
}

.content-card,
.project-card,
.stack-group {
  min-height: 230px;
  padding: 22px;
}

.content-card:nth-child(odd),
.project-card:nth-child(even),
.stack-group:nth-child(odd) {
  border-radius: 30px 12px 30px 12px;
}

.content-card:nth-child(even),
.project-card:nth-child(odd),
.stack-group:nth-child(even) {
  border-radius: 12px 30px 12px 30px;
}

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

.post-preview {
  display: grid;
  min-height: 118px;
  margin: -2px -2px 18px;
  place-items: end start;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(255, 45, 146, 0.18), rgba(255, 255, 255, 0.03)),
    #050508;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    filter 220ms ease;
}

.content-card:hover .post-preview {
  transform: scale(1.025);
  border-color: rgba(255, 116, 189, 0.5);
  filter: saturate(1.18);
}

.post-preview span,
.post-preview strong {
  display: block;
}

.post-preview span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.post-preview strong {
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
}

.post-preview-sql {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 45, 146, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 45, 146, 0.14), rgba(90, 220, 186, 0.06)),
    #050508;
}

.post-preview-html {
  background:
    linear-gradient(145deg, rgba(255, 45, 146, 0.18), rgba(119, 140, 255, 0.12)),
    #050508;
}

.post-preview-career {
  background:
    linear-gradient(145deg, rgba(255, 45, 146, 0.24), rgba(255, 255, 255, 0.06)),
    #050508;
}

.post-preview-git {
  background:
    linear-gradient(145deg, rgba(255, 45, 146, 0.18), rgba(255, 193, 112, 0.1)),
    #050508;
}

.content-card strong {
  display: block;
  margin-top: auto;
  padding-top: 22px;
  color: var(--text);
  font-size: 0.92rem;
}

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

.featured-project {
  gap: 12px;
}

.project-cover {
  box-sizing: border-box;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 10px;
  margin-bottom: 4px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 45, 146, 0.3);
  border-radius: 22px 10px 22px 10px;
  background:
    radial-gradient(circle at 30% 10%, rgba(255, 45, 146, 0.22), transparent 38%),
    #050508;
  box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.05);
}

.project-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px 6px 14px 6px;
  transition:
    filter 220ms ease,
    transform 220ms ease;
}

.featured-project:hover .project-cover img {
  filter: saturate(1.12) contrast(1.06);
  transform: scale(1.035);
}

.project-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  place-items: center;
  border: 1px solid rgba(255, 45, 146, 0.38);
  border-radius: 18px 8px 18px 8px;
  color: var(--pink-soft);
  background: rgba(255, 45, 146, 0.08);
  font-weight: 900;
  transition:
    transform 220ms ease,
    background 220ms ease,
    color 220ms ease;
}

.project-card:hover .project-icon {
  transform: rotate(-3deg) scale(1.06);
  color: var(--text);
  background: rgba(255, 45, 146, 0.18);
}

.project-card a {
  margin-top: auto;
  color: var(--pink-soft);
  font-weight: 800;
}

.stack-section {
  padding-top: 40px;
}

.stack-group {
  min-height: 180px;
}

.certificates {
  overflow: hidden;
  padding-top: 40px;
}

.certificate-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  padding: 6px 0 18px;
}

.certificate-carousel::before,
.certificate-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  z-index: 2;
  width: 110px;
  height: 100%;
  pointer-events: none;
}

.certificate-carousel::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.certificate-carousel::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

.certificate-track {
  display: grid;
  width: max-content;
  grid-auto-columns: minmax(250px, 300px);
  grid-auto-flow: column;
  gap: 26px;
  animation: certificate-scroll 58s linear infinite;
}

.certificate-track:hover {
  animation-play-state: paused;
}

.certificate-card {
  min-height: 310px;
  padding: 18px;
  border-radius: 30px 12px 30px 12px;
  cursor: pointer;
}

.certificate-card::before {
  content: "Abrir certificado";
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 1;
  border: 1px solid rgba(255, 116, 189, 0.38);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--text);
  background: rgba(3, 3, 5, 0.72);
  font-size: 0.7rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.certificate-card:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.certificate-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 45, 146, 0.3);
  border-radius: 22px 10px 22px 10px;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 45, 146, 0.24), transparent 34%),
    radial-gradient(circle at 76% 20%, rgba(0, 184, 255, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(10, 5, 13, 0.86), rgba(1, 1, 4, 0.98));
  object-fit: contain;
  padding: 8px;
  box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.05);
  transition:
    transform 220ms ease,
    filter 220ms ease;
}

.certificate-card:hover .certificate-image {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.025);
}

.certificate-card h3 {
  min-height: 2.7em;
}

.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 44px;
  padding: 34px;
}

.contact h2 {
  margin-bottom: 10px;
}

.contact p {
  max-width: 680px;
  margin-bottom: 0;
}

@media (max-width: 940px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .split-section,
  .timeline-item,
  .contact {
    grid-template-columns: 1fr;
  }

  .timeline-meta {
    min-height: auto;
    flex-direction: row;
    align-items: center;
  }

  .company-logo {
    width: 152px;
    height: 96px;
  }

  .hero {
    min-height: auto;
    gap: 40px;
    padding-top: 42px;
  }

  .hero-panel {
    width: min(100%, 520px);
    justify-self: center;
  }

  .content-grid,
  .project-grid,
  .stack-grid,
  .teaching-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .section-shell {
    width: min(100% - 28px, 1120px);
    padding: 58px 0;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.4rem);
  }

  .content-grid,
  .project-grid,
  .stack-grid,
  .teaching-strip {
    grid-template-columns: 1fr;
  }

  .content-card,
  .project-card,
  .stack-group {
    min-height: auto;
  }

  .contact,
  .hero-panel,
  .timeline-item {
    padding: 20px;
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .portrait-frame {
    width: min(100%, 300px);
  }

  .timeline-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .company-logo {
    width: 100%;
    max-width: 220px;
  }

  .company-logo img {
    width: 130px;
    height: 72px;
  }
}

.hero-text,
.section-heading p,
.prose,
.timeline-item p,
.content-card p,
.project-card p,
.stack-group p,
.contact p,
.certificate-card p {
  font-size: clamp(1.02rem, 1.05vw, 1.18rem);
  line-height: 1.7;
}

.hero-panel.neon-card {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 45, 146, 0.28), transparent 34%),
    radial-gradient(circle at 88% 92%, rgba(0, 184, 255, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(10, 5, 13, 0.62), rgba(1, 1, 4, 0.86));
  border-color: rgba(255, 45, 146, 0.08);
  border-top-color: rgba(255, 116, 189, 0.22);
  border-right-color: rgba(0, 184, 255, 0.16);
  border-bottom-color: rgba(255, 45, 146, 0.28);
  border-left-color: transparent;
  box-shadow:
    -24px 0 80px rgba(255, 45, 146, 0.14),
    0 28px 80px rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(24px) saturate(1.18);
}

.hero-panel.neon-card::before {
  inset: -34%;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 45, 146, 0.32), transparent 23%),
    radial-gradient(circle at 88% 75%, rgba(0, 184, 255, 0.18), transparent 22%);
  filter: blur(40px);
  opacity: 0.58;
  transform: rotate(-10deg);
}

.hero-panel.neon-card::after {
  opacity: 0;
}

.hero-panel.interactive-card:hover {
  transform: translateY(-4px);
  border-left-color: rgba(255, 45, 146, 0.04);
  box-shadow:
    -28px 0 90px rgba(255, 45, 146, 0.18),
    0 34px 90px rgba(0, 0, 0, 0.64);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

}
