@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg: #0d0f0d;
  --fg: #8fbf9f;
  --fg-dim: #5c7a68;
  --fg-bright: #b7dcc4;
  --border: #2b3a30;
  --red: #a8574f;
  --yellow: #b89a5a;
  --green: #5c8a68;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  min-height: 100vh;
}

.crt {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,0.1),
      rgba(0,0,0,0.1) 1px,
      transparent 1px,
      transparent 2px
    );
}

.terminal-window {
  width: 100%;
  max-width: 820px;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
  background: #0a0c0a;
  overflow: hidden;
}

.title-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #101410;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.75;
}
.dot.red { background: var(--red); }
.dot.yellow { background: var(--yellow); }
.dot.green { background: var(--green); }

.title-bar .path {
  margin-left: 12px;
  color: var(--fg-dim);
  font-size: 13px;
}

.lang-switch {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

.lang-flag {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 3px 5px;
  opacity: 0.45;
  filter: grayscale(60%);
  transition: opacity 0.15s ease, filter 0.15s ease, border-color 0.15s ease;
}

.lang-flag:hover {
  opacity: 0.8;
  filter: grayscale(20%);
}

.lang-flag.active {
  opacity: 1;
  filter: grayscale(0%);
  border-color: var(--border);
}


.terminal-body {
  padding: 28px 32px 40px;
  line-height: 1.6;
}

.line { margin: 6px 0; color: var(--fg-dim); }
.prompt { color: var(--fg-bright); margin-right: 6px; }

.typewriter {
  font-size: 2.2rem;
  font-weight: 500;
  margin: 6px 0 18px;
  color: var(--fg-bright);
  border-right: 2px solid var(--fg-dim);
  white-space: nowrap;
  overflow: hidden;
  width: fit-content;
  animation: blink-caret 0.9s step-end infinite;
}

.about { max-width: 640px; color: var(--fg); }

.menu ul, .projects-list {
  list-style: none;
  padding-left: 12px;
  margin: 8px 0 20px;
}

.menu li, .projects-list li { margin: 4px 0; }

.menu a, a {
  color: var(--fg-bright);
  text-decoration: none;
  border-bottom: 1px dashed var(--fg-dim);
}
.menu a:hover, a:hover {
  color: #e6f0ea;
  border-bottom-color: var(--fg-bright);
}

.comment { color: #3f4f45; font-size: 0.85em; }

.section { margin-top: 24px; }

.projects-list li { color: var(--fg); }

.cursor {
  display: inline-block;
  animation: blink 1s step-start infinite;
  color: var(--fg);
}

.prompt-final { margin-top: 24px; }

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

@keyframes blink-caret {
  50% { border-color: transparent; }
}

@media (max-width: 600px) {
  .terminal-body { padding: 20px; }
  .typewriter { font-size: 1.6rem; white-space: normal; }
}
