:root {
  --bg: #05060a;
  --bg-soft: #0a0d14;
  --bg-panel: rgba(14, 18, 28, 0.88);
  --bg-panel-strong: rgba(16, 21, 33, 0.95);
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.075);
  --text: #f4f7f9;
  --text-soft: #c0cad5;
  --text-muted: #8794a3;
  --text-dim: #5a6675;
  --accent: #a855f7;
  --accent-2: #00d4ff;
  --accent-3: #ffffff;
  --success: #22c55e;
  --border: rgba(220, 230, 240, 0.11);
  --border-strong: rgba(220, 230, 240, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
  --shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  --container: 1240px;
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(0, 212, 255, 0.11), transparent 24rem),
    linear-gradient(135deg, #05060a 0%, #0a0d14 46%, #060812 100%);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.has-custom-cursor {
  cursor: none;
}

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

button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
svg,
canvas {
  display: block;
}

ul {
  list-style: none;
}

::selection {
  color: #071018;
  background: var(--accent);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  border: 2px solid var(--bg);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 3rem;
}

.site-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.ambient-noise {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 2px);
  mix-blend-mode: overlay;
}

.ambient-glow {
  position: absolute;
  width: 100vw;
  height: 46vh;
  opacity: 0.2;
  filter: blur(52px);
  transform: rotate(-10deg);
}

.ambient-glow-a {
  top: -20vh;
  right: -18vw;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.48), transparent);
}

.ambient-glow-b {
  bottom: -18vh;
  left: -24vw;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.46), transparent);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.42);
}

.cursor,
.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
}

.cursor {
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.cursor-follower {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(168, 85, 247, 0.72);
  background: rgba(168, 85, 247, 0.14);
  backdrop-filter: blur(4px);
}

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  transition: background 0.28s var(--ease), border-color 0.28s var(--ease), transform 0.28s var(--ease);
}

.header.scrolled {
  border-bottom: 1px solid var(--border);
  background: rgba(5, 6, 10, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 78px;
}

.nav-logo,
.footer-left {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-logo {
  margin-right: auto;
}

.logo-mark {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(168, 85, 247, 0.44);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(168, 85, 247, 0.96), rgba(0, 212, 255, 0.82)),
    var(--accent);
  color: #071018;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 12px 34px rgba(168, 85, 247, 0.18);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.nav-link {
  display: block;
  border-radius: 999px;
  padding: 0.44rem 0.78rem;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  transition: color 0.24s var(--ease), background 0.24s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.24s var(--ease), opacity 0.24s var(--ease);
}

.btn {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 0.78rem 1.24rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  isolation: isolate;
  transition: transform 0.26s var(--ease), border-color 0.26s var(--ease), background 0.26s var(--ease), color 0.26s var(--ease), box-shadow 0.26s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.26), transparent 45%, rgba(255, 255, 255, 0.18));
  transform: translateX(-80%);
  transition: opacity 0.26s var(--ease), transform 0.5s var(--ease);
}

.btn:hover::before {
  opacity: 1;
  transform: translateX(80%);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  border: 1px solid rgba(0, 212, 255, 0.64);
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 42%, #00d4ff 100%);
  color: #071018;
  box-shadow: 0 16px 42px rgba(168, 85, 247, 0.34), 0 0 34px rgba(0, 212, 255, 0.2);
}

.btn-ghost {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(0, 212, 255, 0.68);
  background: rgba(0, 212, 255, 0.14);
}

.btn-sm {
  min-height: 38px;
  padding: 0.62rem 0.95rem;
  font-size: 0.82rem;
}

.btn-large {
  min-height: 52px;
  padding: 0.95rem 1.4rem;
}

.section {
  position: relative;
  padding-block: 8.5rem;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(78rem, calc(100% - 3rem));
  height: 1px;
  opacity: calc(var(--section-light, 0) * 0.82);
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.38), rgba(0, 212, 255, 0.32), transparent);
  pointer-events: none;
}

.section-header {
  max-width: 760px;
  margin-bottom: 3.2rem;
}

.section-header-row {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.section-kicker {
  max-width: 330px;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.section-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
}

.section-title,
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
}

