:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f9fbfe;
  --border: rgba(15, 30, 60, 0.10);
  --tint: rgba(15, 30, 60, 0.04);
  --text: #0f1b2d;
  --muted: #5a6478;
  --accent: #1f6fff;
  --accent-2: #00a3d4;
  --shadow: 0 1px 2px rgba(15, 30, 60, .04), 0 12px 32px -16px rgba(15, 30, 60, .18);
  --gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  --radius: 16px;
  --max: 1200px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", var(--font);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 120px 0; position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gradient); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 4.5vw, 52px); font-weight: 700; margin-bottom: 20px; }
.lead { font-size: 18px; color: var(--muted); max-width: 680px; }
.grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 30px -10px rgba(47, 123, 255, .6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(47, 123, 255, .8); }
.btn-ghost { border: 1px solid var(--border); background: var(--surface); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s ease, border-color .3s ease, padding .3s ease;
  border-bottom: 1px solid transparent;
  padding: 22px 0;
}
header.scrolled {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-color: var(--border);
  padding: 14px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 22px; display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px; background: var(--gradient);
  display: grid; place-items: center; font-size: 16px; color: #fff;
}
.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a { font-size: 15px; color: var(--muted); transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--gradient); border-radius: 2px;
}
.nav-links .nav-ext { display: inline-flex; align-items: center; gap: 4px; }
.nav-ext svg { width: 14px; height: 14px; }
.nav .btn { padding: 11px 22px; font-size: 14px; }
.nav-cta { display: none; }
.menu-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }
.menu-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 140px 0 100px; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,30,60,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,30,60,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}
.glow {
  position: absolute; border-radius: 50%; filter: blur(120px); opacity: .18; pointer-events: none;
}
.glow-1 { width: 520px; height: 520px; background: var(--accent); top: -120px; right: -120px; }
.glow-2 { width: 420px; height: 420px; background: var(--accent-2); bottom: -180px; left: -140px; opacity: .16; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 60px; align-items: center; position: relative; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 14px; color: var(--muted); margin-bottom: 28px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22d37a; box-shadow: 0 0 0 4px rgba(34, 211, 122, .18); }
.hero h1 { font-size: clamp(42px, 6.4vw, 82px); font-weight: 700; margin-bottom: 26px; }
.hero p { font-size: 19px; color: var(--muted); max-width: 600px; margin-bottom: 40px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: 24px; padding: 34px;
  box-shadow: 0 30px 60px -30px rgba(15, 30, 60, .35);
  position: relative;
}
.hero-card .photo {
  width: 140px; height: 140px; object-fit: cover; object-position: 50% 22%;
  border-radius: 20px; margin-bottom: 22px; background: #a9b0b6;
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px rgba(31, 111, 255, .25);
}
.hero-card h3 { font-size: 24px; margin-bottom: 4px; }
.hero-card .role { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.hero-card ul { list-style: none; display: grid; gap: 14px; }
.hero-card li { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.hero-card li svg { width: 20px; height: 20px; color: var(--accent-2); flex-shrink: 0; }

/* ---------- Stats ---------- */
.stats { padding: 0; margin-top: -40px; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow);
}
.stat { padding: 40px 32px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-display); font-size: 46px; font-weight: 700; line-height: 1; margin-bottom: 10px; }
.stat span { color: var(--muted); font-size: 15px; }

/* ---------- Sobre ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-text p { color: var(--muted); font-size: 17px; margin-bottom: 20px; }
.about-text p strong { color: var(--text); font-weight: 600; }
.edu { display: grid; gap: 16px; margin-top: 36px; }
.edu-item {
  display: flex; gap: 18px; align-items: center;
  padding: 20px 22px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--border);
}
.edu-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: rgba(31, 111, 255, .09); color: var(--accent-2); display: grid; place-items: center;
}
.edu-icon svg { width: 24px; height: 24px; }
.edu-item h4 { font-size: 16px; font-weight: 600; }
.edu-item p { color: var(--muted); font-size: 14px; }

/* ---------- Competências ---------- */
.services { background: var(--bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 60px; flex-wrap: wrap; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 34px;
  box-shadow: var(--shadow);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--gradient); opacity: 0; transition: opacity .3s ease;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); background: var(--surface-2); }
