/* ============================================
   JOSH — Threat Hunter & SOC
   ============================================ */

:root {
  --bg-deep: #0A0F1E;
  --bg-primary: #0C1428;
  --bg-card: #131E35;
  --bg-card-hover: #192844;
  --border-subtle: rgba(56, 189, 248, 0.12);
  --border-dim: rgba(255, 255, 255, 0.1);

  --teal: #38BDF8;
  --teal-dim: rgba(56, 189, 248, 0.15);
  --teal-glow: rgba(56, 189, 248, 0.3);
  --amber: #818CF8;
  --amber-dim: rgba(129, 140, 248, 0.15);
  --red-alert: #FF3B5C;

  --text-primary: #E8ECF4;
  --text-secondary: #8B95A8;
  --text-dim: #5A6478;

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(56, 189, 248, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 80% at 0% 40%, rgba(56, 189, 248, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 80% at 100% 60%, rgba(129, 140, 248, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 80% 90%, rgba(129, 140, 248, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 20% 80%, rgba(56, 189, 248, 0.09) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(129, 140, 248, 0.08) 0%, transparent 50%);
}

/* Cyber grid background */
.cyber-grid {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: -1;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 0%, transparent 70%);
}

/* Floating scan line — slow ambient drift */
.scanline {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: -1;
  overflow: hidden;
}
.scanline::before {
  content: '';
  position: absolute; left: 0; width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.15) 20%, rgba(56, 189, 248, 0.3) 50%, rgba(56, 189, 248, 0.15) 80%, transparent 100%);
  box-shadow: 0 0 12px 2px rgba(56, 189, 248, 0.08);
  animation: scanline-move 38s linear infinite;
}
@keyframes scanline-move {
  0%   { top: 3%; }
  18%  { top: 97%; }
  50%  { top: 97%; }
  68%  { top: 3%; }
  100% { top: 3%; }
}

/* Side glow columns — teal left, cyan right */
.side-glow {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: -1;
}
.side-glow::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 240px; height: 100%;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.08) 0%, transparent 100%);
  animation: side-flicker-left 4s ease-in-out infinite;
}
.side-glow::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 240px; height: 100%;
  background: linear-gradient(270deg, rgba(129, 140, 248, 0.08) 0%, transparent 100%);
  animation: side-flicker-right 5s ease-in-out infinite;
}
@keyframes side-flicker-left {
  0%, 100% { opacity: 0.5; }
  25% { opacity: 1; }
  50% { opacity: 0.2; }
  75% { opacity: 0.8; }
}
@keyframes side-flicker-right {
  0%, 100% { opacity: 0.4; }
  30% { opacity: 1; }
  60% { opacity: 0.15; }
  80% { opacity: 0.7; }
}

/* Glitch bars — subtle horizontal lines that flash sporadically */
.glitch-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: -1;
  overflow: hidden;
}
.glitch-overlay::before,
.glitch-overlay::after {
  content: '';
  position: absolute;
  height: 1px;
}

/* Line 1-2 */
.glitch-overlay::before { width: 100%; background: rgba(56, 189, 248, 0.18); animation: gl1 4s steps(1) infinite; }
.glitch-overlay::after  { width: 70%; left: 15%; background: rgba(129, 140, 248, 0.2); animation: gl2 6s steps(1) infinite; }

/* Line 3-4 */
.glitch-overlay.g2::before { width: 45%; left: 0; background: rgba(56, 189, 248, 0.15); animation: gl3 3s steps(1) infinite; }
.glitch-overlay.g2::after  { width: 35%; right: 0; left: auto; background: rgba(129, 140, 248, 0.16); animation: gl4 5s steps(1) infinite; }

/* Line 5-6 */
.glitch-overlay.g3::before { width: 80%; left: 10%; background: rgba(56, 189, 248, 0.14); animation: gl5 7s steps(1) infinite; }
.glitch-overlay.g3::after  { width: 25%; left: 50%; background: rgba(129, 140, 248, 0.18); animation: gl6 3.5s steps(1) infinite; }

/* Line 7-8 */
.glitch-overlay.g4::before { width: 30%; left: 0; background: rgba(56, 189, 248, 0.16); animation: gl7 4.5s steps(1) infinite; }
.glitch-overlay.g4::after  { width: 30%; right: 0; left: auto; background: rgba(129, 140, 248, 0.14); animation: gl8 6.5s steps(1) infinite; }

