:root {
  --bg: #05070d;
  --bg-2: #0a0e18;
  --panel: #0e1322;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --neon: #00ffd1;
  --blue: #3b82f6;
  --violet: #a855f7;
  --pink: #ff3d9a;
  --text: #e7ecf3;
  --muted: #7b8698;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 900px) {
  body {
    cursor: auto;
  }
}

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

button {
  font-family: inherit;
  cursor: none;
}

/* -------- Cursor neon custom -------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 18px var(--neon);
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 209, 0.6);
  transition: width 0.25s, height 0.25s, border-color 0.25s, background 0.25s;
}

.cursor-ring.hover {
  width: 64px;
  height: 64px;
  border-color: var(--violet);
  background: rgba(168, 85, 247, 0.08);
}

@media (max-width: 900px) {

  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* -------- Canvas background -------- */
#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

/* -------- Blobs animados -------- */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
  animation: float 18s ease-in-out infinite;
}

.blob.b1 {
  width: 520px;
  height: 520px;
  background: var(--violet);
  top: -10%;
  left: -10%;
}

.blob.b2 {
  width: 480px;
  height: 480px;
  background: var(--blue);
  bottom: -15%;
  right: -10%;
  animation-delay: -6s;
}

.blob.b3 {
  width: 360px;
  height: 360px;
  background: var(--neon);
  top: 40%;
  left: 60%;
  opacity: 0.15;
  animation-delay: -12s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(40px, -30px) scale(1.08);
  }

  66% {
    transform: translate(-30px, 40px) scale(0.94);
  }
}

/* -------- Scanline sutil -------- */
.scan::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 4px);
}

main,
header,
footer {
  position: relative;
  z-index: 2;
}

/* -------- Barra de progresso de scroll -------- */
.scrollbar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 9998;
  background: linear-gradient(90deg, var(--neon), var(--violet));
  box-shadow: 0 0 10px var(--neon);
}

.container {
  width: min(1240px, 92vw);
  margin: 0 auto;
}

/* ===================== HEADER ===================== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(5, 7, 13, 0.7);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

.logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 12px var(--neon);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

.logo b {
  color: var(--text);
}

.logo span {
  color: var(--neon);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
  list-style: none;
}

.nav-menu a {
  position: relative;
  transition: color 0.2s;
}

.nav-menu a::before {
  content: "./";
  opacity: 0.4;
}

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

.nav-menu a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--neon);
  box-shadow: 0 0 6px var(--neon);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: none;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.25s, background 0.25s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--neon);
  color: #05070d;
  box-shadow: 0 0 0 1px rgba(0, 255, 209, 0.5), 0 0 22px rgba(0, 255, 209, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(0, 255, 209, 0.8), 0 0 32px rgba(0, 255, 209, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}

.btn-ghost:hover {
  border-color: var(--neon);
  color: var(--neon);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: none;
}

@media (max-width: 880px) {
  .nav-menu {
    position: fixed;
    top: 72px;
    right: 0;
    bottom: 0;
    width: min(300px, 86vw);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    background: rgba(5, 7, 13, 0.96);
    border-left: 1px solid var(--line);
    padding: 2rem 1.4rem;
    transform: translateX(100%);
    transition: transform 0.3s;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-cta {
    display: none;
  }
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-weight: 900;
  font-size: clamp(12rem, 28vw, 28rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
  line-height: 0.9;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 3rem;
  align-items: end;
  min-height: 70vh;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  margin-bottom: 1.6rem;
  background: rgba(255, 255, 255, 0.02);
}

.hero-tag .live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon);
}

.hero h1 {
  font-size: clamp(2.5rem, 7.2vw, 6.4rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 1.6rem;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
}

.hero h1 .word {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero.revealed h1 .word {
  transform: translateY(0);
}

.hero h1 .word.d1 {
  transition-delay: 0.05s;
}

.hero h1 .word.d2 {
  transition-delay: 0.15s;
}

.hero h1 .word.d3 {
  transition-delay: 0.25s;
}

.hero h1 .word.d4 {
  transition-delay: 0.35s;
}

.hero h1 em {
  font-style: normal;
  color: var(--neon);
  text-shadow: 0 0 24px rgba(0, 255, 209, 0.4);
}

.hero-sub {
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-meta {
  display: flex;
  gap: 2.2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.hero-meta div strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.8rem;
  color: var(--neon);
  font-weight: 700;
}

.hero-meta div span {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* -------- Card codigo 3D no hero -------- */
.hero-card {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 1.2rem;
  background: rgba(14, 19, 34, 0.7);
  backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 0.82rem;
  color: #c7d3e3;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  background: conic-gradient(from 0deg, transparent, var(--neon), transparent 30%, var(--violet), transparent 60%);
  z-index: -1;
  opacity: 0.5;
  animation: spin 8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.hero-card .bar {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.hero-card .bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.hero-card .bar span:nth-child(1) {
  background: #ff5f56;
}

.hero-card .bar span:nth-child(2) {
  background: #ffbd2e;
}

.hero-card .bar span:nth-child(3) {
  background: #27c93f;
}

.hero-card .line {
  padding: 0.15rem 0;
  color: var(--muted);
}

.hero-card .line .kw {
  color: var(--pink);
}

.hero-card .line .fn {
  color: var(--neon);
}

.hero-card .line .str {
  color: #fbbf24;
}

.hero-card .line .cm {
  color: #475569;
  font-style: italic;
}

.hero-card .line .num {
  color: #60a5fa;
}

.hero-card .caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--neon);
  animation: blink 1s infinite;
  vertical-align: middle;
}

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

