/* 
═══════════════════════════════════════════════════════════════
  KainoVaii — style.css
  Glassmorphism · Purple
═══════════════════════════════════════════════════════════════ 
*/

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

:root {
  --bg:            #07070f;
  --purple:        #8B5CF6;
  --purple-mid:    #7C3AED;
  --purple-10:     rgba(139,92,246,.10);
  --purple-18:     rgba(139,92,246,.18);
  --purple-30:     rgba(139,92,246,.30);
  --purple-50:     rgba(139,92,246,.50);
  --glass:         rgba(255,255,255,.035);
  --border:        rgba(255,255,255,.07);
  --border-purple: rgba(139,92,246,.22);
  --text:          #ede9ff;
  --muted:         #7e7a99;
  --mono:          'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

/* ── GRAIN ──────────────────────────────────────────────────── */
.grain {
  position: fixed; inset: 0; z-index: 1000;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: .028;
  animation: grain-shift 8s steps(10) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0,0); }
  10%  { transform: translate(-2%,-3%); }
  30%  { transform: translate(3%,2%); }
  50%  { transform: translate(-1%,4%); }
  70%  { transform: translate(4%,-1%); }
  100% { transform: translate(0,0); }
}

/* ── CURSOR ─────────────────────────────────────────────────── */
.cursor {
  position: fixed; width: 7px; height: 7px;
  background: var(--purple); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
}
.cursor-ring {
  position: fixed; width: 30px; height: 30px;
  border: 1px solid var(--purple-50); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .3s, height .3s, border-color .3s, opacity .3s;
}
.cursor-ring.big { width: 54px; height: 54px; border-color: var(--purple); }

/* ── BG MESH ────────────────────────────────────────────────── */
.bg-mesh { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.mesh-blob {
  position: absolute; border-radius: 50%;
  filter: blur(110px); opacity: .15;
}
.mesh-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #8B5CF6, transparent 70%);
  top: -250px; right: -150px;
  animation: drift 16s ease-in-out infinite alternate;
}
.mesh-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #4f46e5, transparent 70%);
  bottom: -100px; left: -100px;
  animation: drift 20s ease-in-out infinite alternate-reverse;
}
.mesh-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #a78bfa, transparent 70%);
  top: 45%; left: 40%;
  opacity: .07;
  animation: drift 12s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(35px,25px) scale(1.08); }
}
.mesh-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(139,92,246,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,.03) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ── NAV ────────────────────────────────────────────────────── */
nav {
  position: fixed; inset: 0 0 auto;
  z-index: 500; padding: 26px 80px;
  display: flex; align-items: center; gap: 48px;
  transition: padding .4s, background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  padding: 16px 80px;
  background: rgba(7,7,15,.88);
  backdrop-filter: blur(24px);
  border-color: var(--border);
}

.nav-logo {
  font-family: var(--mono); font-size: 1rem; font-weight: 700;
  color: var(--text); text-decoration: none; letter-spacing: .06em;
}

.logo-img { height: 40px; }

.nav-links {
  display: flex; gap: 36px; list-style: none; margin-left: auto;
}

.nav-links a {
  font-family: var(--mono); font-size: .7rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color .3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--purple);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-gh {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
  color: var(--muted); text-decoration: none;
  border: 1px solid var(--border-purple);
  background: var(--purple-10); padding: 8px 18px;
  transition: color .3s, border-color .3s, background .3s;
}
.nav-gh:hover { color: var(--purple); border-color: var(--purple); background: var(--purple-18); }

