/* =====================================================
   PORTFÓLIO — GEOVANE FERNANDES DO PRADO
   Arquivo: style.css
   ===================================================== */

/* ── Variáveis ── */
:root {
  --bg:       #080c14;
  --surface:  #0d1321;
  --surface2: #111827;
  --border:   rgba(0, 200, 255, 0.1);
  --border-h: rgba(0, 200, 255, 0.3);
  --accent:   #00c8ff;
  --accent2:  #7c5cf5;
  --text:     #e2e8f4;
  --muted:    #64748b;
  --green:    #00e5a0;

  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Cascadia Code', 'Fira Code', 'Consolas', 'Courier New', monospace;

  --radius:    12px;
  --radius-sm: 8px;
  --tr: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: default;
}
a { text-decoration: none; color: inherit; }
strong { color: var(--text); font-weight: 600; }

/* ── Cursor ── */
.cursor {
  width: 12px; height: 12px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, background .2s;
  mix-blend-mode: screen;
}
.cursor.hover { width: 36px; height: 36px; background: rgba(0,200,255,.12); }

/* ── Utilitários ── */
.mono   { font-family: var(--font-mono); }
.accent { color: var(--accent); }

/* ── Container ── */
.container { max-width: 1060px; margin: 0 auto; padding: 0 28px; }

/* ── Fundo ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 5% 15%,  rgba(0,200,255,.06) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 95% 85%, rgba(124,92,245,.06) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}

/* ── Navbar ── */
#navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,12,20,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--tr);
}
#navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.4); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 28px; max-width: 1060px; margin: 0 auto;
}
.nav-logo { font-family: var(--font-mono); font-size: 15px; font-weight: 700; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
  transition: color var(--tr); position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--accent); transition: width var(--tr);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

/* ── Botões ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #080c14;
  font-weight: 700; font-size: 14px;
  padding: 13px 26px; border-radius: var(--radius-sm);
  transition: opacity var(--tr), transform var(--tr), box-shadow var(--tr);
}
.btn-primary:hover {
  opacity: .88; transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,200,255,.25);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-h); color: var(--text);
  font-size: 14px; padding: 13px 26px; border-radius: var(--radius-sm);
  transition: border-color var(--tr), color var(--tr), transform var(--tr);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-lg { padding: 10px 22px; font-size: 14px; }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 80px 0 60px; position: relative; z-index: 1;
}
.hero-container {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}

/* ── Avatar / Foto ── */

/*
  ⚙️ TAMANHO DA FOTO — ALTERE AQUI
  -------------------------------------------------
  Troque o valor de --avatar-size para redimensionar
  a foto de perfil no hero.

  Exemplos:
    60px  → pequena
    80px  → média  ← padrão atual
    110px → grande
    140px → muito grande
  ------------------------------------------------- */
:root { --avatar-size: 141px; }

.avatar-wrap {
  display: flex; align-items: center; gap: 16px; margin-bottom: 28px;
}

.avatar-ring {
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: 50%;
  padding: 3px;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;

  border: 2px solid rgba(0, 200, 255, 0.35);
}

.avatar-img {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 50%;
  display: block;
  image-rendering: high-quality;
  -webkit-image-rendering: optimizeQuality;
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
  -webkit-font-smoothing: antialiased;
}

/* Placeholder exibido quando não há foto */
.avatar-placeholder {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--surface2);
  display: none;           /* JS mostra quando a img falha */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: default;
  position: relative;
}

.avatar-initials {
  font-family: var(--font-mono);
  font-size: calc(var(--avatar-size) * 0.24);
  font-weight: 700;
  color: var(--accent);
}

/* Tooltip de instrução */
.avatar-hint {
  display: none;
  position: absolute;
  top: 110%; left: 50%;
  transform: translateX(-50%);
  background: var(--surface2);
  border: 1px solid var(--border-h);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 11px; font-family: var(--font-mono);
  color: var(--muted); white-space: nowrap;
  z-index: 10; text-align: center; line-height: 1.6;
}
.avatar-placeholder:hover .avatar-hint { display: block; }

.avatar-status {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.status-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
}