.section-title {
  font-size: 3.35rem;
}

.section-title em,
.hero-title-accent,
.hero-title em {
  color: transparent;
  font-style: normal;
  background: linear-gradient(90deg, #a855f7 0%, #00d4ff 72%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.premium-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    var(--bg-panel);
  box-shadow: var(--shadow-soft);
  isolation: isolate;
  transform-style: preserve-3d;
  transition: transform 0.32s var(--ease), border-color 0.32s var(--ease), box-shadow 0.32s var(--ease), background 0.32s var(--ease);
}

.premium-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.72), rgba(0, 212, 255, 0.58), rgba(255, 255, 255, 0.28));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  transition: opacity 0.32s var(--ease);
}

.premium-card:hover {
  border-color: rgba(0, 212, 255, 0.34);
  box-shadow: var(--shadow), 0 0 42px rgba(0, 212, 255, 0.16), 0 0 28px rgba(168, 85, 247, 0.12);
}

.premium-card:hover::before {
  opacity: 1;
}

.card-spotlight {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(circle 280px at var(--spotlight-x, 50%) var(--spotlight-y, 50%), rgba(0, 212, 255, 0.16), transparent 62%);
  transition: opacity 0.28s var(--ease);
}

.premium-card:hover .card-spotlight {
  opacity: 1;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: center;
  overflow: hidden;
  padding-top: 5.25rem;
}

.hero-canvas,
.hero-gradient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-canvas {
  opacity: 0.38;
}

.hero-gradient {
  background:
    linear-gradient(100deg, rgba(168, 85, 247, 0.15), transparent 34%),
    linear-gradient(260deg, rgba(0, 212, 255, 0.14), transparent 42%),
    linear-gradient(180deg, transparent 0%, rgba(5, 6, 10, 0.78) 100%);
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 3.5rem;
  align-items: center;
  width: 100%;
  padding-block: 2.4rem 3.4rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.55rem;
}

.hero-badge {
  margin-bottom: 0;
  padding: 0.42rem 0.8rem;
  border: 1px solid rgba(34, 197, 94, 0.24);
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.08);
  color: #86efac;
  text-transform: none;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.1);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.78);
    opacity: 0.72;
  }
}

.hero-title {
  display: flex;
  flex-direction: column;
  max-width: 780px;
  font-size: 3.85rem;
}

.hero-title-line {
  display: block;
  overflow: hidden;
}

.hero-sub {
  max-width: 620px;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.85;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 600;
}

.hero-terminal {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.64rem 0.85rem;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.terminal-prompt {
  color: var(--accent);
}

.terminal-cursor {
  color: var(--text);
}

.terminal-blink {
  color: var(--accent-2);
  animation: blink 1s step-end infinite;
}

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

.hero-actions,
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-badge,
.pill,
.project-tags span,
.timeline-tags span,
.contact-panel-stack span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.42rem 0.72rem;
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease), color 0.24s var(--ease), background 0.24s var(--ease);
}

.tech-badge:hover,
.pill:hover,
.project-tags span:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.62);
  background: rgba(168, 85, 247, 0.15);
  color: var(--accent);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  perspective: 1200px;
}

.code-shell {
  width: 100%;
  max-width: 505px;
  margin-left: auto;
  background:
    linear-gradient(145deg, rgba(15, 21, 32, 0.95), rgba(8, 12, 19, 0.95)),
    var(--bg-panel-strong);
  backface-visibility: hidden;
  contain: paint;
  will-change: transform;
}

.code-shell::before {
  display: none;
}

.code-shell:hover {
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.36), 0 0 34px rgba(0, 212, 255, 0.16);
}

.code-shell .card-spotlight {
  background: radial-gradient(circle 220px at var(--spotlight-x, 50%) var(--spotlight-y, 50%), rgba(0, 212, 255, 0.17), transparent 64%);
}

