@charset "UTF-8";

/* ===== CSS VARIABLES ===== */
:root {
  --bg-primary: #040a12;
  --bg-secondary: #070f1a;
  --bg-card: rgba(0, 212, 255, 0.03);
  --bg-card-hover: rgba(0, 212, 255, 0.07);

  --cyan: #00d4ff;
  --cyan-dim: rgba(0, 212, 255, 0.15);
  --cyan-glow: rgba(0, 212, 255, 0.4);
  --green: #00ff88;
  --green-dim: rgba(0, 255, 136, 0.1);
  --green-glow: rgba(0, 255, 136, 0.4);
  --purple: #7b2fff;
  --purple-dim: rgba(123, 47, 255, 0.15);
  --orange: #ff6b35;
  --red: #ff2244;

  --text-primary: #e8f4fd;
  --text-secondary: rgba(232, 244, 253, 0.6);
  --text-dim: rgba(232, 244, 253, 0.3);

  --border: rgba(0, 212, 255, 0.2);
  --border-bright: rgba(0, 212, 255, 0.5);

  --font-display: 'Orbitron', monospace;
  --font-mono: 'Share Tech Mono', monospace;
  --font-body: 'Rajdhani', sans-serif;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection {
  background: var(--cyan);
  color: var(--bg-primary);
}

/* ===== BOOT SCREEN ===== */
#boot-screen {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: var(--font-mono);
}

.boot-container {
  width: 600px;
  max-width: 90vw;
  padding: 2rem;
}

.boot-logo {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan), 0 0 40px var(--cyan-glow);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  text-align: center;
}

.boot-sub {
  font-size: 0.75rem;
  color: var(--green);
  letter-spacing: 0.3em;
  text-align: center;
  margin-bottom: 2.5rem;
  opacity: 0.7;
}

.boot-terminal {
  background: rgba(0,0,0,0.8);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  min-height: 180px;
}

.boot-line {
  color: var(--green);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s, transform 0.3s;
}

.boot-line.active {
  opacity: 1;
  transform: translateX(0);
}

.boot-line .prompt { color: var(--cyan); }
.boot-line .ok { color: var(--green); }
.boot-line .warn { color: var(--orange); }

.boot-progress-wrap {
  margin-top: 1.5rem;
}

.boot-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.boot-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.boot-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  border-radius: 2px;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--cyan-glow);
}

#boot-screen.fade-out {
  animation: bootFadeOut 0.8s ease forwards;
}

@keyframes bootFadeOut {
  to { opacity: 0; pointer-events: none; }
}

/* ===== CANVAS (MATRIX) ===== */
#matrix-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.04;
  pointer-events: none;
}

/* ===== GRID OVERLAY ===== */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ===== SCAN LINE ===== */
.scan-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.15;
  z-index: 1;
  animation: scanLine 6s linear infinite;
  pointer-events: none;
}

@keyframes scanLine {
  0% { top: -2px; }
  100% { top: 100vh; }
}

/* ===== MAIN WRAPPER ===== */
#site-wrapper {
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.8s ease;
}

#site-wrapper.visible { opacity: 1; }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(4, 10, 18, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px var(--cyan-glow);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo .logo-bracket { color: var(--green); opacity: 0.7; }

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 2px;
  letter-spacing: 0.05em;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
  border-color: var(--border);
  background: var(--cyan-dim);
  text-shadow: 0 0 8px var(--cyan-glow);
}

.nav-links a.active::before {
  content: '\0025B8  ';
  color: var(--green);
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s infinite;
}

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

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cyan);
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(4, 10, 18, 0.97);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  z-index: 99;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s;
}

.nav-mobile a:hover, .nav-mobile a.active {
  color: var(--cyan);
}

/* ===== PAGE CONTAINER ===== */
.page {
  padding-top: 80px;
  min-height: 100vh;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.section-header .header-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-bright), transparent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan-glow);
  white-space: nowrap;
}

.section-title .num {
  color: var(--green);
  margin-right: 0.5rem;
}

/* ===== GLOWING CARD ===== */
.glow-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.glow-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: var(--transition);
}

.glow-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
  box-shadow: 0 0 20px var(--cyan-dim), inset 0 0 20px rgba(0,212,255,0.02);
}

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

/* ===== CORNER BRACKETS ===== */
.bracket-card {
  position: relative;
  padding: 1.5rem;
}

.bracket-card::before,
.bracket-card::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
}

.bracket-card::before {
  top: 0; left: 0;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
}

.bracket-card::after {
  bottom: 0; right: 0;
  border-bottom: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
}

/* ===== BUTTONS ===== */
.btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 0.7rem 1.4rem;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::before { opacity: 0.08; }

.btn-primary {
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan-glow);
  box-shadow: 0 0 10px var(--cyan-dim);
}

