/* ═══════════════════════════════════════════════════════
   Portal Pessoal — Thiago Pinheiro Maciel
   ═══════════════════════════════════════════════════════ */

:root {
  --navy:    #0C1829;
  --navy2:   #0F2039;
  --gold:    #C4963A;
  --gold2:   #E8B84B;
  --gold-d:  rgba(196,150,58,.14);
  --gold-m:  rgba(196,150,58,.26);
  --bg:      #F8F7F4;
  --paper:   #FFFFFF;
  --text:    #1C2B3A;
  --muted:   #5A6B7C;
  --muted2:  #8896A3;
  --line:    rgba(12,24,41,.09);

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max:   1080px;
  --r:     14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Topbar ────────────────────────────────────────── */
.portal-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 58px;
  background: rgba(12,24,41,0);
  border-bottom: 1px solid rgba(196,150,58,0);
  transition: background .35s ease, border-color .35s ease;
}
.portal-topbar.scrolled {
  background: rgba(10,20,36,.97);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(196,150,58,.18);
}
.portal-topbar .inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.portal-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.portal-brand:hover { text-decoration: none; }
.portal-monogram {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(196,150,58,.12);
  border: 1px solid rgba(196,150,58,.25);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  color: var(--gold); letter-spacing: .5px;
}
.portal-brand-name { font-size: 13.5px; font-weight: 600; color: rgba(232,228,220,.85); }
.portal-nav { display: flex; gap: 2px; align-items: center; }
.portal-nav a {
  color: rgba(232,228,220,.6); font-size: 12.5px; font-weight: 500;
  padding: 6px 10px; border-radius: 7px; border: 1px solid transparent;
  text-decoration: none; transition: all .18s;
}
.portal-nav a:hover {
  color: #E8E4DC; background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.10);
}
.portal-nav .nav-cv {
  background: rgba(196,150,58,.12); border-color: rgba(196,150,58,.25);
  color: var(--gold); margin-left: 6px;
}
.portal-nav .nav-cv:hover {
  background: rgba(196,150,58,.2); border-color: rgba(196,150,58,.35); color: var(--gold2);
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  background: var(--navy);
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(196,150,58,.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 70% at 10% 80%, rgba(14,56,100,.5) 0%, transparent 60%);
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 60px 24px 72px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(196,150,58,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,150,58,.04) 1px, transparent 1px);
  background-size: 56px 56px; pointer-events: none;
}
.hero-photo {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(196,150,58,.38);
  box-shadow: 0 0 0 8px rgba(196,150,58,.08), 0 20px 48px rgba(0,0,0,.45);
  margin-bottom: 28px; position: relative; z-index: 1;
  animation: fadeUp .7s ease both;
}
.hero-name {
  font-family: var(--serif);
  font-size: clamp(32px, 6vw, 52px); font-weight: 700;
  color: #F2EFE9; line-height: 1.1; letter-spacing: -.5px; margin-bottom: 10px;
  position: relative; z-index: 1; animation: fadeUp .7s .1s ease both;
}
.hero-role {
  font-size: clamp(13px, 2vw, 15.5px); color: var(--gold); font-weight: 600;
  letter-spacing: .25px; margin-bottom: 18px;
  position: relative; z-index: 1; animation: fadeUp .7s .18s ease both;
}
.hero-tagline {
  font-size: clamp(13.5px, 1.8vw, 15px); color: rgba(240,237,232,.6);
  max-width: 540px; line-height: 1.75; margin-bottom: 36px;
  position: relative; z-index: 1; animation: fadeUp .7s .26s ease both;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  position: relative; z-index: 1; animation: fadeUp .7s .34s ease both;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  border: 1.5px solid transparent; transition: all .2s; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold2); border-color: var(--gold2); text-decoration: none; }
.btn-outline { background: rgba(255,255,255,.06); color: rgba(240,237,232,.88); border-color: rgba(255,255,255,.16); }
.btn-outline:hover { background: rgba(255,255,255,.11); text-decoration: none; }
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(240,237,232,.3); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  animation: fadeUp .7s .5s ease both;
}
.scroll-hint svg { animation: bounce 1.8s infinite; }

