@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;600;700&family=Inter:wght@300;400;500;600;700;800;900&family=Share+Tech+Mono&family=Orbitron:wght@400;700;900&display=swap');

:root {
  --bg: #060810;
  --bg2: #0c0f18;
  --bg3: #111520;
  --bg4: #181d2a;
  --accent: #38bdf8;
  --accent-dim: rgba(56,189,248,0.08);
  --red: #ff4757;
  --yellow: #ffd32a;
  --blue: #38bdf8;
  --purple: #a78bfa;
  --orange: #fb923c;
  --text: #e2e8f0;
  --text2: #94a3b8;
  --text3: #64748b;
  --border: #1e2535;
  --border2: #252d3d;
  --card: #0e1220;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body { background:var(--bg); color:var(--text); font-family:'Inter',sans-serif; overflow-x:hidden; line-height:1.6; }

::selection { background:rgba(0,255,157,0.2); color:#fff; }
::-webkit-scrollbar { width:4px; }
::-webkit-scrollbar-track { background:var(--bg); }
::-webkit-scrollbar-thumb { background:var(--accent); border-radius:2px; }

/* ===== NAVBAR ===== */
.navbar {
  position:fixed; top:0; left:0; right:0; z-index:1000;
  height:64px;
  background:rgba(6,8,16,0.88);
  backdrop-filter:blur(24px) saturate(180%);
  -webkit-backdrop-filter:blur(24px) saturate(180%);
  border-bottom:1px solid var(--border);
  display:flex; align-items:center;
  padding:0 max(2rem, calc(50% - 560px));
  gap:1rem;
}

.navbar-brand {
  display:flex; align-items:center; gap:0.75rem;
  text-decoration:none; flex-shrink:0;
}

.navbar-brand img {
  width:34px; height:34px; border-radius:50%;
  border:2px solid var(--accent);
  object-fit:cover;
  box-shadow:0 0 12px rgba(56,189,248,0.2);
}

.navbar-brand span {
  font-family:'IBM Plex Mono',monospace;
  font-weight:700; font-size:0.95rem;
  color:var(--accent);
  letter-spacing:-0.5px;
}

.navbar-nav {
  display:flex; align-items:center; gap:0.25rem;
  list-style:none; margin-right:auto; margin-left:2rem;
}

.navbar-nav a {
  font-size:0.82rem; font-weight:500;
  color:var(--text2); text-decoration:none;
  padding:0.4rem 0.9rem; border-radius:8px;
  transition:all 0.2s; letter-spacing:0.01em;
}

.navbar-nav a:hover { color:var(--text); background:var(--bg3); }
.navbar-nav a.active { color:var(--accent); }

.navbar-actions { display:flex; align-items:center; gap:0.75rem; }

.nav-social-btn {
  display:flex; align-items:center; gap:0.4rem;
  font-size:0.75rem; font-weight:500;
  color:var(--text2); text-decoration:none;
  padding:0.35rem 0.85rem; border-radius:8px;
  border:1px solid var(--border2);
  transition:all 0.2s;
}

.nav-social-btn:hover { color:var(--accent); border-color:rgba(56,189,248,0.25); background:var(--accent-dim); }

.hamburger {
  display:none; background:none; border:1px solid var(--border2);
  color:var(--text2); font-size:1.1rem; cursor:pointer;
  padding:0.4rem 0.7rem; border-radius:8px;
  margin-left:auto; transition:all 0.2s;
}
.hamburger:hover { border-color:var(--accent); color:var(--accent); }

.mobile-menu {
  display:none; position:fixed;
  top:64px; left:0; right:0; z-index:999;
  background:var(--bg2); border-bottom:1px solid var(--border);
  padding:1rem 1.5rem; flex-direction:column; gap:0.25rem;
}
.mobile-menu.open { display:flex; }
.mobile-menu a { font-size:0.9rem; color:var(--text2); text-decoration:none; padding:0.6rem 0.8rem; border-radius:8px; transition:all 0.2s; }
.mobile-menu a:hover { color:var(--accent); background:var(--accent-dim); }

/* ===== HERO ===== */
.hero {
  min-height:100vh;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  padding:80px 2rem 4rem;
  position:relative; overflow:hidden;
  text-align:center;
}

.hero-noise {
  position:absolute; inset:0; z-index:0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(56,189,248,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 90% 80%, rgba(167,139,250,0.04) 0%, transparent 50%),
    radial-gradient(ellipse 30% 20% at 5% 60%, rgba(56,189,248,0.03) 0%, transparent 50%);
}

.hero-grid {
  position:absolute; inset:0; z-index:0;
  background-image:
    linear-gradient(rgba(56,189,248,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.025) 1px, transparent 1px);
  background-size:60px 60px;
  mask-image:radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

#particles { position:absolute; inset:0; z-index:0; pointer-events:none; overflow:hidden; }

.particle {
  position:absolute; width:1.5px; height:1.5px;
  background:var(--accent); border-radius:50%;
  opacity:0; animation:particleFloat linear infinite;
}

@keyframes particleFloat {
  0%   { transform:translateY(100vh) translateX(0px); opacity:0; }
  5%   { opacity:0.4; }
  95%  { opacity:0.4; }
  100% { transform:translateY(-50px) translateX(30px); opacity:0; }
}

.hero-content { position:relative; z-index:1; max-width:700px; }

.avatar-container { position:relative; display:inline-block; margin-bottom:2rem; }

.avatar-glow {
  position:absolute; inset:-16px; border-radius:50%;
  background:conic-gradient(from 0deg, #38bdf8, #94a3b8, #64748b, #cbd5e1, #38bdf8);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), white calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), white calc(100% - 3px));
  animation:spinGlow 5s linear infinite;
  opacity:0.8;
}

@keyframes spinGlow { to { transform:rotate(360deg); } }

.avatar-img {
  width:148px; height:148px; border-radius:50%;
  object-fit:cover; position:relative; z-index:1;
  border:4px solid var(--bg);
}

.hero-eyebrow {
  display:inline-flex; align-items:center; gap:0.6rem;
  font-family:'IBM Plex Mono',monospace;
  font-size:0.72rem; font-weight:600;
  color:var(--accent); letter-spacing:0.15em;
  text-transform:uppercase; margin-bottom:1.2rem;
  padding:0.35rem 1rem; border-radius:20px;
  background:var(--accent-dim); border:1px solid rgba(56,189,248,0.12);
}

.hero-name {
  font-size:clamp(2.8rem,8vw,5.5rem);
  font-weight:900; color:#fff; line-height:1.05;
  letter-spacing:-0.03em; margin-bottom:0.6rem;
}

.hero-name .accent { color:var(--accent); }

.hero-sub {
  font-family:'IBM Plex Mono',monospace;
  font-size:clamp(0.75rem,1.5vw,0.9rem);
  color:var(--text2); letter-spacing:0.1em;
  margin-bottom:1.8rem;
}

.hero-desc {
  font-size:1rem; color:var(--text2);
  line-height:1.8; margin-bottom:2.5rem;
  max-width:520px; margin-left:auto; margin-right:auto;
}

.hero-stats {
  display:flex; gap:0; justify-content:center;
  border:1px solid var(--border2); border-radius:var(--radius);
  overflow:hidden; margin-bottom:2.5rem;
  background:var(--bg2);
  max-width:480px; margin-left:auto; margin-right:auto;
}

.hero-stat {
  flex:1; padding:1rem 0.5rem; text-align:center;
  border-right:1px solid var(--border2);
}
.hero-stat:last-child { border-right:none; }

.stat-val {
  font-family:'IBM Plex Mono',monospace;
  font-size:1.6rem; font-weight:700; color:var(--accent);
  line-height:1; display:block;
}

.stat-key { font-size:0.7rem; color:var(--text3); margin-top:0.3rem; letter-spacing:0.05em; }

.hero-cta { display:flex; gap:0.75rem; justify-content:center; flex-wrap:wrap; margin-bottom:2.5rem; }

.btn {
  display:inline-flex; align-items:center; gap:0.5rem;
  font-size:0.85rem; font-weight:600;
  text-decoration:none; border-radius:10px;
  padding:0.75rem 1.5rem; transition:all 0.2s;
  cursor:pointer; border:none; letter-spacing:0.01em;
}

.btn-primary { background:var(--accent); color:#0a0f1a; }
.btn-primary:hover { background:#cbd5e1; transform:translateY(-2px); box-shadow:0 8px 25px rgba(56,189,248,0.15); }

.btn-ghost { background:transparent; color:var(--text); border:1px solid var(--border2); }
.btn-ghost:hover { border-color:rgba(56,189,248,0.3); color:var(--accent); background:var(--accent-dim); transform:translateY(-2px); }

.hero-socials { display:flex; gap:0.6rem; justify-content:center; flex-wrap:wrap; }

.social-chip {
  display:inline-flex; align-items:center; gap:0.4rem;
  font-size:0.75rem; font-weight:500;
  color:var(--text2); text-decoration:none;
  padding:0.4rem 0.9rem; border-radius:20px;
  border:1px solid var(--border2);
  transition:all 0.2s;
}
.social-chip:hover { color:var(--accent); border-color:rgba(56,189,248,0.25); background:var(--accent-dim); }

/* ===== SECTION ===== */
.section { padding:6rem max(2rem, calc(50% - 560px)); }

.section-label {
  font-family:'IBM Plex Mono',monospace;
  font-size:0.68rem; font-weight:600;
  color:var(--accent); letter-spacing:0.15em;
  text-transform:uppercase; margin-bottom:0.6rem; display:block;
}

.section-title {
  font-size:clamp(1.6rem,4vw,2.2rem);
  font-weight:800; color:#fff; margin-bottom:0.5rem;
  letter-spacing:-0.02em;
}

.section-desc { font-size:0.95rem; color:var(--text2); max-width:520px; line-height:1.7; }

.section-head { margin-bottom:3rem; }

.divider { border:none; height:1px; background:linear-gradient(90deg,transparent,var(--border),transparent); }

/* ===== CERTS ===== */
.certs-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(300px,1fr));
  gap:1.25rem;
}

.cert-card {
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--radius); overflow:hidden;
  cursor:pointer; transition:all 0.25s;
  display:flex; flex-direction:column;
}

.cert-card:hover {
  border-color:rgba(56,189,248,0.2);
  transform:translateY(-3px);
  box-shadow:0 16px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(56,189,248,0.06);
}

.cert-thumb { width:100%; height:170px; object-fit:cover; object-position:top; display:block; }

.cert-body { padding:1.2rem; flex:1; }
.cert-title { font-size:0.9rem; font-weight:600; color:#fff; margin-bottom:0.3rem; }
.cert-issuer { font-size:0.78rem; color:var(--text3); margin-bottom:0.75rem; }

.badge {
  display:inline-flex; align-items:center; gap:0.3rem;
  font-family:'IBM Plex Mono',monospace;
  font-size:0.63rem; font-weight:600;
  padding:0.25rem 0.65rem; border-radius:20px;
  letter-spacing:0.05em;
}

.badge-green { background:rgba(56,189,248,0.08); color:var(--accent); border:1px solid rgba(56,189,248,0.18); }
.badge-red { background:rgba(255,71,87,0.1); color:var(--red); border:1px solid rgba(255,71,87,0.2); }
.badge-purple { background:rgba(167,139,250,0.1); color:var(--purple); border:1px solid rgba(167,139,250,0.2); }
.badge-yellow { background:rgba(255,211,42,0.1); color:var(--yellow); border:1px solid rgba(255,211,42,0.2); }

.cert-soon {
  background:var(--card); border:1px dashed var(--border2);
  border-radius:var(--radius); padding:3rem 2rem;
  text-align:center; display:flex; flex-direction:column;
  align-items:center; justify-content:center; min-height:240px;
  transition:border-color 0.2s;
}
.cert-soon:hover { border-color:rgba(255,211,42,0.3); }
.cert-soon-icon { font-size:2.5rem; margin-bottom:0.8rem; }
.cert-soon-name { font-family:'IBM Plex Mono',monospace; font-size:1.1rem; font-weight:700; color:#fff; margin-bottom:0.4rem; }
.cert-soon-sub { font-size:0.82rem; color:var(--text3); margin-bottom:1rem; }

/* ===== WRITEUPS ===== */
.writeups-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(340px,1fr));
  gap:1.5rem;
}

.writeup-card {
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--radius); overflow:hidden;
  text-decoration:none; display:block;
  transition:all 0.25s; position:relative;
}

.writeup-card::after {
  content:''; position:absolute;
  top:0; left:0; right:0; height:2px;
  background:linear-gradient(90deg, var(--accent), #94a3b8);
  opacity:0; transition:opacity 0.25s;
}

.writeup-card:hover::after { opacity:1; }
.writeup-card:hover {
  border-color:rgba(56,189,248,0.18);
  transform:translateY(-4px);
  box-shadow:var(--shadow);
}

.writeup-thumb-wrap { position:relative; overflow:hidden; height:180px; }
.writeup-thumb { width:100%; height:100%; object-fit:cover; display:block; filter:brightness(0.6) saturate(0.8); transition:all 0.4s; }
.writeup-card:hover .writeup-thumb { filter:brightness(0.8) saturate(1); transform:scale(1.03); }

.writeup-thumb-overlay {
  position:absolute; inset:0;
  background:linear-gradient(to top, var(--card) 0%, transparent 60%);
}

.writeup-machine-img {
  position:absolute; bottom:12px; right:12px;
  width:56px; height:56px; border-radius:50%;
  border:2px solid rgba(255,255,255,0.2);
  object-fit:cover;
  box-shadow:0 4px 12px rgba(0,0,0,0.5);
}

.writeup-body { padding:1.5rem; }

.writeup-tags { display:flex; gap:0.4rem; flex-wrap:wrap; margin-bottom:0.9rem; }

.tag {
  font-family:'IBM Plex Mono',monospace;
  font-size:0.62rem; font-weight:600;
  padding:0.2rem 0.6rem; border-radius:6px;
  letter-spacing:0.05em;
}

.tag-easy { background:rgba(56,189,248,0.08); color:var(--accent); border:1px solid rgba(56,189,248,0.18); }
.tag-medium { background:rgba(251,146,60,0.1); color:var(--orange); border:1px solid rgba(251,146,60,0.2); }
.tag-os { background:rgba(56,189,248,0.1); color:var(--blue); border:1px solid rgba(56,189,248,0.2); }
.tag-pts { background:rgba(255,211,42,0.08); color:var(--yellow); border:1px solid rgba(255,211,42,0.2); }
.tag-cve { background:rgba(255,71,87,0.08); color:var(--red); border:1px solid rgba(255,71,87,0.15); font-size:0.58rem; }

.writeup-title { font-size:1.25rem; font-weight:800; color:#fff; letter-spacing:-0.02em; margin-bottom:0.5rem; }
.writeup-desc { font-size:0.83rem; color:var(--text2); line-height:1.7; margin-bottom:1rem; }

.writeup-footer { display:flex; align-items:center; justify-content:space-between; padding-top:1rem; border-top:1px solid var(--border); }
.writeup-author { display:flex; align-items:center; gap:0.5rem; }
.writeup-author img { width:24px; height:24px; border-radius:50%; object-fit:cover; }
.writeup-author span { font-size:0.75rem; color:var(--text3); }
.read-more { font-family:'IBM Plex Mono',monospace; font-size:0.72rem; color:var(--accent); display:flex; align-items:center; gap:0.3rem; }
.wu-ctf { font-family:'IBM Plex Mono',monospace; font-size:0.68rem; color:var(--text3); }

/* CTF TABS */
.ctf-tabs { display:flex; gap:0.5rem; flex-wrap:wrap; margin-bottom:2rem; border-bottom:1px solid var(--border); }
.ctf-tab { background:none; border:none; font-family:'IBM Plex Mono',monospace; font-size:0.78rem; font-weight:600; color:var(--text3); cursor:pointer; padding:0.6rem 1.25rem; border-bottom:2px solid transparent; transition:all 0.2s; letter-spacing:0.03em; margin-bottom:-1px; }
.ctf-tab:hover { color:var(--text); }
.ctf-tab.active { color:var(--accent); border-bottom-color:var(--accent); }
.ctf-panel { display:none; }
.ctf-panel.active { display:block; }

/* LIVE DOT + TERMINAL INLINE */
.live-dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--accent); animation:pulse 1.5s ease-in-out infinite; margin-left:2px; }
.terminal-inline { font-family:'IBM Plex Mono',monospace; font-size:0.85rem; color:var(--text2); margin-bottom:1.8rem; display:flex; align-items:center; justify-content:center; gap:0.5rem; }
.ti-prompt { color:var(--accent); }
.ti-text { color:var(--text); }
.ti-cursor { color:var(--accent); animation:blink 1s step-end infinite; }
.tag-hard { background:rgba(255,71,87,0.1); color:var(--red); border:1px solid rgba(255,71,87,0.2); }

/* ===== SKILLS ===== */
.skills-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:1rem; }

.skill-item {
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--radius); padding:1.25rem 1.5rem;
  transition:border-color 0.2s;
}
.skill-item:hover { border-color:var(--border2); }