/* Line 9-10 */
.glitch-overlay.g5::before { width: 100%; background: rgba(56, 189, 248, 0.12); animation: gl9 8s steps(1) infinite; }
.glitch-overlay.g5::after  { width: 55%; left: 30%; background: rgba(129, 140, 248, 0.15); animation: gl10 3s steps(1) infinite; }

@keyframes gl1 {
  0%   { top: 12%; opacity: 0; }
  12%  { top: 12%; opacity: 0.9; }
  18%  { top: 12%; opacity: 0; }
  45%  { top: 67%; opacity: 0; }
  50%  { top: 67%; opacity: 0.7; }
  55%  { top: 67%; opacity: 0; }
  100% { top: 78%; opacity: 0; }
}
@keyframes gl2 {
  0%   { top: 55%; opacity: 0; }
  8%   { top: 55%; opacity: 0.8; }
  14%  { top: 55%; opacity: 0; }
  60%  { top: 23%; opacity: 0; }
  65%  { top: 23%; opacity: 0.6; }
  70%  { top: 23%; opacity: 0; }
  100% { top: 80%; opacity: 0; }
}
@keyframes gl3 {
  0%   { top: 22%;  opacity: 0; }
  20%  { top: 22%;  opacity: 0; }
  25%  { top: 22%;  opacity: 0.8; }
  32%  { top: 22%;  opacity: 0; }
  65%  { top: 52%; opacity: 0; }
  70%  { top: 52%; opacity: 0.7; }
  76%  { top: 52%; opacity: 0; }
  100% { top: 78%; opacity: 0; }
}
@keyframes gl4 {
  0%   { top: 72%; opacity: 0; }
  5%   { top: 72%; opacity: 0.6; }
  12%  { top: 72%; opacity: 0; }
  40%  { top: 15%; opacity: 0; }
  45%  { top: 15%; opacity: 0.9; }
  50%  { top: 15%; opacity: 0; }
  80%  { top: 80%; opacity: 0; }
  84%  { top: 80%; opacity: 0.5; }
  88%  { top: 80%; opacity: 0; }
  100% { top: 30%; opacity: 0; }
}
@keyframes gl5 {
  0%   { top: 40%; opacity: 0; }
  10%  { top: 40%; opacity: 0.6; }
  15%  { top: 40%; opacity: 0; }
  50%  { top: 75%; opacity: 0; }
  55%  { top: 75%; opacity: 0.5; }
  60%  { top: 75%; opacity: 0; }
  100% { top: 18%; opacity: 0; }
}
@keyframes gl6 {
  0%   { top: 22%; opacity: 0; }
  15%  { top: 22%; opacity: 0; }
  20%  { top: 22%; opacity: 0.9; }
  28%  { top: 22%; opacity: 0; }
  55%  { top: 68%; opacity: 0; }
  60%  { top: 68%; opacity: 0.7; }
  66%  { top: 68%; opacity: 0; }
  100% { top: 42%; opacity: 0; }
}
@keyframes gl7 {
  0%   { top: 82%; opacity: 0; }
  8%   { top: 82%; opacity: 0.7; }
  14%  { top: 82%; opacity: 0; }
  55%  { top: 35%; opacity: 0; }
  60%  { top: 35%; opacity: 0.6; }
  66%  { top: 35%; opacity: 0; }
  100% { top: 60%; opacity: 0; }
}
@keyframes gl8 {
  0%   { top: 20%;  opacity: 0; }
  5%   { top: 20%;  opacity: 0.5; }
  10%  { top: 20%;  opacity: 0; }
  35%  { top: 48%; opacity: 0; }
  40%  { top: 48%; opacity: 0.7; }
  45%  { top: 48%; opacity: 0; }
  70%  { top: 82%; opacity: 0; }
  74%  { top: 82%; opacity: 0.6; }
  78%  { top: 82%; opacity: 0; }
  100% { top: 25%; opacity: 0; }
}
@keyframes gl9 {
  0%   { top: 60%; opacity: 0; }
  6%   { top: 60%; opacity: 0.5; }
  11%  { top: 60%; opacity: 0; }
  45%  { top: 20%; opacity: 0; }
  50%  { top: 20%; opacity: 0.4; }
  55%  { top: 20%; opacity: 0; }
  100% { top: 78%; opacity: 0; }
}
@keyframes gl10 {
  0%   { top: 32%; opacity: 0; }
  10%  { top: 32%; opacity: 0; }
  15%  { top: 32%; opacity: 0.8; }
  22%  { top: 32%; opacity: 0; }
  60%  { top: 78%; opacity: 0; }
  65%  { top: 78%; opacity: 0.7; }
  72%  { top: 78%; opacity: 0; }
  100% { top: 50%; opacity: 0; }
}

