/* ============================================================
   Christopher Oliveira — portfólio
   CSS próprio, sem framework. Dark por padrão, light via .light-mode.
   ============================================================ */

:root {
  --bg: #100f0d;
  --bg-soft: #171511;
  --border: #26231c;
  --text: #e9eaee;
  --muted: #9aa0ab;
  --accent: #d9a05b;
  --accent-soft: rgba(217, 160, 91, 0.12);
  --chip-dev: #9aa0ab;
  --chip-dev-soft: rgba(154, 160, 171, 0.14);
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;
}

body.light-mode {
  --bg: #faf9f7;
  --bg-soft: #f2f0eb;
  --border: #e6e2d9;
  --text: #1e2025;
  --muted: #5d6069;
  --accent: #a06a29;
  --accent-soft: rgba(160, 106, 41, 0.1);
  --chip-dev: #5d6069;
  --chip-dev-soft: rgba(93, 96, 105, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}

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

a { color: var(--text); text-decoration: none; }

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

/* ---------- acessibilidade ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 8px 16px;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-dot { color: var(--accent); }
.brand-mono.muted { color: var(--muted); }

.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.site-nav a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--muted); }

.lang-btn {
  width: auto;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
}

.icon-sun { display: none; }
body.light-mode .icon-sun { display: block; }
body.light-mode .icon-moon { display: none; }

.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  padding: 96px 24px 40px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.kicker-sep { opacity: 0.5; }

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

.hero-name {
  font-size: clamp(2.5rem, 6.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 12px;
}

.hero-role {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 36px;
}

.hero-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn-solid {
  background: var(--text);
  color: var(--bg);
}
.btn-solid:hover { opacity: 0.85; }

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--muted); }

.hero-social {
  display: flex;
  gap: 18px;
  margin-left: 8px;
}

.hero-social a {
  font-size: 0.88rem;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease;
}
.hero-social a:hover { color: var(--accent); }

/* ---------- seções ---------- */
.section { padding: 72px 24px; }

.section-head { margin-bottom: 40px; }

.section-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}

.section-head h2 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--muted);
  margin-top: 8px;
  max-width: 560px;
  font-size: 0.97rem;
}

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

.about-text p + p { margin-top: 18px; }
.about-text { color: var(--muted); }
.about-text strong { color: var(--text); }

.about-photo img {
  border-radius: 12px;
  border: 1px solid var(--border);
  width: 100%;
  height: auto;
}

/* ---------- projetos ---------- */
.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.case:nth-of-type(odd) .case-media { order: 2; }

.case-media {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.case-media:hover {
  transform: translateY(-4px);
  border-color: var(--muted);
}
.case-media img { width: 100%; height: auto; }

.case-body h3,
.case-featured h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.case-body > p:not(.case-status):not(.case-stack):not(.case-links) {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.case-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 99px;
}

.chip-live { background: var(--accent-soft); color: var(--accent); }
.chip-dev { background: var(--chip-dev-soft); color: var(--chip-dev); }

.chip-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.case-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 6px 0 10px;
}

.case-stack span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
}
.case-stack span::before {
  content: "·";
  margin-right: 14px;
  opacity: 0.5;
}
.case-stack span:first-child::before { content: ""; margin: 0; }

.case-links a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
}
.case-links a:hover { text-decoration: underline; }

/* case destaque (Guivya) */
.case-featured {
  display: block;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px;
  margin-bottom: 48px;
}

.case-tagline {
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 8px;
}

.case-featured-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin: 24px 0;
}

.case-featured-body h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.case-featured-body h4:not(:first-child) { margin-top: 20px; }

.case-featured-body p {
  color: var(--muted);
  font-size: 0.95rem;
}

.case-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: center;
}

.case-highlights li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--muted);
}

.case-highlights li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
}

.prod-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

/* outros projetos */
.more-projects {
  border-top: 1px solid var(--border);
  padding-top: 36px;
}

.more-projects h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.more-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.more-list li strong { font-size: 0.98rem; }
.more-list li span { color: var(--muted); font-size: 0.95rem; }
.more-list li > a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}
.more-list li > a:hover { text-decoration: underline; }

/* ---------- stack ---------- */
.stack-list {
  border-top: 1px solid var(--border);
}

.stack-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.stack-row dt {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  font-weight: 500;
  padding-top: 2px;
}

.stack-row dd { color: var(--muted); font-size: 0.95rem; }

/* ---------- experiência ---------- */
.exp-list { display: flex; flex-direction: column; }

.exp-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.exp-period {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 4px;
  line-height: 1.5;
}

.exp-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.exp-org {
  font-size: 0.88rem;
  color: var(--accent);
  margin: 2px 0 10px;
}

.exp-body > p:not(.exp-org) {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
  max-width: 640px;
}

.exp-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exp-body ul li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.exp-body ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.certs {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.certs h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.certs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.certs-list a {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.15s ease;
}
.certs-list a:hover { color: var(--accent); }

/* ---------- contato ---------- */
.contact-block { padding-bottom: 24px; }

.contact-email {
  display: inline-block;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  border-bottom: 2px solid var(--border);
  padding-bottom: 4px;
  margin-bottom: 28px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.contact-email:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.contact-links a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.15s ease;
}
.contact-links a:hover { color: var(--accent); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-note { font-family: var(--font-mono); font-size: 0.75rem; }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .case-media { transition: none; }
}

/* ---------- responsivo ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 260px; }

  .case-featured-body { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .site-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: none;
    padding: 8px 0;
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 12px 24px;
    font-size: 1rem;
  }

  .nav-toggle { display: inline-flex; }

  .hero { padding-top: 64px; }

  .case {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .case:nth-of-type(odd) .case-media { order: 0; }

  .case-featured { padding: 24px; }

  .stack-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .exp-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .exp-period br { display: none; }

  .section { padding: 56px 24px; }

  .footer-inner { flex-direction: column; }
}
