/* ================= CUSTOM SCROLLBAR ================= */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--accent), var(--purple));
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #79b8ff, #c084fc);
}
* {
  scrollbar-width: thin;
  scrollbar-color: #58a6ff transparent;
}
body.light * {
  scrollbar-color: #0969da transparent;
}

/* ================= ROOT VARIABLES ================= */
:root {
  --bg: #05070c;
  --panel: rgba(10, 16, 32, 0.88);
  --border: rgba(88, 166, 255, 0.2);
  --border-hover: rgba(88, 166, 255, 0.5);
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #58a6ff;
  --green: #3fb950;
  --purple: #a371f7;
  --red: #f85149;
  --yellow: #e3b341;
  --glow: rgba(88, 166, 255, 0.35);
  --card-bg: rgba(255, 255, 255, 0.03);
}

/* ================= LIGHT MODE ================= */
body.light {
  --bg: #b8c4d4;
  --panel: rgba(170, 185, 205, 0.95);
  --border: rgba(60, 80, 120, 0.2);
  --border-hover: rgba(60, 80, 120, 0.5);
  --text: #0d1117;
  --muted: #3d4a5c;
  --accent: #0969da;
  --green: #1a7f37;
  --purple: #6e40c9;
  --glow: rgba(9, 105, 218, 0.15);
  --card-bg: rgba(155, 170, 195, 0.5);
}

body.light {
  background: radial-gradient(ellipse at 20% 10%, #a8b8cc, #b8c4d4 60%);
}

body.light canvas#bg { opacity: 0.4; }
body.light .hero-card-inner { background: rgba(170,185,205,0.95); }
body.light .platform,
body.light .expertise-card,
body.light .cert-card,
body.light .activity-card,
body.light .timeline-card {
  background: var(--card-bg);
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}
body.light .cert-proof { background: rgba(0,0,0,0.08); border-color: rgba(0,0,0,0.12); }
body.light .socials a,
body.light .nav-btn,
body.light .to-top { background: rgba(0,0,0,0.08); }
body.light .socials img,
body.light .footer-socials img { filter: invert(10%); }
body.light .socials a:hover img { filter: invert(0%); }
body.light nav { background: rgba(170,185,205,0.9); }
body.light .image-caption { background: rgba(155,170,195,0.92); color: #0d1117; }
body.light .activity-card { background: rgba(155,170,195,0.8); }
body.light .activity-image { background: linear-gradient(135deg, #8fa8c0, #a8b8cc); }
body.light .bar { background: rgba(0,0,0,0.15); }
body.light .nav-drawer { background: rgba(180,195,215,0.98); }
body.light .footer { background: transparent; }
body.light .btn.secondary { background: rgba(0,0,0,0.08); }
body.light .view-all-btn { background: rgba(0,0,0,0.07); color: var(--muted); }
body.light .stats-bar { background: rgba(155,170,195,0.55); box-shadow: 0 2px 16px rgba(0,0,0,0.12); }
body.light .project-card,
body.light .achievement-card { background: var(--card-bg); box-shadow: 0 2px 16px rgba(0,0,0,0.12); }
body.light .cmd-palette { background: rgba(175,190,210,0.98); }
body.light .chat-bubble { background: rgba(175,190,210,0.98); }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ================= BODY ================= */
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ================= CANVAS ================= */
canvas#bg {
  position: fixed;
  inset: 0;
  z-index: -1;
}

/* ================= NAV ================= */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 60px;
  background: rgba(5, 7, 12, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(88, 166, 255, 0.08);
  transition: border-color 0.3s ease;
}

nav.scrolled {
  border-bottom-color: rgba(88, 166, 255, 0.18);
}

.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.nav-logo span {
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ================= CONTAINER ================= */
.container {
  max-width: 1160px;
  margin: auto;
  padding: 0 40px;
}

/* ================= SECTION LABEL ================= */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.8;
}

/* ================= HERO ================= */
header {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: center;
  gap: 80px;
  padding-top: 60px;
}

.hero {
  transition: transform 0.15s linear;
}

.hero-greeting {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-greeting::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

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

.hero .role {
  display: block;
  font-size: clamp(18px, 2.5vw, 26px);
  color: var(--muted);
  font-weight: 400;
  margin-top: 14px;
  letter-spacing: -0.3px;
}

.hero p {
  max-width: 580px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  margin-top: 20px;
}

/* ================= TAGS ================= */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 36px;
}

.tag {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: rgba(88, 166, 255, 0.06);
  color: var(--muted);
  transition: 0.2s ease;
}

.tag:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.tag.green {
  color: var(--green);
  border-color: rgba(63, 185, 80, 0.3);
  background: rgba(63, 185, 80, 0.07);
}

.tag.purple {
  color: var(--purple);
  border-color: rgba(163, 113, 247, 0.3);
  background: rgba(163, 113, 247, 0.07);
}

/* ================= ACTION BUTTONS ================= */
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn.primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 24px rgba(88, 166, 255, 0.3);
}

.btn.primary:hover {
  background: #79b8ff;
  box-shadow: 0 0 40px rgba(88, 166, 255, 0.55);
  transform: translateY(-2px);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 24px var(--glow);
}

/* ================= SOCIAL ICONS ================= */
.socials {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.socials a:hover {
  background: rgba(88, 166, 255, 0.1);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--glow);
}

.socials img {
  width: 16px;
  filter: invert(75%);
  transition: filter 0.2s ease;
}

.socials a:hover img {
  filter: invert(100%);
}

/* ================= HERO CARD ================= */
.hero-card {
  max-width: 340px;
  margin-left: auto;
  position: relative;
  transition: transform 0.15s linear;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.4), rgba(163, 113, 247, 0.2), transparent 60%);
  z-index: 0;
}