/* Noise overlay */
.noise-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: -1; opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: #7DD3FC; }
img { max-width: 100%; height: auto; }

/* CRT scanline texture */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,212,170,0.015) 2px, rgba(0,212,170,0.015) 4px);
  pointer-events: none;
  z-index: -1;
}

/* --- UTILITY --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; position: relative; z-index: 1; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::before { content: '//'; opacity: 0.5; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.text-teal { color: var(--teal); }
.text-amber { color: var(--amber); }
.text-secondary { color: var(--text-secondary); }

/* --- NAV --- */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(8, 13, 25, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dim);
  transition: background var(--transition);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 800;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 0.5rem;
  letter-spacing: 1px;
}

.nav-brand .brand-dot {
  width: 10px; height: 10px;
  background: var(--teal);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 var(--teal-glow); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

.nav-links {
  display: flex; align-items: center; gap: 2rem; list-style: none;
}
.nav-links a {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
  color: var(--text-secondary); position: relative; padding: 0.25rem 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--teal);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--text-primary);
  border-radius: 2px; transition: var(--transition);
}

/* --- HERO --- */
.hero {
  min-height: auto;
  padding-top: 120px; padding-bottom: 4rem;
  position: relative; z-index: 1;
  overflow: hidden;
}

.hero::before {
  content: ''; position: absolute;
  top: -30%; right: -10%;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, rgba(56, 189, 248, 0.03) 40%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: ''; position: absolute;
  bottom: -20%; left: -15%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-pfp {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-name-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 0;
  position: relative;
  display: inline-block;
}
.hero-name::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--amber), transparent);
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem; color: var(--teal);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 0;
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  background: var(--teal-dim);
}

.hero-tag .status-dot {
  width: 8px; height: 8px;
  background: var(--teal); border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 1.25rem; letter-spacing: -0.02em;
}

.hero h1 .line-break { display: block; }

.hero-subtitle {
  font-size: 1.1rem; color: var(--text-secondary);
  max-width: 560px; margin-bottom: 2rem; line-height: 1.75;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Profile Picture */
.pfp-ring {
  width: 260px; height: 260px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--teal), rgba(56, 189, 248, 0.4), var(--amber));
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.15), 0 0 80px rgba(56, 189, 248, 0.05);
}

.pfp-ring img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 4px solid var(--bg-deep);
}

.pfp-ring::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.15);
}

/* Small inline PFP for about page etc */
.pfp-small {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--teal);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  padding: 0.85rem 1.75rem; border-radius: var(--radius);
  border: none; cursor: pointer;
  transition: all var(--transition); text-decoration: none;
}

.btn-primary { background: var(--teal); color: var(--bg-deep); }
.btn-primary:hover {
  background: #7DD3FC; color: var(--bg-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--teal-glow);
}

.btn-ghost {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-ghost:hover {
  background: var(--teal-dim); border-color: var(--teal); color: var(--teal);
  transform: translateY(-2px);
}

/* --- CARDS --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-subtle);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.card-icon {
  width: 48px; height: 48px;
  background: var(--teal-dim);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; font-size: 1.4rem;
}
.card-icon.amber { background: var(--amber-dim); }
.card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; }
.card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* --- GRIDS --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* --- STATS --- */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
}
.stat { text-align: center; }
.stat-number {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 800;
  color: var(--teal); line-height: 1; margin-bottom: 0.5rem;
}
.stat-label { font-size: 0.85rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }

