/* ===== Cores em degradê ===== */
:root {
  --bg-white: #ffffff;
  --bg-black: #000000;
  --bg: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f8f8;
  --text: #111111;
  --text-muted: #444444;
  --accent: #111111;
  --accent-hover: #333333;
  --border: #e0e0e0;
  --radius: 14px;
  --radius-sm: 10px;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.2s ease;
  --space-section: 5rem;
  --space-card: 1.75rem;
  --max-width: 720px;
  /* Degradês */
  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 30%, #0f0f23 70%, #000000 100%);
  --gradient-dark: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
  --gradient-light: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
  --gradient-accent: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --gradient-accent-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
  --gradient-border: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3), transparent);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-white);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: #6366f1;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #8b5cf6;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Skip link (acessibilidade) ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--gradient-accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: top var(--transition);
}

.skip-link:focus {
  top: 1rem;
}

/* ===== Animações ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal 0.6s ease forwards;
}

[data-animate]:nth-child(1) { animation-delay: 0.05s; }
[data-animate]:nth-child(2) { animation-delay: 0.1s; }
[data-animate]:nth-child(3) { animation-delay: 0.15s; }
[data-animate]:nth-child(4) { animation-delay: 0.2s; }
[data-animate]:nth-child(5) { animation-delay: 0.25s; }
[data-animate]:nth-child(6) { animation-delay: 0.3s; }
[data-animate]:nth-child(7) { animation-delay: 0.35s; }
[data-animate]:nth-child(8) { animation-delay: 0.4s; }
[data-animate]:nth-child(9) { animation-delay: 0.45s; }
[data-animate]:nth-child(10) { animation-delay: 0.5s; }
[data-animate]:nth-child(11) { animation-delay: 0.55s; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-animate-block] .section-heading,
[data-animate-item] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-animate-block].is-visible .section-heading,
[data-animate-block].is-visible [data-animate-item] {
  opacity: 1;
  transform: translateY(0);
}

[data-animate-block] [data-animate-item]:nth-child(2) { transition-delay: 0.05s; }
[data-animate-block] [data-animate-item]:nth-child(3) { transition-delay: 0.1s; }
[data-animate-block] [data-animate-item]:nth-child(4) { transition-delay: 0.15s; }
[data-animate-block] [data-animate-item]:nth-child(5) { transition-delay: 0.2s; }
[data-animate-block] [data-animate-item]:nth-child(6) { transition-delay: 0.25s; }
[data-animate-block] .curso-card:nth-child(2) { transition-delay: 0.05s; }
[data-animate-block] .curso-card:nth-child(3) { transition-delay: 0.1s; }
[data-animate-block] .curso-card:nth-child(4) { transition-delay: 0.15s; }
[data-animate-block] .curso-card:nth-child(5) { transition-delay: 0.2s; }
[data-animate-block] .curso-card:nth-child(6) { transition-delay: 0.25s; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid transparent;
  border-image: var(--gradient-border) 1;
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 1.5rem;
  max-width: calc(var(--max-width) + 3rem);
  margin: 0 auto;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.15rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  transition: opacity var(--transition);
}

.nav-logo:hover {
  opacity: 0.85;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link-cta {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.nav-link-cta:hover {
  opacity: 0.9;
}

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

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 5rem;
  overflow: hidden;
  background: var(--gradient-hero);
  color: #ffffff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 80% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse 50% 30% at 20% 80%, rgba(168, 85, 247, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-photo-wrap {
  flex-shrink: 0;
}

.hero-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-text {
  flex: 1;
  min-width: 280px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.hero-title-last {
  display: block;
  margin-top: 0.1em;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(199, 210, 254, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.hero-tagline {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.35rem;
}

.hero-meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  color: #312e81;
  font-weight: 700;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  color: #312e81;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(199, 210, 254, 0.6)) 1;
}

.btn-secondary:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, #a5b4fc, #c4b5fd, transparent);
  border-radius: 2px;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ===== Seções – alternância preto e branco ===== */
.section {
  padding: var(--space-section) 0;
  border-top: 1px solid var(--border);
}

