:root {
  --highlight: #509475;
  --highlight-2: #D7C995;
  --text-color: #C1C497;
  --background: #111c18;
}

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

html {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-color);
}
/* ====================================== */
/* Layout */
/* ====================================== */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--background);
  padding: 2rem;
}

.scanline {
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.05) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
  background-size: 100% 4px, 3px 100%;
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}
/* ====================================== */
/* Sections */
/* ====================================== */
.terminal-container {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(90vw, calc(90vh * 1.6));
  aspect-ratio: 16 / 10;
  border: 1px solid var(--highlight);
  border-radius: 10px;
  overflow: hidden;
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #0d1712;
  border-bottom: 1px solid #1e2e27;
  border-radius: 10px 10px 0 0;
}

.dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  cursor: pointer;
}
.dot-close { background: #ff5f57; }
.dot-min   { background: #febc2e; }
.dot-max   { background: #28c840; }

.titlebar-label {
  flex: 1;
  text-align: center;
  font-size: 1rem;
  color: var(--highlight);
  letter-spacing: 0.05em;
}

.titlebar-info {
  font-size: 1rem;
  color: var(--highlight);
  letter-spacing: 0.05em;
}

.terminal-body {
  position: relative;
  z-index: 1;
  padding: 2rem;
  flex: 1;
  overflow: hidden;
  flex-direction: column;
}

.terminal-prompt {
  color: var(--highlight-2);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.menu-btn {
  background: transparent;
  border: 1px solid var(--highlight);
  color: var(--text-color);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  padding: 10px 16px;
  text-align: left;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.03em;
}

.menu-btn:hover,
.menu-btn.active {
  background: #1a2e25;
  color: var(--highlight-2);
  border-color: var(--highlight-2);
}

#back-btn {
  max-width: 15ch;
}

.bracket {
  color: var(--highlight);
  margin-right: 1rem;
}

.terminal-output {
  color: var(--text-color);
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  min-height: 20px;
  letter-spacing: 0.03em;
}

#ascii {
  position: absolute;
  display: flex;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 6px;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
/* ====================================== */
/*  Projects view */
/* ====================================== */
#content-view {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#content-output {
  flex: 1;
  overflow-y: auto;
  display: center;
  margin-top: 1rem;
  min-height: 0;
  flex-direction: column;
  align-items: center;
}

.proj-output {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
}

.proj-divider { color: var(--highlight);  }
.proj-name    { color: var(--highlight-2); font-size: 1.2rem; }
.proj-desc    { color: var(--text-color); }
.proj-lang    { color: var(--highlight); }
.proj-url a   { color: var(--highlight); text-decoration: none; }
.proj-url a:hover { text-decoration: underline; }
/* ====================================== */
/* Coding Streak view */
/* ====================================== */
.streak-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}

.streak-progress {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.streak-label {
  color: var(--highlight-2);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.streak-bar {
  color: var(--highlight);
  font-size: 1.2rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}

.streak-divider {
  color: var(--highlight);
  font-size: 1rem;
  letter-spacing: -0.05em;
}

.streak-log {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.streak-log-label {
  color: var(--highlight-2);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.streak-events {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: 'JetBrains Mono', monospace;
}

.streak-note {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.streak-note p {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.streak-note a {
  color: var(--highlight);
  text-decoration: none;
}

.streak-note a:hover {
  text-decoration: underline;
}

.streak-note img {
  width: 30rem;
  height: auto;
  border: 1px solid var(--highlight);
  border-radius: 4px;
}
/* ====================================== */
/* Contact Card */
/* ====================================== */
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  gap: 1rem;
  color: var(--text-color);
  width: 100%;
  align-self: center;
}

.contact-avatar {
  width: 15rem;
  height: auto;
  border-radius: 8px;
  border: 2px solid var(--highlight);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d1712;
}

.contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-name {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--highlight-2);
  margin: 0;
  letter-spacing: 0.05em;
}

.contact-title {
  font-size: 1rem;
  color: var(--highlight);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-divider {
  color: var(--highlight);
  font-size: 1.2rem;
  letter-spacing: -0.05em;
  width: 100%;
  text-align: center;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
  max-width: 300px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--highlight);
  border-radius: 4px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.7rem;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}

.contact-link:hover {
  background: #1a2e25;
  color: var(--highlight-2);
}

.contact-icon {
  color: var(--highlight);
  font-weight: 500;
}

.contact-email {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.contact-email-label {
  font-size: 1rem;
  color: var(--highlight);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-email-link {
  font-size: 1.2rem;
  color: var(--highlight-2);
  text-decoration: none;
  border: 1px solid var(--highlight-2);
  padding: 0.5rem 0.7rem;
  border-radius: 4px;
  transition: background 0.15s;
}

.contact-email-link:hover {
  background: #1a2e25;
  color: var(--highlight-2);
}
/* ====================================== */
/* Cursor */
/* ====================================== */
.cursor {
  display: inline-block;
  width: 0.5rem;
  height: 1rem;
  background-color: var(--highlight);
  margin-left: 2px;
  animation: blink 0.7s infinite;
}

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

@media (max-width: 715px) {
  body {
    padding: 1rem;
    align-items: flex-start;
    min-height: 100dvh;
  }

  .terminal-container {
    width: 100%;
    aspect-ratio: unset;
    height: calc(100dvh - 2rem); /
  }

  .terminal-body {
    padding: 1rem;
  }

  .menu-btn {
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
  }

  .titlebar-info {
    display: none;
  }

  .streak-bar {
    font-size: 0.9rem;
  }

  .streak-note img {
    width: 100%;
  }

  .contact-link {
    font-size: 1rem;
  }
}
