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

:root {
  --bg:          #0a0f1e;
  --bg-alt:      #0d1526;
  --bg-card:     #111827;
  --bg-card-hover: #161f35;
  --border:      rgba(99, 130, 255, 0.15);
  --border-hover: rgba(99, 130, 255, 0.4);
  --accent:      #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.25);
  --green:       #10b981;
  --text:        #e2e8f0;
  --text-muted:  #94a3b8;
  --text-dim:    #64748b;
  --nav-h:       68px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

a { color: var(--accent-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

ul { list-style: none; }

img { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.navbar.scrolled { background: rgba(10, 15, 30, 0.97); }

.nav-logo {
  font-family: 'Fira Code', monospace;
  font-size: 1.25rem; font-weight: 600;
  color: var(--accent-light);
}
.logo-bracket { color: var(--accent); }

.nav-links {
  display: flex; gap: 32px;
  align-items: center;
}
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  font-size: .9rem; font-weight: 500;
  transition: color .2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.btn-po-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px;
  background: var(--accent);
  color: #fff !important;
  border-radius: 8px;
  font-size: .875rem; font-weight: 600;
  transition: background .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-po-cta:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-muted); border-radius: 2px;
  transition: all .3s;
}
.hamburger:hover span,
.hamburger[aria-expanded="true"] span { background: var(--text); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-weight: 600; font-size: .95rem;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-primary:hover {
  background: var(--accent-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 600; font-size: .95rem;
  transition: border-color .2s, background .2s, transform .2s;
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--text);
  transform: translateY(-2px);
}

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
  position: relative; overflow: hidden;
}

.hero-bg-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(99,102,241,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.06) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-bg-grid::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(99,102,241,.08) 0%, transparent 70%);
}

.hero-content {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 80px;
  max-width: 1000px; width: 100%;
}

/* Photo */
.hero-photo-wrap {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}

.hero-photo {
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px var(--accent-glow), 0 24px 60px rgba(0,0,0,.5);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  position: relative;
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-photo.no-photo .photo-placeholder { display: flex; }
.photo-placeholder {
  display: flex; /* shown when no img */
  align-items: center; justify-content: center;
  font-size: 4rem; font-weight: 800;
  color: var(--accent);
  font-family: 'Fira Code', monospace;
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #111827, #1e2942);
}
/* If img loads, hide placeholder */
.hero-photo img + .photo-placeholder { display: none; }

.hero-badge {
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  color: var(--accent-light);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: .8rem; font-weight: 600;
  letter-spacing: .05em;
}

/* Hero text */
.hero-text { flex: 1; }

.hero-greeting {
  color: var(--accent-light);
  font-family: 'Fira Code', monospace;
  font-size: .9rem; margin-bottom: 8px;
}
.hero-name {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.1;
  background: linear-gradient(135deg, #e2e8f0 30%, var(--accent-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.hero-role {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-muted); font-weight: 400;
  margin-bottom: 20px; min-height: 2em;
}
.typed-text { color: var(--accent-light); font-weight: 600; }
.cursor { animation: blink 1s infinite; color: var(--accent); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-summary {
  color: var(--text-muted);
  max-width: 520px; margin-bottom: 32px; line-height: 1.8;
}
.hero-summary strong { color: var(--text); }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }

.hero-social { display: flex; gap: 16px; }
.social-icon {
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: border-color .2s, color .2s, background .2s;
}
.social-icon svg { width: 20px; height: 20px; }
.social-icon:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

.scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-dim); font-size: .75rem; letter-spacing: .1em;
  animation: bounce 2s infinite;
}
.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg);
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* =========================================
   SECTIONS
   ========================================= */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  text-align: center; margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  font-family: 'Fira Code', monospace;
  font-size: .85rem; color: var(--accent-light);
  letter-spacing: .1em;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800; line-height: 1.2;
  margin-bottom: 12px;
}
.section-subtitle {
  color: var(--text-muted); font-size: 1rem; max-width: 500px; margin: 0 auto;
}

/* =========================================
   SOBRE
   ========================================= */
.sobre-grid {
  display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: start;
}
.sobre-text p { color: var(--text-muted); margin-bottom: 20px; line-height: 1.85; }
.sobre-text strong { color: var(--text); }
.sobre-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.stat-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.stat-number { display: block; font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: .8rem; color: var(--text-muted); letter-spacing: .05em; }

