/* === 1. RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

ul {
  list-style: none;
}

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

/* === 2. CSS CUSTOM PROPERTIES === */
:root {
  --bg-primary:     #0d1017;
  --bg-secondary:   #111318;
  --bg-tertiary:    #161920;
  --bg-high:        #1c202a;
  --border:         rgba(177, 199, 242, 0.1);
  --border-solid:   #2a2f3a;
  --accent:         #00c8a0;
  --accent-dim:     rgba(0, 200, 160, 0.08);
  --accent-glow:    rgba(0, 200, 160, 0.15);
  --secondary:      #b1c7f2;
  --text-primary:   #e8edf2;
  --text-secondary: #a8b3be;
  --text-muted:     #55606e;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --sans: 'Inter', system-ui, sans-serif;
  --headline: 'Manrope', 'Inter', sans-serif;
}

/* === 3. TYPOGRAPHY === */
h1, h2, h3 {
  font-family: var(--headline);
  line-height: 1.15;
  font-weight: 700;
}

/* === 4. LAYOUT UTILITIES === */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
  scroll-margin-top: 1rem;
}

section:nth-child(even) {
  background-color: var(--bg-secondary);
}

.section-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

.section-heading {
  font-family: var(--headline);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

.section-index {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--accent);
  margin-right: 0.5rem;
  font-weight: 400;
}

.subsection-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  margin: 2rem 0 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* === 5. NAVIGATION === */

/* Checkbox invisível */
.nav-toggle-input {
  display: none;
}

/* Hamburger button — fixo, canto superior direito */
.nav-hamburger {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 300;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0.6rem 0.65rem;
  background: rgba(17, 19, 24, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  transition: border-color 0.2s ease;
}

.nav-hamburger:hover {
  border-color: rgba(0, 200, 160, 0.35);
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: background 0.2s ease;
}

.nav-hamburger:hover span {
  background: var(--accent);
}

/* Overlay escuro */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 150;
  cursor: pointer;
}

/* Side drawer */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 260px;
  background: rgba(13, 16, 23, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 5rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
}

.nav-drawer-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  padding: 0.25rem;
}

.nav-drawer-close:hover {
  color: var(--accent);
}

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  list-style: none;
}

.nav-drawer-links a {
  font-family: var(--headline);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-drawer-links a:hover {
  color: var(--accent);
}

/* Estado aberto */
.nav-toggle-input:checked ~ .nav-overlay {
  display: block;
}

.nav-toggle-input:checked ~ .nav-drawer {
  transform: translateX(0);
}

/* === 6. HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5rem;
}

/* Orb glows */
.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(74, 60, 16, 0.25);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 20%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(30, 34, 45, 0.3);
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-tag {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: block;
}

.hero-name {
  font-family: var(--headline);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.05;
}

.cursor::after {
  content: '_';
  color: var(--accent);
  animation: blink 1.1s step-end infinite;
}

.hero-tagline {
  font-family: var(--headline);
  font-size: clamp(1.2rem, 2.8vw, 1.75rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hero-bio {
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  font-family: var(--headline);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  transition: all 0.25s ease;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #00a882 100%);
  color: #0d1017;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
  background: rgba(22, 25, 32, 0.6);
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(28, 32, 42, 0.8);
  border-color: rgba(177, 199, 242, 0.25);
  transform: translateY(-2px);
}

/* === 7. ABOUT === */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.metric-card {
  background: rgba(22, 25, 32, 0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease;
}

.metric-card:hover {
  box-shadow: 0 0 25px var(--accent-glow);
}

.metric-number {
  font-family: var(--headline);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.metric-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  line-height: 1.3;
}

.about-bio {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
}

.about-quote {
  font-style: italic;
  font-size: 1rem;
  color: var(--text-primary);
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

/* Languages */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}

.lang-card {
  background: rgba(22, 25, 32, 0.5);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lang-card:hover {
  border-color: rgba(233, 195, 73, 0.35);
  box-shadow: 0 0 20px var(--accent-glow);
}

.lang-card-code {
  font-family: var(--headline);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.lang-card-name {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.lang-card-level {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* === 8. EXPERIENCE (timeline) === */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.employer-block {
  border-left: 2px solid var(--border-solid);
  padding-left: 1.75rem;
  position: relative;
}

.employer-block::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg-primary), 0 0 12px var(--accent-glow);
}

.employer-header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1.5rem;
}

.employer-name {
  font-family: var(--headline);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.employer-meta {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.employer-period {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
}

.job-entry {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-solid);
}

.job-entry:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.job-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.job-period {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.job-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
  line-height: 1.65;
}

.job-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.job-bullets li {
  color: var(--text-secondary);
  font-size: 0.88rem;
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.65;
}

.job-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7rem;
  top: 0.22em;
}

/* === 9. SKILLS === */
.skills-highlight {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.25rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.skill-category {
  background: rgba(22, 25, 32, 0.5);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease;
}

.skill-category:hover {
  box-shadow: 0 0 20px rgba(177, 199, 242, 0.05);
}

.skill-category-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

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

.skill-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  background: rgba(17, 19, 24, 0.7);
  border: 1px solid var(--border-solid);
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  cursor: default;
}

.skill-tag:hover {
  border-color: rgba(233, 195, 73, 0.4);
  color: var(--accent);
}

.skill-tag--highlight {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  background: rgba(233, 195, 73, 0.07);
  border: 1px solid rgba(233, 195, 73, 0.3);
  border-radius: 6px;
  color: var(--accent);
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
}

.skill-tag--highlight:hover {
  background: rgba(0, 200, 160, 0.12);
  border-color: rgba(0, 200, 160, 0.5);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* === 10. EDUCATION === */
.edu-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.edu-card {
  background: rgba(22, 25, 32, 0.5);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  backdrop-filter: blur(10px);
}

.edu-degree {
  font-family: var(--headline);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.edu-school {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.15rem;
}

.edu-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.cert-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.cert-list li {
  font-size: 0.88rem;
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.cert-name {
  color: var(--text-primary);
}

.cert-issuer {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* === 11. CONTACT === */
.contact-inner {
  text-align: center;
}

.contact-intro {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.contact-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.contact-location {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* === 12. FOOTER === */
.footer {
  border-top: 1px solid var(--border-solid);
  padding: 1.75rem 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
}

/* === 13. ANIMATIONS === */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* === 14. MEDIA QUERIES === */
@media (max-width: 768px) {
  section {
    padding: 3.5rem 0;
    scroll-margin-top: 1rem;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 3.5rem 0 3rem;
  }

  /* Metrics */
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Languages */
  .lang-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Skills */
  .skills-grid {
    grid-template-columns: 1fr;
  }

  /* Experience */
  .job-header {
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }
}

/* === PRINT === */
@media print {
  body {
    background: #fff;
    color: #000;
  }

  .nav, .footer, .hero-ctas, .contact-links {
    display: none;
  }

  :root {
    --text-primary:   #000;
    --text-secondary: #333;
    --bg-primary:     #fff;
    --bg-secondary:   #fff;
    --bg-tertiary:    #f5f5f5;
    --border:         #ddd;
    --border-solid:   #ddd;
    --accent:         #007a62;
  }
}