.skill-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:0.75rem; }
.skill-name { font-size:0.85rem; font-weight:600; color:var(--text); }
.skill-val { font-family:'IBM Plex Mono',monospace; font-size:0.72rem; color:var(--accent); }

.skill-track { height:3px; background:var(--border2); border-radius:2px; overflow:hidden; }
.skill-fill { height:100%; border-radius:2px; background:linear-gradient(90deg, var(--accent), #94a3b8); width:0; transition:width 1.2s cubic-bezier(0.4,0,0.2,1); }

/* ===== MUSIC PLAYER ===== */
.music-player {
  position:fixed; bottom:1.5rem; left:50%; transform:translateX(-50%);
  z-index:500;
  background:rgba(12,15,24,0.95);
  backdrop-filter:blur(24px);
  border:1px solid var(--border2);
  border-radius:40px;
  padding:0.55rem 1.25rem;
  display:flex; align-items:center; gap:0.75rem;
  cursor:pointer; transition:all 0.2s;
  box-shadow:0 8px 32px rgba(0,0,0,0.5);
  user-select:none;
}

.music-player:hover { border-color:rgba(56,189,248,0.2); }

.music-dot { width:7px; height:7px; border-radius:50%; background:var(--accent); animation:pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.8)} }

.music-bars { display:flex; align-items:center; gap:2px; height:14px; }
.music-bar { width:2.5px; background:var(--accent); border-radius:2px; animation:bar 0.9s ease-in-out infinite; }
.music-bar:nth-child(1){animation-delay:0s}
.music-bar:nth-child(2){animation-delay:0.12s}
.music-bar:nth-child(3){animation-delay:0.24s}
.music-bar:nth-child(4){animation-delay:0.18s}
.music-bar:nth-child(5){animation-delay:0.06s}
@keyframes bar{0%,100%{height:3px}50%{height:12px}}