.hero-card-inner {
  position: relative;
  z-index: 1;
  background: var(--panel);
  border-radius: 23px;
  padding: 10px;
  backdrop-filter: blur(12px);
}

.hero-card img {
  width: 100%;
  border-radius: 16px;
  display: block;
}

.hero-card-badge {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5, 7, 12, 0.85);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--green);
  white-space: nowrap;
  backdrop-filter: blur(8px);
  z-index: 2;
}

.hero-card-badge::before {
  content: '●';
  margin-right: 6px;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ================= SCROLL INDICATOR ================= */
.scroll-indicator {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
  transition: opacity 0.4s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  animation: bounce-arrow 1.6s infinite;
  opacity: 0.6;
}

@keyframes bounce-arrow {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.4; }
  50% { transform: rotate(45deg) translateY(5px); opacity: 1; }
}

/* ================= SECTION DIVIDER ================= */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 auto;
}

/* ================= PLATFORMS ================= */
.platforms {
  margin-top: 120px;
}

.platforms h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--muted);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.platform {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.platform::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.platform:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--glow);
}

.platform:hover::before {
  opacity: 1;
}

.platform-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.platform-header img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0.9);
}

.platform-header strong {
  font-size: 15px;
}

.platform p {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.platform a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: gap 0.2s ease;
}

.platform a:hover {
  gap: 8px;
}

/* ================= EXPERTISE ================= */
.expertise {
  margin-top: 140px;
}

.expertise h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.expertise-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.expertise-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.expertise-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px var(--glow);
}

.expertise-card:hover::after {
  opacity: 1;
}

.expertise-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.skill {
  margin-top: 16px;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}

.skill span {
  font-size: 13px;
  color: var(--muted);
}

.skill-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
}

.bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
}

.bar div {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  width: 0;
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar div.animated {
  width: var(--level);
}

/* ================= SECURITY CERTIFICATIONS ================= */
.certs {
  margin-top: 140px;
}

.certs h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.cert-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cert-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px var(--glow);
}