/* ── HERO ───────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1.05fr;
  align-items: stretch; gap: 80px;
  padding: 140px 100px 100px;
  position: relative; z-index: 1;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
}
.hero-right {
  display: flex; flex-direction: column;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .65rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--purple);
  border: 1px solid var(--border-purple);
  background: var(--purple-10);
  padding: 7px 14px; margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--purple);
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 var(--purple-50); }
  50%      { box-shadow: 0 0 0 5px transparent; }
}
.badge-sep { color: var(--border-purple); }
.badge-loc { color: var(--muted); }

h1 {
  font-size: clamp(4.5rem, 9vw, 9.5rem);
  line-height: .87; font-weight: 800; letter-spacing: -.03em;
  margin-bottom: 24px;
}
.h1-line   { display: block; }
.h1-solid  { color: var(--text); }
.h1-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--purple);
}

.hero-meta {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: .72rem;
  color: var(--muted); margin-bottom: 20px;
}
.hm-tag   { color: var(--purple); }
.hm-pipe  { color: var(--border-purple); }

.hero-desc {
  color: var(--muted); font-size: .95rem; line-height: 1.75;
  max-width: 430px; margin-bottom: 36px;
}
.hero-desc strong { color: var(--text); font-weight: 600; }

.hero-ctas { display: flex; align-items: center; gap: 20px; margin-bottom: 48px; }

.hero-stats {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  max-width: fit-content;
}
.hs-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 28px; gap: 2px;
}
.hs-num {
  font-size: 1.5rem; font-weight: 800; line-height: 1;
  color: var(--text);
}
.hs-num sup { font-size: .55em; color: var(--purple); vertical-align: super; }
.hs-lbl {
  font-family: var(--mono); font-size: .58rem;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted);
}
.hs-divider { width: 1px; height: 36px; background: var(--border); }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--purple); color: #fff;
  padding: 13px 28px;
  font-family: var(--mono); font-size: .7rem;
  letter-spacing: .15em; text-transform: uppercase;
  text-decoration: none; border: none; cursor: none;
  position: relative; overflow: hidden;
  transition: background .3s, transform .2s, box-shadow .3s;
}
.btn-primary::before {
  content: ''; position: absolute;
  top: 50%; left: 50%; width: 0; height: 0;
  background: rgba(255,255,255,.2); border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: width .5s, height .5s, opacity .5s;
  opacity: 0;
}
.btn-primary:hover { background: var(--purple-mid); box-shadow: 0 6px 28px var(--purple-30); transform: translateY(-2px); }
.btn-primary.ripple::before { width: 300px; height: 300px; opacity: 0; }

.btn-ghost {
  font-family: var(--mono); font-size: .7rem;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; cursor: none;
  border-bottom: 1px solid var(--muted);
  padding-bottom: 2px;
  transition: color .3s, border-color .3s;
}
.btn-ghost:hover { color: var(--purple); border-color: var(--purple); }

/* ── CODE WINDOW ────────────────────────────────────────────── */
.code-window {
  background: rgba(10,10,22,.85);
  border: 1px solid var(--border-purple);
  backdrop-filter: blur(20px);
  box-shadow: 0 0 80px rgba(139,92,246,.10), inset 0 1px 0 rgba(255,255,255,.04);
  position: relative; overflow: hidden;
}
.code-window::before {
  content: '';  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(139,92,246,.06) 0%, transparent 55%);
  pointer-events: none;
}
.cw-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,.25);
}
.cw-dot { width: 11px; height: 11px; border-radius: 50%; margin-right: 2px; }
.cw-title {
  font-family: var(--mono); font-size: .68rem;
  color: var(--muted); letter-spacing: .1em;
  flex: 1; text-align: center;
}
.cw-badge {
  font-family: var(--mono); font-size: .58rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--purple); border: 1px solid var(--border-purple);
  background: var(--purple-10); padding: 2px 8px;
}
.cw-body {
  padding: 18px 20px; min-height: 300px;
  display: flex; gap: 16px;
}
.cw-lines {
  display: flex; flex-direction: column;
  font-family: var(--mono); font-size: .72rem;
  line-height: 1.72; color: rgba(139,92,246,.25);
  user-select: none; flex-shrink: 0;
  text-align: right;
}
.code-block {
  font-family: var(--mono); font-size: .75rem;
  line-height: 1.72; color: #c4b5fd;
  white-space: pre; overflow: hidden; flex: 1;
}
.cw-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 16px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,.2);
}
.cw-lang, .cw-status {
  font-family: var(--mono); font-size: .62rem;
  letter-spacing: .1em; color: var(--muted);
  display: flex; align-items: center; gap: 5px;
}
.status-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #4ade80;
  animation: blink-dot 2s steps(1) infinite;
}
@keyframes blink-dot { 0%,49%{opacity:1} 50%,100%{opacity:.3} }