.code-card-header {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  border-bottom: 1px solid var(--border);
  padding: 0.88rem 1.05rem;
  background: rgba(255, 255, 255, 0.035);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red {
  background: #ff6b6b;
}

.dot-yellow {
  background: #ffd166;
}

.dot-green {
  background: #22c55e;
}

.code-filename {
  margin-left: 0.4rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.code-body {
  overflow-x: auto;
  padding: 1.55rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.72;
}

.code-body code {
  display: block;
  min-width: 440px;
}

.c-kw,
.c-class,
.c-num,
.c-bool {
  color: var(--accent);
}

.c-type,
.c-func {
  color: var(--accent-2);
}

.c-var {
  color: var(--text);
}

.c-comment {
  color: var(--text-dim);
  font-style: italic;
}

.c-str {
  color: #67e8f9;
}

.stat-card {
  position: absolute;
  display: flex;
  min-width: 172px;
  flex-direction: column;
  gap: 0.22rem;
  padding: 1rem 1.05rem;
}

.stat-card-1 {
  bottom: 0.4rem;
  left: -1.8rem;
}

.stat-card-2 {
  top: 3.1rem;
  right: -1.1rem;
}

.stat-num {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-line {
  position: relative;
  display: block;
  width: 42px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scroll-line 1.8s ease-in-out infinite;
}

@keyframes scroll-line {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

.sobre-grid,
.contato-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
  gap: 5rem;
  align-items: start;
}

.contato-wrapper {
  grid-template-columns: minmax(0, 520px) minmax(440px, 1fr);
  gap: 6rem;
}

.sobre-text {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.lead {
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 300;
  line-height: 1.85;
}

.sobre-text p,
.pilar-desc,
.timeline-desc,
.project-desc,
.contato-sub {
  color: var(--text-muted);
}

.sobre-text strong,
.timeline-desc strong,
.project-desc strong,
.project-desc em {
  color: var(--text);
  font-weight: 600;
}

.sobre-location {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.sobre-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.about-card {
  min-height: 168px;
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-card-wide {
  grid-column: 1 / -1;
  min-height: 132px;
}

.about-card-icon,
.pilar-num {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.about-card-num,
.about-card-tag {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.15;
}

.about-card-num {
  color: var(--accent);
  font-size: 2.6rem;
}

.about-card-label {
  color: var(--text-muted);
  font-size: 0.91rem;
  line-height: 1.55;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-bottom: 4.2rem;
  padding-left: 2.75rem;
}

.timeline-line {
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: 0.55rem;
  width: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.09);
}

.timeline-line-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), var(--accent-3));
}

.timeline-item {
  position: relative;
}

.timeline-marker {
  position: absolute;
  top: 1.55rem;
  left: -2.72rem;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--text-dim);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.04);
}

.timeline-item-highlight .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(168, 85, 247, 0.16), 0 0 22px rgba(168, 85, 247, 0.42);
}

.timeline-content {
  padding: 1.55rem;
}

.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.timeline-role {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
}

.timeline-company {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.timeline-period,
.timeline-badge {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.timeline-badge {
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 999px;
  padding: 0.18rem 0.52rem;
  background: rgba(34, 197, 94, 0.08);
  color: #86efac;
}

.timeline-desc {
  margin-bottom: 1rem;
  font-size: 0.94rem;
  line-height: 1.82;
}

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

.formacao {
  padding-top: 1rem;
}

.formacao-title {
  margin-bottom: 1rem;
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
}

.formacao-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.formacao-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem;
}

.formacao-icon {
  font-size: 1.45rem;
}

.formacao-item div {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}

.formacao-item strong {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.formacao-item span:last-child {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.projetos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.project-card {
  min-height: 560px;
}

.project-card-featured {
  grid-column: 1 / -1;
  min-height: 540px;
}

.project-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: inherit;
  flex-direction: column;
  gap: 1.08rem;
  padding: 2rem;
}

.project-card-featured .project-card-inner {
  width: min(100%, 760px);
}

.project-card-featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 1.5rem;
  align-items: stretch;
  padding-right: 1.25rem;
}

.project-side-panel {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  gap: 0.85rem;
  padding-block: 2rem;
}

.project-side-stat {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(8, 12, 19, 0.46);
  backdrop-filter: blur(12px);
}

.project-side-stat span {
  display: block;
  margin-bottom: 0.38rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.project-side-stat strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.22;
}

.project-visual {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  opacity: 0.7;
}

.project-visual::before {
  content: "";
  position: absolute;
  inset: auto -20% -30% 26%;
  height: 65%;
  transform: skewY(-9deg);
  background:
    linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent),
    linear-gradient(135deg, rgba(168, 85, 247, 0.16), transparent 62%);
  filter: blur(22px);
}