.cert-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cert-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.cert-badge {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(63, 185, 80, 0.12);
  color: var(--green);
  border: 1px solid rgba(63, 185, 80, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

.cert-org {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.cert-proof {
  margin-top: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cert-proof span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cert-proof code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
}

.cert-verify {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: gap 0.2s ease;
}

.cert-verify:hover {
  gap: 8px;
}

.cert-verify.disabled {
  color: var(--muted);
  cursor: default;
}

.cert-card.upcoming {
  opacity: 0.65;
  border-style: dashed;
}

/* ================= RECENT ACTIVITY ================= */
.activity {
  margin-top: 140px;
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.activity-header h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.activity-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.activity-nav {
  display: flex;
  gap: 8px;
}

.nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: rgba(88, 166, 255, 0.1);
  border-color: var(--border-hover);
  box-shadow: 0 0 20px var(--glow);
}

.activity-track-wrapper {
  overflow: hidden;
  position: relative;
}

.activity-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: grab;
  user-select: none;
}

.activity-track:active {
  cursor: grabbing;
}

.activity-card {
  flex: 0 0 400px;
  background: rgba(8, 12, 24, 0.8);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.activity-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px var(--glow);
}

.activity-image {
  height: 190px;
  background: linear-gradient(135deg, #0d1b2a, #1a2744);
  position: relative;
  overflow: hidden;
}

.activity-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.image-caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(5, 7, 12, 0.85);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
}

.activity-content {
  padding: 18px 20px 20px;
}

.activity-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(88, 166, 255, 0.12);
  color: var(--accent);
  border: 1px solid rgba(88, 166, 255, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.activity-content h3 {
  font-size: 15px;
  font-weight: 600;
  margin-top: 10px;
  line-height: 1.4;
}

.activity-content p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.6;
}

.activity-footer {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.view-all-btn {
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}

.view-all-btn:hover {
  color: var(--text);
  border-color: var(--border-hover);
  box-shadow: 0 0 20px var(--glow);
}

/* ================= FOOTER ================= */
.footer {
  margin-top: 160px;
  padding: 80px 24px 48px;
  text-align: center;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb703, #ffd166);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 0 40px rgba(255, 183, 3, 0.3);
  transition: all 0.25s ease;
}

.footer-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(255, 183, 3, 0.5);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 28px 0 20px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.footer-socials a:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 0 20px var(--glow);
}

.footer-socials img {
  width: 16px;
  filter: invert(75%);
}

.footer small {
  font-size: 12px;
  color: var(--muted);
  opacity: 0.6;
}

/* ================= SCROLL TO TOP ================= */
.to-top-wrapper {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 40px;
  height: 40px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transform: none !important;
  transition: opacity 0.3s ease;
}

.to-top-wrapper.visible {
  opacity: 1;
  pointer-events: auto;
}

.to-top {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(88, 166, 255, 0.1);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 16px;
  transition: all 0.25s ease;
  color: var(--accent);
}

.to-top:hover {
  background: rgba(88, 166, 255, 0.2);
  border-color: var(--border-hover);
  box-shadow: 0 0 20px var(--glow);
}

/* ================= THEME TOGGLE ================= */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  color: var(--text);
  box-shadow: 0 0 16px var(--glow);
}

/* ================= HAMBURGER ================= */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  transition: all 0.2s ease;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================= MOBILE DRAWER ================= */
.nav-drawer {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 7, 12, 0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

body.light .nav-drawer { background: rgba(244, 246, 251, 0.97); }

.nav-drawer.open { transform: translateX(0); }

.nav-drawer a {
  font-size: 28px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: color 0.2s ease;
}

.nav-drawer a:hover { color: var(--accent); }

/* ================= TIMELINE ================= */
.timeline {
  margin-top: 140px;
}

.timeline h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.timeline-list {
  position: relative;
  margin-top: 48px;
  padding-left: 32px;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--purple), transparent);
  opacity: 0.4;
}

.timeline-item {
  position: relative;
  padding-bottom: 48px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -38px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 12px var(--glow);
  transition: transform 0.2s ease;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.4);
}

