:root {
  --bg-cyber: #050508;
  --bg-card: #0c0d12;
  --bg-panel: #11121a;
  --bg-active: #171926;
  
  --border-cyber: #1d2030;
  --border-glow: rgba(228, 31, 37, 0.15);
  
  --text-main: #e2e8f0;
  --text-muted: #8892b0;
  --text-dark: #4b5563;
  
  --accent-red: #E41F25;
  --neon-cyan: #00f0ff;
  --neon-pink: #ff3e6c;
  --neon-purple: #9d4edd;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --glow-red: 0 0 15px rgba(228, 31, 37, 0.4);
  --glow-cyan: 0 0 15px rgba(0, 240, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

body {
  background-color: var(--bg-cyber);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

body.interactive-mode {
  cursor: none
}

a, button {
  transition: var(--transition-smooth);
}

body.interactive-mode a,
body.interactive-mode button,
body.interactive-mode select,
body.interactive-mode input,
body.interactive-mode textarea,
body.interactive-mode .project-card,
body.interactive-mode .arch-node {
  cursor: none
}
::selection {
  background-color: rgba(228, 31, 37, 0.2);
  color: var(--accent-red);
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-cyber);
}
::-webkit-scrollbar-thumb {
  background: rgba(228, 31, 37, 0.3);
  border-radius: var(--border-radius-md);
  border: 2px solid var(--bg-cyber);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

#mode-controls {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
  background: rgba(17, 18, 26, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-cyber);
  padding: 8px 16px;
  border-radius: 50px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

#mode-controls:hover {
  border-color: var(--accent-red);
  box-shadow: 0 0 10px rgba(228, 31, 37, 0.1);
}

.mode-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mode-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.mode-label.active {
  color: var(--accent-red);
  text-shadow: 0 0 5px rgba(228, 31, 37, 0.3);
}
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--bg-active);
  transition: .4s;
  border: 1px solid var(--border-cyber);
}

.slider::before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-muted);
  transition: .4s;
}

.slider.round {
  border-radius: 34px;
}

.slider.round::before {
  border-radius: 50%;
}

input:checked + .slider {
  background-color: rgba(228, 31, 37, 0.1);
  border-color: var(--accent-red);
}

input:checked + .slider::before {
  transform: translateX(22px);
  background-color: var(--accent-red);
  box-shadow: var(--glow-red);
}
.view-wrapper {
  display: none;
}

.view-wrapper.active {
  display: block;
}

.cursor {
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(228, 31, 37, 0.3);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: border-color 0.2s, transform 0.1s ease-out;
}

.cursor.hovered {
  width: 12px;
  height: 12px;
  background-color: var(--accent-red);
}

.cursor-ring.hovered {
  border-color: var(--accent-red);
  transform: translate(-50%, -50%) scale(1.5);
  background-color: rgba(228, 31, 37, 0.05);
}

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 80px;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
}

#navbar.scrolled {
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-cyber);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 36px;
  width: auto;
  max-height: 100%;
  display: block;
}

.nav-links-wrapper {
  display: flex;
  align-items: center;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  padding: 8px 0;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background-color: var(--accent-red);
  transition: var(--transition-smooth);
}

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

.nav-links a.accent-link {
  color: var(--accent-red);
}

.nav-links a.accent-link::after {
  background-color: var(--accent-red);
}
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
}

.mobile-nav-toggle .bar {
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-smooth);
}

#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: 100px;
  padding-bottom: 80px;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(29, 32, 48, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 32, 48, 0.2) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center top;
  z-index: 1;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(228, 31, 37, 0.08) 0%, transparent 70%);
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(228, 31, 37, 0.05);
  border: 1px solid rgba(228, 31, 37, 0.15);
  padding: 6px 14px;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 32px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-red);
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.9); opacity: 0.5; box-shadow: 0 0 0 0 rgba(228, 31, 37, 0.7); }
  50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 8px rgba(228, 31, 37, 0); }
  100% { transform: scale(0.9); opacity: 0.5; box-shadow: 0 0 0 0 rgba(228, 31, 37, 0); }
}

.hero-title {
  font-size: clamp(48px, 8vw, 92px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 12px;
  font-family: var(--font-sans);
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-red) 0%, #ff6b6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 40px;
  letter-spacing: -0.5px;
}
.hero-terminal-container {
  background: var(--bg-panel);
  border: 1px solid var(--border-cyber);
  border-radius: var(--border-radius-md);
  margin-bottom: 48px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  max-width: 640px;
  width: 100%;
}

.terminal-bar {
  background: var(--bg-card);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-cyber);
}

.terminal-bar .dots {
  display: flex;
  gap: 6px;
}