/* Scroll indicator */
.hero-scroll {
  position: absolute; left: 100px; bottom: 44px;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: .58rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  opacity: 0; animation: fadein 1s 1.4s forwards;
}
.scroll-track {
  width: 1px; height: 44px; background: var(--border);
  position: relative; overflow: hidden;
}
.scroll-thumb {
  position: absolute; top: -100%; width: 100%; height: 50%;
  background: var(--purple);
  animation: scroll-drop 2.2s ease-in-out infinite;
}
@keyframes scroll-drop {
  0%   { top: -50%; }
  100% { top: 150%; }
}
@keyframes fadein { to { opacity: 1; } }

/* ── SECTIONS SHARED ────────────────────────────────────────── */
section { padding: 140px 100px; position: relative; z-index: 1; }

.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 72px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.sh-left { display: flex; align-items: flex-start; gap: 24px; }
.section-num {
  font-family: var(--mono); font-size: .6rem;
  letter-spacing: .25em; color: var(--purple);
  border: 1px solid var(--border-purple); background: var(--purple-10);
  padding: 5px 9px; margin-top: 6px; flex-shrink: 0;
}
.section-tag {
  font-family: var(--mono); font-size: .65rem;
  letter-spacing: .15em; color: var(--purple); margin-bottom: 10px;
}
.section-title {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 800; line-height: .92; letter-spacing: -.02em;
}
.section-title em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--purple); }
.sh-desc {
  font-family: var(--mono); font-size: .72rem;
  color: var(--muted); max-width: 260px; text-align: right; line-height: 1.6;
}

/* ── PROJECTS EDITORIAL ─────────────────────────────────────── */
.pe-row-1 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.pe-col-right { display: flex; flex-direction: column; gap: 20px; }

.pe-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(14px);
  transition: border-color .4s, transform .35s;
  cursor: none;
}
.pe-card:hover { border-color: var(--border-purple); transform: translateY(-4px); }
.pe-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--purple-10), transparent 55%);
  opacity: 0; transition: opacity .4s;
}
.pe-card:hover::after { opacity: 1; }
.pe-glow {
  position: absolute; top: -50px; right: -50px;
  width: 160px; height: 160px; border-radius: 50%;
  background: var(--purple); filter: blur(70px);
  opacity: 0; transition: opacity .6s; pointer-events: none;
}
.pe-card:hover .pe-glow { opacity: .14; }

/* Featured card accent bar */
.pe-accent-bar {
  height: 2px;
  background: linear-gradient(to right, var(--purple), transparent);
}

.pe-inner { padding: 36px; position: relative; z-index: 1; }
.pe-featured .pe-inner { padding: 40px; }

.pe-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 20px;
}
.pe-num-big {
  font-family: var(--mono); font-size: .6rem;
  letter-spacing: .3em; color: var(--purple); opacity: .6;
}
.pe-links { display: flex; gap: 14px; }
.pe-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: .63rem;
  letter-spacing: .1em; color: var(--muted);
  text-decoration: none; transition: color .3s;
}
.pe-link:hover { color: var(--purple); }

.pe-title {
  font-size: 2rem; font-weight: 800;
  letter-spacing: -.02em; margin-bottom: 14px; line-height: 1;
}
.pe-featured .pe-title { font-size: clamp(2.2rem, 3.5vw, 3rem); }
.pe-diamond { color: var(--purple); margin-left: 8px; }

.pe-desc {
  color: var(--muted); font-size: .86rem; line-height: 1.72;
  margin-bottom: 24px;
}
.pe-footer { display: flex; justify-content: space-between; align-items: flex-end; }
.pe-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--mono); font-size: .6rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--purple); border: 1px solid var(--border-purple);
  background: var(--purple-10); padding: 3px 9px;
}
.pe-status-pill {
  font-family: var(--mono); font-size: .6rem;
  letter-spacing: .1em; color: #4ade80;
  border: 1px solid rgba(74,222,128,.25);
  background: rgba(74,222,128,.06); padding: 3px 10px;
  white-space: nowrap;
}