.project-grid-mark {
  position: absolute;
  right: 1.4rem;
  top: 1.4rem;
  width: 170px;
  height: 170px;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 17px 17px;
  mask-image: linear-gradient(135deg, black, transparent 72%);
}

.project-topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem;
}

.project-type,
.project-ai {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
}

.project-type {
  color: var(--accent);
}

.project-ai {
  border: 1px solid rgba(0, 212, 255, 0.46);
  padding: 0.38rem 0.62rem;
  background: rgba(0, 212, 255, 0.14);
  color: var(--accent-2);
}

.project-name {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 2.45rem;
  font-weight: 800;
  line-height: 1.06;
}

.project-desc {
  max-width: 690px;
  font-size: 0.98rem;
  line-height: 1.82;
}

.project-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.project-fact {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.035);
}

.project-fact span {
  display: block;
  margin-bottom: 0.36rem;
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
}

.project-fact p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.62;
}

.project-highlights {
  display: grid;
  gap: 0.5rem;
}

.project-highlights span {
  position: relative;
  display: flex;
  gap: 0.55rem;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.project-highlights span::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 0.48rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.45);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
}

.project-tags span {
  border-color: rgba(0, 212, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #e8f8ff;
}

.skills-grid,
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.skill-group,
.pilar {
  min-height: 212px;
  padding: 1.35rem;
}

.skill-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
}

.skill-group-title::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.skill-pills,
.contact-panel-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill-accent {
  border-color: rgba(168, 85, 247, 0.5);
  background: rgba(168, 85, 247, 0.15);
  color: var(--accent);
}

.pilar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pilar::after {
  content: "";
  position: absolute;
  inset: auto 1.35rem 1.1rem;
  height: 1px;
  transform: scaleX(0.26);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent);
  transition: transform 0.36s var(--ease);
}

.pilar:hover::after {
  transform: scaleX(1);
}

.pilar-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(168, 85, 247, 0.42);
  border-radius: var(--radius);
  background: rgba(168, 85, 247, 0.14);
  color: var(--accent);
}

.pilar-title {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
}

.pilar-desc {
  font-size: 0.9rem;
  line-height: 1.72;
}

.contato-title {
  font-size: 3rem;
}

.contato-content {
  display: flex;
  max-width: 560px;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.45rem;
}

.contato-sub {
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.82;
}

.contato-links {
  display: grid;
  width: 100%;
  gap: 0.75rem;
}

.contato-link {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 0.95rem;
}

.contato-link-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(168, 85, 247, 0.44);
  border-radius: var(--radius);
  background: rgba(168, 85, 247, 0.14);
  color: var(--accent);
}