.card:hover::after { opacity: 1; }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 26px;
  background: rgba(31, 111, 255, .09); color: var(--accent-2); display: grid; place-items: center;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 21px; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- Experiência ---------- */
.timeline { position: relative; display: grid; gap: 22px; }
.timeline::before {
  content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(0, 212, 255, .1));
}
.job { position: relative; padding-left: 72px; }
.job-dot {
  position: absolute; left: 12px; top: 30px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent); display: grid; place-items: center;
}
.job-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); }
.job-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  overflow: hidden; box-shadow: var(--shadow); transition: border-color .3s ease;
}
.job-card:hover, .job-card.open { border-color: rgba(47, 123, 255, .45); }
.job-head {
  width: 100%; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 26px 30px;
}
.job-period { font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--accent-2); text-transform: uppercase; margin-bottom: 6px; }
.job-head h3 { font-size: 22px; margin-bottom: 4px; }
.job-company { color: var(--muted); font-size: 15px; }
.job-company b { color: var(--text); font-weight: 600; }
.chev {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
  display: grid; place-items: center; transition: transform .3s ease, background .3s ease;
}
.chev svg { width: 18px; height: 18px; }
.job-card.open .chev { transform: rotate(180deg); background: rgba(47, 123, 255, .15); }
.job-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.job-card.open .job-body { grid-template-rows: 1fr; }
.job-body > div { overflow: hidden; }
.job-content { padding: 0 30px 30px; border-top: 1px solid var(--border); margin: 0 30px; padding: 24px 0 30px; }
.project { margin-bottom: 24px; }
.project:last-child { margin-bottom: 0; }
.project h4 { font-size: 16px; font-weight: 600; margin-bottom: 10px; display: flex; gap: 10px; align-items: baseline; }
.project h4::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gradient); flex-shrink: 0; transform: translateY(-2px); }
.project p { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  font-size: 13px; padding: 6px 12px; border-radius: 999px;
  background: var(--tint); border: 1px solid var(--border); color: #3a4458;
}
.list { list-style: none; display: grid; gap: 8px; }
.list li { color: var(--muted); font-size: 15px; padding-left: 22px; position: relative; }
.list li::before { content: "→"; position: absolute; left: 0; color: var(--accent-2); }

