/* ==========================================================================
   Design Tokens & CSS Variables (Paleta Lilás Refinada & Acessível 2.0)
   ========================================================================== */
:root {
  /* Cores de Ação & Marca (WCAG AA/AAA compliant) */
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --accent-glow: rgba(124, 58, 237, 0.14);
  --accent-glow-strong: rgba(124, 58, 237, 0.28);

  /* Superfícies & Fundos */
  --bg-main: #fcfaff;
  --bg-card: #ffffff;
  --bg-subtle: #f5edff;
  --bg-header: rgba(252, 250, 255, 0.88);

  /* Tipografia & Contraste */
  --text-primary: #1e132b;
  --text-muted: #52525b;
  --text-light: #71717a;
  --text-on-primary: #ffffff;

  /* Bordas & Divisores */
  --border-color: #e9d5ff;
  --border-subtle: #f5edff;
  --border-active: #8b5cf6;

  /* Sombras em Camadas (Layered Ambient Shadows) */
  --shadow-sm: 0 1px 2px rgba(30, 19, 43, 0.04);
  --shadow-md: 0 4px 12px rgba(124, 58, 237, 0.06), 0 1px 3px rgba(30, 19, 43, 0.04);
  --shadow-layered: 0 4px 8px -2px rgba(124, 58, 237, 0.06), 0 12px 24px -4px rgba(124, 58, 237, 0.09);
  --shadow-hover: 0 8px 16px -3px rgba(124, 58, 237, 0.10), 0 20px 36px -4px rgba(124, 58, 237, 0.15);

  /* Dimensões & Espaçamento */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --max-width: 1140px;
  --header-height: 74px;

  /* Transições suaves */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-main);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Fundo sutil com gradiente radial decorativo */
body::before {
  content: "";
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(233, 213, 255, 0.45) 0%, rgba(252, 250, 255, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

/* Skip link para acessibilidade */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--primary);
  color: var(--text-on-primary);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 15px;
  outline: 3px solid var(--accent-light);
}

/* Foco acessível */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Containers e Utilitários de Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: 88px;
  padding-bottom: 88px;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background-color: var(--bg-subtle);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Pílulas de Habilidades / Tags Semânticas */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tag-pill:hover {
  background-color: var(--primary);
  color: var(--text-on-primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   Modo Impressão / Salvar PDF (@media print)
   ========================================================================== */
@media print {
  *, *::before, *::after {
    background: transparent !important;
    color: #111111 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    background: #ffffff !important;
    font-size: 11pt;
    line-height: 1.4;
  }

  .site-header,
  .skip-link,
  .hero-actions,
  .lang-switcher,
  .footer-cta,
  .timeline-filters-bar,
  .hero-stat-card {
    display: none !important;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .section {
    padding: 16px 0 !important;
    page-break-inside: avoid;
  }

  .timeline-card,
  .pillar-card,
  .edu-card {
    border: 1px solid #cccccc !important;
    page-break-inside: avoid;
    margin-bottom: 12px !important;
    padding: 12px !important;
  }

  .timeline::before {
    display: none !important;
  }

  .timeline-item {
    margin-bottom: 14px !important;
    padding-left: 0 !important;
  }

  .timeline-marker {
    display: none !important;
  }
}