.terminal-bar .dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

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

.terminal-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 20px;
}

.terminal-body {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  min-height: 140px;
  line-height: 1.7;
}

.terminal-body .prompt {
  color: var(--accent-red);
}

.terminal-body .typing {
  color: var(--text-main);
  border-right: 2px solid var(--accent-red);
  animation: blink-caret 0.75s step-end infinite;
  white-space: nowrap;
}

.terminal-body .response-line {
  margin-top: 10px;
  animation: fade-in 0.5s forwards;
}
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--accent-red); }
}

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

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--accent-red);
  color: #000;
  border: 1px solid var(--accent-red);
  box-shadow: 0 4px 14px rgba(228, 31, 37, 0.15);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--accent-red);
  box-shadow: 0 4px 20px rgba(228, 31, 37, 0.25);
}

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

.btn-secondary:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.btn-block {
  width: 100%;
}
.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  z-index: 2;
}

.scroll-down:hover {
  color: var(--accent-red);
}

.mouse {
  width: 18px;
  height: 28px;
  border: 1px solid var(--text-muted);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.wheel {
  width: 3px;
  height: 6px;
  background-color: var(--accent-red);
  border-radius: 50%;
  animation: scroll-wheel 1.5s infinite;
}

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

section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-cyber);
}

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

.section-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-red);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.section-title {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-main);
  text-transform: uppercase;
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}

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

.about-text strong {
  color: var(--text-main);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-cyber);
  padding: 24px 20px;
  border-radius: var(--border-radius-md);
  text-align: center;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  border-color: var(--accent-red);
  background: var(--bg-panel);
  box-shadow: 0 4px 20px rgba(228, 31, 37, 0.03);
  transform: translateY(-4px);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 36px);
  color: var(--accent-red);
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.skills-column {
  background: var(--bg-card);
  border: 1px solid var(--border-cyber);
  border-radius: var(--border-radius-md);
  padding: 28px;
  transition: var(--transition-smooth);
}

.skills-column:hover {
  border-color: var(--accent-red);
  box-shadow: 0 4px 20px rgba(228, 31, 37, 0.03);
}

.skill-group-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-main);
  margin-bottom: 24px;
  font-weight: 700;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-group-title .code-symbol {
  color: var(--accent-red);
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-panel);
  border: 1px solid var(--border-cyber);
  padding: 6px 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.skill-pill:hover {
  color: var(--text-main);
  border-color: var(--accent-red);
  background-color: var(--bg-cyber);
}

.skill-pill.highlight {
  border-color: rgba(228, 31, 37, 0.3);
  color: var(--accent-red);
}

.pill-dot {
  width: 5px;
  height: 5px;
  background-color: var(--accent-red);
  border-radius: 50%;
}

.skills-column:hover .skill-pill.highlight {
  box-shadow: 0 0 10px rgba(228, 31, 37, 0.1);
}

.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 180px; top: 0; bottom: 0;
  width: 1px;
  background-color: var(--border-cyber);
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 40px 1fr;
  margin-bottom: 48px;
}

.timeline-date {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-red);
  padding-top: 6px;
  font-weight: 500;
}

.timeline-marker {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10px;
}

.timeline-marker::after {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--bg-cyber);
  border: 2px solid var(--accent-red);
  border-radius: 50%;
  z-index: 2;
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-marker::after {
  background-color: var(--accent-red);
  box-shadow: var(--glow-red);
  transform: scale(1.3);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-cyber);
  border-radius: var(--border-radius-md);
  padding: 28px;
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-content {
  border-color: var(--border-cyber);
  box-shadow: var(--glass-shadow);
  transform: translateX(4px);
}

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

.job-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.job-title .company {
  color: var(--accent-red);
}

.job-type {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  background: var(--bg-panel);
  border: 1px solid var(--border-cyber);
  border-radius: 4px;
  color: var(--text-muted);
}

.job-desc {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 16px;
  font-weight: 500;
}

.job-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.job-bullets li {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  position: relative;
  padding-left: 18px;
}

.job-bullets li::before {
  content: "▸";
  position: absolute;
  left: 0; top: 0;
  color: var(--accent-red);
  font-size: 12px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-cyber);
  border-radius: var(--border-radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, transparent 50%, rgba(228, 31, 37, 0.05) 50%);
  transition: var(--transition-smooth);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-red);
  box-shadow: 0 8px 30px rgba(228, 31, 37, 0.05);
}

.project-card:hover::after {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, transparent 50%, rgba(228, 31, 37, 0.15) 50%);
}

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

.project-number {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-red);
}

