:root {
  --bg-0: #0d0b1f;
  --bg-1: #14112e;
  --bg-2: #1a1640;
  --bg-3: #221c52;
  --txt: #e6e3ff;
  --txt-dim: #a09bc7;
  --txt-soft: #7e7aa3;
  --h1: #ff4fa3;
  --h1-glow: #ff95cc;
  --h2: #34e0d7;
  --h2-glow: #6effe6;
  --h3: #ffb84d;
  --h3-glow: #ffd285;
  --link: #5ab8ff;
  --link-hov: #a3d6ff;
  --inline-bg: #2a2350;
  --inline-txt: #ffe066;
  --warn-green: #5dd45d;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.55);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-0);
  color: var(--txt);
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at top left, #1c1240 0%, #0d0b1f 55%) fixed,
    radial-gradient(ellipse at bottom right, #261540 0%, transparent 60%) fixed;
}

/* ── Navbar ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  background: rgba(10, 8, 24, 0.92);
  border-bottom: 1px solid rgba(180, 110, 255, 0.18);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.nav-brand {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--h1), var(--h3), var(--h2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: var(--txt-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--txt);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--h2);
  background: rgba(52, 224, 215, 0.1);
  border-color: rgba(52, 224, 215, 0.25);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--txt-dim);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  overflow: hidden;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }
  10% {
    opacity: 0.7;
    transform: scale(1);
  }
  90% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(0.5);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}

.hero-greeting {
  font-size: 16px;
  font-weight: 500;
  color: var(--h2);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-name {
  font-size: clamp(36px, 7vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--h1), var(--h3) 50%, var(--h2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.hero-typing {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 500;
  color: var(--txt-dim);
  min-height: 40px;
  margin-bottom: 40px;
}

.hero-cursor {
  display: inline-block;
  color: var(--h2);
  font-weight: 300;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.hero-card {
  padding: 24px 20px;
  border-radius: 14px;
  background: rgba(20, 17, 46, 0.75);
  border: 1px solid rgba(180, 110, 255, 0.2);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.hero-card--backend:hover {
  border-color: rgba(255, 79, 163, 0.5);
}

.hero-card--professor:hover {
  border-color: rgba(52, 224, 215, 0.5);
}

.hero-card--ia:hover {
  border-color: rgba(255, 184, 77, 0.5);
}

.hero-card--math:hover {
  border-color: rgba(100, 220, 130, 0.5);
}

.hero-card-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.hero-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--txt);
}

.hero-card p {
  font-size: 13px;
  color: var(--txt-dim);
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
}

.btn-cta--primary {
  background: linear-gradient(90deg, var(--h1), var(--h3));
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 79, 163, 0.35);
}

.btn-cta--primary:hover {
  box-shadow: 0 8px 32px rgba(255, 79, 163, 0.5);
  transform: translateY(-2px);
}

.btn-cta--secondary {
  background: transparent;
  color: var(--h2);
  border: 2px solid rgba(52, 224, 215, 0.4);
}

.btn-cta--secondary:hover {
  background: rgba(52, 224, 215, 0.1);
  border-color: var(--h2);
  transform: translateY(-2px);
}

/* ── Sections ──────────────────────────────────────────── */
.section {
  padding: 80px 24px;
}

.section--alt {
  background: rgba(20, 17, 46, 0.4);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--txt);
}

.section-title-accent {
  font-family: 'JetBrains Mono', Consolas, monospace;
  color: var(--h1);
  font-size: 20px;
  margin-right: 8px;
}

/* ── Sobre ─────────────────────────────────────────────── */
.sobre-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.avatar-ring {
  width: 180px;
  height: 180px;
  margin: 0 auto 24px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--h1), var(--h3), var(--h2));
  box-shadow: 0 0 40px rgba(255, 79, 163, 0.2);
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 48px;
  font-weight: 800;
  color: var(--h2);
}

.sobre-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--h2);
}

.stat-label {
  font-size: 11px;
  color: var(--txt-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sobre-text p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--txt-dim);
  margin-bottom: 14px;
}