/* ── CONSTELLATION ──────────────────────────────────────────── */
.constellation-wrap {
  position: relative; width: 100%; height: 560px; min-height: 560px;
  border: 1px solid var(--border);
  background: rgba(7,7,15,.7);
  backdrop-filter: blur(10px);
  overflow: hidden; margin-bottom: 56px;
}
.constellation-canvas { width: 100%; height: 100%; display: block; }
.constellation-hint {
  position: absolute; bottom: 14px; right: 18px;
  font-family: var(--mono); font-size: .58rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); opacity: .45;
  display: flex; align-items: center; gap: 6px; pointer-events: none;
}

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-glass {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 36px 24px;
  background: var(--glass); border: 1px solid var(--border);
  backdrop-filter: blur(12px); text-align: center;
  transition: border-color .3s, background .3s;
}
.stat-glass:hover { border-color: var(--border-purple); background: var(--purple-10); }
.stat-num {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1; color: var(--text);
}
.stat-num sup { font-size: .45em; color: var(--purple); vertical-align: super; }
.stat-lbl {
  font-family: var(--mono); font-size: .6rem;
  letter-spacing: .15em; text-transform: uppercase; color: var(--muted);
}

/* ── CONTACT ────────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 100px; align-items: start; }

.contact-big-link {
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(1rem, 2vw, 1.4rem); font-weight: 700;
  color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px; margin-bottom: 36px;
  transition: color .3s, border-color .3s;
}
.contact-big-link:hover { color: var(--purple); border-color: var(--purple); }

.contact-socials { display: flex; flex-direction: column; gap: 0; }
.cs-row {
  display: flex; justify-content: space-between; align-items: center;
  text-decoration: none; padding: 18px 0;
  border-bottom: 1px solid var(--border);
  transition: border-color .3s;
}
.cs-row:hover { border-color: var(--border-purple); }
.cs-label {
  font-family: var(--mono); font-size: .62rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.cs-value {
  font-family: var(--mono); font-size: .75rem;
  color: var(--text); transition: color .3s;
}
.cs-row:hover .cs-value { color: var(--purple); }

/* Floating label fields */
.cf-field { position: relative; margin-bottom: 0; }
.cf-line {
  height: 1px; background: var(--border);
  transition: background .3s;
}
.cf-field:focus-within .cf-line { background: var(--purple); }
.cf-field input, .cf-field textarea {
  width: 100%; background: transparent; border: none; outline: none;
  font-family: var(--mono); font-size: .88rem; color: var(--text);
  padding: 26px 0 10px; cursor: none;
}
.cf-field textarea { resize: none; min-height: 110px; }
.cf-field label {
  position: absolute; top: 16px; left: 0;
  font-family: var(--mono); font-size: .6rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  transition: top .25s, font-size .25s, color .25s; pointer-events: none;
}
.cf-field input:focus ~ label,
.cf-field input:not(:placeholder-shown) ~ label,
.cf-field textarea:focus ~ label,
.cf-field textarea:not(:placeholder-shown) ~ label {
  top: 6px; font-size: .52rem; color: var(--purple);
}
.btn-send { margin-top: 36px; }

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}
.footer-inner {
  padding: 36px 100px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-logo {
  font-family: var(--mono); font-size: 1rem; font-weight: 700;
  color: var(--text); text-decoration: none;
}
.footer-copy {
  font-family: var(--mono); font-size: .65rem;
  letter-spacing: .1em; color: var(--muted);
}
.footer-link {
  font-family: var(--mono); font-size: .65rem;
  letter-spacing: .1em; color: var(--purple);
  text-decoration: none; transition: opacity .3s;
}
.footer-link:hover { opacity: .7; }

/* ── REVEAL ─────────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .85s ease, transform .85s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }


/* ── GITHUB DASHBOARD ───────────────────────────────────────── */
.gh-win {
  background: rgba(10,10,22,.92);
  border: 1px solid var(--border-p);
  backdrop-filter: blur(20px);
  box-shadow: 0 0 80px rgba(139,92,246,.10), inset 0 1px 0 rgba(255,255,255,.04);
  position: relative; overflow: hidden;
  flex: 1; display: flex; flex-direction: column;
}
.gh-win::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(139,92,246,.06) 0%, transparent 55%);
  pointer-events: none;
}
.gh-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,.25);
  position: relative; z-index: 1;
}
.gh-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.gh-title {
  font-family: var(--mono); font-size: .68rem;
  color: var(--muted); letter-spacing: .1em;
  flex: 1; text-align: center;
}
.gh-badge {
  font-family: var(--mono); font-size: .58rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--purple); border: 1px solid var(--border-p);
  background: var(--purple-10); padding: 2px 9px;
}
.gh-body {
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative; z-index: 1;
  flex: 1; overflow-y: auto;
}
.gh-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 16px; border-top: 1px solid var(--border);
  background: rgba(0,0,0,.2);
  font-family: var(--mono); font-size: .6rem; color: var(--muted);
  position: relative; z-index: 1;
}
.gh-status-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #4ade80; display: inline-block;
  margin-right: 5px; animation: blink-dot 2s steps(1) infinite;
}

