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

:root {
  --bg:       #0C0C0E;
  --bg2:      #121216;
  --bg3:      #18181F;
  --surface:  #1E1E28;
  --border:   rgba(255,255,255,0.06);
  --border2:  rgba(255,255,255,0.1);
  --white:    #F4F4F5;
  --muted:    #6B6B80;
  --muted2:   #9898B0;
  --acid:     #C8FF00;        /* lima elétrico — cor única de destaque */
  --acid-dim: rgba(200,255,0,0.12);
  --acid-glow:rgba(200,255,0,0.25);
  --red:      #FF4444;
  --blue:     #4488FF;
  --purple:   #AA66FF;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  cursor: none;
}

/* ── CURSOR ── */
.cur {
  width: 10px; height: 10px;
  border-radius: 50%; background: var(--acid);
  position: fixed; pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width 0.3s, height 0.3s, border-radius 0.3s, background 0.3s;
  mix-blend-mode: difference;
}
.cur.big { width: 40px; height: 40px; background: var(--white); }

/* ── NOISE ── */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9990; opacity: 0.35;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 1.2rem 4rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(12,12,14,0.8);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Geist Mono', monospace;
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.05em; color: var(--acid);
}
.nav-logo span { color: var(--muted2); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.05em;
  color: var(--muted2); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-links a.acid{
  color: var(--acid);
}

.nav-status {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'Geist Mono', monospace;
  font-size: 0.65rem; color: var(--muted);
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--acid); box-shadow: 0 0 8px var(--acid);
  animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  padding: 8rem 4rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* aurora background */
.aurora {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}
.aurora-blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.12;
  animation: drift 12s ease-in-out infinite alternate;
}
.aurora-blob:nth-child(1) { width:500px;height:400px;background:#C8FF00;top:-10%;left:-5%;animation-delay:0s; }
.aurora-blob:nth-child(2) { width:400px;height:350px;background:#4488FF;top:30%;right:-10%;animation-delay:-4s; }
.aurora-blob:nth-child(3) { width:300px;height:300px;background:#AA66FF;bottom:0;left:30%;animation-delay:-8s; }

@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px,20px) scale(1.08); }
}

.hero-left { position: relative; z-index: 2; }

/* code comment above name */
.hero-comment {
  font-family: 'Geist Mono', monospace;
  font-size: 0.72rem; color: var(--muted); margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp 0.7s ease forwards 0.2s;
}
.hero-comment .c-green { color: #5A8F5A; }
.hero-comment .c-muted { color: var(--muted); }

.hero-name {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(3.5rem, 6vw, 6.5rem);
  font-weight: 400; line-height: 1.0;
  color: var(--white);
  opacity: 0; animation: fadeUp 0.9s ease forwards 0.4s;
}
.hero-name em {
  font-style: italic; color: var(--acid);
  display: block;
}

/* animated typing role */
.hero-role-wrap {
  margin-top: 1.5rem;
  font-family: 'Geist Mono', monospace;
  font-size: 0.82rem; color: var(--muted2);
  display: flex; align-items: center; gap: 0.6rem;
  opacity: 0; animation: fadeUp 0.7s ease forwards 0.7s;
}
.hero-role-prefix { color: var(--acid); }
.typed-text { color: var(--white); }
.typed-cursor {
  display: inline-block; width: 2px; height: 1em;
  background: var(--acid); vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-divider {
  margin: 2rem 0; display: flex; align-items: center; gap: 1rem;
  opacity: 0; animation: fadeUp 0.7s ease forwards 0.9s;
}
.hero-divider-line { flex: 1; height: 1px; background: var(--border2); }
.hero-divider-code {
  font-family: 'Geist Mono', monospace;
  font-size: 0.6rem; color: var(--muted); padding: 0.2rem 0.6rem;
  border: 1px solid var(--border2); border-radius: 4px;
}

.hero-bio {
  font-size: 1.05rem; line-height: 1.8; color: var(--muted2);
  max-width: 480px;
  opacity: 0; animation: fadeUp 0.8s ease forwards 1.1s;
}
.hero-bio strong { color: var(--white); font-weight: 500; }

.hero-actions {
  margin-top: 2.5rem; display: flex; gap: 1rem;
  opacity: 0; animation: fadeUp 0.7s ease forwards 1.3s;
}

.btn-acid {
  padding: 0.75rem 1.8rem;
  background: var(--acid); color: var(--bg);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em;
  text-decoration: none; border-radius: 6px;
  transition: transform 0.2s, box-shadow 0.3s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-acid:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--acid-glow); }

.btn-outline {
  padding: 0.75rem 1.8rem;
  background: transparent; color: var(--white);
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.05em;
  text-decoration: none; border-radius: 6px;
  border: 1px solid var(--border2);
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--acid); background: var(--acid-dim); }