.sobre-text strong {
  color: var(--txt);
  font-weight: 600;
}

/* ── Timeline ──────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--h1), var(--h2), var(--h3));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -29px;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--h1);
  border: 3px solid var(--bg-0);
  box-shadow: 0 0 12px rgba(255, 79, 163, 0.4);
  z-index: 1;
}

.timeline-dot--prof {
  background: var(--h2);
  box-shadow: 0 0 12px rgba(52, 224, 215, 0.4);
}

.timeline-card {
  padding: 24px;
  border-radius: 14px;
  background: rgba(20, 17, 46, 0.7);
  border: 1px solid rgba(180, 110, 255, 0.18);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.25s;
}

.timeline-card:hover {
  border-color: rgba(180, 110, 255, 0.35);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.timeline-role {
  font-size: 17px;
  font-weight: 700;
  color: var(--h3);
}

.timeline-company {
  font-size: 14px;
  color: var(--h2);
  margin-top: 2px;
}

.timeline-period {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--txt-soft);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(180, 110, 255, 0.2);
  white-space: nowrap;
}

.timeline-list {
  list-style: none;
  margin-bottom: 14px;
}

.timeline-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--txt-dim);
  line-height: 1.6;
  margin-bottom: 6px;
}

.timeline-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--h2);
  opacity: 0.6;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(180, 110, 255, 0.12);
  color: var(--txt-dim);
  border: 1px solid rgba(180, 110, 255, 0.22);
}

.tag--php { background: rgba(119, 123, 180, 0.18); color: #b4b7f0; }
.tag--python { background: rgba(55, 118, 171, 0.18); color: #6db5e5; }
.tag--laravel { background: rgba(255, 79, 79, 0.15); color: #ff8080; }
.tag--api { background: rgba(52, 224, 215, 0.12); color: var(--h2); }
.tag--db { background: rgba(255, 184, 77, 0.12); color: var(--h3); }
.tag--java { background: rgba(237, 139, 0, 0.15); color: #f5a623; }
.tag--spring { background: rgba(93, 212, 93, 0.12); color: var(--warn-green); }
.tag--js { background: rgba(255, 224, 102, 0.12); color: var(--inline-txt); }
.tag--html { background: rgba(255, 110, 64, 0.15); color: #ff9070; }
.tag--web { background: rgba(90, 184, 255, 0.15); color: var(--link); }
.tag--analysis { background: rgba(180, 110, 255, 0.15); color: #c084fc; }

/* ── Skills ────────────────────────────────────────────── */
.skills-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.skills-tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(180, 110, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: var(--txt-dim);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.skills-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--txt);
}

.skills-tab.active {
  background: linear-gradient(90deg, rgba(255, 79, 163, 0.22), rgba(52, 224, 215, 0.12));
  color: var(--txt);
  border-color: rgba(255, 79, 163, 0.35);
}

.skills-panel {
  display: none;
}

.skills-panel.active {
  display: block;
}

.skill-bar {
  margin-bottom: 20px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.skill-info span:first-child {
  color: var(--txt);
}

.skill-info span:last-child {
  color: var(--h2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

.skill-track {
  height: 10px;
  border-radius: 8px;
  background: rgba(180, 110, 255, 0.12);
  border: 1px solid rgba(180, 110, 255, 0.18);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--h1), var(--h2));
  transition: width 1.2s ease-out;
}

.skill-fill--ia {
  background: linear-gradient(90deg, var(--h3), var(--h1));
}

.skills-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--h3);
  font-style: italic;
}

.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cloud-tag {
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(180, 110, 255, 0.2);
  font-size: 13px;
  font-weight: 500;
  color: var(--txt-dim);
  transition: all 0.2s;
}

.cloud-tag:hover {
  background: rgba(52, 224, 215, 0.1);
  color: var(--txt);
  border-color: rgba(52, 224, 215, 0.35);
  transform: translateY(-2px);
}

/* Soft Skills */
.soft-skills {
  margin-top: 48px;
}

.soft-skills-title {
  font-size: 18px;
  color: var(--h3);
  margin-bottom: 20px;
}

