:root {
  --background: #171821;
  --foreground: #e1e1e6;
  --card: #1d1e2a;
  --card-foreground: #e1e1e6;
  --primary: #9cdcfe;
  --primary-foreground: #171821;
  --secondary: #222331;
  --secondary-foreground: #e1e1e6;
  --muted: #222331;
  --muted-foreground: #8a8d9d;
  --accent: #9cdcfe;
  --accent-foreground: #171821;
  --destructive: #db6165;
  --border: #2b2d42;
  --terminal-green: #9ece6a;
  --terminal-yellow: #e0af68;
  --terminal-red: #db6165;
  --terminal-blue: #7aa2f7;
  --radius: 0.4rem;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.6;
}

/* Blinking terminal cursor */
@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background-color: var(--primary);
  animation: blink 1s steps(1) infinite;
  vertical-align: text-bottom;
}

/* Subtle scanline / CRT vignette overlay */
.crt-overlay::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  background: radial-gradient(
    ellipse at center,
    transparent 60%,
    rgba(23, 24, 33, 0.4) 100%
  );
}
.crt-overlay::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.2;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.5) 3px,
    transparent 4px
  );
}

/* Layout */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 56rem;
  margin: 0 auto;
  padding: 1rem;
}

.terminal-window {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: rgba(29, 30, 42, 0.6);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.title-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  background-color: rgba(34, 35, 49, 0.5);
  padding: 0.6rem 1rem;
}

.title-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
}
.dot-red { background-color: var(--terminal-red); }
.dot-yellow { background-color: var(--terminal-yellow); }
.dot-green { background-color: var(--terminal-green); }

.title-text {
  margin-left: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.nav-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border);
  background-color: rgba(34, 35, 49, 0.3);
  padding: 0.5rem 0.75rem;
}

.nav-hint {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-right: 0.25rem;
}

.nav-btn {
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0.125rem 0.5rem;
  border-radius: 0.125rem;
  font-family: inherit;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.nav-btn:hover {
  background-color: rgba(156, 220, 254, 0.1);
  color: var(--primary);
}

.nav-btn.clear-btn {
  margin-left: auto;
}

.terminal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

/* Custom scrollbar */
.terminal-body::-webkit-scrollbar {
  width: 8px;
}
.terminal-body::-webkit-scrollbar-track {
  background: transparent;
}
.terminal-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
.terminal-body::-webkit-scrollbar-thumb:hover {
  background: var(--muted-foreground);
}

.boot-banner {
  margin-bottom: 1rem;
}
.boot-banner pre {
  color: var(--primary);
  font-size: 0.65rem;
  line-height: 1.2;
  overflow-x: auto;
  margin-bottom: 0.75rem;
}

.history-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.history-entry {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.prompt-line {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.prompt-text.dim { color: var(--muted-foreground); }
.prompt-text.green { color: var(--terminal-green); }
.prompt-text.blue { color: var(--terminal-blue); }

.input-container {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--foreground);
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

.suggestions {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-text {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.75rem;
}

/* Utility classes for command output */
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }
.text-green { color: var(--terminal-green); }
.text-yellow { color: var(--terminal-yellow); }
.text-red { color: var(--terminal-red); }

a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(156, 220, 254, 0.4);
  text-underline-offset: 4px;
}
a:hover {
  text-decoration-color: var(--primary);
}

.row {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
@media (min-width: 640px) {
  .row {
    flex-direction: row;
    gap: 0.75rem;
  }
}
.row-label {
  width: 7rem;
  flex-shrink: 0;
  color: var(--muted-foreground);
}

.skill-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}
@media (min-width: 640px) {
  .skill-group {
    flex-direction: row;
    gap: 0.75rem;
  }
}
.skill-label {
  width: 6rem;
  flex-shrink: 0;
  color: var(--muted-foreground);
}
.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.skill-item {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border: 1px solid var(--border);
  border-radius: 0.125rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.875rem;
}

.project-item {
  border-left: 2px solid rgba(156, 220, 254, 0.4);
  padding-left: 0.75rem;
  margin-bottom: 1rem;
}
.project-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.job-item {
  margin-bottom: 1rem;
}
.job-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.job-points {
  list-style: none;
}
.job-points li {
  margin-bottom: 0.125rem;
}