/* hero right — code window */
.hero-right { position: relative; z-index: 2; }

.code-window {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  opacity: 0; animation: fadeIn 1s ease forwards 0.8s;
}

.code-bar {
  background: var(--surface);
  padding: 0.75rem 1rem;
  display: flex; align-items: center; gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.code-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-dot.r { background: #FF5F57; }
.code-dot.y { background: #FFBD2E; }
.code-dot.g { background: #28C840; }
.code-filename {
  margin-left: 0.5rem;
  font-family: 'Geist Mono', monospace;
  font-size: 0.65rem; color: var(--muted2);
}
.code-filename span { color: var(--acid); }

.code-body {
  padding: 1.5rem;
  font-family: 'Geist Mono', monospace;
  font-size: 0.75rem; line-height: 1.9;
}

.ln { display: flex; gap: 1.5rem; }
.ln-num { color: var(--muted); min-width: 20px; text-align: right; user-select: none; }
.ln-code { flex: 1; }

.t-comment { color: #5A7A5A; }
.t-keyword { color: #C792EA; }
.t-fn      { color: #82AAFF; }
.t-str     { color: #C3E88D; }
.t-var     { color: var(--acid); }
.t-op      { color: var(--muted2); }
.t-num     { color: #F78C6C; }
.t-type    { color: #FFCB6B; }
.t-prop    { color: #89DDFF; }

/* live cursor in code */
.code-cursor {
  display: inline-block; width: 2px; height: 0.85em;
  background: var(--acid); vertical-align: middle;
  animation: blink 1.2s step-end infinite;
  margin-left: 1px;
}

/* ── STACK SECTION ── */
#stack { padding: 5rem 4rem; position: relative; z-index: 1; }

.stack-header { margin-bottom: 3rem; }

.s-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 0.62rem; color: var(--acid); letter-spacing: 0.15em;
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem;
}
.s-tag::before { content: '//'; color: var(--muted); }

.s-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400; color: var(--white);
}
.s-title em { font-style: italic; color: var(--acid); }

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}

.stack-cat {
  background: var(--bg2);
  padding: 1.8rem 1.5rem;
  transition: background 0.25s;
}
.stack-cat:hover { background: var(--bg3); }

.stack-cat-label {
  font-family: 'Geist Mono', monospace;
  font-size: 0.58rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--acid); margin-bottom: 1.2rem;
  padding-bottom: 0.8rem; border-bottom: 1px solid var(--border);
}

.stack-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.stag {
  padding: 0.25rem 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 4px;
  font-family: 'Geist Mono', monospace;
  font-size: 0.65rem; color: var(--muted2);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.stag:hover { border-color: var(--acid); color: var(--acid); background: var(--acid-dim); }
.stag.main { border-color: rgba(200,255,0,0.3); color: var(--acid); background: var(--acid-dim); }

/* ── EXPERIÊNCIA ── */
#experiencia {
  padding: 5rem 4rem;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}

.exp-grid { display: grid; grid-template-columns: 1fr 1.8fr; gap: 5rem; margin-top: 3rem; }

.exp-left { }
.exp-left-text { font-size: 0.9rem; line-height: 1.8; color: var(--muted2); margin-top: 1.5rem; }

.exp-highlight {
  margin-top: 2rem; padding: 1.2rem 1.5rem;
  background: var(--acid-dim);
  border: 1px solid rgba(200,255,0,0.2);
  border-radius: 8px;
}
.exp-highlight p {
  font-family: 'Geist Mono', monospace;
  font-size: 0.72rem; color: var(--acid); line-height: 1.6;
}

.timeline { display: flex; flex-direction: column; }

.tl-item {
  display: grid; grid-template-columns: 100px 1fr;
  gap: 2rem; padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateX(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.tl-item.visible { opacity:1; transform:translateX(0); }

.tl-year {
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem; color: var(--acid); padding-top: 0.3rem;
  letter-spacing: 0.05em;
}

.tl-company {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 0.2rem;
}
.tl-role {
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.8rem;
}
.tl-desc { font-size: 0.85rem; line-height: 1.75; color: var(--muted2); }
.tl-techs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.tl-tech {
  padding: 0.18rem 0.5rem;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 3px; font-family: 'Geist Mono', monospace;
  font-size: 0.6rem; color: var(--muted2);
}

/* ── ARTIGOS ── */
#artigos {
  padding: 5rem 4rem;
  border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}

.artigos-list { margin-top: 3rem; display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }

.art-row {
  background: var(--bg2);
  padding: 2rem 2.5rem;
  display: grid; grid-template-columns: 1fr auto;
  gap: 2rem; align-items: center;
  cursor: pointer; transition: background 0.2s;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.2s;
  text-decoration: none; color: inherit;
}
.art-row.visible { opacity:1; transform:translateY(0); }
.art-row:hover { background: var(--bg3); }

.art-cat {
  font-family: 'Geist Mono', monospace;
  font-size: 0.58rem; letter-spacing: 0.2em; color: var(--acid);
  margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem;
}
.art-cat::before { content: '#'; }

.art-title {
  font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 0.3rem;
}
.art-meta { font-size: 0.72rem; color: var(--muted); }

.art-arrow {
  width: 36px; height: 36px;
  border: 1px solid var(--border2); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted2); font-size: 0.9rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.art-row:hover .art-arrow { border-color: var(--acid); color: var(--acid); background: var(--acid-dim); }

/* ── CONTATO ── */
#contato {
  padding: 5rem 4rem;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  position: relative; z-index: 1; overflow: hidden;
}

/* big decorative text */
#contato::before {
  content: 'HELLO';
  position: absolute; bottom: -2rem; right: -1rem;
  font-family: 'Instrument Serif', serif;
  font-size: 14rem; font-weight: 400; font-style: italic;
  color: rgba(255,255,255,0.02);
  pointer-events: none; line-height: 1; user-select: none;
}

.contato-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 5rem; margin-top: 3rem; align-items: start; }

.contato-email {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem); font-style: italic;
  color: var(--acid); text-decoration: none;
  display: inline-block; padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(200,255,0,0.3);
  transition: color 0.2s;
}
.contato-email:hover { color: var(--white); }

.contato-intro { font-size: 0.9rem; line-height: 1.8; color: var(--muted2); margin-top: 1.5rem; max-width: 440px; }

.contato-links { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.8rem; }

.c-link {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 1.2rem;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; text-decoration: none; color: var(--white);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.c-link:hover { border-color: var(--acid); background: var(--acid-dim); transform: translateX(4px); }
.c-link svg { width: 18px; height: 18px; fill: var(--muted2); flex-shrink: 0; transition: fill 0.2s; }
.c-link:hover svg { fill: var(--acid); }
.c-link-label { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.15rem; }
.c-link-val { font-size: 0.85rem; font-weight: 500; }

/* right — availability card */
.avail-card {
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 12px; padding: 2rem; position: relative; overflow: hidden;
}
.avail-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--acid), transparent);
}

.avail-status {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: 'Geist Mono', monospace;
  font-size: 0.65rem; color: var(--acid); margin-bottom: 1.5rem;
}
.avail-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); animation: pulse 2s ease infinite; }