/* =========================================
   TIMELINE
   ========================================= */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--accent), transparent);
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-dot {
  position: absolute; left: -39px; top: 24px;
  width: 14px; height: 14px;
  background: var(--accent); border-radius: 50%;
  border: 3px solid var(--bg-alt);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  transition: border-color .2s, transform .2s;
}
.timeline-card:hover { border-color: var(--border-hover); transform: translateX(4px); }
.timeline-header {
  display: flex; align-items: flex-start;
  margin-bottom: 16px; gap: 12px;
}
.timeline-header > div:not(.company-logo):not(.company-logo-fallback):not(.edu-logo) {
  flex: 1;
}
.timeline-header .job-period { margin-left: auto; flex-shrink: 0; }
.job-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.company { color: var(--text-muted); font-size: .9rem; }
.company-type { color: var(--text-dim); }
.job-period {
  color: var(--accent-light);
  font-family: 'Fira Code', monospace;
  font-size: .8rem; white-space: nowrap;
  background: var(--accent-glow);
  padding: 4px 12px; border-radius: 20px;
}
.job-bullets { margin: 0 0 16px 0; }
.job-bullets li {
  color: var(--text-muted); font-size: .9rem;
  padding: 4px 0 4px 20px;
  position: relative;
}
.job-bullets li::before {
  content: '▸'; position: absolute; left: 0;
  color: var(--accent); font-size: .7rem; top: 6px;
}
.job-tags, .project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--accent-glow);
  border: 1px solid rgba(99,102,241,.3);
  color: var(--accent-light);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: .78rem; font-weight: 500;
}

/* =========================================
   SKILLS
   ========================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 16px 16px;
  padding: 24px 28px 28px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.skill-category:hover {
  border-color: var(--border-hover);
  border-top-color: var(--accent-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.skill-category h3 {
  font-size: .72rem; font-weight: 700; margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent-light);
}
.skill-category ul { display: flex; flex-direction: column; gap: 10px; }
.skill-category li {
  color: var(--text-muted); font-size: .875rem;
  padding: 6px 0 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  display: flex; align-items: center; gap: 10px;
}
.skill-category li:last-child { border-bottom: none; }
.skill-category li::before { display: none; }
.skill-category li::after {
  content: ''; display: block; margin-left: auto;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-glow); border: 1px solid rgba(99,102,241,.4);
  flex-shrink: 0;
}

/* =========================================
   HISTÓRIAS DE USUÁRIO
   ========================================= */
.us-showcase {
  display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: start;
}
.us-explanation p { color: var(--text-muted); margin-bottom: 32px; line-height: 1.8; }
.us-principles { display: flex; flex-direction: column; gap: 20px; }
.principle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0; padding: 14px 16px;
}
.principle strong { display: block; margin-bottom: 4px; font-size: .9rem; }
.principle p { color: var(--text-muted); font-size: .85rem; margin: 0; }

.us-examples { display: flex; flex-direction: column; gap: 24px; }
.us-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  transition: border-color .2s;
}
.us-card:hover { border-color: var(--border-hover); }
.us-card-tag {
  font-family: 'Fira Code', monospace;
  font-size: .78rem; color: var(--accent-light);
  margin-bottom: 16px; letter-spacing: .05em;
}
.us-card-story {
  background: var(--bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px; margin-bottom: 20px;
}
.us-format { color: var(--text); font-size: .9rem; line-height: 1.9; }
.us-format strong { color: var(--accent-light); }

.us-card-ac { }
.ac-label { color: var(--text-muted); font-size: .8rem; font-weight: 600; margin-bottom: 10px; letter-spacing: .05em; text-transform: uppercase; }
.us-card-ac ul { display: flex; flex-direction: column; gap: 10px; }
.us-card-ac li {
  color: var(--text-muted); font-size: .875rem; line-height: 1.7;
  padding-left: 20px; position: relative;
}
.us-card-ac li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--green); font-size: .8rem; top: 2px;
}

/* =========================================
   TEMPLATES
   ========================================= */
.templates-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px;
}
.template-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .2s, transform .2s;
}
.template-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.template-card h3 { font-size: 1rem; font-weight: 700; }
.template-card p { color: var(--text-muted); font-size: .875rem; line-height: 1.7; }
.template-sections {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 4px; flex: 1;
}
.template-sections li {
  color: var(--text-muted); font-size: .82rem;
  padding-left: 16px; position: relative;
}
.template-sections li::before {
  content: '—'; position: absolute; left: 0;
  color: var(--accent); font-size: .7rem;
}
.template-btn {
  display: inline-block; margin-top: 8px;
  color: var(--accent-light);
  font-size: .85rem; font-weight: 600;
  transition: color .2s;
}
.template-btn:hover { color: var(--accent); }