/* Loading */
.gh-loading {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; font-family: var(--mono); font-size: .68rem;
  color: var(--muted); padding: 40px 0;
}
.gh-spin {
  width: 14px; height: 14px;
  border: 1px solid var(--border-p); border-top-color: var(--purple);
  border-radius: 50%; animation: gh-spinner .8s linear infinite; flex-shrink: 0;
}
@keyframes gh-spinner { to { transform: rotate(360deg); } }

/* Profile row */
.gh-profile { display: flex; align-items: center; gap: 14px; }
.gh-avatar-wrap { position: relative; flex-shrink: 0; }
.gh-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--border-p); background: var(--purple-10);
  object-fit: cover; display: block;
}
.gh-avatar-ring {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid rgba(139,92,246,.28);
  animation: gh-ring-spin 8s linear infinite;
}
@keyframes gh-ring-spin { to { transform: rotate(360deg); } }
.gh-name { font-family: var(--mono); font-size: .85rem; font-weight: 500; color: var(--text); }
.gh-bio  { font-family: var(--mono); font-size: .6rem; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.gh-meta { display: flex; gap: 12px; margin-top: 5px; }
.gh-meta span { font-family: var(--mono); font-size: .58rem; color: var(--muted); }
.gh-meta strong { color: var(--purple); }

/* Stat cards */
.gh-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.gh-card {
  background: rgba(139,92,246,.07); border: 1px solid var(--border-p);
  padding: 11px 13px; transition: background .3s;
}
.gh-card:hover { background: rgba(139,92,246,.13); }
.gh-card-label { font-family: var(--mono); font-size: .52rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.gh-card-val   { font-size: 1.3rem; font-weight: 700; line-height: 1; color: var(--text); }
.gh-card-val sup { font-size: .45em; color: var(--purple); }
.gh-card-sub   { font-family: var(--mono); font-size: .55rem; color: var(--muted); margin-top: 2px; }

/* Languages */
.gh-section-label {
  font-family: var(--mono); font-size: .56rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 9px;
}
.gh-lang-bar {
  height: 5px; display: flex; border-radius: 2px; overflow: hidden; gap: 2px;
}
.gh-lang-seg { height: 100%; border-radius: 1px; }
.gh-lang-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 7px; }
.gh-ll { display: flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: .58rem; color: var(--muted); }
.gh-ll-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

/* Commits */
.gh-commit-list { display: flex; flex-direction: column; }
.gh-commit {
  display: grid; grid-template-columns: 6px 1fr auto;
  gap: 10px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.04);
  opacity: 0; transform: translateY(5px);
  transition: opacity .4s, transform .4s;
}
.gh-commit.show { opacity: 1; transform: translateY(0); }
.gh-commit:last-child { border-bottom: none; }
.gh-commit-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--purple); flex-shrink: 0; }
.gh-commit-msg  { font-family: var(--mono); font-size: .65rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gh-commit-repo { font-family: var(--mono); font-size: .54rem; color: var(--purple); margin-top: 1px; }
.gh-commit-time { font-family: var(--mono); font-size: .56rem; color: var(--muted); white-space: nowrap; flex-shrink: 0; }


/* Commit bars */
.gh-bars {
  display: flex; align-items: flex-end; gap: 5px;
  height: 72px; margin-top: 4px;
}
.gh-bar-wrap { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.gh-bar {
  width: 100%; border-radius: 1px 1px 0 0;
  background: linear-gradient(to top, var(--purple-mid), var(--purple));
  opacity: .7; transition: opacity .3s;
  animation: bar-grow .7s ease both;
}
.gh-bar-wrap:hover .gh-bar { opacity: 1; }
@keyframes bar-grow { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }

/* Activity feed */
.gh-activity { display: flex; flex-direction: column; gap: 0; }
.gh-act-item {
  display: grid; grid-template-columns: 14px 1fr auto;
  gap: 8px; align-items: center;
  padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.04);
  opacity: 0; animation: act-in .4s ease forwards;
}
.gh-act-item:last-child { border-bottom: none; }
@keyframes act-in { to { opacity: 1; } }
.gh-act-icon { font-size: .65rem; text-align: center; }
.gh-act-msg  { font-family: var(--mono); font-size: .62rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gh-act-time { font-family: var(--mono); font-size: .55rem; color: var(--muted); white-space: nowrap; }


/* ── DASHBOARD MÉTRIQUES (hero-right) ────────────────────────── */
.gh-dash-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.gh-dash-card {
  background: rgba(139,92,246,.07); border: 1px solid var(--border-p);
  padding: 14px 16px;
}
.gh-dc-label { font-family: var(--mono); font-size: .55rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.gh-dc-val   { font-size: 1.6rem; font-weight: 800; line-height: 1; color: var(--text); }
.gh-dc-delta { font-family: var(--mono); font-size: .58rem; color: #4ade80; margin-top: 5px; }

.gh-chart { display: flex; flex-direction: column; gap: 8px; }
.gh-chart-label { font-family: var(--mono); font-size: .58rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.gh-bars { display: flex; align-items: flex-end; gap: 5px; height: 80px; }
.gh-bar-wrap { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.gh-bar {
  width: 100%; border-radius: 1px 1px 0 0;
  background: linear-gradient(to top, var(--purple-mid), var(--purple));
  opacity: .7; transition: opacity .2s;
  animation: gh-bar-grow .7s ease both;
}
.gh-bar-wrap:hover .gh-bar { opacity: 1; }
@keyframes gh-bar-grow { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }

.gh-feed { display: flex; flex-direction: column; }
.gh-feed-item {
  display: grid; grid-template-columns: 8px 1fr auto;
  gap: 10px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.04);
}
.gh-feed-item:last-child { border-bottom: none; }
.gh-feed-dot  { width: 6px; height: 6px; border-radius: 50%; }
.gh-feed-msg  { font-family: var(--mono); font-size: .64rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gh-feed-repo { font-family: var(--mono); font-size: .54rem; color: var(--purple); display: block; margin-top: 1px; }
.gh-feed-time { font-family: var(--mono); font-size: .57rem; color: var(--muted); white-space: nowrap; }
.gh-feed-empty { font-family: var(--mono); font-size: .62rem; color: var(--muted); padding: 10px 0; }

.gh-error { font-family: var(--mono); font-size: .65rem; color: #f87171; text-align: center; padding: 20px 0; }

/* ── MOBILE ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  nav { padding: 18px 28px; }
  nav.scrolled { padding: 14px 28px; }
  .nav-links { display: none; }
  #hero { grid-template-columns: 1fr; padding: 110px 28px 60px; gap: 48px; }
  section { padding: 80px 28px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .sh-desc { text-align: left; }
  .pe-row-1 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { padding: 28px; flex-direction: column; gap: 12px; text-align: center; }
  .hero-stats { flex-wrap: wrap; }
}

.win-bar{
  display:flex;align-items:center;gap:10px;padding:12px 18px;
  border-bottom:1px solid var(--border);background:rgba(0,0,0,.25);
  position:relative;z-index:1;
}

.lf-error{font-family:var(--mono);font-size:.56rem;color:var(--red);margin-top:4px;}
.lf-error.show{display:block;}


.no-decoration {
  text-decoration: none;
}

.text-primary {
  color: var(--purple);
}

.text-white {
  color: #ffffff;
}

.pe-secondary {
  height: 100%;
}