/* ============================================
   JOSH — Threat Hunter & Detection Engineer
   ============================================ */

:root {
  --bg-deep: #080D19;
  --bg-primary: #0B1221;
  --bg-card: #131E33;
  --bg-card-hover: #182640;
  --border-subtle: rgba(0, 212, 170, 0.12);
  --border-dim: rgba(255, 255, 255, 0.1);

  --teal: #00D4AA;
  --teal-dim: rgba(0, 212, 170, 0.15);
  --teal-glow: rgba(0, 212, 170, 0.3);
  --amber: #06B6D4;
  --amber-dim: rgba(6, 182, 212, 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 80% 50% at 50% 0%, rgba(0, 212, 170, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(6, 182, 212, 0.02) 0%, transparent 50%);
}

/* Cyber grid background */
.cyber-grid {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(0, 212, 170, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 170, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 0%, transparent 70%);
}

/* Floating scan line */
.scanline {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}
.scanline::before {
  content: '';
  position: absolute; left: 0; width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 212, 170, 0.06) 20%, rgba(0, 212, 170, 0.1) 50%, rgba(0, 212, 170, 0.06) 80%, transparent 100%);
  animation: scanline-move 8s linear infinite;
}
@keyframes scanline-move {
  0% { top: -2px; }
  100% { top: 100%; }
}

/* Noise overlay */
.noise-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; opacity: 0.015;
  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: #33FFD0; }
img { max-width: 100%; height: auto; }

/* --- Subtle scanline overlay --- */
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.012) 2px, rgba(0,212,170,0.012) 4px);
  pointer-events: none;
  z-index: 0;
}

/* --- 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.4rem; font-weight: 800;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 0.5rem;
}

.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(0, 212, 170, 0.08) 0%, rgba(0, 212, 170, 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(6, 182, 212, 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-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem; color: var(--teal);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem 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.5rem; letter-spacing: -0.02em;
}

.hero h1 .line-break { display: block; }

.hero-subtitle {
  font-size: 1.15rem; color: var(--text-secondary);
  max-width: 580px; margin-bottom: 2.5rem; line-height: 1.8;
}

.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(0, 212, 170, 0.4), var(--amber));
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 40px rgba(0, 212, 170, 0.15), 0 0 80px rgba(0, 212, 170, 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(0, 212, 170, 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: #33FFD0; 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 { font-size: 1rem; color: var(--text-secondary); margin-bottom: 1rem; }
.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); }
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(0, 212, 170, 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 {
  border-radius: var(--radius);
  border: 1px solid var(--border-dim);
  margin: 1.5rem 0;
}
.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; }

/* --- 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: 10rem 0 4rem; position: relative; z-index: 1;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-deep) 100%);
}
.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(0, 212, 170, 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-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%; }
}