/* =========================================
   PROJETOS
   ========================================= */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 24px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color .2s, transform .2s;
}
.project-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.project-card.featured { grid-column: 1 / -1; border-color: rgba(99,102,241,.4); }

.project-header { display: flex; flex-direction: column; gap: 6px; }
.project-tag-list { display: flex; gap: 8px; flex-wrap: wrap; }
.project-type {
  display: inline-block;
  background: var(--accent-glow); border: 1px solid rgba(99,102,241,.3);
  color: var(--accent-light); padding: 3px 12px;
  border-radius: 20px; font-size: .78rem; font-weight: 600;
}
.project-featured {
  background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3);
  color: var(--green); padding: 3px 12px;
  border-radius: 20px; font-size: .78rem; font-weight: 600;
}
.project-card h3 { font-size: 1.2rem; font-weight: 700; }
.project-company { color: var(--text-muted); font-size: .875rem; }
.project-description { color: var(--text-muted); font-size: .9rem; line-height: 1.75; }

.project-my-role h4 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-dim); margin-bottom: 10px;
}
.project-my-role ul { display: flex; flex-direction: column; gap: 8px; }
.project-my-role li {
  color: var(--text-muted); font-size: .875rem; line-height: 1.6;
  padding-left: 20px; position: relative;
}
.project-my-role li::before {
  content: '▸'; position: absolute; left: 0;
  color: var(--accent); font-size: .7rem; top: 5px;
}

.project-results {
  display: flex; gap: 24px; padding: 20px;
  background: var(--bg);
  border-radius: 12px;
}
.result { display: flex; flex-direction: column; align-items: center; flex: 1; }
.result-number { font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.result-desc { font-size: .78rem; color: var(--text-muted); text-align: center; }

/* =========================================
   PROJETOS V2 — com banner
   ========================================= */
.projects-grid-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.project-card-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.project-card-v2:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

/* Banner */
.project-banner {
  position: relative; height: 180px;
  overflow: hidden; flex-shrink: 0;
}
.project-banner img {
  width: 100%; height: 100%;
  object-fit: cover; position: absolute; inset: 0;
  z-index: 1;
}
.project-banner-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(0px);
  transition: backdrop-filter .3s;
}
.project-card-v2:hover .project-banner-overlay { backdrop-filter: blur(2px); }
.banner-title {
  font-size: 1rem; font-weight: 800; color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
  letter-spacing: .02em;
}