.avail-title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.4rem; font-weight: 400; color: var(--white);
  line-height: 1.3; margin-bottom: 1rem;
}
.avail-title em { font-style: italic; color: var(--acid); }

.avail-text { font-size: 0.82rem; line-height: 1.7; color: var(--muted2); margin-bottom: 2rem; }

.avail-types { display: flex; flex-direction: column; gap: 0.5rem; }
.avail-type {
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 0.78rem; color: var(--muted2);
}
.avail-type-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--acid); flex-shrink: 0; }

/* ── FOOTER ── */
footer {
  padding: 2rem 4rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}

.footer-copy {
  font-family: 'Geist Mono', monospace;
  font-size: 0.62rem; color: var(--muted);
}
.footer-copy span { color: var(--acid); }

.footer-made {
  font-family: 'Geist Mono', monospace;
  font-size: 0.62rem; color: var(--muted);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

.reveal { opacity:0; transform:translateY(18px); transition:opacity 0.6s ease,transform 0.6s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--acid); border-radius: 2px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding: 6rem 1.5rem 3rem; }
  #stack, #experiencia, #artigos, #contato { padding: 4rem 1.5rem; }
  .stack-grid { grid-template-columns: 1fr 1fr; }
  .exp-grid, .contato-grid { grid-template-columns: 1fr; gap: 2rem; }
  footer { padding: 1.5rem; flex-direction: column; gap: 0.5rem; text-align: center; }
}
@media (max-width: 480px) {
  .stack-grid { grid-template-columns: 1fr; }
}
