/* ========== Design tokens ========== */
:root {
  --bg: #0a0e17;
  --bg-alt: #0d1320;
  --surface: #121a29;
  --surface-border: #1f2a3d;
  --text: #e7ecf5;
  --text-dim: #9aa7bd;
  --text-faint: #6b7688;
  --accent: #38bdf8;
  --accent-2: #818cf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1120px;
  --font-head: "Space Grotesk", Inter, "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.highlight {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ========== Background decor ========== */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
}
.glow-1 {
  width: 480px;
  height: 480px;
  background: var(--accent);
  top: -160px;
  right: -120px;
}
.glow-2 {
  width: 520px;
  height: 520px;
  background: var(--accent-2);
  bottom: -200px;
  left: -160px;
  opacity: 0.18;
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(10, 14, 23, 0.75);
  border-bottom: 1px solid var(--surface-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.logo-dot { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color 0.2s ease;
  position: relative;
}
.nav-link:hover { color: var(--text); }

.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #06111f;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(56, 189, 248, 0.5);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 24px 20px;
  border-bottom: 1px solid var(--surface-border);
  background: rgba(10, 14, 23, 0.98);
}
.mobile-nav.open { display: flex; }
.mobile-link {
  padding: 12px 0;
  border-bottom: 1px solid var(--surface-border);
  color: var(--text-dim);
  font-size: 1rem;
}
.mobile-link:last-child { border-bottom: none; }

/* ========== Hero ========== */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 96px 24px 88px;
  min-height: calc(100vh - 72px);
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.hero-text h1 {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 18px;
}

.hero-role {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 22px;
  line-height: 1.4;
}

.hero-desc {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 34px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #06111f;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(56, 189, 248, 0.55);
}

.btn-ghost {
  border: 1px solid var(--surface-border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-socials {
  display: flex;
  gap: 18px;
}
.hero-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.hero-socials svg { width: 19px; height: 19px; }
.hero-socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.hero-media {
  position: relative;
  justify-self: center;
}

.photo-frame {
  width: min(340px, 100%);
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  position: relative;
  background: var(--surface);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(56,189,248,0.18), transparent 45%);
  pointer-events: none;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== Sections ========== */
.section {
  padding: 96px 0;
}
.section-alt {
  background: linear-gradient(180deg, transparent, var(--bg-alt), transparent);
}

.section-eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 760px;
  margin-bottom: 18px;
}

.section-sub {
  color: var(--text-dim);
  max-width: 640px;
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  margin-top: 40px;
  align-items: start;
}

.about-text p {
  color: var(--text-dim);
  margin-bottom: 20px;
  font-size: 1.02rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.tag {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.about-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 26px;
}
.info-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  margin-bottom: 18px;
}
.info-card ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.info-card li { display: flex; gap: 12px; align-items: flex-start; }
.info-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
  flex-shrink: 0;
}
.info-card li strong { font-size: 0.92rem; display: block; }
.info-card li p { color: var(--text-faint); font-size: 0.88rem; margin-top: 2px; }
.location { color: var(--text-dim); font-size: 0.95rem; margin-top: 6px; }
.location:first-of-type { margin-top: 0; }

.tags-tight { margin-top: 0; gap: 8px; }
.tag-sm { font-size: 0.78rem; padding: 6px 12px; }

/* ---- Timeline (Experiência) ---- */
.timeline {
  position: relative;
  margin-top: 40px;
  padding-left: 32px;
  border-left: 2px solid var(--surface-border);
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.timeline-item {
  position: relative;
}

.timeline-marker {
  position: absolute;
  left: -39px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 4px;
}

.timeline-head h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.timeline-org {
  color: var(--text-faint);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.timeline-content p:last-child {
  color: var(--text-dim);
  font-size: 0.98rem;
  max-width: 720px;
}

/* ---- Cards grid (Atuação) ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 20px 40px -20px rgba(56, 189, 248, 0.25);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }

.card h3 {
  font-family: var(--font-head);
  font-size: 1.08rem;
  margin-bottom: 10px;
  font-weight: 600;
}
.card p {
  color: var(--text-dim);
  font-size: 0.94rem;
}

.card-course p {
  margin-bottom: 18px;
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.4);
}
.contact-card .card-icon { margin-bottom: 0; flex-shrink: 0; }
.contact-card h3 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 4px; }
.contact-card p { color: var(--text-dim); font-size: 0.9rem; word-break: break-word; }

/* ========== Footer ========== */
.site-footer {
  border-top: 1px solid var(--surface-border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-inner p {
  color: var(--text-faint);
  font-size: 0.88rem;
}
.back-to-top {
  color: var(--text-dim);
  font-size: 0.88rem;
  transition: color 0.2s ease;
}
.back-to-top:hover { color: var(--accent); }

/* ========== Scroll reveal ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 64px;
    text-align: left;
  }
  .hero-media { justify-self: start; margin-top: 24px; }
  .about-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .cards-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .section { padding: 72px 0; }
}

@media (max-width: 480px) {
  .hero-actions .btn { flex: 1; }
}