.action-hint {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(5px);
  transition: var(--transition-smooth);
  text-transform: uppercase;
}

.project-card:hover .action-hint {
  opacity: 1;
  transform: translateX(0);
}

.project-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.project-description {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

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

.project-tech-tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-cyber);
  color: var(--accent-red);
  padding: 4px 10px;
  border-radius: 4px;
}

.sandbox-intro {
  max-width: 700px;
  margin-bottom: 40px;
}

.sandbox-intro p {
  color: var(--text-muted);
  font-size: 15px;
}

.sandbox-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-cyber);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
}
.sandbox-tabs {
  display: flex;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-cyber);
  padding: 4px 8px 0;
}

.sandbox-tab-btn {
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 14px 20px;
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: var(--transition-smooth);
}

.sandbox-tab-btn:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.02);
}

.sandbox-tab-btn.active {
  color: var(--accent-red);
  background-color: var(--bg-card);
  border: 1px solid var(--border-cyber);
  border-bottom: 1px solid var(--bg-card);
  margin-bottom: -1px;
}

.tab-icon {
  font-size: 13px;
  font-weight: 700;
}
.sandbox-content {
  padding: 24px;
  min-height: 420px;
}

.sandbox-pane {
  display: none;
}

.sandbox-pane.active {
  display: block;
  animation: fade-in 0.3s ease-out forwards;
}
.terminal-mock-window {
  background: #06070a;
  border: 1px solid #141724;
  border-radius: var(--border-radius-md);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
  height: 380px;
}

.terminal-mock-window .window-header {
  background: #0e0f17;
  border-bottom: 1px solid #141724;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terminal-mock-window .window-actions button {
  background: transparent;
  border: 1px solid var(--border-cyber);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 4px;
}

.terminal-mock-window .window-actions button:hover {
  border-color: var(--neon-pink);
  color: var(--neon-pink);
}

.terminal-screen {
  flex-grow: 1;
  padding: 16px;
  overflow-y: auto;
  font-size: 12.5px;
  line-height: 1.6;
}

.terminal-row {
  margin-bottom: 8px;
  word-break: break-all;
}

.terminal-row.command-input-row {
  color: var(--text-main);
}

.terminal-row.output-row {
  color: var(--text-muted);
  white-space: pre-wrap;
}

.terminal-row.error-row {
  color: var(--neon-pink);
}

.accent-text {
  color: var(--accent-red);
  font-weight: 700;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: #040507;
  border-top: 1px solid #141724;
}

.prompt-symbol {
  color: var(--accent-red);
  margin-right: 10px;
  white-space: nowrap;
  font-size: 12px;
}

