:root {
  --bg: #0a0a0a;
  --text: #fafafa;
  --text-secondary: #888888;
  --accent-green: #00ff88;
  --accent-blue: #3b82f6;
  --border: #222222;
  --dot-red: #ff5f56;
  --dot-yellow: #ffbd2e;
  --dot-green: #27c93f;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-system: system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: #1a1a1a;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 32px 16px;
}

.terminal-window {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-width: 900px;
  width: 100%;
  overflow: hidden;
}

.title-bar {
  background: #111111;
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

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

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

.dot-red { background: var(--dot-red); }
.dot-yellow { background: var(--dot-yellow); }
.dot-green { background: var(--dot-green); }

.title-bar-title {
  flex: 1;
  text-align: center;
  color: var(--text-secondary);
  font-size: 12px;
}

.lang-toggle {
  display: flex;
  gap: 4px;
  font-size: 12px;
}

.lang-toggle button {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
}

.lang-toggle button.active {
  color: var(--accent-green);
}

.terminal-body {
  padding: 24px;
}

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

.prompt-path {
  color: var(--accent-blue);
}

.prompt-symbol {
  color: var(--text);
}

.command {
  color: var(--text);
}

.section-block {
  margin-bottom: 32px;
}

.section-block.hidden-section {
  display: none;
}

.project-title {
  color: var(--accent-green);
  font-weight: 700;
}

.project-role {
  color: var(--text-secondary);
}

.project-quote {
  border-left: 2px solid #333;
  padding-left: 12px;
  color: var(--text-secondary);
  margin: 8px 0;
}

.project-list {
  list-style: none;
}

.project-list li::before {
  content: '- ';
  color: var(--accent-blue);
}

.contact-key {
  color: var(--accent-green);
}

.contact-value a {
  color: var(--text);
  text-decoration: none;
}

.contact-value a:hover {
  text-decoration: underline;
}

.dir-listing {
  color: var(--accent-blue);
}

.dir-permissions {
  color: var(--accent-blue);
}

.neofetch-layout {
  display: flex;
  gap: 24px;
}

.text-secondary {
  color: var(--text-secondary);
}

.neofetch-stats {
  line-height: 1.7;
}

.cursor {
  color: var(--accent-green);
  animation: blink 1.06s step-end infinite;
}

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

.typed-line {
  visibility: hidden;
}

.typed-line.revealed {
  visibility: visible;
}

.color-block {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  margin-right: 4px;
}

/* Interactive terminal */
#terminal-output {
  margin-bottom: 8px;
}

.terminal-output-line {
  margin-bottom: 4px;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 0;
}

#terminal-input {
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: inherit;
  outline: none;
  width: 1ch;
  min-width: 1ch;
  padding: 0;
  margin-left: 8px;
  caret-color: transparent;
}

.input-cursor {
  margin-left: -2px;
}

@media (max-width: 768px) {
  body {
    padding: 0;
  }

  .terminal-window {
    border-radius: 0;
    border: none;
    min-height: 100vh;
  }

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

  .ascii-logo {
    display: none;
  }

  .neofetch-layout {
    flex-direction: column;
  }

  .title-bar {
    position: sticky;
    top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .typed-line {
    visibility: visible !important;
  }

  .cursor {
    animation: none;
    opacity: 1;
  }

  html {
    scroll-behavior: auto;
  }
}