/* Role pills on banner */
.project-roles-banner {
  position: absolute; bottom: 12px; left: 12px; z-index: 3;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.role-pill {
  padding: 3px 10px; border-radius: 20px;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  backdrop-filter: blur(8px);
}
.role-pill.analyst {
  background: rgba(99,102,241,.85); color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}
.role-pill.po {
  background: rgba(16,185,129,.85); color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}

/* Card body */
.project-card-body {
  padding: 24px 28px 28px;
  display: flex; flex-direction: column; gap: 14px; flex: 1;
}
.project-domain {
  font-family: 'Fira Code', monospace;
  font-size: .72rem; color: var(--text-dim);
  letter-spacing: .06em;
}
.project-card-v2 h3 { font-size: 1.05rem; font-weight: 800; line-height: 1.3; }

/* Highlights list */
.project-highlights { display: flex; flex-direction: column; gap: 14px; }
.highlight-item {
  background: var(--bg); border: 1px solid var(--border);
  border-left: 3px solid rgba(99,102,241,.4);
  border-radius: 0 10px 10px 0; padding: 12px 14px;
  transition: border-color .2s, border-left-color .2s;
}
.highlight-item:hover { border-color: rgba(99,102,241,.3); border-left-color: var(--accent); }
.highlight-item strong { display: block; font-size: .85rem; margin-bottom: 3px; }
.highlight-item p { color: var(--text-muted); font-size: .8rem; line-height: 1.6; margin: 0; }

/* Live link */
.project-live-link {
  display: inline-flex; align-items: center;
  color: var(--green); font-size: .82rem; font-weight: 600;
  border: 1px solid rgba(16,185,129,.3);
  background: rgba(16,185,129,.08);
  padding: 6px 14px; border-radius: 8px;
  width: fit-content;
  transition: background .2s, border-color .2s;
}
.project-live-link:hover {
  background: rgba(16,185,129,.15);
  border-color: rgba(16,185,129,.5);
  color: var(--green);
}

/* Note */
.projects-note {
  display: flex; align-items: center; gap: 10px;
  margin-top: 24px;
  color: var(--text-dim); font-size: .82rem;
  padding: 14px 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px;
}
.projects-note p { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .projects-grid-v2 { grid-template-columns: 1fr; }
}

/* =========================================
   FORMAÇÃO
   ========================================= */
.formation-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.formation-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 32px;
}
.formation-block-title {
  font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.formation-icon { font-size: 1.3rem; }

.education-item { margin-bottom: 24px; }
.education-item:last-child { margin-bottom: 0; }
.edu-header {
  display: flex; align-items: center;
  margin-bottom: 8px; gap: 14px;
}
.edu-header > div:not(.edu-logo) { flex: 1; }
.edu-header h4 { font-size: .95rem; font-weight: 700; }
.edu-institution { color: var(--text-muted); font-size: .85rem; }
.edu-period {
  color: var(--accent-light); font-family: 'Fira Code', monospace;
  font-size: .78rem; white-space: nowrap;
}
.edu-desc { color: var(--text-muted); font-size: .85rem; }

.cert-list { display: flex; flex-direction: column; gap: 16px; }
.cert-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px; background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color .2s;
}
.cert-item:hover { border-color: var(--accent); }
.cert-badge {
  width: 64px; height: 64px; flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  padding: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
}
.cert-badge img {
  width: 100%; height: 100%;
  object-fit: contain;
}
/* fallback text when no image */
.cert-badge-text {
  width: 64px; height: 64px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 800; color: #fff; text-align: center;
  line-height: 1.2; padding: 6px; letter-spacing: .02em;
}
.cert-item h4 { font-size: .9rem; font-weight: 700; margin-bottom: 3px; }
.cert-item p { color: var(--text-muted); font-size: .8rem; }
.cert-link { margin-left: auto; font-size: .78rem; white-space: nowrap; color: var(--accent-light); font-weight: 600; }
/* In-progress indicator */
.cert-wip {
  margin-left: auto; font-size: .72rem; font-weight: 700; white-space: nowrap;
  color: var(--green); background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.3); padding: 3px 10px; border-radius: 20px;
}

/* Company logos in timeline */
.company-logo {
  width: 40px; height: 40px; flex-shrink: 0;
  background: #fff; border-radius: 8px; padding: 4px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border: 1px solid rgba(255,255,255,.08);
}
.company-logo img {
  width: 100%; height: 100%; object-fit: contain;
}
.company-logo-fallback {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: .6rem; font-weight: 800; color: var(--accent-light);
  text-align: center; line-height: 1.1; padding: 4px;
}

/* Education logos */
.edu-logo {
  width: 48px; height: 48px; flex-shrink: 0;
  background: #fff; border-radius: 10px; padding: 5px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border: 1px solid rgba(255,255,255,.06);
  flex: 0 0 auto;
}
.edu-logo img { width: 100%; height: 100%; object-fit: contain; }

/* Courses with logos */
.courses-list-grid { display: flex; flex-direction: column; gap: 8px; }
.course-pill {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .875rem; color: var(--text-muted);
  transition: border-color .2s, background .2s;
}
.course-pill:hover { border-color: rgba(99,102,241,.3); background: rgba(99,102,241,.03); }
.course-logo-wrap {
  width: 36px; height: 24px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 6px; padding: 3px;
  overflow: hidden;
}
.course-logo-wrap img, .course-logo-wrap svg {
  max-width: 100%; max-height: 100%; object-fit: contain;
}
.course-logo-wrap.dark { background: #1c1d1f; }
.course-logo-wrap.pm3bg { background: #1d2d44; }
.course-pill-name { flex: 1; color: var(--text); font-size: .85rem; font-weight: 500; }
.course-pill-hours {
  font-family: 'Fira Code', monospace;
  font-size: .72rem; color: var(--text-dim); white-space: nowrap;
  background: var(--bg-card); padding: 2px 8px; border-radius: 6px;
  border: 1px solid var(--border);
}

/* Books */
.books-block { margin-top: 0; }
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.book-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 20px;
  transition: border-color .2s, transform .2s;
}
.book-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.book-cover {
  border-radius: 10px; overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--bg-card);
}
.book-cover img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.book-info h4 { font-size: .875rem; font-weight: 700; margin-bottom: 4px; }
.book-author { color: var(--accent-light); font-size: .78rem; margin-bottom: 8px; }
.book-takeaway { color: var(--text-muted); font-size: .78rem; line-height: 1.5; font-style: italic; }