/* ===================== MARQUEE ===================== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1.2rem 0;
  background: rgba(10, 14, 24, 0.5);
}

.marquee-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: slide 28s linear infinite;
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--muted);
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}

.marquee-track span span {
  color: var(--neon);
}

@keyframes slide {
  to {
    transform: translateX(-50%)
  }
}

/* ===================== SEÇÕES ===================== */
section {
  padding: 7rem 0;
  position: relative;
}

.sec-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

@media (max-width: 780px) {
  .sec-head {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.sec-num {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.sec-num::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--neon);
}

.sec-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.sec-title em {
  font-style: normal;
  color: var(--neon);
}

/* ===================== SOBRE ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 880px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.about-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #cfd6e1;
  max-width: 52ch;
}

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

.pillars {
  display: grid;
  gap: 1rem;
}

.pillar {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(14, 19, 34, 0.4);
  transition: border-color 0.25s, transform 0.25s;
}

.pillar:hover {
  border-color: var(--neon);
  transform: translateX(6px);
}

.pillar .n {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--neon);
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pillar h4 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.pillar p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ===================== PROJETOS ===================== */
.projects {
  display: grid;
  gap: 1rem;
}

.project {
  display: grid;
  grid-template-columns: 70px 1fr 1.2fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.4rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(14, 19, 34, 0.35);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
}

@media (max-width: 780px) {
  .project {
    grid-template-columns: 40px 1fr auto;
    gap: 1rem;
    padding: 1.1rem;
  }

  .project .p-desc {
    display: none;
  }
}

.project::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--neon);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s;
}

.project:hover {
  border-color: var(--line-2);
  background: rgba(14, 19, 34, 0.7);
}

.project:hover::before {
  transform: scaleY(1);
}

.project .p-num {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 0.85rem;
}

.project h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.project .p-desc {
  color: var(--muted);
  font-size: 0.92rem;
}

.project .p-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.project .p-tags span {
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--line-2);
  border-radius: 6px;
}

.project .p-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  color: var(--text);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.project:hover .p-arrow {
  background: var(--neon);
  color: #05070d;
  transform: rotate(-45deg);
}

/* ===================== TECH GRID ===================== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(14, 19, 34, 0.3);
}

@media (max-width: 780px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tech {
  padding: 2rem 1.4rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s;
  position: relative;
}

.tech:nth-child(4n) {
  border-right: none;
}

.tech:nth-last-child(-n+4) {
  border-bottom: none;
}

@media (max-width: 780px) {
  .tech {
    border-right: 1px solid var(--line);
  }

  .tech:nth-child(2n) {
    border-right: none;
  }

  .tech:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

.tech:hover {
  background: rgba(0, 255, 209, 0.04);
}

.tech:hover .t-ico {
  color: var(--neon);
  transform: scale(1.05);
}

.tech .t-ico {
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 0.8rem;
  transition: color 0.25s, transform 0.25s;
}

.tech h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.tech p {
  color: var(--muted);
  font-size: 0.82rem;
  font-family: var(--mono);
}

/* ===================== TIMELINE ===================== */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

@media (max-width: 880px) {
  .timeline {
    grid-template-columns: 1fr;
  }
}

.timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 10%, var(--line-2) 90%, transparent);
}

@media (max-width: 880px) {
  .timeline::before {
    display: none;
  }
}

.tl-step {
  position: relative;
  padding: 0 1rem;
}

.tl-step .tl-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--neon);
  background: var(--bg);
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--bg), 0 0 14px rgba(0, 255, 209, 0.3);
}

.tl-step h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tl-step p {
  color: var(--muted);
  font-size: 0.92rem;
}

.tl-step .tl-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--neon);
  margin-bottom: 0.4rem;
  letter-spacing: 0.1em;
}

/* ===================== DIFERENCIAIS ===================== */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 880px) {
  .diff-grid {
    grid-template-columns: 1fr;
  }
}

.diff {
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(14, 19, 34, 0.6), rgba(14, 19, 34, 0.2));
  transition: border-color 0.3s, transform 0.3s;
}

.diff:hover {
  border-color: var(--neon);
  transform: translateY(-4px);
}

.diff .d-ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 255, 209, 0.08);
  border: 1px solid rgba(0, 255, 209, 0.2);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  color: var(--neon);
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.diff h4 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.diff p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ===================== CTA FINAL ===================== */
.cta-final {
  padding: 8rem 0;
  text-align: center;
  position: relative;
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse at center, rgba(0, 255, 209, 0.06), transparent 60%);
}

.cta-final h2 {
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1.2rem;
}

.cta-final h2 span {
  background: linear-gradient(90deg, var(--neon), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-final p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-btns {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-wa {
  background: #25D366;
  color: #052016;
  box-shadow: 0 0 24px rgba(37, 211, 102, 0.35);
}

.btn-wa:hover {
  box-shadow: 0 0 32px rgba(37, 211, 102, 0.6);
  transform: translateY(-2px);
}

.btn-mail {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.35);
}

.btn-mail:hover {
  box-shadow: 0 0 32px rgba(59, 130, 246, 0.6);
  transform: translateY(-2px);
}

/* ===================== FOOTER ===================== */
footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 780px) {
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.foot-grid h5 {
  color: var(--text);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.9rem;
}

.foot-grid a {
  display: block;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.foot-grid a:hover {
  color: var(--neon);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 1rem;
}

/* -------- Reveal anim -------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.in {
  opacity: 1;
  transform: none;
}