.music-label { font-family:'IBM Plex Mono',monospace; font-size:0.68rem; color:var(--text2); letter-spacing:0.05em; white-space:nowrap; }

/* ===== MODAL ===== */
.modal {
  display:none; position:fixed; inset:0; z-index:2000;
  background:rgba(0,0,0,0.92); backdrop-filter:blur(8px);
  align-items:center; justify-content:center; padding:2rem;
}
.modal.open { display:flex; }
.modal img { max-width:min(90vw,900px); max-height:85vh; object-fit:contain; border-radius:8px; }
.modal-close { position:fixed; top:1.25rem; right:1.25rem; background:var(--bg2); border:1px solid var(--border2); color:var(--text2); font-size:1rem; width:38px; height:38px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all 0.2s; }
.modal-close:hover { color:var(--red); border-color:var(--red); }

/* ===== WRITEUP PAGES ===== */
.wp-hero {
  padding:calc(64px + 4rem) max(2rem,calc(50% - 560px)) 3rem;
  border-bottom:1px solid var(--border);
  background:var(--bg2);
  position:relative; overflow:hidden;
}

.wp-hero-glow {
  position:absolute; inset:0;
  background:radial-gradient(ellipse 70% 80% at 50% -20%, rgba(56,189,248,0.06) 0%, transparent 65%);
  pointer-events:none;
}