/* ---------- Projetos destaque ---------- */
.highlights { background: var(--bg-alt); }
.hl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.hl {
  border-radius: 22px; padding: 38px; border: 1px solid var(--border);
  background: radial-gradient(120% 120% at 100% 0%, rgba(31, 111, 255, .10), transparent 55%), var(--surface);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 16px;
}
.hl-tag { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.hl h3 { font-size: 24px; }
.hl p { color: var(--muted); font-size: 15px; }
.hl-metrics { display: flex; gap: 32px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.hl-metrics div strong { display: block; font-family: var(--font-display); font-size: 28px; }
.hl-metrics div span { font-size: 13px; color: var(--muted); }

/* ---------- Interesses / Objetivos ---------- */
.goals-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.goal-box { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 40px; box-shadow: var(--shadow); }
.goal-box h3 { font-size: 22px; margin-bottom: 24px; display: flex; gap: 14px; align-items: center; }
.goal-box h3 .card-icon { margin: 0; width: 46px; height: 46px; }
.goal-box h3 .card-icon svg { width: 22px; height: 22px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  padding: 12px 20px; border-radius: 12px; font-size: 15px; font-weight: 500;
  background: rgba(47, 123, 255, .08); border: 1px solid rgba(47, 123, 255, .25);
}

/* ---------- CTA / Contato ---------- */
.cta-box {
  position: relative; overflow: hidden; border-radius: 30px; padding: 80px 60px; text-align: center;
  background: linear-gradient(135deg, #1f6fff 0%, #00a3d4 100%); color: #fff;
  border: 1px solid rgba(255,255,255,.12);
}
.cta-box::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 24px 24px; opacity: .5;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.cta-box > * { position: relative; }
.cta-box h2 { max-width: 760px; margin: 0 auto 18px; }
.cta-box p { color: rgba(255,255,255,.75); font-size: 18px; max-width: 580px; margin: 0 auto 38px; }
.cta-box .btn-primary { background: #fff; color: #0f1b2d; box-shadow: none; }
.cta-box .btn-ghost { border-color: rgba(255,255,255,.45); background: transparent; color: #fff; }
.cta-box .btn-ghost:hover { background: rgba(255,255,255,.12); }
.cta-box .eyebrow::before { background: rgba(255,255,255,.7); }
.foot .logo { color: var(--text); }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

footer { border-top: 1px solid var(--border); padding: 40px 0; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.social { display: flex; gap: 10px; }
.social a {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
  display: grid; place-items: center; transition: background .2s, border-color .2s;
}
.social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.social svg { width: 18px; height: 18px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 860px) {
  .nav-links, .nav > .btn { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 10px 24px 24px; box-shadow: 0 20px 40px -20px rgba(15, 30, 60, .25);
  }
  .nav-links.open a { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--border); }
  .nav-links.open a.nav-ext { display: flex; }
  .nav-links.open a.active::after { display: none; }
  .nav-links.open .nav-cta { display: block; padding-top: 18px; }
  .nav-links.open .nav-cta a { display: flex; justify-content: center; color: #fff; border: 0; padding: 14px 0; }
  header:has(.nav-links.open) { background: #fff; }
  .hl-grid, .goals-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  section { padding: 72px 0; }
  h2 { font-size: 30px; margin-bottom: 14px; }
  .lead { font-size: 16px; }
  .section-head { margin-bottom: 36px; gap: 12px; }

  .hero { min-height: auto; padding: 108px 0 64px; }
  .hero-grid { gap: 36px; }
  .badge { font-size: 13px; margin-bottom: 22px; }
  .hero h1 { font-size: 40px; margin-bottom: 20px; }
  .hero p { font-size: 17px; margin-bottom: 30px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .hero-card {
    display: grid; grid-template-columns: 84px 1fr; column-gap: 16px; align-items: center;
    padding: 22px; border-radius: 20px;
  }
  .hero-card .photo { width: 84px; height: 84px; grid-row: 1 / span 2; margin: 0; border-radius: 16px; }
  .hero-card h3 { font-size: 19px; align-self: end; margin: 0; }
  .hero-card .role { align-self: start; margin: 0; font-size: 14px; }
  .hero-card ul { grid-column: 1 / -1; margin-top: 20px; gap: 12px; }
  .hero-card li { font-size: 14px; align-items: flex-start; }

  .stats { margin-top: 0; }
  .stats-grid { border-radius: 20px; }
  .stat span { font-size: 13px; display: block; line-height: 1.45; }

  .about-grid { gap: 36px; }
  .about-text p { font-size: 16px; }
  .edu { margin-top: 26px; gap: 12px; }
  .edu-item { padding: 16px; gap: 14px; }
  .edu-icon { width: 42px; height: 42px; }

  .cards { gap: 14px; }
  .card { padding: 24px; }
  .card-icon { width: 48px; height: 48px; margin-bottom: 18px; }
  .card h3 { font-size: 19px; }

  .job-period { font-size: 12px; }
  .hl-grid, .goals-grid { gap: 14px; }
  .hl h3 { font-size: 21px; }
  .hl-metrics { gap: 22px; }
  .hl-metrics div strong { font-size: 24px; }
  .goal-box h3 { font-size: 19px; }
  .tag { padding: 10px 14px; font-size: 14px; }

  .cta-box { border-radius: 22px; }
  .cta-box h2 { font-size: 28px; }
  .cta-box p { font-size: 16px; margin-bottom: 28px; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .foot { flex-direction: column; text-align: center; }
  .container { padding: 0 16px; }
  .cards { grid-template-columns: 1fr; }
  .stat { padding: 22px 18px; }
  .stat strong { font-size: 30px; }
  .timeline::before { left: 11px; }
  .job { padding-left: 38px; }
  .job-dot { left: 0; }
  .job-head { padding: 22px; }
  .job-content { margin: 0 22px; }
  .job-head h3 { font-size: 19px; }
  .cta-box { padding: 56px 24px; }
  .hl, .goal-box { padding: 28px; }
}
@media (hover: none) {
  .card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Ajustes que antes eram estilos inline */
.project-text { color: var(--muted); font-size: 15px; }
#contato { padding-top: 0; }
.cta-box .eyebrow { color: #fff; }

