@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --a1: #7c4dff;
  --a2: #00e5ff;
  --a3: #ff4081;
  --bg: #080810;
  --bg2: #0f0f1a;
  --bg3: #141424;
  --card: rgba(255,255,255,0.038);
  --card-hover: rgba(255,255,255,0.065);
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(124,77,255,0.35);
  --text: #eeeef5;
  --muted: rgba(238,238,245,0.5);
  --dim: rgba(238,238,245,0.28);
  --sidebar-w: 240px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; 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)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* ── ORBS ── */
.orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb  { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.13; animation: drift 16s ease-in-out infinite; }
.orb1 { width: 600px; height: 600px; background: var(--a1); top: -200px; left: -200px; animation-delay: 0s; }
.orb2 { width: 500px; height: 500px; background: var(--a2); bottom: -150px; right: -150px; animation-delay: -6s; }
.orb3 { width: 350px; height: 350px; background: var(--a3); top: 45%; left: 45%; animation-delay: -11s; }
@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(35px,-22px) scale(1.06); }
  66%      { transform: translate(-22px,35px) scale(0.94); }
}

/* ── SIDEBAR ── */
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w);
  background: rgba(8,8,16,0.92); backdrop-filter: blur(24px);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 200; padding: 2rem 0 1.5rem;
  transition: transform 0.3s ease;
}
.sidebar-logo {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}
.sidebar-logo .name {
  font-family: var(--font-head); font-size: 18px; font-weight: 800;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.sidebar-logo .tag { font-size: 11px; color: var(--dim); font-weight: 500; margin-top: 2px; }

.sidebar-nav { flex: 1; padding: 0 0.75rem; display: flex; flex-direction: column; gap: 2px; }
.nav-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--dim);
  text-transform: uppercase; padding: 1rem 0.75rem 0.4rem;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  text-decoration: none; cursor: pointer;
  transition: background 0.18s, color 0.18s;
  border: 1px solid transparent;
}
.nav-item:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.nav-item.active {
  background: rgba(124,77,255,0.15); color: #c4b5fd;
  border-color: rgba(124,77,255,0.25);
}
.nav-item .icon { font-size: 15px; width: 20px; text-align: center; }

.sidebar-footer {
  padding: 1rem 1.5rem 0;
  border-top: 1px solid var(--border);
  font-size: 11px; color: var(--dim);
}
.avail-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; margin-right: 6px;
  animation: pulse-green 2.5s infinite;
}
@keyframes pulse-green { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* ── MAIN CONTENT ── */
.main { margin-left: var(--sidebar-w); position: relative; z-index: 1; min-height: 100vh; }

/* ── TOPBAR (mobile) ── */
.topbar {
  display: none; position: sticky; top: 0; z-index: 150;
  background: rgba(8,8,16,0.9); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 56px; padding: 0 1.25rem;
  align-items: center; justify-content: space-between;
}
.topbar-logo { font-family: var(--font-head); font-size: 16px; font-weight: 800;
  background: linear-gradient(135deg,var(--a1),var(--a2));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.hamburger { background: none; border: 1px solid var(--border); color: var(--text);
  width: 36px; height: 36px; border-radius: 8px; cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center; }

/* ── PAGE ── */
.page { padding: 3.5rem 3rem 5rem; max-width: 960px; }

/* ── SEC HEADERS ── */
.sec-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.13em; color: var(--a1); text-transform: uppercase; margin-bottom: 0.4rem; }
.sec-title { font-family: var(--font-head); font-size: clamp(1.8rem,3.5vw,2.6rem); font-weight: 800; color: var(--text); margin-bottom: 0.5rem; line-height: 1.1; }
.sec-sub { font-size: 15px; color: var(--muted); max-width: 500px; line-height: 1.65; margin-bottom: 3rem; }

/* ── CARDS ── */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  transition: background 0.2s, border-color 0.2s, transform 0.22s;
}
.card:hover { background: var(--card-hover); border-color: var(--border-hover); }

/* ── BADGE ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 100px;
  letter-spacing: 0.04em;
}
.badge-purple { background: rgba(124,77,255,0.18); color: #c4b5fd; border: 1px solid rgba(124,77,255,0.3); }
.badge-cyan   { background: rgba(0,229,255,0.14); color: #67e8f9; border: 1px solid rgba(0,229,255,0.25); }
.badge-pink   { background: rgba(255,64,129,0.14); color: #f9a8d4; border: 1px solid rgba(255,64,129,0.25); }
.badge-green  { background: rgba(34,197,94,0.14); color: #86efac; border: 1px solid rgba(34,197,94,0.25); }
.badge-amber  { background: rgba(251,191,36,0.14); color: #fde68a; border: 1px solid rgba(251,191,36,0.25); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: opacity 0.2s, transform 0.15s;
  font-family: var(--font-body);
}
.btn-grad {
  background: linear-gradient(135deg, var(--a1), var(--a2));
  border: none; color: #fff;
}
.btn-grad:hover { opacity: 0.82; transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--muted);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--text); transform: translateY(-2px); }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); margin: 3rem 0; }

/* ── REVEAL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── STARS ── */
.stars { color: #fbbf24; font-size: 13px; letter-spacing: 1px; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(124,77,255,0.35); border-radius: 3px; }

/* ── SKILL BAR ── */
.skill-bar-track { height: 3px; background: rgba(255,255,255,0.08); border-radius: 100px; overflow: hidden; margin-top: 6px; }
.skill-bar-fill  { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--a1), var(--a2)); width: 0; transition: width 1.2s cubic-bezier(.4,0,.2,1); }

/* ── PROGRESS BAR ── */
.progress-track { height: 8px; background: rgba(255,255,255,0.07); border-radius: 100px; overflow: hidden; }
.progress-fill  { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--a1), var(--a2), var(--a3)); width: 0; transition: width 1.4s cubic-bezier(.4,0,.2,1); }

/* ── TAG ── */
.tag { font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 100px; background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.45); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .topbar { display: flex; }
  .page { padding: 2rem 1.25rem 4rem; }
}