.wp-back { display:inline-flex; align-items:center; gap:0.5rem; font-size:0.8rem; font-weight:500; color:var(--text3); text-decoration:none; margin-bottom:2rem; transition:color 0.2s; letter-spacing:0.01em; }
.wp-back:hover { color:var(--accent); }

.wp-machine-wrap { display:flex; align-items:center; gap:2rem; margin-bottom:2rem; }
.wp-machine-img { width:100px; height:100px; border-radius:50%; object-fit:cover; border:3px solid var(--accent); box-shadow:0 0 30px rgba(56,189,248,0.15); flex-shrink:0; }

.wp-title { font-size:clamp(2.5rem,6vw,4.5rem); font-weight:900; color:#fff; letter-spacing:-0.03em; line-height:1; }
.wp-title .hl { color:var(--accent); }

.wp-desc { font-size:0.95rem; color:var(--text2); line-height:1.8; max-width:600px; margin:1rem 0 1.5rem; }

.flags-wrap { display:flex; gap:0.75rem; flex-wrap:wrap; }

.flag-card {
  background:var(--bg3); border:1px solid var(--border2);
  border-radius:10px; padding:0.75rem 1.25rem;
  font-family:'IBM Plex Mono',monospace;
}

.flag-label { font-size:0.6rem; color:var(--text3); letter-spacing:0.1em; text-transform:uppercase; display:block; margin-bottom:0.3rem; }
.flag-val { font-size:0.8rem; color:var(--accent); word-break:break-all; }
.flag-val.root { color:var(--red); }

.wp-content { max-width:860px; margin:0 auto; padding:3rem 2rem 5rem; }

.wp-content h2 {
  font-size:1.15rem; font-weight:700; color:#fff;
  margin:3rem 0 1rem;
  display:flex; align-items:center; gap:0.75rem;
}

.wp-num {
  font-family:'IBM Plex Mono',monospace; font-size:0.62rem; font-weight:700;
  color:var(--accent); background:rgba(0,255,157,0.1);
  border:1px solid rgba(0,255,157,0.2);
  padding:0.2rem 0.55rem; border-radius:6px;
}

.wp-content p { color:var(--text2); line-height:1.85; margin-bottom:0.9rem; font-size:0.92rem; }

.info-box {
  background:var(--bg2); border:1px solid var(--border2);
  border-left:3px solid var(--accent);
  border-radius:10px; padding:1rem 1.25rem;
  margin:1.5rem 0; font-size:0.88rem; color:var(--text2); line-height:1.8;
}

.terminal {
  background:#06080f; border:1px solid var(--border);
  border-radius:10px; overflow:hidden; margin:1.5rem 0;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.03);
}