.contato-link-label {
  display: block;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.contato-link-value {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.contact-panel {
  position: sticky;
  top: 6.4rem;
  max-width: 620px;
  padding: 1.5rem;
}

.contact-panel-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.panel-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(34, 197, 94, 0.24);
  border-radius: 999px;
  padding: 0.34rem 0.6rem;
  background: rgba(34, 197, 94, 0.08);
  color: #86efac;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.panel-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.contact-panel-head strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1.16;
}

.contact-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.contact-panel-grid div {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 0.86rem;
  background: rgba(255, 255, 255, 0.035);
}

.contact-panel-grid span {
  display: block;
  margin-bottom: 0.32rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.contact-panel-grid strong {
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.35;
}

.footer {
  border-top: 1px solid var(--border);
  padding-block: 2.4rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-left {
  margin-right: auto;
}

.footer-left div {
  display: flex;
  flex-direction: column;
}

.footer-left strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.92rem;
}

.footer-left span:last-child,
.footer-built {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.84rem;
  transition: color 0.22s var(--ease);
}

.footer-links a:hover {
  color: var(--accent);
}

@media (max-width: 1120px) {
  .hero-container,
  .sobre-grid {
    grid-template-columns: 1fr;
  }

  .hero-container {
    gap: 3rem;
  }

  .hero-visual {
    min-height: auto;
    order: -1;
  }

  .code-shell {
    max-width: none;
    margin: 0;
  }

  .stat-card {
    position: static;
    margin-top: 1rem;
    display: inline-flex;
    width: calc(50% - 0.5rem);
  }

  .stat-card-2 {
    margin-left: 1rem;
  }

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

@media (max-width: 1240px) {
  .contato-wrapper {
    grid-template-columns: minmax(0, 500px) minmax(420px, 1fr);
    gap: 5.25rem;
  }
}

@media (max-width: 1060px) {
  .contato-wrapper {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .contato-content,
  .contact-panel {
    max-width: 720px;
  }

  .contact-panel {
    position: relative;
    top: auto;
  }
}

@media (min-width: 861px) and (max-height: 760px) {
  .nav {
    min-height: 68px;
  }

  .hero {
    min-height: 720px;
    padding-top: 4.7rem;
  }

  .hero-container {
    padding-block: 1.6rem 3rem;
  }

  .hero-content {
    gap: 1rem;
  }

  .hero-title {
    font-size: 3.25rem;
  }

  .hero-sub {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .hero-visual {
    min-height: 468px;
  }

  .code-body {
    padding: 1.2rem 1.35rem;
    font-size: 0.76rem;
    line-height: 1.58;
  }

  .stat-card-1 {
    bottom: -0.6rem;
  }

  .stat-card-2 {
    top: 2.4rem;
  }
}

@media (max-width: 860px) {
  .container {
    padding-inline: 1.25rem;
  }

  .section {
    padding-block: 6rem;
  }

  .section-title,
  .contato-title {
    font-size: 2.45rem;
  }

  .hero {
    min-height: auto;
    padding-top: 5.5rem;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .section-header-row {
    display: block;
  }

  .section-kicker {
    margin-top: 1rem;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links.nav-open {
    position: fixed;
    inset: 0;
    z-index: 190;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    border: 0;
    border-radius: 0;
    background: rgba(5, 6, 10, 0.96);
    backdrop-filter: blur(18px);
  }

  .nav-links.nav-open .nav-link {
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.65rem;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .projetos-grid,
  .formacao-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card-featured {
    min-height: auto;
  }

  .project-card-featured {
    grid-template-columns: 1fr;
    padding-right: 0;
  }

  .project-card-inner {
    min-height: auto;
    padding: 1.35rem;
  }

  .project-side-panel {
    grid-template-columns: 1fr;
    padding: 0 1.35rem 1.35rem;
  }

  .project-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero-title {
    font-size: 2.55rem;
  }

  .section-title,
  .contato-title {
    font-size: 2.05rem;
  }

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

  .sobre-cards,
  .skills-grid,
  .pilares-grid,
  .contact-panel-grid {
    grid-template-columns: 1fr;
  }

  .stat-card,
  .stat-card-2 {
    width: 100%;
    margin-left: 0;
  }

  .timeline {
    padding-left: 2rem;
  }

  .timeline-marker {
    left: -2.22rem;
  }

  .timeline-header {
    display: block;
  }

  .timeline-meta {
    justify-content: flex-start;
    margin-top: 0.55rem;
  }

  .project-name {
    font-size: 2rem;
  }

  .contato-link {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 0.82rem;
  }

  .contato-link-icon {
    width: 38px;
    height: 38px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (hover: none), (pointer: coarse) {
  body.has-custom-cursor {
    cursor: auto;
  }

  .cursor,
  .cursor-follower {
    display: none;
  }

  .premium-card {
    transform: none !important;
  }
}

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

  .cursor,
  .cursor-follower,
  .hero-canvas {
    display: none;
  }

  .premium-card,
  [data-animate],
  [data-animate-group] > *,
  [data-project-card],
  [data-timeline-item] {
    opacity: 1 !important;
    transform: none !important;
  }
}