.timeline-item.current .timeline-dot {
  background: var(--green);
  box-shadow: 0 0 12px rgba(63, 185, 80, 0.5);
  animation: pulse-dot 2s infinite;
}

.timeline-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.timeline-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--purple));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.timeline-item:hover .timeline-card {
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 24px var(--glow);
}

.timeline-item:hover .timeline-card::before { opacity: 1; }

.timeline-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.timeline-role {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.timeline-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.timeline-badge.current {
  background: rgba(63, 185, 80, 0.12);
  color: var(--green);
  border: 1px solid rgba(63, 185, 80, 0.3);
}

.timeline-badge.past {
  background: rgba(139, 148, 158, 0.1);
  color: var(--muted);
  border: 1px solid rgba(139, 148, 158, 0.2);
}

.timeline-org {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 12px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.timeline-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(88, 166, 255, 0.08);
  color: var(--accent);
  border: 1px solid rgba(88, 166, 255, 0.2);
}
.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.timeline-role-note {
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
}
.glitch {
  position: relative;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  color: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  opacity: 0;
}
.glitch::after {
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  color: var(--purple);
}
.glitch:hover::before {
  opacity: 0.8;
  animation: glitch-top 0.4s steps(2) infinite;
}
.glitch:hover::after {
  opacity: 0.8;
  animation: glitch-bot 0.4s steps(2) infinite;
}
@keyframes glitch-top {
  0%   { transform: translate(-2px, -1px); }
  50%  { transform: translate(2px, 1px); }
  100% { transform: translate(-1px, 2px); }
}
@keyframes glitch-bot {
  0%   { transform: translate(2px, 1px); }
  50%  { transform: translate(-2px, -1px); }
  100% { transform: translate(1px, -2px); }
}

/* ================= TYPING CURSOR ================= */
.cursor-blink {
  color: var(--accent);
  animation: blink 1s step-end infinite;
  font-weight: 300;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ================= STATS BAR ================= */
.stats-bar {
  margin-top: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 40px;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
  flex: 1;
  min-width: 120px;
}
.stat-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  position: relative;
}
.stat-number::after {
  content: '+';
  font-size: 0.6em;
  vertical-align: super;
  color: var(--purple);
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.4;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}
body.light .stats-bar { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }

/* ================= CVE / RESEARCH ================= */
.research {
  margin-top: 140px;
}
.research h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.cve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.cve-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cve-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--yellow));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cve-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(248,81,73,0.2);
}
.cve-card:hover::before { opacity: 1; }
.cve-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cve-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.cve-severity {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.cve-severity.critical { background: rgba(248,81,73,0.15); color: #f85149; border: 1px solid rgba(248,81,73,0.3); }
.cve-severity.high     { background: rgba(227,179,65,0.15); color: #e3b341; border: 1px solid rgba(227,179,65,0.3); }
.cve-severity.medium   { background: rgba(88,166,255,0.15); color: var(--accent); border: 1px solid rgba(88,166,255,0.3); }
.cve-severity.low      { background: rgba(63,185,80,0.15);  color: var(--green);  border: 1px solid rgba(63,185,80,0.3); }
.cve-product {
  font-size: 12px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}
.cve-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}
.cve-meta {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.cve-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: gap 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cve-link:hover { gap: 8px; }
.cve-link.muted { color: var(--muted); cursor: default; }
body.light .cve-card { background: var(--card-bg); box-shadow: 0 2px 20px rgba(0,0,0,0.06); }

/* ================= SECTION DOTS ================= */
.section-dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 500;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid var(--border-hover);
  transition: all 0.25s ease;
  display: block;
}
.dot:hover, .dot.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--glow);
  transform: scale(1.4);
}
@media (max-width: 768px) { .section-dots { display: none; } }

