/* ===== CSS Variables & Reset ===== */
:root {
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

[data-theme="dark"] {
  --bg: #0a192f;
  --bg-alt: #0d1f3c;
  --bg-card: #112240;
  --bg-card-hover: #1a2f52;
  --text: #ccd6f6;
  --text-muted: #8892b0;
  --accent: #64ffda;
  --accent-dim: rgba(100, 255, 218, 0.1);
  --accent-glow: rgba(100, 255, 218, 0.15);
  --heading: #e6f1ff;
  --nav-bg: rgba(10, 25, 47, 0.88);
  --shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
  --terminal-bg: #0d1117;
  --terminal-header: #161b22;
  --border: rgba(100, 255, 218, 0.08);
  --metric-color: #64ffda;
}

[data-theme="light"] {
  --bg: #f7f9fc;
  --bg-alt: #edf1f7;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f4fa;
  --text: #4a5568;
  --text-muted: #718096;
  --accent: #0a8967;
  --accent-dim: rgba(10, 137, 103, 0.08);
  --accent-glow: rgba(10, 137, 103, 0.12);
  --heading: #1a202c;
  --nav-bg: rgba(247, 249, 252, 0.9);
  --shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.1);
  --terminal-bg: #1e1e2e;
  --terminal-header: #2a2a3c;
  --border: rgba(10, 137, 103, 0.12);
  --metric-color: #0a8967;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.4s, color 0.4s;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--accent);
  transition: all 0.2s;
}

ul { list-style: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Cursor Glow ===== */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

.cursor-glow.active {
  opacity: 1;
}

/* ===== Data Rain Canvas ===== */
#dataRain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

[data-theme="light"] #dataRain {
  opacity: 0.15;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(100%);
  transition: transform 0.3s;
  z-index: -1;
}

.btn:hover::before {
  transform: translateY(0);
}

.btn:hover {
  color: var(--bg);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

.btn-primary::before {
  background: transparent;
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
}

.btn-outline {
  background: transparent;
}

.btn-large {
  padding: 16px 36px;
  font-size: 0.9rem;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
}

.navbar.hidden {
  transform: translateY(-100%);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.terminal-prompt {
  color: var(--accent);
  font-weight: 700;
}

.logo-text {
  color: var(--heading);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  padding: 8px 14px;
  border-radius: 4px;
  transition: all 0.2s;
  position: relative;
}

.nav-links a::before {
  content: attr(data-query) ' ';
  color: var(--accent);
  opacity: 0;
  font-size: 0.7rem;
  transition: opacity 0.2s;
  position: absolute;
  top: -2px;
  left: 14px;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

.nav-links a:hover::before {
  opacity: 0.6;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s;
  margin-left: 8px;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  padding: 100px 24px 60px;
}

.hero-content {
  max-width: 800px;
  width: 100%;
}

/* Terminal Window */
.terminal-window {
  background: var(--terminal-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(100, 255, 218, 0.08);
  box-shadow:
    0 0 0 1px rgba(100, 255, 218, 0.05),
    0 25px 65px -15px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(100, 255, 218, 0.03);
  margin-bottom: 40px;
  transform: perspective(800px) rotateX(1deg);
  transition: transform 0.5s, box-shadow 0.5s;
}

.terminal-window:hover {
  transform: perspective(800px) rotateX(0);
  box-shadow:
    0 0 0 1px rgba(100, 255, 218, 0.12),
    0 30px 70px -15px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(100, 255, 218, 0.06);
}

.terminal-header {
  background: var(--terminal-header);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #8b949e;
  flex: 1;
  text-align: center;
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 2;
  color: #c9d1d9;
}

.terminal-line {
  white-space: nowrap;
}

.prompt { color: #28c840; font-weight: 600; }
.cmd { color: #79c0ff; }
.flag { color: #ffa657; }

.terminal-output {
  margin: 8px 0 16px;
  padding-left: 8px;
  border-left: 2px solid rgba(100, 255, 218, 0.15);
}

.json-key { color: #ff7b72; }
.json-value { color: #a5d6ff; }

.type-cursor {
  animation: blink 1s step-end infinite;
  color: var(--accent);
  font-weight: 300;
}

@keyframes blink { 50% { opacity: 0; } }

.terminal-result {
  color: #64ffda;
  opacity: 0;
  animation: fadeSlideIn 0.5s ease forwards;
  animation-delay: 3.5s;
}

.delayed {
  opacity: 0;
  animation: fadeSlideIn 0.5s ease forwards;
  animation-delay: 2.5s;
}

.delayed-2 {
  animation-delay: 3.5s;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

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

.stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(100, 255, 218, 0.08);
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-mono);
  display: inline;
}

.stat-suffix {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}

.stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
}

/* Hero CTA */
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: floatBounce 2s ease-in-out infinite;
}

.scroll-indicator p {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  opacity: 0.5;
}

.mouse-wheel {
  width: 3px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes floatBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(8px); }
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  margin-bottom: 56px;
}

.section-query {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.7;
  display: block;
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--heading);
  font-family: var(--font-mono);
  display: inline-block;
}

.section-line {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin-top: 12px;
  border-radius: 2px;
}

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== About Section ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-lead {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 20px;
  line-height: 1.4;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--text-muted);
  line-height: 1.8;
}

.about-text strong {
  color: var(--accent);
  font-weight: 600;
}

.about-highlights {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--accent-dim);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
  font-size: 0.9rem;
  color: var(--heading);
  font-weight: 500;
  transition: all 0.2s;
}

.highlight:hover {
  background: var(--accent-glow);
  transform: translateX(4px);
}

.highlight-icon {
  color: var(--accent);
  flex-shrink: 0;
  display: flex;
}

/* Data Orbit Visualization */
.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.data-orbit {
  width: 320px;
  height: 320px;
  position: relative;
}

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), rgba(100, 255, 218, 0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bg);
  z-index: 3;
  box-shadow: 0 0 30px var(--accent-glow), 0 0 60px var(--accent-glow);
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px dashed var(--border);
}

