/* ===== TOKENS ===== */
:root {
  --navy-900: #0c1a2e;
  --navy-800: #122742;
  --navy-700: #1b3a5f;
  --navy-600: #25507f;
  --slate-500: #5b7088;
  --slate-400: #8194a8;
  --slate-200: #d7dee7;
  --paper: #f6f8fb;
  --white: #ffffff;
  --accent: #2f9e9e;       /* teal profissional */
  --accent-soft: #d9efef;
  --ink: #0c1a2e;
  --muted: #5b7088;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(12, 26, 46, .06), 0 8px 24px rgba(12, 26, 46, .06);
  --shadow-md: 0 12px 40px rgba(12, 26, 46, .12);
  --maxw: 1120px;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -.02em; }

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px;
  background: var(--accent); color: var(--white);
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  border: 1.5px solid var(--accent);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(47,158,158,.35); }
.btn--ghost { background: transparent; color: var(--navy-700); border-color: var(--slate-200); }
.btn--ghost:hover { background: var(--paper); box-shadow: none; border-color: var(--slate-400); }
.btn--sm { padding: 9px 18px; font-size: 14px; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled { border-color: var(--slate-200); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.nav__logo { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--navy-800); }
.nav__logo span { color: var(--accent); }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--slate-500);
  position: relative; transition: color .2s ease;
}
.nav__links a:hover { color: var(--navy-800); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent); transition: width .25s ease;
}
.nav__links a:hover::after { width: 100%; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: .3s; }

/* ===== HERO ===== */
.hero {
  padding: 150px 0 90px;
  background:
    radial-gradient(900px 500px at 88% -10%, rgba(47,158,158,.12), transparent 60%),
    radial-gradient(700px 500px at -10% 20%, rgba(37,80,127,.10), transparent 55%),
    var(--paper);
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 14px;
  letter-spacing: .04em; text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(44px, 6vw, 76px); font-weight: 800; color: var(--navy-900); margin-bottom: 22px; }
.hero__lead { font-size: 18px; color: var(--slate-500); max-width: 540px; margin-bottom: 32px; }
.hero__lead strong { color: var(--navy-700); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero__stats { display: flex; gap: 40px; list-style: none; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--navy-800); }
.hero__stats span { font-size: 14px; color: var(--slate-500); }

.hero__photo { display: flex; justify-content: center; }
.hero__photo-frame {
  position: relative; width: 320px; aspect-ratio: 4/5; border-radius: 28px; overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 6px solid var(--white);
}
.hero__photo-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 55%, rgba(12,26,46,.28));
}
.hero__photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== SECTIONS ===== */
.section { padding: 96px 0; }
.section--alt { background: var(--paper); }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head--center { margin: 0 auto 56px; text-align: center; }
.section__tag {
  font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 14px;
}
.section__head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; color: var(--navy-900); }
.section__sub { margin-top: 16px; color: var(--slate-500); font-size: 17px; }

/* ===== ABOUT ===== */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.about p { font-size: 17px; color: var(--slate-500); }
.about strong { color: var(--navy-700); }

/* ===== TIMELINE ===== */
.timeline { position: relative; display: flex; flex-direction: column; gap: 26px; }
.tl-item {
  position: relative; background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius); padding: 28px 30px 28px 34px;
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.section--alt .tl-item { box-shadow: 0 1px 3px rgba(12,26,46,.05); }
.tl-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 28px; bottom: 28px; width: 4px;
  background: linear-gradient(var(--accent), var(--navy-600)); border-radius: 4px;
}
.tl-item__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-bottom: 4px; }
.tl-item__role { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--navy-900); }
.tl-item__period {
  margin-left: auto; font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.tl-item__company { font-family: var(--font-display); font-weight: 600; color: var(--slate-500); margin-bottom: 16px; }
.tl-item__desc { color: var(--slate-500); margin-bottom: 18px; font-size: 15.5px; }
.tl-item__marcos { list-style: none; display: grid; gap: 10px; }
.tl-item__marcos li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink); }
.tl-item__marcos li::before {
  content: "▸"; position: absolute; left: 4px; top: 0; color: var(--accent); font-weight: 700;
}