/* Cursos complementares pills */
.courses-list-grid {
  display: flex; flex-direction: column; gap: 10px;
}
.course-pill {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .875rem; color: var(--text-muted);
  transition: border-color .2s;
}
.course-pill:hover { border-color: rgba(99,102,241,.3); }
.course-pill-provider {
  font-size: .7rem; font-weight: 700; padding: 3px 10px;
  border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}
.pm3-pill { background: rgba(59,130,246,.15); border: 1px solid rgba(59,130,246,.3); color: #60a5fa; }
.cv-pill  { background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.3); color: var(--accent-light); }
.ch-pill  { background: rgba(16,185,129,.1);  border: 1px solid rgba(16,185,129,.3); color: var(--green); }
.uni-pill { background: rgba(234,179,8,.1);   border: 1px solid rgba(234,179,8,.3);  color: #f59e0b; }
.course-pill-hours {
  margin-left: auto; font-family: 'Fira Code', monospace;
  font-size: .72rem; color: var(--text-dim); white-space: nowrap;
}

/* =========================================
   BLOG
   ========================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
  display: flex; flex-direction: column;
}
.blog-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.blog-card.featured-post { grid-column: 1 / -1; display: grid; grid-template-columns: 280px 1fr; }

.blog-img {
  height: 180px;
  display: flex; align-items: flex-end; padding: 16px;
  position: relative;
}
.featured-post .blog-img { height: auto; min-height: 200px; }
.blog-category {
  background: rgba(0,0,0,.5);
  color: #fff; padding: 4px 12px;
  border-radius: 20px; font-size: .75rem; font-weight: 600;
}
.blog-content { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-date { color: var(--text-dim); font-size: .8rem; font-family: 'Fira Code', monospace; }
.blog-content h3 a { color: var(--text); font-size: 1rem; font-weight: 700; transition: color .2s; }
.blog-content h3 a:hover { color: var(--accent-light); }
.blog-content p { color: var(--text-muted); font-size: .875rem; line-height: 1.7; }
.blog-read-more { color: var(--accent-light); font-size: .875rem; font-weight: 600; margin-top: auto; }
.blog-read-more:hover { color: var(--accent); }
.blog-cta { text-align: center; }

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-content {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 48px; margin-bottom: 48px;
}
.footer-left { max-width: 320px; }
.footer-logo {
  font-family: 'Fira Code', monospace;
  font-size: 1.5rem; font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 16px;
}
.footer-left p { color: var(--text-muted); font-size: .9rem; line-height: 1.7; margin-bottom: 12px; }
.footer-email { color: var(--accent-light); font-weight: 600; }
.footer-links { display: flex; gap: 64px; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin-bottom: 4px; }
.footer-nav a { color: var(--text-muted); font-size: .875rem; transition: color .2s; }
.footer-nav a:hover { color: var(--accent-light); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--border);
  text-align: center; color: var(--text-dim); font-size: .8rem;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .hero-content { flex-direction: column; gap: 48px; text-align: center; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .hero-summary { text-align: center; }
  .sobre-grid { grid-template-columns: 1fr; }
  .sobre-stats { max-width: 320px; }
  .us-showcase { grid-template-columns: 1fr; }
  .formation-grid { grid-template-columns: 1fr; }
  .blog-card.featured-post { grid-template-columns: 1fr; grid-column: auto; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: auto; }
  .footer-content { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 24px; }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    background: rgba(10, 15, 30, 0.98);
    border: 1px solid var(--border-hover);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
  }
  .navbar.menu-open .nav-links { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    width: 100%;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.04);
  }
  .nav-links a::after { display: none; }
  .nav-links a.active {
    border-color: var(--accent);
    background: var(--accent-glow);
  }
  .hamburger { display: flex; }
  .navbar { padding: 0 20px; }
  .btn-po-cta,
  .nav-back-link {
    margin-left: auto;
    margin-right: 12px;
    padding: 8px 14px;
    font-size: .8rem;
  }
  .hero-photo { width: 160px; height: 160px; }
  .blog-grid { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: repeat(2, 1fr); }
}