.ring-1 {
  width: 200px;
  height: 200px;
  margin: -100px 0 0 -100px;
  animation: orbitSpin 20s linear infinite;
}

.ring-2 {
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
  animation: orbitSpin 30s linear infinite reverse;
}

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

.orbit-node {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
  transition: all 0.3s;
}

.orbit-node:hover {
  transform: scale(1.2);
  box-shadow: 0 0 25px var(--accent-glow);
}

.orbit-node::after {
  content: attr(data-label);
  position: absolute;
  bottom: -22px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  white-space: nowrap;
  animation: orbitSpin 20s linear infinite reverse;
}

.ring-2 .orbit-node::after {
  animation: orbitSpin 30s linear infinite;
}

/* Position nodes around rings */
.ring-1 .orbit-node:nth-child(1) { top: -21px; left: 50%; margin-left: -21px; }
.ring-1 .orbit-node:nth-child(2) { bottom: -21px; left: 15%; margin-left: -21px; }
.ring-1 .orbit-node:nth-child(3) { bottom: -21px; right: 15%; margin-right: -21px; }

.ring-2 .orbit-node:nth-child(1) { top: -21px; left: 50%; margin-left: -21px; }
.ring-2 .orbit-node:nth-child(2) { top: 50%; right: -21px; margin-top: -21px; }
.ring-2 .orbit-node:nth-child(3) { bottom: -21px; left: 50%; margin-left: -21px; }
.ring-2 .orbit-node:nth-child(4) { top: 50%; left: -21px; margin-top: -21px; }

/* ===== Skills Section ===== */
.skills-dashboard {
  display: grid;
  gap: 28px;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  transition: all 0.3s;
}

.skill-category:hover {
  border-color: rgba(100, 255, 218, 0.2);
  box-shadow: 0 4px 20px rgba(100, 255, 218, 0.05);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--accent);
}

.category-header h3 {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--heading);
  font-weight: 600;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  padding: 8px 18px;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid transparent;
  cursor: default;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.skill-tag::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-tag:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.skill-tag:hover::before {
  width: 100%;
}

/* ===== Experience Section ===== */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
}

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

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

.timeline-marker {
  position: absolute;
  left: -33px;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  z-index: 2;
}

.marker-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 0.6; transform: scale(1.4); }
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.3s;
  position: relative;
}