.term-bar {
  background:var(--bg3); padding:0.55rem 1rem;
  display:flex; align-items:center; gap:0.5rem;
  border-bottom:1px solid var(--border);
}

.tdot { width:10px; height:10px; border-radius:50%; }
.td-r{background:#ff5f57} .td-y{background:#febc2e} .td-g{background:#28c840}

.term-label { font-family:'IBM Plex Mono',monospace; font-size:0.62rem; color:var(--text3); margin-left:auto; letter-spacing:0.05em; }

.term-body {
  padding:1.25rem 1.5rem; overflow-x:auto;
  font-family:'IBM Plex Mono',monospace;
  font-size:0.79rem; line-height:1.85; color:#cbd5e1;
  direction:ltr; text-align:left; white-space:pre;
}

.tp { color:var(--accent); }
.tc { color:var(--text3); font-style:italic; }
.tf { color:var(--yellow); font-weight:700; }
.ts { color:#4ade80; }
.to { color:#64748b; }

.vuln-table { width:100%; border-collapse:collapse; margin:1.5rem 0; }
.vuln-table th { background:var(--bg3); color:var(--text3); font-family:'IBM Plex Mono',monospace; font-size:0.68rem; letter-spacing:0.08em; text-transform:uppercase; padding:0.8rem 1rem; text-align:right; border-bottom:1px solid var(--border); }
.vuln-table td { padding:0.85rem 1rem; border-bottom:1px solid var(--border); color:var(--text2); font-size:0.85rem; vertical-align:top; }
.vuln-table tr:last-child td { border:none; }
.vuln-table tr:hover td { background:var(--bg2); }

.sev { display:inline-block; font-family:'IBM Plex Mono',monospace; font-size:0.62rem; font-weight:700; padding:0.2rem 0.6rem; border-radius:6px; letter-spacing:0.05em; }
.sev-c { background:rgba(255,71,87,0.12); color:var(--red); border:1px solid rgba(255,71,87,0.25); }
.sev-h { background:rgba(255,211,42,0.1); color:var(--yellow); border:1px solid rgba(255,211,42,0.2); }
.sev-m { background:rgba(56,189,248,0.07); color:var(--accent); border:1px solid rgba(56,189,248,0.15); }

/* ===== FOOTER ===== */
.footer {
  background:var(--bg2); border-top:1px solid var(--border);
  padding:3rem max(2rem,calc(50% - 560px));
  text-align:center;
}

.footer-avatar { width:60px; height:60px; border-radius:50%; border:2px solid var(--accent); object-fit:cover; margin-bottom:1rem; box-shadow:0 0 20px rgba(56,189,248,0.12); }
.footer-name { font-family:'IBM Plex Mono',monospace; font-size:0.95rem; font-weight:700; color:var(--accent); }
.footer-sub { font-size:0.82rem; color:var(--text3); margin-top:0.3rem; }
.footer-links { display:flex; gap:1.5rem; justify-content:center; flex-wrap:wrap; margin-top:1.5rem; }
.footer-links a { font-size:0.8rem; color:var(--text3); text-decoration:none; transition:color 0.2s; }
.footer-links a:hover { color:var(--accent); }

/* ===== GLITCH ===== */
@keyframes glitch1 {
  0%,100%{clip-path:inset(0 0 95% 0);transform:translate(-2px,0)}
  20%{clip-path:inset(20% 0 60% 0);transform:translate(2px,0)}
  40%{clip-path:inset(50% 0 30% 0);transform:translate(-1px,0)}
  60%{clip-path:inset(80% 0 5% 0);transform:translate(2px,0)}
  80%{clip-path:inset(10% 0 80% 0);transform:translate(-2px,0)}
}
@keyframes glitch2 {
  0%,100%{clip-path:inset(50% 0 30% 0);transform:translate(2px,0)}
  20%{clip-path:inset(80% 0 5% 0);transform:translate(-2px,0)}
  40%{clip-path:inset(10% 0 80% 0);transform:translate(2px,0)}
  60%{clip-path:inset(0 0 95% 0);transform:translate(-1px,0)}
  80%{clip-path:inset(30% 0 50% 0);transform:translate(2px,0)}
}
.hero-name {
  position:relative;
}
.hero-name::before,
.hero-name::after {
  content:attr(data-text);
  position:absolute;
  inset:0;
  font-size:inherit;
  font-weight:inherit;
  letter-spacing:inherit;
  color:#fff;
  opacity:0;
}
.hero-name:hover::before {
  color:#38bdf8;
  opacity:0.7;
  animation:glitch1 0.4s steps(1) infinite;
}
.hero-name:hover::after {
  color:#ff0055;
  opacity:0.7;
  animation:glitch2 0.4s steps(1) infinite;
}

/* ===== SCANLINES ===== */
.hero::before {
  content:'';
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.07) 3px,
    rgba(0,0,0,0.07) 4px
  );
}

/* ===== CURSOR BLINK ===== */
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.hero-sub::after {
  content:'█';
  font-size:0.9em;
  color:var(--accent);
  animation:blink 1s step-end infinite;
  margin-left:2px;
}

/* ===== NEON CARD GLOW ===== */
.writeup-card:hover {
  box-shadow:0 0 0 1px rgba(56,189,248,0.2), 0 16px 40px rgba(56,189,248,0.05);
}
.cert-card:hover {
  box-shadow:0 0 0 1px rgba(56,189,248,0.2), 0 16px 40px rgba(56,189,248,0.05);
}

/* ===== ORBITRON HEADINGS ===== */
.hero-name { font-family:'Orbitron',monospace; }
.section-title { font-family:'Orbitron',monospace; }

/* ===== RESPONSIVE ===== */
@media(max-width:768px){
  .hamburger { display:flex; }
  .navbar-nav, .navbar-actions { display:none; }
  .hero-stats { max-width:100%; }
  .wp-machine-wrap { flex-direction:column; align-items:flex-start; gap:1rem; }
  .wp-machine-img { width:80px; height:80px; }
  .term-body { font-size:0.72rem; }
}