.section-sobre { background: var(--gradient-light); }
.section-experiencia { background: var(--gradient-dark); color: #ffffff; border-top: 1px solid rgba(99, 102, 241, 0.2); }
.section-formacao { background: var(--gradient-light); }
.section-cursos { background: var(--gradient-dark); color: #ffffff; border-top: 1px solid rgba(99, 102, 241, 0.2); }
.section-extras { background: var(--gradient-light); }
.section-contato { background: var(--gradient-dark); color: #ffffff; border-top: 1px solid rgba(99, 102, 241, 0.2); }

.section-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.section-sobre .section-heading,
.section-formacao .section-heading,
.section-extras .section-heading {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-experiencia .section-heading,
.section-cursos .section-heading,
.section-contato .section-heading {
  color: #ffffff;
  background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Sobre ===== */
.section-sobre .section-heading {
  margin-bottom: 1.5rem;
}

.sobre-layout {
  display: grid;
  gap: 2rem;
}

.sobre-content {
  max-width: 58ch;
}

.sobre-lead {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.sobre-content p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.sobre-content p:last-child {
  margin-bottom: 0;
}

.sobre-aside {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--gradient-accent-soft);
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 999px;
  transition: var(--transition);
}

.pill:hover {
  background: var(--gradient-accent);
  color: #fff;
  border-color: transparent;
}

/* ===== Cards (Experiência, Formação) ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-card) 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-accent);
  border-radius: var(--radius) 0 0 var(--radius);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.06);
}

/* Cards nas seções com degradê escuro */
.section-experiencia .card,
.section-cursos .curso-card,
.section-contato .contato-item {
  background: linear-gradient(145deg, rgba(26, 26, 46, 0.9) 0%, rgba(15, 15, 35, 0.95) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.section-experiencia .card::before {
  background: var(--gradient-accent);
}

.section-experiencia .card:hover,
.section-cursos .curso-card:hover {
  background: linear-gradient(145deg, rgba(30, 30, 55, 0.95) 0%, rgba(20, 20, 45, 0.98) 100%);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1);
}

.section-experiencia .card-title,
.section-experiencia .card-desc,
.section-cursos .curso-name,
.section-contato .contato-item-value {
  color: #ffffff;
}

.section-experiencia .card-meta,
.section-experiencia .card-list li,
.section-cursos .curso-org,
.section-cursos .curso-carga,
.section-contato .contato-item-label,
.section-contato .contato-intro {
  color: rgba(255, 255, 255, 0.75);
}

.section-contato .contato-item {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

a.section-contato .contato-item:hover {
  border-color: rgba(99, 102, 241, 0.5);
  background: linear-gradient(145deg, rgba(30, 30, 55, 0.98) 0%, rgba(26, 26, 46, 0.98) 100%);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.section-experiencia .card-header {
  border-bottom-color: rgba(99, 102, 241, 0.2);
}

.section-cursos .curso-org {
  background: linear-gradient(135deg, #c7d2fe, #e9d5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.card-meta {
  font-size: 0.9rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.card-list {
  list-style: none;
}

.card-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--gradient-accent);
  border-radius: 50%;
}

.section-experiencia .card-list li::before {
  background: linear-gradient(135deg, #a5b4fc, #c4b5fd);
}

.card-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===== Cursos (grid de cards) ===== */
.cursos-grid {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.curso-card {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
}

.curso-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(37, 99, 235, 0.2);
}

.curso-org {
  font-weight: 600;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 0.9rem;
}

.curso-name {
  color: var(--text-muted);
  font-weight: 500;
}

.curso-carga {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Extras (Ferramentas e idiomas) ===== */
.extras-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.extras-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  transition: var(--transition);
}

.extras-card:hover {
  border-color: rgba(37, 99, 235, 0.2);
}

.extras-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.extras-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.chip-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: var(--transition);
}

.chip:hover {
  background: var(--gradient-accent-soft);
  border-color: rgba(99, 102, 241, 0.4);
  color: #6366f1;
}

/* ===== Contato ===== */
.section-contato .section-heading {
  color: #fff;
}

.contato-intro {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.contato-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.contato-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  color: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

a.contato-item:hover {
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.contato-item-icon {
  font-size: 1.5rem;
}

.contato-item-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.contato-item-value {
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
}

.contato-item-static {
  cursor: default;
}

/* ===== Footer ===== */
.footer {
  padding: 2rem 0;
  border-top: 2px solid transparent;
  border-image: var(--gradient-border) 1;
  text-align: center;
  background: var(--gradient-dark);
}

.footer-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ===== Responsivo ===== */
@media (max-width: 768px) {
  :root {
    --space-section: 4rem;
  }

  .nav-menu {
    position: fixed;
    top: 68px;
    right: -100%;
    width: 85%;
    max-width: 280px;
    height: calc(100vh - 68px);
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    flex-direction: column;
    padding: 2rem;
    gap: 0;
    transition: right 0.3s ease;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    border-bottom: 1px solid var(--border);
  }

  .nav-link {
    display: block;
    padding: 1rem 0;
    color: var(--text);
  }

  .nav-toggle {
    display: flex;
  }

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

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

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

  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .hero-photo-wrap {
    margin: 0 auto;
  }

  .hero-photo {
    width: 180px;
    height: 180px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .curso-card {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 1rem;
  }

  .curso-org {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 5rem 0 4rem;
  }

  .hero-photo {
    width: 160px;
    height: 160px;
  }

  .section {
    padding: 3.5rem 0;
  }

  .card {
    padding: 1.5rem;
  }

  .section-heading {
    font-size: 1.35rem;
  }
}