/* Bloco de entregas em destaque */
.tl-item__entregas {
  margin-top: 18px;
  padding: 16px 20px 16px 22px;
  background: linear-gradient(135deg, var(--accent-soft) 0%, rgba(217, 239, 239, .35) 100%);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
}
.tl-item__entregas-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.tl-item__entregas ul {
  list-style: none;
  display: grid;
  gap: 8px;
}
.tl-item__entregas li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy-900);
  line-height: 1.45;
}
.tl-item__entregas li::before {
  content: "★";
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--accent);
  font-size: 13px;
}
.tl-current {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--white); background: var(--accent);
  padding: 2px 10px; border-radius: 999px; margin-left: 4px;
}

/* ===== SKILLS ===== */
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.skills__col h3 { font-size: 22px; color: var(--navy-800); margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: 14.5px; font-weight: 500; padding: 9px 16px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--slate-200); color: var(--navy-700);
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}
.chip:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.chip--soft { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }
.chip--soft:hover { background: var(--navy-700); color: var(--white); border-color: var(--navy-700); }
.chip--ai {
  background: linear-gradient(135deg, var(--accent-soft), rgba(217, 239, 239, .6));
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
  letter-spacing: .01em;
}
.chip--ai:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(47, 158, 158, .35);
}

/* ===== EDU ===== */
.edu { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.edu__group h3 { font-size: 22px; color: var(--navy-800); margin-bottom: 22px; }
.edu__list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.edu__list li {
  background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-sm);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.edu__list .edu__title { font-family: var(--font-display); font-weight: 700; color: var(--navy-900); display: block; }
.edu__list .edu__inst { color: var(--slate-500); font-size: 14.5px; }
.edu__list .edu__year { color: var(--accent); font-size: 13px; font-weight: 600; }

/* ===== CONTACT ===== */
.contact { background: var(--navy-900); }
.contact .section__tag { color: var(--accent); }
.contact .section__head h2 { color: var(--white); }
.contact .section__sub { color: var(--slate-400); }
.contact__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact__card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 34px 24px; border-radius: var(--radius); background: var(--navy-800);
  border: 1px solid rgba(255,255,255,.08); transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.contact__card:hover { transform: translateY(-4px); background: var(--navy-700); border-color: var(--accent); }
.contact__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: var(--white); font-size: 22px; font-weight: 700; margin-bottom: 8px;
}
.contact__card strong { font-family: var(--font-display); color: var(--white); font-size: 17px; }
.contact__card span:not(.contact__icon) { color: var(--slate-400); font-size: 14.5px; }

/* ===== FOOTER ===== */
.footer { background: var(--navy-900); border-top: 1px solid rgba(255,255,255,.08); padding: 28px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer__inner span { color: var(--slate-400); font-size: 14px; }
.footer__inner span:first-child { font-family: var(--font-display); font-weight: 700; color: var(--white); }

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 100;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .45), 0 2px 6px rgba(0,0,0,.12);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  text-decoration: none;
}
.whatsapp-fab:hover {
  transform: translateY(-3px) scale(1.05);
  background: #1ebe5d;
  box-shadow: 0 14px 36px rgba(37, 211, 102, .55), 0 4px 10px rgba(0,0,0,.15);
}
.whatsapp-fab svg {
  width: 34px;
  height: 34px;
  position: relative;
  z-index: 1;
}
/* Anel pulsante */
.whatsapp-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: .7;
  animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);    opacity: .7; }
  100% { transform: scale(1.55); opacity: 0;  }
}
/* Tooltip */
.whatsapp-fab__tooltip {
  position: absolute;
  right: 78px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--navy-900);
  color: var(--white);
  padding: 9px 14px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  box-shadow: 0 6px 16px rgba(12, 26, 46, .2);
}
.whatsapp-fab__tooltip::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--navy-900);
}
.whatsapp-fab:hover .whatsapp-fab__tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__photo { order: -1; }
  .hero__photo-frame { width: 240px; }
  .about, .skills, .edu { grid-template-columns: 1fr; gap: 24px; }
  .contact__cards { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .whatsapp-fab { width: 56px; height: 56px; bottom: 18px; right: 18px; }
  .whatsapp-fab svg { width: 30px; height: 30px; }
  .whatsapp-fab__tooltip { display: none; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--slate-200);
    max-height: 0; overflow: hidden; transition: max-height .3s ease; box-shadow: var(--shadow-sm);
  }
  .nav__links.is-open { max-height: 320px; }
  .nav__links a { padding: 16px 24px; border-bottom: 1px solid var(--paper); }
  .nav__links a::after { display: none; }
  .nav__toggle { display: flex; }
  .nav .btn--sm { display: none; }
  .hero { padding: 120px 0 70px; }
  .hero__stats { gap: 28px; }
  .section { padding: 70px 0; }
}
