/* =====================================================
   Comece por aqui — Vitor Melo · About page
   Same visual identity as the homepage
   ===================================================== */

:root {
  --bg: #04070a;
  --green: #7CFF4F;
  --green-2: #5be83a;
  --text: #f3f6f3;
  --muted: #8b9690;
  --muted-2: #5f6b64;
  --card: rgba(255, 255, 255, 0.022);
  --card-hover: rgba(124, 255, 79, 0.05);
  --border: rgba(255, 255, 255, 0.06);
  --border-green: rgba(124, 255, 79, 0.28);
  --radius: 26px;
  --radius-lg: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 300ms;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
  --glow: 0 0 40px -8px rgba(124, 255, 79, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.5;
  overflow-x: hidden; -webkit-font-smoothing: antialiased; cursor: none;
}
::selection { background: rgba(124, 255, 79, 0.28); color: #fff; }
a { text-decoration: none; color: inherit; }
svg { display: block; }
.i18 { width: 18px; height: 18px; }
.i22 { width: 22px; height: 22px; }
.i24 { width: 24px; height: 24px; }
.i28 { width: 28px; height: 28px; }
.g { color: var(--green); }
.accent { color: var(--green); }
.flag { font-size: 1.05em; line-height: 1; }

/* ---------- Fixed FX ---------- */
.fx-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(760px 520px at 78% -6%, rgba(124, 255, 79, 0.16), transparent 60%),
    radial-gradient(900px 700px at 12% 4%, rgba(40, 122, 28, 0.16), transparent 55%),
    radial-gradient(760px 900px at 90% 60%, rgba(124, 255, 79, 0.05), transparent 60%),
    radial-gradient(700px 700px at 0% 96%, rgba(40, 122, 28, 0.12), transparent 60%);
}
.fx-grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- Cursor ---------- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; border-radius: 50%; mix-blend-mode: difference; }
.cursor { width: 34px; height: 34px; border: 1.5px solid rgba(124, 255, 79, 0.9); transform: translate(-50%, -50%); transition: width .3s var(--ease), height .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease); }
.cursor-dot { width: 5px; height: 5px; background: var(--green); transform: translate(-50%, -50%); }
.cursor.hovering { width: 56px; height: 56px; background: rgba(124, 255, 79, 0.12); border-color: transparent; }

/* ---------- Layout ---------- */
.wrap { position: relative; z-index: 3; max-width: 1040px; margin: 0 auto; padding: 34px 24px 90px; }

.back {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 40px;
  font-size: 15px; font-weight: 600; color: var(--muted);
  transition: color var(--t) var(--ease), gap var(--t) var(--ease);
}
.back:hover { color: var(--green); gap: 12px; }

/* ---------- Section headings ---------- */
.section { margin-top: 76px; }
.sec-head { margin-bottom: 34px; }
.sec-title {
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -0.03em;
}
.sec-title svg { color: var(--green); }
.sec-title.sm { font-size: clamp(22px, 3vw, 26px); margin-bottom: 26px; }
.sec-desc { margin-top: 10px; font-size: 16px; color: var(--muted); font-weight: 500; }

.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  border: 1px solid var(--border);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.04);
}

