:root {
  color-scheme: dark;
  --screen: #00a65a;
  --screen-deep: #007a44;
  --terminal: #03170e;
  --terminal-soft: #092517;
  --phosphor: #baffc9;
  --phosphor-bright: #efffde;
  --phosphor-dim: #5cff88;
  --line: rgba(186, 255, 201, 0.28);
  --shadow: rgba(1, 18, 10, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--phosphor);
  background:
    linear-gradient(rgba(3, 23, 14, 0.12) 50%, rgba(3, 23, 14, 0.28) 50%) 0 0 / 100% 4px,
    radial-gradient(circle at 50% 18%, rgba(239, 255, 222, 0.18), transparent 30rem),
    linear-gradient(135deg, var(--screen) 0%, var(--screen-deep) 100%);
  font-family: "Courier New", Courier, monospace;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 20, 10, 0.38) 82%);
}

.terminal-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(14px, 3vw, 32px);
}

.terminal-window {
  width: min(1120px, 100%);
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 23, 14, 0.95);
  box-shadow:
    0 28px 80px var(--shadow),
    inset 0 0 44px rgba(92, 255, 136, 0.08);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 42px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--terminal-soft);
}

.terminal-bar p {
  margin: 0;
  color: var(--phosphor-dim);
  font-size: 0.92rem;
  white-space: nowrap;
}

.window-controls {
  display: flex;
  gap: 8px;
}

.window-controls span {
  display: block;
  width: 12px;
  height: 12px;
  border: 1px solid var(--phosphor-dim);
  border-radius: 50%;
  background: rgba(92, 255, 136, 0.18);
}

.terminal-body {
  display: grid;
  grid-template-columns: minmax(210px, 300px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 4vw, 52px);
  padding: clamp(20px, 3.4vw, 42px);
}

.profile-card {
  margin: 0;
}

.profile-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  box-shadow:
    inset 0 0 34px rgba(92, 255, 136, 0.14),
    0 0 28px rgba(92, 255, 136, 0.18);
  overflow: hidden;
}

.profile-frame::before,
.profile-frame::after {
  position: absolute;
  z-index: 1;
  width: 32px;
  height: 32px;
  content: "";
}

.profile-frame::before {
  top: 10px;
  left: 10px;
  border-top: 2px solid var(--phosphor-dim);
  border-left: 2px solid var(--phosphor-dim);
}

.profile-frame::after {
  right: 10px;
  bottom: 10px;
  border-right: 2px solid var(--phosphor-dim);
  border-bottom: 2px solid var(--phosphor-dim);
}

.profile-frame img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.profile-card figcaption {
  margin-top: 18px;
  color: var(--phosphor-bright);
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 700;
  text-align: center;
  text-shadow: 0 0 12px rgba(186, 255, 201, 0.48);
}

.terminal-output {
  min-width: 0;
  text-shadow: 0 0 12px rgba(186, 255, 201, 0.42);
}

.prompt-line,
.cursor-line {
  margin: 0 0 14px;
  color: var(--phosphor-dim);
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
}

.prompt-line span,
.cursor-line span {
  color: var(--phosphor-bright);
}

.prompt-line b,
.cursor-line b {
  color: #d9ff86;
}

.terminal-output p {
  max-width: 66ch;
  font-size: clamp(1.04rem, 1.6vw, 1.18rem);
  line-height: 1.5;
}

.intro-text {
  margin-top: 0;
  color: var(--phosphor-bright);
}

.command-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 16px;
}

.command-list span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: rgba(92, 255, 136, 0.08);
  color: var(--phosphor-bright);
  font-size: 0.88rem;
}

.cursor-line {
  margin: 0;
}

.cursor-line i {
  display: inline-block;
  width: 0.72em;
  height: 1.05em;
  translate: 0 0.18em;
  background: var(--phosphor-bright);
  box-shadow: 0 0 14px rgba(186, 255, 201, 0.8);
  animation: blink 1s steps(2, end) infinite;
}

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

@media (max-width: 760px) {
  .terminal-page {
    align-items: start;
  }

  .terminal-body {
    grid-template-columns: 1fr;
  }

  .profile-card {
    width: min(280px, 100%);
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
