/* ============ TOKENS ============ */
:root {
  --bg: #1a0d18;
  --bg-alt: #221020;
  --surface: #2b1428;
  --border: #4a2942;
  --text: #ffffff;
  --text-muted: #e8d4e0;
  --accent: #ff6ba8;
  --accent-soft: rgba(255, 107, 168, 0.14);
  --shadow: 0 10px 30px -15px rgba(255, 107, 168, 0.4);
  --radius: 10px;
  --container: 1100px;
  --transition: 0.25s ease;
}

[data-theme="light"] {
  --bg: #fff5f9;
  --bg-alt: #ffe4ef;
  --surface: #ffffff;
  --border: #ffc4dc;
  --text: #2d0f23;
  --text-muted: #5c2945;
  --accent: #c2185b;
  --accent-soft: rgba(194, 24, 91, 0.08);
  --shadow: 0 4px 20px -6px rgba(194, 24, 91, 0.15);
}

/* ============ RESET ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--transition), color var(--transition);
}
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { background: rgba(26, 13, 24, 0.85); }
[data-theme="light"] .nav { background: rgba(255, 245, 249, 0.9); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav__logo { font-family: 'JetBrains Mono', monospace; font-weight: 600; color: var(--accent); }
.nav__links { display: flex; gap: 28px; }
.nav__links a { font-size: 0.92rem; color: var(--text); opacity: 0.85; }
.nav__links a:hover { opacity: 1; }
.nav__links a:hover { color: var(--accent); }
.theme-toggle {
  background: none; border: 1px solid var(--border); color: var(--text);
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  font-size: 1rem; transition: all var(--transition);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ============ HERO ============ */
.hero { padding: 120px 0 100px; }
.hero__inner { max-width: 800px; }
.hero__hello { color: var(--accent); font-family: 'JetBrains Mono', monospace; font-size: 0.95rem; margin-bottom: 20px; }
.hero__name { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 10px; }
.hero__role { font-size: clamp(1.5rem, 4vw, 2.8rem); font-weight: 700; color: var(--text-muted); margin-bottom: 24px; }
.hero__bio { font-size: 1.1rem; color: var(--text); max-width: 600px; margin-bottom: 40px; opacity: 0.92; }
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  transition: all var(--transition); border: 1px solid transparent;
}
.btn--primary { background: var(--accent); color: var(--bg); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn--ghost:hover { background: var(--accent-soft); }
.btn--large { padding: 18px 40px; font-size: 1.05rem; }

/* ============ SECTIONS ============ */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-alt); }
.section__title {
  font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700;
  margin-bottom: 50px; display: flex; align-items: center; gap: 14px;
}
.section__title::after {
  content: ""; flex: 1; height: 1px; background: var(--border); max-width: 280px;
}
.section__index {
  font-family: 'JetBrains Mono', monospace; color: var(--accent);
  font-size: 1.1rem; font-weight: 500;
}

/* ============ SOBRE ============ */
.about { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: start; }
.about__text p { color: var(--text); margin-bottom: 16px; opacity: 0.9; font-size: 1.02rem; }
.about__text strong { color: var(--text); }
.about__highlights { display: grid; gap: 16px; }
.highlight {
  background: var(--surface); border: 1px solid var(--border);
  padding: 20px; border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 4px;
}
.highlight__num { font-size: 2rem; font-weight: 700; color: var(--accent); }
.highlight span:last-child { color: var(--text-muted); font-size: 0.9rem; }

