:root{
  --bg:            #0a0714;
  --bg-panel:      #130d26;
  --bg-panel-2:    #1a1332;
  --accent:        #7c3aed;
  --accent-2:      #4c1d95;
  --accent-bright: #a78bfa;
  --text:          #f5f3fb;
  --muted:         #948da8;
  --line:          rgba(124,58,237,0.25);
  --navbar-h:      76px;

  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{ background:var(--bg); color:var(--text); font-family:var(--font-body); min-height:100vh; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
ul{ list-style:none; }
::selection{ background:var(--accent); color:#fff; }

.container{ max-width:1100px; margin:0 auto; padding:0 32px; }

.page-content{ min-height:100vh; padding-top:var(--navbar-h); transition:opacity .25s ease; }

/* ============ BOTTOM NAVBAR ============ */
.page-content{ min-height:100vh; padding-bottom:calc(94px + env(safe-area-inset-bottom)); }

.bottom-nav{
  position:fixed; left:0; right:0; bottom:0; z-index:200;
  display:flex; justify-content:center;
  padding:0 12px calc(14px + env(safe-area-inset-bottom));
  pointer-events:none;
  transition:transform .35s cubic-bezier(.16,1,.3,1), opacity .35s ease;
}
.bottom-nav.nav-hidden{ transform:translateY(140%); opacity:0; }

.bottom-nav-track{
  pointer-events:auto;
  display:flex; align-items:stretch; gap:2px;
  max-width:920px; width:100%;
  background:rgba(19,13,38,0.72);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  border:1px solid var(--line);
  border-radius:20px;
  padding:6px;
  box-shadow:0 20px 50px rgba(0,0,0,.45);
  overflow-x:auto; scrollbar-width:none;
}
.bottom-nav-track::-webkit-scrollbar{ display:none; }

.bn-item{
  position:relative; flex:1 0 auto; min-width:64px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  padding:9px 10px; border-radius:14px;
  color:var(--muted); transition:color .25s ease, background .25s ease, transform .2s ease;
}
.bn-icon{ width:20px; height:20px; display:flex; }
.bn-icon svg{ width:100%; height:100%; }
.bn-label{ font-size:.62rem; font-weight:600; letter-spacing:.01em; white-space:nowrap; }

.bn-item:hover{ color:var(--text); transform:translateY(-2px); }
.bn-item.active{
  color:#fff;
  background:linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow:0 8px 20px rgba(124,58,237,.45);
}
.bn-item.active::before{
  content:''; position:absolute; top:-9px; left:50%; transform:translateX(-50%);
  width:5px; height:5px; border-radius:50%;
  background:var(--accent-bright); box-shadow:0 0 10px var(--accent-bright);
}

.bn-github{ border-left:1px solid var(--line); margin-left:4px; padding-left:14px; }

@media(max-width:600px){
  .bn-label{ display:none; }
  .bn-item{ padding:11px; min-width:46px; }
  .bottom-nav-track{ gap:0; padding:5px; border-radius:18px; }
}
/* ============ /BOTTOM NAVBAR ============ */

.hero{ position:relative; padding:64px 0 0; overflow:hidden; text-align:center; }
.hero-grid-bg{ position:absolute; inset:0; background-image:linear-gradient(var(--line) 1px, transparent 1px),linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size:44px 44px; opacity:.35; mask-image:radial-gradient(circle at 50% 20%, #000 0%, transparent 70%); }
.hero-inner{ position:relative; z-index:2; max-width:640px; margin:0 auto; padding:0 24px; }
.eyebrow{ font-size:.95rem; color:var(--muted); margin-bottom:6px; }
.hero h1{ font-family:var(--font-display); font-weight:800; font-size:clamp(2.4rem, 7vw, 3.6rem); line-height:1.05; letter-spacing:-.01em; }
.hero h1 .accent{ color:var(--accent-bright); -webkit-text-stroke:1px var(--accent-bright); }
.avatar-wrap{ position:relative; width:180px; height:180px; margin:36px auto 20px; }
.avatar-ring{ position:absolute; inset:-10px; border-radius:50%; border:1.5px dashed var(--accent); opacity:.5; animation:spin 18s linear infinite; }
.avatar-ring.ring2{ inset:-20px; border-style:solid; border-color:var(--line); animation-duration:26s; animation-direction:reverse; }
@keyframes spin{ to{ transform:rotate(360deg); } }
.avatar-img{ width:180px; height:180px; border-radius:50%; object-fit:cover; border:3px solid var(--bg); box-shadow:0 0 0 2px var(--accent), 0 20px 60px rgba(124,58,237,0.45); }
.role{ font-family:var(--font-display); font-weight:700; font-size:1.15rem; color:var(--accent-bright); min-height:1.6em; }
.cursor{ animation:blink 1s step-end infinite; }
@keyframes blink{ 50%{ opacity:0; } }
.loc{ color:var(--muted); font-size:.9rem; margin-top:6px; }
.bio{ color:var(--muted); margin:16px auto 0; max-width:440px; line-height:1.6; font-size:.96rem; }
.btns{ display:flex; gap:14px; justify-content:center; margin-top:28px; flex-wrap:wrap; }
.btn{ padding:12px 26px; border-radius:999px; font-weight:600; font-size:.92rem; transition:transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn-primary{ background:linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%); color:#fff; box-shadow:0 10px 30px rgba(124,58,237,0.4); }
.btn-outline{ border:1px solid var(--line); color:var(--text); }
.btn:hover{ transform:translateY(-2px); }
.skill-strip{ display:flex; gap:22px; justify-content:center; align-items:center; margin:44px 0 0; flex-wrap:wrap; opacity:.85; }
.skill-strip img{ width:26px; height:26px; filter:grayscale(.2); }
.hero-wave{ display:block; width:100%; margin-top:56px; }

.page-head{ padding:56px 0 8px; }
.page-head h2{ font-family:var(--font-display); font-weight:800; font-size:clamp(1.8rem, 5vw, 2.4rem); }
.page-head .subtitle{ color:var(--muted); margin-top:8px; }
section{ padding:24px 0 64px; }
.grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:18px; margin-top:28px; }
.card, .dev-card{ background:var(--bg-panel); border:1px solid var(--line); border-radius:16px; padding:24px; transition:transform .2s ease, border-color .2s ease; }
.card:hover, .dev-card:hover{ transform:translateY(-4px); border-color:var(--accent); }
.card h3, .dev-card h3{ font-family:var(--font-display); font-size:1.1rem; margin-bottom:8px; }
.card p, .dev-card p{ color:var(--muted); font-size:.9rem; line-height:1.55; }
.card .link{ display:inline-block; margin-top:14px; color:var(--accent-bright); font-weight:600; font-size:.88rem; }
.dev-card .handle{ color:var(--accent-bright); font-size:.85rem; margin-bottom:4px; }
.dev-card .role{ font-size:.82rem; color:var(--muted); margin-bottom:10px; text-align:left; }
.dev-card .loc{ font-size:.8rem; margin:6px 0; text-align:left; }
.tags{ display:flex; flex-wrap:wrap; gap:6px; margin-top:14px; }
.tag{ font-size:.72rem; padding:4px 10px; border-radius:999px; background:rgba(124,58,237,0.15); color:var(--accent-bright); }
.skills-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(120px, 1fr)); gap:14px; margin-top:28px; }
.skill-badge{ background:var(--bg-panel); border:1px solid var(--line); border-radius:14px; padding:20px 12px; text-align:center; transition:transform .2s ease, border-color .2s ease; }
.skill-badge:hover{ transform:translateY(-3px); border-color:var(--accent); }
.skill-badge img{ width:32px; height:32px; margin:0 auto 10px; }
.skill-badge span{ font-size:.82rem; color:var(--muted); }
.empty-state{ border:1px dashed var(--line); border-radius:16px; padding:48px 24px; text-align:center; color:var(--muted); margin-top:28px; }
.empty-state strong{ color:var(--text); display:block; margin-bottom:6px; font-family:var(--font-display); }
footer{ border-top:1px solid var(--line); padding:32px 0; text-align:center; color:var(--muted); font-size:.85rem; }
footer a{ color:var(--accent-bright); font-weight:600; }