/* --- TIMELINE --- */
.timeline { position: relative; padding-left: 3rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal), var(--teal-dim), transparent);
}
.timeline-item {
  position: relative; margin-bottom: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-dim);
}
.timeline-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -3rem; top: 8px;
  width: 12px; height: 12px; background: var(--teal); border-radius: 50%;
  transform: translateX(-5px);
  box-shadow: 0 0 0 4px var(--bg-deep), 0 0 0 6px var(--teal-dim);
}
.timeline-item.current::before { animation: pulse-dot 2s ease-in-out infinite; }
.timeline-date { font-family: var(--font-mono); font-size: 0.8rem; color: var(--teal); letter-spacing: 1px; margin-bottom: 0.5rem; }
.timeline-role { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.25rem; }
.timeline-company-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.company-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  object-fit: contain;
  padding: 4px;
  flex-shrink: 0;
}
.timeline-company-row.logo-missing::before {
  content: attr(data-initial);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--teal-dim);
  color: var(--teal);
  text-align: center;
  line-height: 44px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.timeline-company { font-size: 1rem; color: var(--text-secondary); margin-bottom: 0; }
.timeline-details { color: var(--text-secondary); font-size: 0.95rem; }
.timeline-details li { margin-bottom: 0.5rem; list-style: none; position: relative; padding-left: 1.25rem; }
.timeline-details li::before { content: '>'; position: absolute; left: 0; color: var(--teal); font-family: var(--font-mono); font-weight: 700; }

/* --- TOOL TAGS --- */
.tool-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card); border: 1px solid var(--border-dim);
  border-radius: 100px;
  font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--text-secondary); transition: all var(--transition);
}
.tool-tag:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-dim); }
.tools-cloud { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* --- DETECTION CODE VIEWER --- */
.detection-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.detection-card:hover {
  border-color: var(--border-subtle);
}

.detection-header {
  padding: 1.25rem 1.5rem;
  border-bottom: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detection-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.detection-meta {
  display: flex; gap: 0.75rem; align-items: center;
}

.detection-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.detection-tag.sigma { background: rgba(168, 85, 247, 0.15); color: #A855F7; }
.detection-tag.lima { background: var(--teal-dim); color: var(--teal); }
.detection-tag.fibratus { background: var(--amber-dim); color: var(--amber); }
.detection-tag.lima { background: var(--teal-dim); color: var(--teal); }
a.detection-tag:hover { opacity: 0.8; }

.detection-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-dim);
  background: rgba(0,0,0,0.2);
}

.detection-tab {
  padding: 0.6rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.detection-tab:hover { color: var(--text-secondary); }
.detection-tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
  background: rgba(56, 189, 248, 0.05);
}

.detection-code {
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  max-height: 400px;
  overflow-y: auto;
}

.detection-code pre {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre;
  margin: 0;
}

.detection-code .key { color: var(--teal); }
.detection-code .string { color: #A855F7; }
.detection-code .comment { color: var(--text-dim); font-style: italic; }
.detection-code .value { color: var(--amber); }

.detection-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.mitre-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 59, 92, 0.1);
  color: var(--red-alert);
  border-radius: 4px;
  margin-left: 0.4rem;
}

/* --- BLOG POST CARDS --- */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}
.blog-card:hover {
  border-color: var(--border-subtle);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  color: inherit;
}

.blog-card-body { padding: 1.75rem; }

.blog-card-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.blog-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 0.75rem; line-height: 1.4;
}

.blog-card-body p { color: var(--text-secondary); font-size: 0.9rem; }

.blog-card-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--border-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* --- BLOG POST PAGE --- */
.post-content {
  max-width: 760px;
  margin: 0 auto;
}
.post-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--text-primary);
}
.post-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 600;
  margin: 2rem 0 0.75rem;
}
.post-content p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}
.post-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-card);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--teal);
}
.post-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.post-content pre code {
  background: none; padding: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.post-content img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-dim);
  margin: 1.5rem 0;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  cursor: zoom-in;
}
.post-content img.img-wide {
  width: 95vw;
  max-width: 1400px;
  margin-left: 50%;
  transform: translateX(-50%);
}
@media (max-width: 768px) {
  .post-content img.img-wide {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
  }
}
.post-content img:active {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: auto; height: auto;
  max-width: 95vw; max-height: 95vh;
  margin: auto;
  z-index: 9999;
  border-radius: 0;
  border: none;
  cursor: zoom-out;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.9);
  padding: 2vh 2vw;
  box-sizing: border-box;
}
.post-content blockquote {
  border-left: 3px solid var(--teal);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--teal-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-secondary);
}
.post-content ul, .post-content ol {
  color: var(--text-secondary);
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.post-content li { margin-bottom: 0.5rem; }

/* --- POST ENGAGEMENT --- */
.post-engagement {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-dim);
}

