:root {
  --bg0: #282828;
  --bg1: #3c3836;
  --bg2: #504945;
  --bg3: #665c54;
  --fg1: #ebdbb2;
  --fg4: #a89984;
  --gray: #928374;
  --red: #fb4934;
  --green: #b8bb26;
  --yellow: #fabd2f;
  --aqua: #8ec07c;
  --orange: #fe8019;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg0);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(60, 56, 54, 0.35) 0px,
    rgba(60, 56, 54, 0.35) 1px,
    transparent 1px,
    transparent 3px
  );
  color: var(--fg1);
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, "SFMono-Regular", monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.terminal {
  width: min(92vw, 440px);
  background: var(--bg1);
  border: 1px solid var(--bg2);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg2);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

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

.titlebar-label {
  margin-left: 6px;
  font-size: 12px;
  color: var(--fg4);
}

.screen {
  padding: 28px 26px 30px;
}

.prompt-line {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--fg4);
}

.prompt-sym {
  color: var(--aqua);
  margin-right: 8px;
}

.prompt-cmd {
  color: var(--fg1);
}

.cursor {
  color: var(--orange);
  animation: blink 1s steps(1) infinite;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
}

.content.show {
  animation: reveal 0.5s ease forwards;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: block;
  margin: 0 0 18px;
}

.nick {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--fg1);
}

.nick::before {
  content: "> ";
  color: var(--orange);
}

.stack {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--gray);
  letter-spacing: 0.2px;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--bg2);
  margin: 22px 0 20px;
}

.contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--aqua);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}

.contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.contact:hover,
.contact:focus-visible {
  color: var(--yellow);
}

.contact:focus-visible {
  outline: 1px dashed var(--yellow);
  outline-offset: 4px;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
  .content { opacity: 1; transform: none; }
}