.soft-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.soft-skill-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(180, 110, 255, 0.15);
  font-size: 13px;
  color: var(--txt-dim);
  transition: border-color 0.2s;
}

.soft-skill-card:hover {
  border-color: rgba(255, 184, 77, 0.35);
}

.soft-skill-icon {
  font-size: 20px;
  flex-shrink: 0;
}

/* ── Formacao ──────────────────────────────────────────── */
.formacao-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.formacao-card {
  padding: 24px;
  border-radius: 14px;
  background: rgba(20, 17, 46, 0.7);
  border: 1px solid rgba(180, 110, 255, 0.18);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s, border-color 0.25s;
}

.formacao-card:hover {
  transform: translateY(-3px);
  border-color: rgba(180, 110, 255, 0.35);
}

.formacao-card--grad {
  border-color: rgba(255, 184, 77, 0.3);
}

.formacao-card--grad:hover {
  border-color: rgba(255, 184, 77, 0.55);
}

.formacao-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.formacao-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--txt);
  margin-bottom: 6px;
}

.formacao-inst {
  font-size: 13px;
  color: var(--txt-soft);
  margin-bottom: 10px;
}

.formacao-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.formacao-status--progress {
  background: rgba(255, 184, 77, 0.15);
  color: var(--h3);
  border: 1px solid rgba(255, 184, 77, 0.3);
}

.formacao-status--done {
  background: rgba(93, 212, 93, 0.12);
  color: var(--warn-green);
  border: 1px solid rgba(93, 212, 93, 0.3);
}

.certs-title {
  font-size: 18px;
  color: var(--h2);
  margin-bottom: 20px;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.cert-card {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(180, 110, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s;
}

.cert-card:hover {
  border-color: rgba(52, 224, 215, 0.35);
}

.cert-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--h1), var(--h3));
  color: #fff;
}

.cert-card p {
  font-size: 13px;
  color: var(--txt-dim);
  line-height: 1.4;
}

/* ── Contato ───────────────────────────────────────────── */
.contato-wrap {
  text-align: center;
}

.contato-intro {
  font-size: 17px;
  color: var(--txt-dim);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.contato-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.contato-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 16px;
  border-radius: 14px;
  background: rgba(20, 17, 46, 0.7);
  border: 1px solid rgba(180, 110, 255, 0.18);
  text-decoration: none;
  transition: all 0.25s;
}