/* ============ PROJETOS ============ */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.project {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: all var(--transition);
  display: flex; flex-direction: column;
  color: var(--text);
}
.project--clickable { cursor: pointer; }
.project:hover {
  transform: translateY(-6px); border-color: var(--accent);
  box-shadow: var(--shadow);
}
.project__icon { font-size: 2rem; margin-bottom: 18px; }
.project__title { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.project__subtitle { color: var(--accent); font-size: 0.85rem; margin-bottom: 14px; font-family: 'JetBrains Mono', monospace; }
.project__desc { color: var(--text); font-size: 0.95rem; flex: 1; margin-bottom: 18px; opacity: 0.88; line-height: 1.65; }
.project__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.project__tag {
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
  color: var(--accent); padding: 4px 10px;
  background: var(--accent-soft); border-radius: 20px;
}
.project__impact {
  font-size: 0.85rem; color: var(--text);
  padding: 10px 14px; background: var(--accent-soft);
  border-radius: 8px; margin-bottom: 16px; font-weight: 500;
}
.project__cta {
  font-size: 0.9rem; color: var(--accent); font-weight: 600;
  margin-top: auto;
}
.project:hover .project__cta { transform: translateX(4px); }

/* ============ TIMELINE (EXPERIÊNCIA) ============ */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(var(--accent), transparent);
}
.timeline__item {
  position: relative; margin-bottom: 32px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color var(--transition);
}
.timeline__item::before {
  content: ""; position: absolute; left: -30px; top: 32px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.timeline__item:hover { border-color: var(--accent); }

/* Header: empresa + tempo de permanência */
.timeline__header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; flex-wrap: wrap;
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.timeline__company-name {
  font-size: 1.25rem; font-weight: 700; margin-bottom: 4px;
}
.timeline__company-sub {
  color: var(--text); font-size: 0.9rem; opacity: 0.85;
}
.timeline__tenure {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
.timeline__period {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem; color: var(--text-muted);
}
.timeline__badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; font-weight: 600;
  padding: 4px 12px; border-radius: 20px;
  background: var(--accent); color: var(--bg);
}
.timeline__badge--soft {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Cargos dentro da empresa */
.timeline__roles {
  display: flex; flex-direction: column; gap: 20px;
}
.role { padding-left: 16px; border-left: 2px solid var(--border); transition: border-color var(--transition); }
.role:hover { border-left-color: var(--accent); }
.role__period {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; color: var(--accent); margin-bottom: 6px;
}
.role__title {
  font-size: 1rem; font-weight: 600; margin-bottom: 8px;
}
.role__desc { color: var(--text); font-size: 0.95rem; line-height: 1.7; opacity: 0.88; }

@media (max-width: 640px) {
  .timeline__tenure { align-items: flex-start; }
}

/* ============ FORMAÇÃO ============ */
.education {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.education__card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  display: flex; gap: 20px; align-items: flex-start;
  transition: all var(--transition);
}
.education__card:hover { border-color: var(--accent); transform: translateY(-4px); }
.education__icon { font-size: 2rem; }
.education__card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.education__school { color: var(--text); font-size: 0.95rem; margin-bottom: 4px; opacity: 0.9; }
.education__period {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent); font-size: 0.85rem;
}

/* ============ SKILLS ============ */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.skill-group {
  background: var(--surface); border: 1px solid var(--border);
  padding: 28px; border-radius: var(--radius);
}
.skill-group h3 { color: var(--accent); margin-bottom: 16px; font-size: 1.1rem; }
.skill-group ul li {
  font-family: 'JetBrains Mono', monospace; font-size: 0.9rem;
  color: var(--text); padding: 6px 0; position: relative; padding-left: 18px;
  opacity: 0.9;
}
.skill-group ul li::before { content: "▸"; color: var(--accent); position: absolute; left: 0; }

/* ============ CONTATO ============ */
.contact { text-align: center; }
.contact__lead { color: var(--text); max-width: 500px; margin: 0 auto 40px; font-size: 1.05rem; opacity: 0.9; }
.contact__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.contact__social { margin-top: 40px; display: flex; gap: 24px; justify-content: center; }
.contact__social a { color: var(--text-muted); font-size: 0.9rem; }
.contact__social a:hover { color: var(--accent); }

/* ============ FOOTER ============ */
.footer {
  padding: 30px 0; border-top: 1px solid var(--border);
  text-align: center; color: var(--text-muted); font-size: 0.85rem;
}

/* ============ RESPONSIVO ============ */
@media (max-width: 720px) {
  .nav__links { display: none; }
  .about { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 60px; }
  .section { padding: 60px 0; }
  .section__title::after { display: none; }
}