/* ==================== HERO ==================== */
.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
  padding: 18px 0 26px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green);
}
.hero-title { font-size: clamp(42px, 7vw, 68px); font-weight: 900; letter-spacing: -0.045em; line-height: 1.0; margin-bottom: 22px; }
.wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.6s var(--ease) infinite; }
@keyframes wave { 0%,60%,100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-8deg); } 45% { transform: rotate(12deg); } }
.hero-sub { font-size: 18px; line-height: 1.65; color: var(--muted); font-weight: 500; max-width: 540px; margin-bottom: 30px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: 999px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 15px; font-weight: 600; box-shadow: var(--shadow);
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.chip:hover { transform: translateY(-3px); border-color: var(--border-green); background: rgba(124,255,79,0.06); }

/* Avatar (same as homepage) */
.hero-photo { display: flex; justify-content: center; }
.avatar-wrap { position: relative; width: 300px; height: 300px; border-radius: 50%; will-change: transform; transition: transform var(--t) var(--ease); }
.avatar-wrap:hover { transform: scale(1.03); }
.avatar-ring { position: absolute; inset: -3px; border-radius: 50%; background: conic-gradient(from 210deg, var(--green), #1c4b12, var(--green-2), #123a0b, var(--green)); animation: spin 8s linear infinite; }
.avatar-glow { position: absolute; inset: -26px; border-radius: 50%; z-index: -1; background: radial-gradient(circle, rgba(124,255,79,0.42), transparent 68%); filter: blur(16px); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
.avatar-wrap:hover .avatar-glow { opacity: 1; transform: scale(1.12); }
.avatar-img { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); border-radius: 50%; object-fit: cover; object-position: center 22%; border: 3px solid var(--bg); transition: box-shadow var(--t) var(--ease); }
.avatar-wrap:hover .avatar-img { box-shadow: 0 0 38px 4px rgba(124,255,79,0.5); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== TIMELINE ==================== */
.timeline { list-style: none; position: relative; padding-left: 4px; }
.tl-item { position: relative; display: grid; grid-template-columns: 68px 1fr; gap: 26px; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
/* vertical line */
.tl-item::before {
  content: ""; position: absolute; left: 33px; top: 60px; bottom: -6px; width: 2px;
  background: linear-gradient(180deg, var(--green), rgba(124,255,79,0.15));
}
.tl-item:last-child::before { display: none; }
.tl-icon {
  position: relative; z-index: 2; width: 68px; height: 68px; border-radius: 50%;
  display: grid; place-items: center; font-size: 30px; color: var(--green);
  border: 1.5px solid var(--border); background: rgba(255,255,255,0.02);
  box-shadow: var(--shadow); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.tl-icon.accent-ring { border-color: var(--border-green); background: rgba(124,255,79,0.06); }
.tl-item:hover .tl-icon { transform: scale(1.06); border-color: var(--border-green); box-shadow: 0 0 24px -4px rgba(124,255,79,0.6); }
/* dot on the line */
.tl-dot { position: absolute; left: 28px; top: 30px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px 1px var(--green); z-index: 3; }
.tl-content { padding-top: 4px; }
.tl-year { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; color: var(--green); letter-spacing: 0.04em; }
.tl-title { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin: 3px 0 7px; }
.tl-text { font-size: 15.5px; color: var(--muted); font-weight: 500; max-width: 620px; }

/* ==================== STATS ==================== */
.stats-wrap { margin-top: 60px; border-radius: var(--radius-lg); padding: 40px 24px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0 14px; }
.stat-ic { color: var(--green); margin-bottom: 8px; }
.stat-num { font-size: clamp(34px, 5vw, 44px); font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.stat-label { font-size: 15px; font-weight: 700; color: var(--green); }
.stat-sub { font-size: 13px; color: var(--muted); font-weight: 500; }
.stat-sep { width: 1px; height: 90px; background: var(--border); justify-self: center; }

/* ==================== SPLIT (focus + tech) ==================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 20px; }
.split .section { margin-top: 56px; }

/* Focus bars */
.bars { display: flex; flex-direction: column; gap: 22px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 48px; align-items: center; gap: 16px; }
.bar-label { display: inline-flex; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 600; }
.bar-track { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.05); overflow: hidden; border: 1px solid var(--border); }
.bar-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--green-2), var(--green)); box-shadow: 0 0 14px rgba(124,255,79,0.6); transition: width 1.3s var(--ease); }
.bar-pct { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 600; color: var(--muted); text-align: right; }

/* Tech grid */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tech-card {
  display: flex; align-items: center; gap: 11px; padding: 16px 16px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 15px; font-weight: 600; box-shadow: var(--shadow);
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), background var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.tech-card svg { color: var(--green); flex-shrink: 0; }
.tech-card:hover { transform: translateY(-4px); border-color: var(--border-green); background: var(--card-hover); box-shadow: 0 26px 60px -28px rgba(0,0,0,0.95), var(--glow); }

/* ==================== QUOTE ==================== */
.quote { position: relative; margin-top: 76px; border-radius: var(--radius-lg); padding: 60px 40px; text-align: center; overflow: hidden; }
.quote-mark { position: absolute; top: 6px; left: 30px; font-size: 140px; line-height: 1; font-family: 'JetBrains Mono', monospace; color: rgba(124,255,79,0.14); font-weight: 700; }
.quote blockquote { position: relative; font-size: clamp(20px, 3vw, 28px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.5; max-width: 720px; margin: 0 auto; }

/* ==================== ANIMATIONS ==================== */
[data-anim] { opacity: 0; transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
[data-anim="fade-up"] { transform: translateY(30px); }
[data-anim="fade-left"] { transform: translateX(40px); }
[data-anim="fade-right"] { transform: translateX(-40px); }
[data-anim="blur"] { filter: blur(14px); transform: scale(0.98); }
[data-anim].in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-anim] { opacity: 1 !important; transform: none !important; filter: none !important; }
  body { cursor: auto; } .cursor, .cursor-dot { display: none; }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-badges { justify-content: center; }
  .hero-photo { order: -1; }
  .eyebrow { justify-content: center; }
  .split { grid-template-columns: 1fr; gap: 10px; }
  .split .section:first-child { margin-top: 56px; }
}

@media (max-width: 620px) {
  .wrap { padding: 26px 16px 70px; }
  .avatar-wrap { width: 220px; height: 220px; }
  .stats-wrap { grid-template-columns: 1fr 1fr; gap: 30px 0; padding: 30px 16px; }
  .stat-sep { display: none; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .bar-row { grid-template-columns: 120px 1fr 40px; gap: 12px; }
  .bar-label { font-size: 14px; }
  .tl-item { grid-template-columns: 56px 1fr; gap: 18px; }
  .tl-icon { width: 56px; height: 56px; font-size: 25px; }
  .tl-item::before { left: 27px; top: 50px; }
  .tl-dot { left: 22px; top: 24px; }
  .quote { padding: 46px 22px; }
}

@media (max-width: 380px) {
  .tech-grid { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 100px 1fr 36px; }
}

@media (hover: none) { body { cursor: auto; } .cursor, .cursor-dot { display: none; } }