/* ================= COMMAND PALETTE ================= */
.cmd-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 9998;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.cmd-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cmd-palette {
  width: 100%;
  max-width: 560px;
  background: rgba(10, 16, 32, 0.98);
  border: 1px solid var(--border-hover);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.8), 0 0 60px var(--glow);
  transform: translateY(-10px);
  transition: transform 0.2s ease;
}
.cmd-overlay.open .cmd-palette { transform: translateY(0); }
body.light .cmd-palette { background: rgba(240,244,255,0.98); }
.cmd-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.cmd-prompt {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
}
#cmdInput {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  color: var(--text);
  caret-color: var(--accent);
}
#cmdInput::placeholder { color: var(--muted); }
.cmd-results { max-height: 320px; overflow-y: auto; }
.cmd-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.cmd-result-item:hover,
.cmd-result-item.selected {
  background: rgba(88,166,255,0.1);
}
.cmd-result-icon {
  font-size: 16px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.cmd-result-text { flex: 1; }
.cmd-result-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.cmd-result-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.cmd-result-kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}
.cmd-hint {
  padding: 10px 20px;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
}
.cmd-hint kbd {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10px;
}

.achievements {
  margin-top: 140px;
}

.achievements h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.achievement-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.achievement-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.achievement-card.gold::before  { background: linear-gradient(90deg, #ffd700, #ffb703); }
.achievement-card.silver::before { background: linear-gradient(90deg, #c0c0c0, #9da7b3); }
.achievement-card.bronze::before { background: linear-gradient(90deg, #cd7f32, #b87333); }

.achievement-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px var(--glow);
}

.achievement-card:hover::before { opacity: 1; }

.achievement-rank {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 8px;
}

.achievement-card.gold   .achievement-rank { color: #e3b341; }
.achievement-card.silver .achievement-rank { color: #9da7b3; }
.achievement-card.bronze .achievement-rank { color: #cd7f32; }

.achievement-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
}

.achievement-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ================= PROJECTS ================= */
.projects {
  margin-top: 140px;
}

.projects h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px var(--glow);
}

.project-card:hover::after { opacity: 1; }

.project-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.project-icon { font-size: 28px; line-height: 1; }

.project-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.project-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(88, 166, 255, 0.08);
  color: var(--accent);
  border: 1px solid rgba(88, 166, 255, 0.2);
}

/* light mode overrides for new sections */
body.light .achievement-card,
body.light .project-card {
  background: var(--card-bg);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

/* ================= AI CHAT WIDGET ================= */
.chat-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border: none;
  cursor: pointer;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(88,166,255,0.4);
  transition: all 0.3s ease;
  font-size: 22px;
}

.chat-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(88,166,255,0.6);
}

.chat-btn .chat-btn-icon { line-height: 1; }

.chat-bubble {
  position: fixed;
  bottom: 88px;
  left: 24px;
  width: 320px;
  background: rgba(10, 16, 32, 0.97);
  border: 1px solid var(--border-hover);
  border-radius: 18px;
  overflow: hidden;
  z-index: 8999;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 40px var(--glow);
  transform: translateY(12px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
}

body.light .chat-bubble {
  background: rgba(240,244,255,0.98);
}

.chat-bubble.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(88,166,255,0.06);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.chat-header-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.chat-header-status {
  font-size: 11px;
  color: var(--green);
  font-family: 'JetBrains Mono', monospace;
}

.chat-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
  transition: color 0.2s ease;
}

.chat-close:hover { color: var(--text); }

.chat-messages {
  height: 240px;
  overflow-y: auto;
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.chat-msg {
  max-width: 85%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  animation: msg-in 0.25s ease;
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chat-msg.bot {
  background: rgba(88,166,255,0.1);
  border: 1px solid rgba(88,166,255,0.2);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: var(--accent);
  color: #000;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.chat-msg.typing {
  background: rgba(88,166,255,0.08);
  border: 1px solid rgba(88,166,255,0.15);
  align-self: flex-start;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  letter-spacing: 3px;
  padding: 6px 14px;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 10px;
}

.chat-suggestion {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(88,166,255,0.06);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'JetBrains Mono', monospace;
}

.chat-suggestion:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: rgba(88,166,255,0.12);
}

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border);
}

#chatInput {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s ease;
}

body.light #chatInput { background: rgba(0,0,0,0.04); }

#chatInput::placeholder { color: var(--muted); }
#chatInput:focus { border-color: var(--border-hover); }

.chat-send {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chat-send:hover {
  background: #79b8ff;
  box-shadow: 0 0 16px var(--glow);
}

.chat-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ================= CONTACT ================= */
.contact {
  margin-top: 140px;
}

.contact h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  margin-top: 36px;
  align-items: start;
}

.contact-info p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 28px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

.contact-link:hover { color: var(--accent); }

.contact-link-icon { font-size: 18px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'JetBrains Mono', monospace;
}

.form-group input,
.form-group textarea {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--border-hover);
  box-shadow: 0 0 16px var(--glow);
}

.contact-submit {
  align-self: flex-start;
  cursor: pointer;
  border: none;
}

.form-note {
  font-size: 11px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  opacity: 0.6;
}

body.light .form-group input,
body.light .form-group textarea {
  background: rgba(0,0,0,0.06);
}

@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ================= CHAT MIC BUTTON ================= */
.chat-mic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chat-mic:hover { border-color: var(--border-hover); }
.chat-mic.listening {
  background: rgba(248,81,73,0.15);
  border-color: #f85149;
  animation: mic-pulse 1s infinite;
}

@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(248,81,73,0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(248,81,73,0); }
}