.contato-card:hover {
  border-color: rgba(52, 224, 215, 0.45);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.contato-card-icon {
  font-size: 28px;
}

.contato-card-label {
  font-size: 11px;
  color: var(--txt-soft);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contato-card-value {
  font-size: 14px;
  color: var(--h2);
  font-weight: 500;
}

.contato-download {
  margin-bottom: 24px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  color: #0d2818;
  background: linear-gradient(145deg, #b8f5c8 0%, #7de89a 48%, #5dd45d 100%);
  border: 1px solid rgba(160, 255, 190, 0.65);
  box-shadow: 0 4px 20px rgba(93, 212, 93, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: all 0.25s;
}

.btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(93, 212, 93, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  filter: brightness(1.06);
}

.btn-download-icon {
  font-size: 20px;
}

.contato-location {
  font-size: 14px;
  color: var(--txt-soft);
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--txt-soft);
  border-top: 1px solid rgba(180, 110, 255, 0.1);
}

/* ── Scroll to Top ─────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(20, 17, 46, 0.9);
  border: 1px solid rgba(180, 110, 255, 0.3);
  color: var(--h2);
  font-size: 20px;
  cursor: pointer;
  z-index: 50;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.3s;
  backdrop-filter: blur(8px);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: rgba(52, 224, 215, 0.15);
  border-color: var(--h2);
}

/* ── Reveal Animations ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Nav Controls (lang + theme) ────────────────────────── */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-switcher {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(180, 110, 255, 0.2);
  border-radius: 8px;
  padding: 2px;
}

.lang-btn {
  padding: 5px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--txt-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}

.lang-btn:hover {
  color: var(--txt);
  background: rgba(255, 255, 255, 0.06);
}

.lang-btn.active {
  background: linear-gradient(90deg, rgba(255, 79, 163, 0.3), rgba(52, 224, 215, 0.2));
  color: var(--txt);
}

.theme-toggle {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(180, 110, 255, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  overflow: hidden;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(180, 110, 255, 0.4);
}

.theme-icon {
  position: absolute;
  font-size: 18px;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

[data-theme="dark"] .theme-icon--dark {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-icon--light {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .theme-icon--light {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-icon--dark {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

/* ── Light Theme ───────────────────────────────────────── */
[data-theme="light"] {
  --bg-0: #f5f3ff;
  --bg-1: #ece8ff;
  --bg-2: #e2dcff;
  --bg-3: #d5ccff;
  --txt: #1a1040;
  --txt-dim: #4a3f75;
  --txt-soft: #6e6399;
  --h1: #d4207a;
  --h1-glow: #e860a8;
  --h2: #1aaca5;
  --h2-glow: #28cfc6;
  --h3: #c88a1a;
  --h3-glow: #daa530;
  --link: #2a7ad4;
  --link-hov: #1a5eb0;
  --inline-bg: #ddd5f5;
  --inline-txt: #8a6c00;
  --warn-green: #2d9e2d;
  --shadow-soft: 0 8px 24px rgba(100, 80, 160, 0.1);
  --shadow-card: 0 12px 36px rgba(100, 80, 160, 0.15);
}

[data-theme="light"] body {
  background: linear-gradient(135deg, #f5f3ff 0%, #ece8ff 50%, #e8e2ff 100%);
}

[data-theme="light"] .nav {
  background: rgba(245, 243, 255, 0.95);
  border-bottom-color: rgba(140, 100, 220, 0.18);
}

[data-theme="light"] .nav.scrolled {
  box-shadow: 0 4px 24px rgba(100, 80, 160, 0.12);
}

[data-theme="light"] .nav-link:hover {
  background: rgba(100, 80, 180, 0.06);
}

[data-theme="light"] .nav-link.active {
  background: rgba(26, 172, 165, 0.1);
  border-color: rgba(26, 172, 165, 0.3);
}

[data-theme="light"] .lang-switcher {
  background: rgba(100, 80, 180, 0.05);
  border-color: rgba(140, 100, 220, 0.2);
}

[data-theme="light"] .lang-btn:hover {
  background: rgba(100, 80, 180, 0.08);
}

[data-theme="light"] .lang-btn.active {
  background: linear-gradient(90deg, rgba(212, 32, 122, 0.15), rgba(26, 172, 165, 0.12));
  color: var(--txt);
}

[data-theme="light"] .theme-toggle {
  border-color: rgba(140, 100, 220, 0.25);
  background: rgba(100, 80, 180, 0.05);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(100, 80, 180, 0.1);
}

[data-theme="light"] .hero-card,
[data-theme="light"] .timeline-card,
[data-theme="light"] .formacao-card,
[data-theme="light"] .contato-card {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(140, 100, 220, 0.18);
  box-shadow: 0 4px 16px rgba(100, 80, 160, 0.08);
}

[data-theme="light"] .hero-card:hover,
[data-theme="light"] .timeline-card:hover,
[data-theme="light"] .formacao-card:hover,
[data-theme="light"] .contato-card:hover {
  box-shadow: 0 8px 28px rgba(100, 80, 160, 0.14);
}

[data-theme="light"] .hero-card--backend:hover {
  border-color: rgba(212, 32, 122, 0.4);
}

[data-theme="light"] .hero-card--professor:hover {
  border-color: rgba(26, 172, 165, 0.4);
}

[data-theme="light"] .hero-card--ia:hover {
  border-color: rgba(200, 138, 26, 0.4);
}

[data-theme="light"] .hero-card--math:hover {
  border-color: rgba(40, 160, 80, 0.4);
}

[data-theme="light"] .btn-cta--primary {
  box-shadow: 0 4px 20px rgba(212, 32, 122, 0.25);
}

[data-theme="light"] .btn-cta--secondary {
  border-color: rgba(26, 172, 165, 0.4);
}

[data-theme="light"] .section--alt {
  background: rgba(230, 224, 255, 0.5);
}

[data-theme="light"] .avatar-ring {
  box-shadow: 0 0 30px rgba(212, 32, 122, 0.12);
}

[data-theme="light"] .avatar-placeholder {
  background: var(--bg-1);
}

[data-theme="light"] .timeline::before {
  opacity: 0.7;
}

[data-theme="light"] .timeline-dot {
  border-color: var(--bg-0);
}

[data-theme="light"] .timeline-period {
  background: rgba(100, 80, 180, 0.06);
  border-color: rgba(140, 100, 220, 0.2);
}

[data-theme="light"] .tag {
  background: rgba(140, 100, 220, 0.08);
  border-color: rgba(140, 100, 220, 0.18);
}

[data-theme="light"] .skill-track {
  background: rgba(140, 100, 220, 0.1);
  border-color: rgba(140, 100, 220, 0.15);
}

[data-theme="light"] .skills-tab {
  background: rgba(100, 80, 180, 0.04);
  border-color: rgba(140, 100, 220, 0.18);
}

[data-theme="light"] .skills-tab.active {
  background: linear-gradient(90deg, rgba(212, 32, 122, 0.12), rgba(26, 172, 165, 0.08));
  border-color: rgba(212, 32, 122, 0.3);
}

[data-theme="light"] .cloud-tag {
  background: rgba(100, 80, 180, 0.05);
  border-color: rgba(140, 100, 220, 0.18);
}

[data-theme="light"] .cloud-tag:hover {
  background: rgba(26, 172, 165, 0.1);
  border-color: rgba(26, 172, 165, 0.3);
}

[data-theme="light"] .soft-skill-card {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(140, 100, 220, 0.15);
}

[data-theme="light"] .cert-card {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(140, 100, 220, 0.15);
}

[data-theme="light"] .cert-card:hover {
  border-color: rgba(26, 172, 165, 0.3);
}

[data-theme="light"] .btn-download {
  color: #0d2818;
  box-shadow: 0 4px 16px rgba(45, 158, 45, 0.2);
}

[data-theme="light"] .scroll-top {
  background: rgba(245, 243, 255, 0.95);
  border-color: rgba(140, 100, 220, 0.25);
}

[data-theme="light"] .scroll-top:hover {
  background: rgba(26, 172, 165, 0.1);
  border-color: var(--h2);
}

[data-theme="light"] .footer {
  border-top-color: rgba(140, 100, 220, 0.12);
}

[data-theme="light"] .particle {
  opacity: 0.4 !important;
}

[data-theme="light"] .sobre-text strong {
  color: var(--txt);
}

[data-theme="light"] .formacao-card--grad {
  border-color: rgba(200, 138, 26, 0.25);
}

[data-theme="light"] .formacao-status--progress {
  background: rgba(200, 138, 26, 0.1);
  border-color: rgba(200, 138, 26, 0.25);
}

[data-theme="light"] .formacao-status--done {
  background: rgba(45, 158, 45, 0.08);
  border-color: rgba(45, 158, 45, 0.22);
}

[data-theme="light"] .nav-toggle span {
  background: var(--txt-dim);
}

[data-theme="light"] .hero-cursor {
  color: var(--h2);
}

/* ── Responsive ────────────────────────────────────────── */

/* Tablet */
@media (max-width: 768px) {
  .nav {
    padding: 0 16px;
    height: 56px;
  }

  .nav-brand {
    font-size: 20px;
  }

  .nav-controls {
    gap: 8px;
    margin-right: 8px;
  }

  .lang-btn {
    padding: 4px 7px;
    font-size: 10px;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
  }

  .theme-icon {
    font-size: 16px;
  }

  .nav-links {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(10, 8, 24, 0.98);
    border-bottom: 1px solid rgba(180, 110, 255, 0.25);
    padding: 12px 16px;
    gap: 4px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    backdrop-filter: blur(14px);
    z-index: 99;
  }

  [data-theme="light"] .nav-links {
    background: rgba(245, 243, 255, 0.98);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 10px;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  html {
    scroll-padding-top: 56px;
  }

  .hero {
    padding: 80px 16px 40px;
    min-height: auto;
  }

  .hero-greeting {
    font-size: 14px;
  }

  .hero-name {
    font-size: 36px;
  }

  .hero-typing {
    font-size: 18px;
    min-height: 32px;
    margin-bottom: 28px;
  }

  .hero-cards {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    gap: 14px;
  }

  .hero-card {
    padding: 18px 16px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn-cta {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
  }

  .section {
    padding: 50px 16px;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 28px;
  }

  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .avatar-ring {
    width: 140px;
    height: 140px;
    margin-bottom: 16px;
  }

  .avatar-placeholder {
    font-size: 36px;
  }

  .sobre-stats {
    gap: 16px;
  }

  .stat-num {
    font-size: 20px;
  }

  .sobre-text {
    text-align: left;
  }

  .sobre-text p {
    font-size: 14px;
  }

  .timeline {
    padding-left: 20px;
  }

  .timeline::before {
    left: 5px;
  }

  .timeline-dot {
    left: -18px;
    width: 12px;
    height: 12px;
    top: 20px;
  }

  .timeline-card {
    padding: 18px 16px;
  }

  .timeline-header {
    flex-direction: column;
    gap: 6px;
  }

  .timeline-role {
    font-size: 15px;
  }

  .timeline-list li {
    font-size: 13px;
  }

  .skills-tabs {
    gap: 6px;
    margin-bottom: 24px;
  }

  .skills-tab {
    padding: 8px 14px;
    font-size: 12px;
  }

  .skill-info {
    font-size: 13px;
  }

  .soft-skills {
    margin-top: 32px;
  }

  .soft-skills-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .soft-skill-card {
    padding: 12px;
    font-size: 12px;
  }

  .formacao-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .formacao-card {
    padding: 20px 16px;
  }

  .formacao-card h3 {
    font-size: 15px;
  }

  .certs-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contato-intro {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .contato-cards {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .contato-card {
    padding: 18px 12px;
  }

  .contato-card-value {
    font-size: 12px;
    word-break: break-all;
  }

  .btn-download {
    padding: 14px 28px;
    font-size: 14px;
  }

  .scroll-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* Mobile small */
@media (max-width: 480px) {
  .hero-name {
    font-size: 28px;
  }

  .hero-typing {
    font-size: 16px;
  }

  .hero-cards {
    max-width: 100%;
  }

  .section-title {
    font-size: 20px;
  }

  .avatar-ring {
    width: 120px;
    height: 120px;
  }

  .avatar-placeholder {
    font-size: 30px;
  }

  .sobre-stats {
    flex-wrap: wrap;
    justify-content: center;
  }

  .timeline-card {
    padding: 14px 12px;
  }

  .timeline-role {
    font-size: 14px;
  }

  .timeline-company {
    font-size: 13px;
  }

  .timeline-period {
    font-size: 11px;
  }

  .skills-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .skills-tab {
    text-align: center;
  }

  .soft-skills-grid {
    grid-template-columns: 1fr;
  }

  .contato-cards {
    grid-template-columns: 1fr;
  }

  .contato-card {
    flex-direction: row;
    gap: 12px;
    padding: 14px 16px;
    text-align: left;
  }

  .contato-card-icon {
    font-size: 22px;
    flex-shrink: 0;
  }

  .btn-download {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 14px;
  }

  .footer {
    padding: 20px 16px;
    font-size: 12px;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .nav {
    padding: 0 12px;
  }

  .nav-brand {
    font-size: 18px;
  }

  .hero {
    padding: 70px 12px 32px;
  }

  .hero-name {
    font-size: 24px;
  }

  .hero-typing {
    font-size: 14px;
  }

  .section {
    padding: 40px 12px;
  }

  .timeline {
    padding-left: 16px;
  }

  .timeline-dot {
    left: -14px;
    width: 10px;
    height: 10px;
  }
}