.btn-primary:hover {
  box-shadow: 0 0 20px var(--cyan-glow);
  text-shadow: 0 0 12px var(--cyan);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--green);
  color: var(--green);
  text-shadow: 0 0 8px var(--green-glow);
}

.btn-secondary:hover {
  box-shadow: 0 0 20px var(--green-glow);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ===== TAG / BADGE ===== */
.tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

.tag-cyan {
  background: var(--cyan-dim);
  border: 1px solid rgba(0,212,255,0.3);
  color: var(--cyan);
}

.tag-green {
  background: var(--green-dim);
  border: 1px solid rgba(0,255,136,0.3);
  color: var(--green);
}

.tag-purple {
  background: var(--purple-dim);
  border: 1px solid rgba(123,47,255,0.3);
  color: #b084ff;
}

/* ===========================
   HOME PAGE
   =========================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(1.5rem, 6vw, 8rem);
  position: relative;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  letter-spacing: 0.3em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--green);
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 30%, var(--cyan) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.hero-role {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 400;
  color: var(--cyan);
  letter-spacing: 0.25em;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 15px var(--cyan-glow);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-tagline span { color: var(--cyan); }

/* Tool Badges */
.hero-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.tool-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-secondary);
  background: rgba(0,212,255,0.02);
  transition: var(--transition);
  letter-spacing: 0.05em;
}

.tool-badge:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
  box-shadow: 0 0 8px var(--cyan-dim);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Floating data stream - hero bg element */
.hero-data-stream {
  position: absolute;
  right: clamp(1rem, 8vw, 10rem);
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0.4;
  pointer-events: none;
}

.stream-row {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan);
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0.5rem;
  border-left: 1px solid var(--border);
  animation: streamFlicker 3s infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes streamFlicker {
  0%, 95%, 100% { opacity: 0.4; }
  97% { opacity: 0.9; }
}

/* KPI SECTION */
.kpi-section {
  padding: 6rem clamp(1.5rem, 6vw, 8rem);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.kpi-card {
  padding: 1.75rem;
  text-align: left;
  cursor: default;
}

.kpi-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kpi-label::before {
  content: '\0025C8';
  color: var(--cyan);
  font-size: 0.7rem;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 15px var(--cyan-glow);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.kpi-value.green { color: var(--green); text-shadow: 0 0 15px var(--green-glow); }
.kpi-value.purple { color: #b084ff; text-shadow: 0 0 15px rgba(123,47,255,0.4); }
.kpi-value.orange { color: var(--orange); text-shadow: 0 0 15px rgba(255,107,53,0.4); }

.kpi-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.kpi-sparkline {
  margin-top: 1rem;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  box-shadow: 0 0 6px var(--cyan-glow);
  animation: sparkline 3s ease infinite alternate;
}

@keyframes sparkline {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

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

.skill-group {
  padding: 1.75rem;
}

.skill-group-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--green);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-item {
  margin-bottom: 1.25rem;
}

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

.skill-name {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-primary);
}

.skill-pct {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
}

.skill-bar-track {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: visible;
  position: relative;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 2px;
  width: 0%;
  position: relative;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-bar-fill.cyan-bar {
  background: linear-gradient(90deg, var(--cyan), #00aaff);
  box-shadow: 0 0 8px var(--cyan-glow);
}

.skill-bar-fill.green-bar {
  background: linear-gradient(90deg, var(--green), #00cc66);
  box-shadow: 0 0 8px var(--green-glow);
}

.skill-bar-fill.purple-bar {
  background: linear-gradient(90deg, #7b2fff, #b084ff);
  box-shadow: 0 0 8px rgba(123,47,255,0.5);
}

.skill-bar-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: inherit;
  box-shadow: inherit;
}

.skill-mono-display {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
  letter-spacing: 0.02em;
}

/* ===========================
   PROJECTS PAGE
   =========================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.project-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.project-id {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-top: 0.25rem;
}

.project-dataset {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.project-dataset::before { content: '\25B8  Dataset:'; color: var(--cyan); }

.project-insight {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
  padding: 0.75rem;
  background: rgba(0,0,0,0.3);
  border-left: 2px solid var(--cyan);
  border-radius: 0 2px 2px 0;
}

.project-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
}

/* ===========================
   ABOUT PAGE
   =========================== */
.about-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
}

.profile-panel {
  padding: 1.75rem;
  text-align: center;
  position: sticky;
  top: 90px;
}

.profile-img-wrap {
  width: 160px;
  height: 160px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.profile-img-wrap::before,
.profile-img-wrap::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(var(--cyan), var(--green), var(--purple), var(--cyan));
  z-index: -1;
  animation: rotateBorder 4s linear infinite;
}

.profile-img-wrap::after {
  inset: -1px;
  background: var(--bg-primary);
  z-index: 0;
}

@keyframes rotateBorder {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  filter: saturate(0.7) brightness(0.9);
  transition: filter 0.3s;
}

.profile-img:hover {
  filter: saturate(1) brightness(1);
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.profile-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.profile-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  text-align: left;
}

.profile-stat {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.profile-stat .key { color: var(--text-dim); }
.profile-stat .val { color: var(--cyan); }

/* Terminal Bio */
.terminal-bio {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(0,212,255,0.05);
  border-bottom: 1px solid var(--border);
}

.t-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}

.t-dot.red { background: #ff5f56; }
.t-dot.yellow { background: #ffbd2e; }
.t-dot.green { background: #27c93f; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-left: 0.5rem;
}

.terminal-body {
  padding: 1.5rem;
  line-height: 1.8;
}

.t-line {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.t-prompt { color: var(--green); white-space: nowrap; }
.t-cmd { color: var(--cyan); }
.t-output { color: var(--text-secondary); margin-left: 1.5rem; font-size: 0.8rem; }
.t-comment { color: var(--text-dim); }
.t-highlight { color: var(--cyan); }
.t-value { color: var(--orange); }

.cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--green);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Education / Experience */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.timeline-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  position: relative;
}

.timeline-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  margin-top: 0.35rem;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}

.timeline-sub {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--cyan);
  margin-bottom: 0.35rem;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===========================
   CONNECT PAGE
   =========================== */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  max-width: 1000px;
}

.connect-node {
  padding: 2rem 1.75rem;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  display: block;
  position: relative;
}

.connect-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  border: 2px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.connect-icon::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid;
  opacity: 0;
  transition: var(--transition);
  animation: radarPing 2.5s ease infinite;
}

@keyframes radarPing {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}

.connect-node:hover .connect-icon {
  border-color: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-glow);
}

.connect-node:hover .connect-icon::before {
  opacity: 0.5;
  border-color: var(--cyan);
}

.connect-platform {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.connect-handle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.connect-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ===========================
   CONTACT PAGE
   =========================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  padding: 1.5rem;
}

.contact-info-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

.contact-info-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--cyan);
}