#terminal-input {
  flex-grow: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.api-explorer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.panel-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.api-endpoint-input-group {
  display: flex;
  background: var(--bg-panel);
  border: 1px solid var(--border-cyber);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.http-method-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.http-method-badge.get { background-color: rgba(16, 185, 129, 0.1); color: #10b981; }
.http-method-badge.post { background-color: rgba(228, 31, 37, 0.1); color: var(--accent-red); }

.api-select {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' viewBox='0 0 24 24' stroke='%238892b0' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.api-select option {
  background-color: var(--bg-panel);
  color: var(--text-main);
}

.api-textarea {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border-cyber);
  outline: none;
  border-radius: var(--border-radius-sm);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 12px;
  resize: vertical;
}

.api-textarea:focus {
  border-color: var(--accent-red);
}
.latency-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.latency-slider-wrapper input[type=range] {
  flex-grow: 1;
  accent-color: var(--accent-red);
  height: 4px;
}

.latency-slider-wrapper span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-red);
  min-width: 44px;
}
.panel-header-with-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-cyber);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.response-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.response-status {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.response-status.success { background-color: rgba(39, 201, 63, 0.1); color: #27c93f; }
.response-status.error { background-color: rgba(255, 95, 86, 0.1); color: #ff5f56; }
.response-status.pending { background-color: rgba(255, 189, 46, 0.1); color: #ffbd2e; }

.response-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.api-response-body {
  background: #06070a;
  border: 1px solid #141724;
  border-radius: var(--border-radius-md);
  padding: 16px;
  height: 250px;
  overflow-y: auto;
}

.api-response-body pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.api-response-body code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
}
.json-key { color: var(--neon-pink); }
.json-string { color: var(--accent-red); }
.json-number { color: var(--neon-purple); }
.json-boolean { color: #10b981; }
.json-null { color: var(--text-dark); }
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.arch-visualizer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  min-height: 380px;
}

.arch-canvas-container {
  background: #06070a;
  border: 1px solid #141724;
  border-radius: var(--border-radius-md);
  padding: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.canvas-help-text {
  font-family: var(--font-sans);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.arch-wire {
  stroke: var(--border-cyber);
  stroke-width: 1.5px;
  fill: none;
  transition: var(--transition-smooth);
}

.arch-node {
  transition: var(--transition-smooth);
  cursor: pointer;
}

.node-shape {
  fill: var(--bg-panel);
  stroke: var(--border-cyber);
  stroke-width: 1.5px;
  transition: var(--transition-smooth);
}

.node-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 10px;
  fill: var(--text-main);
  text-anchor: middle;
  transition: var(--transition-smooth);
}

.node-text.text-accent {
  fill: var(--accent-red);
}

.node-subtext {
  font-family: var(--font-sans);
  font-size: 8.5px;
  fill: var(--text-muted);
  text-anchor: middle;
}

.node-small-sub {
  font-family: var(--font-sans);
  font-size: 8px;
  fill: var(--text-muted);
  text-anchor: middle;
}
.arch-node:hover .node-shape {
  stroke: var(--accent-red);
  fill: var(--bg-active);
  filter: url(#glow);
}

.arch-node.active .node-shape {
  stroke: var(--accent-red);
  fill: var(--bg-active);
  filter: url(#glow);
  stroke-width: 2px;
}

.arch-node:hover .node-text {
  fill: var(--accent-red);
}

.arch-node.active .node-text {
  fill: var(--accent-red);
}
.arch-node:hover ~ .arch-wire,
.arch-node.active ~ .arch-wire {
  stroke: var(--accent-red);
  stroke-width: 2px;
  stroke-dasharray: 4;
  animation: dash 10s linear infinite;
}

@keyframes dash {
  to { stroke-dashoffset: -100; }
}
.arch-info-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-cyber);
  border-radius: var(--border-radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.arch-node-desc p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.arch-node-desc strong {
  color: var(--text-main);
}

.arch-node-stats-box {
  margin-top: auto;
  border-top: 1px solid var(--border-cyber);
  padding-top: 16px;
}

.arch-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.arch-stat-row .label {
  color: var(--text-muted);
}

.arch-stat-row .value {
  color: var(--accent-red);
  font-weight: 600;

}
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-cyber);
  padding: 24px;
  border-radius: var(--border-radius-md);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition-smooth);
}

.edu-card:hover {
  border-color: var(--accent-red);
  background: var(--bg-panel);
  box-shadow: 0 4px 20px rgba(228, 31, 37, 0.03);
  transform: translateY(-4px);
}

.edu-icon {
  font-size: 24px;
  line-height: 1;
}

.edu-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.edu-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-red);
  font-weight: 600;
}

.edu-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

.edu-institution {
  font-size: 12.5px;
  color: var(--text-muted);
}

.orgs-container {
  margin-top: 56px;
  border-top: 1px solid var(--border-cyber);
  padding-top: 40px;
}

.orgs-heading {
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-main);
  margin-bottom: 24px;
  font-weight: 700;
}

.orgs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.org-card {
  background: var(--bg-card);
  border: 1px solid var(--border-cyber);
  padding: 24px;
  border-radius: var(--border-radius-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--transition-smooth);
}

.org-card:hover {
  border-color: var(--accent-red);
  background: var(--bg-panel);
  box-shadow: 0 4px 20px rgba(228, 31, 37, 0.03);
  transform: translateY(-4px);
}

.org-role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.org-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.org-date {
  font-size: 12.5px;
  color: var(--text-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.contact-lead {
  font-size: clamp(16px, 3vw, 22px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-main);
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 32px;
}

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

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-cyber);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
}

.contact-detail-item:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  transform: translateX(4px);
}

.contact-detail-item .icon {
  font-size: 14px;
  color: var(--accent-red);
}
.contact-form-container {
  background: var(--bg-card);
  border: 1px solid var(--border-cyber);
  border-radius: var(--border-radius-md);
  padding: 32px;
}

.contact-form-header {
  margin-bottom: 24px;
}

.form-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.form-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.contact-form .form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group-half {
  flex: 1;
}

.contact-form label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border-cyber);
  outline: none;
  border-radius: var(--border-radius-sm);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 12px;
  transition: var(--transition-smooth);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 10px rgba(228, 31, 37, 0.05);
}

footer {
  padding: 40px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-badges {
  display: flex;
  gap: 10px;
}

.footer-badges .badge {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  border: 1px solid var(--border-cyber);
  padding: 4px 10px;
  border-radius: 50px;
}

#printable-wrapper {
  background-color: #f3f4f6;
  color: #1f2937;
  padding: 40px 20px;
  min-height: 100vh;
}