.timeline-card:hover {
  border-color: rgba(100, 255, 218, 0.2);
  box-shadow: 0 8px 30px rgba(100, 255, 218, 0.06);
  transform: translateX(4px);
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.card-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-status.live {
  color: #28c840;
  background: rgba(40, 200, 64, 0.1);
  border: 1px solid rgba(40, 200, 64, 0.3);
}

.card-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.timeline-card h3 {
  font-size: 1.3rem;
  color: var(--heading);
  margin-bottom: 4px;
}

.company {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

.company .divider {
  color: var(--text-muted);
  margin: 0 2px;
}

.client-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.client-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 5px 14px;
  border-radius: 50px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--border);
}

.card-details {
  display: grid;
  gap: 12px;
}

.card-details li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}

.card-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

.card-details li.impact::before {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.metric {
  color: var(--metric-color);
  font-weight: 600;
}

/* ===== Projects Section ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
  display: flex;
  flex-direction: column;
}

.project-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

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

.project-card:hover {
  border-color: rgba(100, 255, 218, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 30px var(--accent-glow);
}

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

.project-icon {
  color: var(--accent);
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-status.ongoing {
  color: #febc2e;
  background: rgba(254, 188, 46, 0.1);
  border: 1px solid rgba(254, 188, 46, 0.3);
}

.project-status.completed {
  color: #28c840;
  background: rgba(40, 200, 64, 0.1);
  border: 1px solid rgba(40, 200, 64, 0.3);
}

.project-card h3 {
  font-size: 1.15rem;
  color: var(--heading);
  margin-bottom: 6px;
  transition: color 0.2s;
}

.project-card:hover h3 {
  color: var(--accent);
}

.project-org {
  font-size: 0.82rem;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 12px;
  opacity: 0.8;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tech span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent);
}

.project-metrics {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.pm {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.pm-value {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}

.pm-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===== Education Section ===== */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 24px;
}

.edu-card {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.3s;
}

.edu-card:hover {
  border-color: rgba(100, 255, 218, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(100, 255, 218, 0.06);
}

.edu-badge {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.edu-badge.current {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.edu-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 6px;
}

.edu-status.completed-status {
  color: var(--text-muted);
}

.edu-content h3 {
  font-size: 1.1rem;
  color: var(--heading);
  margin-bottom: 4px;
  line-height: 1.4;
}

.edu-school {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
}

.edu-location {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.edu-courses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.edu-courses span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent);
}

/* ===== Contact Section ===== */
.contact-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-terminal {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(100, 255, 218, 0.08);
}

.contact-terminal .terminal-body {
  font-size: 0.8rem;
  line-height: 2.2;
}

.contact-data {
  margin: 12px 0 16px;
  padding: 8px 0;
}

.contact-row {
  display: flex;
  gap: 16px;
  padding: 4px 0;
}

.contact-key {
  color: #ff7b72;
  min-width: 70px;
  font-weight: 500;
}

.contact-key::after {
  content: ',';
  color: #8b949e;
}

.contact-val {
  color: #a5d6ff;
  transition: color 0.2s;
}

a.contact-val:hover {
  color: #64ffda;
}

.blinking-cursor {
  animation: blink 1s step-end infinite;
  color: #64ffda;
}

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

.contact-cta h3 {
  font-size: 1.6rem;
  color: var(--heading);
  font-weight: 700;
}

.contact-cta p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

/* ===== Footer ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  display: flex;
  transition: all 0.2s;
  padding: 8px;
  border-radius: 8px;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateY(-2px);
  background: var(--accent-dim);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

  .about-visual {
    order: -1;
  }

  .data-orbit {
    width: 260px;
    height: 260px;
  }

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

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

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(80vw, 340px);
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.3s;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    z-index: 1050;
    padding: 20px;
  }

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

  .nav-links a {
    font-size: 1rem;
    padding: 12px 20px;
    width: 100%;
    text-align: center;
  }

  .nav-links a::before {
    display: none;
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    padding: 90px 16px 60px;
  }

  .terminal-body {
    font-size: 0.75rem;
    padding: 16px;
  }

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

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .scroll-indicator {
    display: none;
  }

  .cursor-glow {
    display: none;
  }

  .timeline {
    padding-left: 30px;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-marker {
    left: -28px;
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card {
    padding: 16px 12px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .edu-card {
    flex-direction: column;
  }

  .nav-inner {
    padding: 0 16px;
  }
}