.engagement-bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
}
.like-btn:hover:not(.liked) {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-dim);
}
.like-btn.liked {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-dim);
  cursor: default;
}

.comment-count-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.comments-section h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.comment-form {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
}

.comment-form .btn {
  margin-top: 0.5rem;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-item {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}
.comment-header strong {
  color: var(--teal);
  font-family: var(--font-display);
}
.comment-header span {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.comment-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.no-comments {
  color: var(--text-dim);
  font-style: italic;
  text-align: center;
  padding: 2rem;
}

/* --- CERTS --- */
.cert-badge {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--bg-card); border: 1px solid var(--border-dim);
  border-radius: var(--radius); transition: all var(--transition);
}
.cert-badge:hover { border-color: var(--border-subtle); }
.cert-badge .cert-icon {
  width: 40px; height: 40px;
  background: var(--teal-dim); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cert-badge .cert-name { font-weight: 600; font-size: 0.95rem; }
.cert-badge .cert-org { font-size: 0.8rem; color: var(--text-dim); }

/* --- CTA BANNER --- */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0,212,170,0.08) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 4rem; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute;
  top: -50%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--teal-dim) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin-bottom: 1rem; position: relative; }
.cta-banner p { color: var(--text-secondary); margin-bottom: 2rem; position: relative; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-banner .btn { position: relative; }

/* --- PAGE HEADER --- */
.page-header {
  padding: 8rem 0 2.5rem; position: relative; z-index: 1;
  background: transparent;
}
.page-header::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--teal-dim) 0%, transparent 70%);
  pointer-events: none;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800; margin-bottom: 1rem; position: relative;
}
.page-header p { font-size: 1.15rem; color: var(--text-secondary); max-width: 600px; position: relative; }

/* --- FOOTER --- */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-dim);
  padding: 4rem 0 2rem;
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 800;
  margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem;
}
.footer-desc { color: var(--text-secondary); font-size: 0.9rem; max-width: 320px; line-height: 1.7; }
.footer h4 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; margin-bottom: 1.25rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-links a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid var(--border-dim);
  padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: var(--text-dim);
}

.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  color: var(--text-secondary); transition: all var(--transition);
}
.footer-social a:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-dim); }

/* --- ANIMATIONS --- */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger.visible > * { opacity: 1; transform: translateY(0); }

/* --- FORM --- */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.5rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.85rem 1rem;
  background: var(--bg-card); border: 1px solid var(--border-dim);
  border-radius: var(--radius); color: var(--text-primary);
  font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-dim);
}
.form-group textarea { min-height: 150px; resize: vertical; }

/* --- ABOUT PAGE --- */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
}
.about-sidebar { }
.about-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 2px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  position: sticky;
  top: 100px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(56, 189, 248, 0.05);
}
.about-card .pfp-ring {
  width: 180px; height: 180px;
  margin: 0 auto 1.5rem;
}
.about-info-list {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.about-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.about-info-row:last-child { border-bottom: none; }
.about-info-row span:first-child {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.about-info-row span:last-child,
.about-info-row a {
  font-weight: 600;
  color: var(--text-primary);
}
.about-info-row a { color: var(--teal); }
.about-content { min-width: 0; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { gap: 3rem; }
  .hero-grid .pfp-ring { width: 220px; height: 220px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(8,13,25,0.98); backdrop-filter: blur(20px);
    flex-direction: column; padding: 2rem; gap: 1.5rem;
    border-bottom: 1px solid var(--border-dim);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero h1 { font-size: 2.4rem; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-pfp { order: -1; }
  .hero-name { display: block; text-align: center; }
  .hero-name-row { justify-content: center; }
  .hero-name::after { left: 50%; transform: translateX(-50%); width: 60%; }
  .hero-content .hero-tag { margin: 0 auto 1.5rem; }
  .hero-subtitle { margin: 0 auto 2.5rem; }
  .hero-actions { justify-content: center; }
  .hero-grid .pfp-ring { width: 200px; height: 200px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-sidebar { max-width: 360px; margin: 0 auto; }
  .about-card { position: static; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .section { padding: 4rem 0; }
  .page-header { padding: 8rem 0 3rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .stat-number { font-size: 2rem; }
  .hero-grid .pfp-ring { width: 160px; height: 160px; }
  .about-sidebar { max-width: 100%; }
}