/* ── Hero texto ── */
.hero-title {
  display: flex; flex-direction: column;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -.03em; margin-bottom: 16px;
}
.hero-role { font-family: var(--font-mono); font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.hero-desc { font-size: 15px; color: var(--muted); line-height: 1.75; max-width: 440px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-scroll { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.scroll-line { width: 48px; height: 1px; background: linear-gradient(90deg, var(--muted), transparent); }

/* ── Code window ── */
.code-window {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.code-bar {
  background: var(--surface2); border-bottom: 1px solid var(--border);
  padding: 12px 16px; display: flex; align-items: center; gap: 8px;
}
.dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28c840; }
.code-filename { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-left: 8px; }
.code-body {
  font-family: var(--font-mono); font-size: 13px; line-height: 1.8;
  padding: 24px; color: #abb2bf; white-space: pre; overflow-x: auto;
}
.kw  { color: #c678dd; }
.cls { color: #e5c07b; }
.fn  { color: #61afef; }
.tp  { color: #e5c07b; }
.str { color: #98c379; }
.num { color: #d19a66; }
.cm  { color: #5c6370; font-style: italic; }

/* ── Seções ── */
.section { padding: 96px 0; border-top: 1px solid var(--border); position: relative; z-index: 1; }
.sec-label { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .1em; margin-bottom: 12px; }
.sec-title { font-size: clamp(1.8rem,3vw,2.4rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: 48px; }

/* ── Sobre ── */
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-bottom: 56px; }
.sobre-text p { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 18px; text-align: center; display: flex; flex-direction: column; gap: 6px;
  transition: border-color var(--tr), transform var(--tr);
}
.stat-card:hover { border-color: var(--border-h); transform: translateY(-2px); }
.stat-num { font-family: var(--font-mono); font-size: 30px; font-weight: 800; display: block; }
.stat-desc { font-size: 12px; color: var(--muted); }
.skills-block { border-top: 1px solid var(--border); padding-top: 40px; }
.skills-label { font-size: 12px; color: var(--muted); letter-spacing: .06em; margin-bottom: 20px; }
.skills-list { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-pill {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent);
  background: rgba(0,200,255,.06); border: 1px solid rgba(0,200,255,.15);
  padding: 7px 16px; border-radius: var(--radius-sm);
  transition: background var(--tr), border-color var(--tr), transform var(--tr);
}
.skill-pill:hover { background: rgba(0,200,255,.12); border-color: var(--accent); transform: translateY(-2px); }

/* ── Projetos ── */
.projetos-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.projeto {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color var(--tr), box-shadow var(--tr);
  opacity: 0; transform: translateY(28px);
}
.projeto.show { opacity: 1; transform: translateY(0); transition: opacity .6s ease, transform .6s ease, border-color var(--tr), box-shadow var(--tr); }
.projeto:nth-child(1).show { transition-delay: .05s; }
.projeto:nth-child(2).show { transition-delay: .15s; }
.projeto:nth-child(3).show { transition-delay: .25s; }
.projeto:nth-child(4).show { transition-delay: .35s; }
.projeto:hover { border-color: var(--border-h); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,200,255,.07); }
.projeto-wip { opacity: .45 !important; cursor: default; border-style: dashed; }
.projeto-wip:hover { transform: none; box-shadow: none; }
.proj-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.proj-lang { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.lang-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.java-dot { background: #f89820; }
.web-dot  { background: #e34c26; }
.proj-arrow { width: 18px; height: 18px; color: var(--muted); transition: color var(--tr), transform var(--tr); }
.projeto:hover .proj-arrow { color: var(--accent); transform: translate(2px,-2px); }
.projeto h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 10px; transition: color var(--tr); }
.projeto:hover h3 { color: var(--accent); }
.projeto p { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 20px; }
.proj-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.proj-tags span { font-family: var(--font-mono); font-size: 11px; color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); padding: 3px 10px; border-radius: 4px; }
.wip-tag { font-family: var(--font-mono); font-size: 11px; color: var(--muted); border: 1px dashed rgba(255,255,255,.15); padding: 3px 10px; border-radius: 4px; }

/* ── CURRÍCULO ── */
.curriculo-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

/* Preview do PDF */
.cv-preview-wrap {
  position: relative;
}

.cv-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 520px;
  position: relative;
}

.cv-iframe {
  width: 100%; height: 100%;
  border: none; display: block;
}

/* Placeholder quando não há PDF */
.cv-placeholder {
  display: none;
  height: 100%;
  overflow-y: auto;
}

/* ── Mockup visual do currículo ── */
.cv-mock {
  background: #fff;
  color: #1a1a1a;
  min-height: 100%;
  padding: 32px 28px 24px;
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Cabeçalho */
.cv-mock-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.cv-mock-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d1321, #00c8ff44);
  border: 2px solid #00c8ff33;
  flex-shrink: 0;
}

.cv-mock-name {
  font-size: 17px; font-weight: 800; color: #0d1321;
  letter-spacing: -0.02em; margin-bottom: 3px;
}

.cv-mock-role {
  font-size: 12px; color: #00c8ff;
  font-family: var(--font-mono);
  margin-bottom: 5px;
}

.cv-mock-contacts {
  font-size: 10px; color: #64748b;
  display: flex; gap: 5px; flex-wrap: wrap;
  font-family: var(--font-mono);
}

.cv-mock-divider {
  height: 2px;
  background: linear-gradient(90deg, #00c8ff, #7c5cf5, transparent);
  border-radius: 2px;
  margin-bottom: 18px;
}

/* Corpo em duas colunas */
.cv-mock-body {
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  gap: 20px;
  flex: 1;
}

.cv-mock-col { display: flex; flex-direction: column; gap: 16px; }
.cv-mock-col-side { border-left: 1px solid #e2e8f0; padding-left: 16px; }

/* Seções */
.cv-mock-section { display: flex; flex-direction: column; gap: 7px; }

.cv-mock-section-title {
  font-size: 9px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: #00c8ff;
  padding-bottom: 4px; border-bottom: 1px solid #e2e8f0;
  margin-bottom: 2px;
}

/* Entrada (item de seção) */
.cv-mock-entry { display: flex; flex-direction: column; gap: 4px; }

.cv-mock-entry-title {
  font-size: 11px; font-weight: 700; color: #1a1a1a;
}

.cv-mock-entry-sub {
  font-size: 9px; color: #94a3b8;
  font-family: var(--font-mono);
  margin-bottom: 2px;
}

/* Linhas de texto simuladas */
.cv-mock-line {
  height: 7px; background: #e2e8f0; border-radius: 4px;
}
.w-full { width: 100%; }
.w-90   { width: 90%;  }
.w-80   { width: 80%;  }
.w-70   { width: 70%;  }
.w-65   { width: 65%;  }
.w-60   { width: 60%;  }

/* Barras de habilidades */
.cv-mock-skill-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; color: #475569;
}

.cv-mock-skill-row span { min-width: 68px; font-size: 10px; }

.cv-mock-skill-bar {
  flex: 1; height: 5px; background: #e2e8f0; border-radius: 4px; overflow: hidden;
}

.cv-mock-skill-bar div {
  height: 100%;
  background: linear-gradient(90deg, #00c8ff, #7c5cf5);
  border-radius: 4px;
}

/* Aviso de instrução */
.cv-mock-hint {
  margin-top: 18px;
  padding: 10px 14px;
  background: #f0fdf4;
  border: 1px dashed #86efac;
  border-radius: 6px;
  font-size: 11px; color: #166534;
  text-align: center;
  line-height: 1.6;
}

/* Painel lateral */
.cv-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.cv-info-label {
  font-size: 11px; color: var(--accent); letter-spacing: .1em;
  margin-bottom: 14px;
}

.cv-info-card h3 {
  font-size: 17px; font-weight: 700; margin-bottom: 8px;
}

.cv-info-card > p {
  font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 24px;
}

.cv-details {
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px;
  border-top: 1px solid var(--border); padding-top: 20px;
}

.cv-detail-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted);
}

.cv-detail-icon { font-size: 15px; flex-shrink: 0; }

.btn-block-cv {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; width: 100%; padding: 13px;
  text-align: center;
}

/* ── Contato ── */
.contato-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px; }
.contato-box p { font-size: 16px; color: var(--muted); line-height: 1.7; max-width: 540px; margin-bottom: 32px; }
.contato-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Footer ── */
footer { border-top: 1px solid var(--border); padding: 28px 0; position: relative; z-index: 1; }
.footer-row { display: flex; align-items: center; justify-content: space-between; }
footer .mono { font-size: 13px; color: var(--muted); }
.footer-copy { font-size: 12px; }

/* ── Responsivo ── */
@media (max-width: 900px) {
  .curriculo-layout { grid-template-columns: 1fr; }
  .cv-preview { height: 400px; }
}
@media (max-width: 768px) {
  .hero-container { grid-template-columns: 1fr; }
  .hero-right     { display: none; }
  .sobre-grid     { grid-template-columns: 1fr; }
  .projetos-grid  { grid-template-columns: 1fr; }
  .footer-row     { flex-direction: column; gap: 8px; text-align: center; }
  .contato-box    { padding: 28px; }
}
@media (max-width: 480px) {
  .nav-links  { display: none; }
  .hero-title { font-size: 2.2rem; }
}