/* ── Layout ────────────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-label {
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 700; color: var(--gold); margin-bottom: 10px; display: block;
}
.section-title {
  font-family: var(--serif); font-size: clamp(22px, 4vw, 30px);
  font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: 20px;
}

/* ── Metrics strip ─────────────────────────────────── */
.metrics-strip { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metrics-inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); }
.m-item { padding: 32px 20px; text-align: center; border-right: 1px solid var(--line); position: relative; }
.m-item:last-child { border-right: none; }
.m-item::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 32px; height: 3px; background: var(--gold); border-radius: 0 0 3px 3px;
}
.m-num { display: block; font-family: var(--serif); font-size: 36px; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 8px; }
.m-label { font-size: 12px; color: var(--muted2); line-height: 1.5; }

/* ── About ─────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 400px; gap: 56px; align-items: start; }
.about-text { font-size: 15.5px; color: var(--muted); line-height: 1.82; margin-bottom: 24px; }
.kw-list { display: flex; flex-wrap: wrap; gap: 8px; }
.kw-tag { font-size: 12.5px; padding: 6px 13px; border-radius: 7px; border: 1px solid var(--line); color: var(--muted); background: var(--paper); }

/* Experience card */
.exp-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.exp-card-head { background: var(--navy); padding: 18px 20px; display: flex; align-items: center; gap: 12px; }
.exp-badge {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--gold-d); border: 1px solid var(--gold-m);
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  color: var(--gold); flex-shrink: 0; letter-spacing: .4px;
}
.exp-card-title { font-size: 13px; font-weight: 600; color: #E8E4DC; }
.exp-card-sub   { font-size: 11.5px; color: rgba(232,228,220,.5); margin-top: 2px; }
.exp-list { list-style: none; }
.exp-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 20px; border-bottom: 1px solid rgba(12,24,41,.05); }
.exp-row:last-child { border-bottom: none; }
.exp-role { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.35; }
.exp-org  { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.exp-year { font-size: 11.5px; color: var(--muted2); white-space: nowrap; flex-shrink: 0; }

/* ── Nav cards ─────────────────────────────────────── */
.nav-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.nav-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 14px;
  text-decoration: none; transition: all .22s; position: relative; overflow: hidden;
}
.nav-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(12,24,41,.10); text-decoration: none; }
.nav-card:hover::before { transform: scaleX(1); }
.nav-card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--navy); display: grid; place-items: center; }
.nav-card-icon svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-card-label { font-size: 10.5px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); }
.nav-card-title { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.nav-card-desc  { font-size: 13.5px; color: var(--muted); line-height: 1.65; flex: 1; }
.nav-card-cta   { font-size: 13px; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 6px; }
.nav-card-cta svg { width: 14px; height: 14px; stroke: var(--gold); stroke-width: 2.2; fill: none; stroke-linecap: round; }

/* ── Contact ───────────────────────────────────────── */
.contact-section { background: var(--navy); padding: 72px 0; }
.contact-section .section-title { color: #F2EFE9; }
.contact-section .section-label { color: var(--gold); }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.c-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(196,150,58,.13);
  border-radius: 12px; padding: 22px 20px;
  display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; transition: background .2s;
}
.c-card:hover { background: rgba(255,255,255,.07); text-decoration: none; }
.c-card-icon svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c-card-label { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(196,150,58,.7); font-weight: 700; }
.c-card-value { font-size: 13px; color: rgba(240,237,232,.75); line-height: 1.45; }
.c-card.c-private .c-val { display: inline-block; filter: blur(5px); user-select: none; transition: filter .28s ease; opacity: .7; }
.c-card.c-private:hover .c-val,
.c-card.c-private.revealed .c-val { filter: blur(0); user-select: text; opacity: 1; }

/* ── Footer ────────────────────────────────────────── */
.site-footer { background: #070E18; padding: 28px 24px; text-align: center; font-size: 12px; color: rgba(240,237,232,.28); border-top: 1px solid rgba(196,150,58,.1); }
.site-footer a { color: rgba(196,150,58,.55); }

/* ── Animations ────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 860px) {
  .metrics-inner { grid-template-columns: repeat(2, 1fr); }
  .m-item:nth-child(2) { border-right: none; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .nav-cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .metrics-inner { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
@media print {
  .c-card.c-private .c-val { filter: none !important; opacity: 1 !important; }
}