/* ================= REAPER MODE ================= */
.reaper-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s ease;
}

.reaper-overlay.active {
  opacity: 1;
  animation: reaper-sequence 2.8s forwards;
}

@keyframes reaper-sequence {
  0%   { opacity: 0; background: transparent; }
  8%   { opacity: 1; background: rgba(248, 81, 73, 0.12); }
  15%  { background: rgba(248, 81, 73, 0.04); }
  22%  { background: rgba(248, 81, 73, 0.18); }
  30%  { background: rgba(248, 81, 73, 0.06); }
  38%  { background: rgba(248, 81, 73, 0.22); }
  50%  { background: rgba(248, 81, 73, 0.08); }
  65%  { background: rgba(248, 81, 73, 0.03); }
  100% { opacity: 0; background: transparent; }
}

.reaper-ascii {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100000;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  font-family: 'JetBrains Mono', monospace;
}

.reaper-ascii.active {
  animation: reaper-ascii-seq 2.8s forwards;
}

@keyframes reaper-ascii-seq {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
  12%  { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
  20%  { opacity: 0.6; transform: translate(-50%, -50%) scale(0.98); }
  28%  { opacity: 1; transform: translate(-50%, -50%) scale(1.02); }
  60%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  80%  { opacity: 0.8; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.1); }
}

.reaper-ascii pre {
  color: #f85149;
  font-size: clamp(8px, 1.2vw, 13px);
  line-height: 1.2;
  text-shadow: 0 0 20px rgba(248, 81, 73, 0.8), 0 0 40px rgba(248, 81, 73, 0.4);
  white-space: pre;
}

.reaper-ascii .reaper-label {
  display: block;
  margin-top: 16px;
  font-size: clamp(14px, 2vw, 22px);
  font-weight: 700;
  color: #f85149;
  letter-spacing: 6px;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(248, 81, 73, 0.9);
}

.reaper-ascii .reaper-sub {
  display: block;
  margin-top: 8px;
  font-size: clamp(10px, 1.2vw, 13px);
  color: rgba(248, 81, 73, 0.6);
  letter-spacing: 3px;
}

/* scanline flicker on body during reaper mode */
body.reaper-active::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 99998;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(248, 81, 73, 0.03) 2px,
    rgba(248, 81, 73, 0.03) 4px
  );
  animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
  0%   { background-position: 0 0; }
  100% { background-position: 0 4px; }
}

/* ================= FADE-UP ANIMATION ================= */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