.cv-page {
  max-width: 820px;
  margin: 0 auto;
  background-color: #fff;
  padding: 40px 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  font-family: var(--font-sans);
}

.cv-actions {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.cv-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 2px solid #1f2937;
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.cv-name {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  line-height: 1.1;
  margin-bottom: 4px;
}

.cv-title {
  font-size: 15px;
  font-weight: 600;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cv-header-right {
  text-align: right;
}

.cv-meta {
  font-size: 12.5px;
  color: #4b5563;
  margin-bottom: 4px;
}

.cv-section {
  margin-bottom: 24px;
}

.cv-section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #111827;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 4px;
  margin-bottom: 12px;
}

.cv-summary-text {
  font-size: 12.5px;
  line-height: 1.6;
  color: #374151;
}

.cv-skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  font-size: 12px;
  color: #374151;
}

.cv-job {
  margin-bottom: 16px;
}

.cv-job-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #111827;
  margin-bottom: 2px;
}

.cv-job-location {
  font-size: 11px;
  font-style: italic;
  color: #6b7280;
  margin-bottom: 6px;
}

.cv-job-bullets {
  list-style-type: disc;
  margin-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cv-job-bullets li {
  font-size: 12px;
  line-height: 1.5;
  color: #374151;
}

.cv-project {
  margin-bottom: 12px;
  font-size: 12px;
}

.cv-project p {
  color: #4b5563;
  margin-top: 2px;
}

.cv-bullets {
  list-style-type: square;
  margin-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cv-bullets li {
  font-size: 12px;
  color: #374151;
}

@media (max-width: 1024px) {
  .timeline-container::before {
    left: 24px;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    margin-bottom: 32px;
    padding-left: 48px;
    position: relative;
  }
  .timeline-date {
    text-align: left;
    margin-bottom: 8px;
  }
  .timeline-marker {
    position: absolute;
    left: 20px;
    top: 6px;
  }
  .arch-visualizer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: flex;
    z-index: 110;
  }
  
  .nav-links-wrapper {
    position: fixed;
    top: 0; right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--bg-panel);
    border-left: 1px solid var(--border-cyber);
    transition: var(--transition-smooth);
    padding: 100px 24px;
  }
  
  .nav-links-wrapper.active {
    right: 0;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 24px;
  }
  
  .mobile-nav-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .mobile-nav-toggle.active .bar:nth-child(2) { opacity: 0; }
  .mobile-nav-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-form-container {
    padding: 24px;
  }

  .api-explorer-grid {
    grid-template-columns: 1fr;
  }
  
  .api-response-body {
    height: 200px;
  }

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

  .cv-header {
    grid-template-columns: 1fr;
  }
  .cv-header-right {
    text-align: left;
    margin-top: 10px;
  }

  #mode-controls {
    display: none !important;
  }

  body.interactive-mode {
    cursor: auto !important;
  }
  body.interactive-mode a,
  body.interactive-mode button,
  body.interactive-mode select,
  body.interactive-mode input,
  body.interactive-mode textarea,
  body.interactive-mode .project-card,
  body.interactive-mode .arch-node {
    cursor: auto !important;
  }
  .cursor, .cursor-ring {
    display: none !important;
  }

  .cv-page {
    padding: 24px 20px;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .projects-grid,
  .skills-grid,
  .education-grid,
  .orgs-grid {
    grid-template-columns: 1fr;
  }

  .sandbox-tabs {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
  }
  .sandbox-tabs::-webkit-scrollbar {
    display: none;
  }
  .sandbox-tab-btn {
    flex-shrink: 0;
    padding: 12px 14px;
  }

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

  .edu-card, .org-card {
    padding: 16px;
    gap: 12px;
  }
}

@media (max-width: 400px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: 34px;
    letter-spacing: -1px;
  }
}

@media print {
  .no-print,
  #mode-controls,
  .cursor,
  .cursor-ring,
  #interactive-wrapper,
  .cv-actions {
    display: none !important;
  }

  #printable-wrapper {
    display: block !important;
    background-color: #fff !important;
    color: #000 !important;
    padding: 0 !important;
    min-height: 0 !important;
  }

  body {
    background-color: #fff !important;
    color: #000 !important;
  }

  .cv-page {
    box-shadow: none !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .cv-header {
    border-bottom: 2px solid #000 !important;
  }

  .cv-section-title {
    border-bottom: 1px solid #000 !important;
    color: #000 !important;
  }

  .cv-job, .cv-project, .cv-section {
    page-break-inside: avoid;
  }

  .page-break-before {
    page-break-before: always;
  }

  a {
    color: #000 !important;
    text-decoration: none !important;
  }
}