/* Terminal Form */
.terminal-form {
  font-family: var(--font-mono);
}

.form-terminal-body {
  padding: 1.5rem;
}

.form-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.form-prompt {
  color: var(--green);
  flex-shrink: 0;
  font-size: 0.85rem;
}

.form-input {
  flex: 1;
  min-width: 200px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.25rem 0;
  outline: none;
  transition: border-color 0.3s;
}

.form-input:focus { border-bottom-color: var(--cyan); }
.form-input::placeholder { color: var(--text-dim); }

textarea.form-input {
  border: 1px solid var(--border);
  padding: 0.75rem;
  resize: vertical;
  min-height: 100px;
  border-radius: 2px;
  width: 100%;
  margin-top: 0.5rem;
}

textarea.form-input:focus { border-color: var(--cyan); }

.form-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.form-submit-line {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.form-status.success { color: var(--green); }
.form-status.error { color: var(--red); }

/* ===========================
   FOOTER
   =========================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1.5rem, 6vw, 8rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.footer-left span { color: var(--cyan); }

.footer-right {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* ===========================
   ANIMATIONS & UTILITIES
   =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.page-section {
  padding: 5rem clamp(1.5rem, 6vw, 8rem);
}

/* Glitch effect for accent text */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  color: var(--red);
  animation: glitch1 4s infinite 2s;
  clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
}

.glitch::after {
  color: var(--cyan);
  animation: glitch2 4s infinite 2.1s;
  clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
}

@keyframes glitch1 {
  0%, 90%, 100% { transform: translate(0); opacity: 0; }
  93% { transform: translate(-2px, 1px); opacity: 0.8; }
  96% { transform: translate(2px, -1px); opacity: 0.8; }
}

@keyframes glitch2 {
  0%, 90%, 100% { transform: translate(0); opacity: 0; }
  93% { transform: translate(2px, -1px); opacity: 0.8; }
  96% { transform: translate(-2px, 1px); opacity: 0.8; }
}

/* Radar circle bg element */
.radar-bg {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  pointer-events: none;
  opacity: 0.06;
}

.radar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  animation: radarExpand 4s linear infinite;
}

.radar-ring:nth-child(2) { animation-delay: 1s; }
.radar-ring:nth-child(3) { animation-delay: 2s; }
.radar-ring:nth-child(4) { animation-delay: 3s; }

@keyframes radarExpand {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    position: static;
    max-width: 340px;
    margin: 0 auto;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-data-stream {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-status {
    display: none;
  }

  .nav-toggle { display: flex; }

  .page-section {
    padding: 4rem 1.5rem;
  }

  .hero {
    padding: 0 1.5rem;
  }

  .kpi-section {
    padding: 4rem 1.5rem;
  }

  .footer {
    padding: 2rem 1.5rem;
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }

  .btn { width: 100%; justify-content: center; }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .connect-grid {
    grid-template-columns: 1fr;
  }
}
