:root {
  --bg: #000000;
  --panel: #060606;
  --text: #e6e6e0;
  --muted: #a7a7a0;
  --accent: #5ee6b1;
  --accent-2: #52d6ff;
  --border: rgba(255, 255, 255, 0.14);
  --shadow: rgba(0, 0, 0, 0.65);
  --danger: #ff4d4d;
  --warning: #ffd24d;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Consolas, "Lucida Console", "Courier New", Courier, monospace;
  line-height: 1.35;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 12px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.skip-link:focus {
  left: 8px;
  z-index: 10;
}

.app {
  min-height: 100%;
  display: block;
  padding: 0;
}

.frame {
  width: 100%;
  min-height: 100vh;
  background: var(--bg);
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.frame__topbar {
  display: none;
}

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

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  opacity: 0.95;
}

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

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

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

.frame__title {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.2px;
}

.terminal {
  padding: 18px 18px 14px;
  min-height: 100vh;
  outline: none;
  cursor: text;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  font-family: Consolas, "Lucida Console", "Courier New", Courier, monospace;
  font-size: 1.3rem;
  color: #e6e6e0;
  background: #000;
  border-radius: 12px;
}

.output {
  flex: 0 0 auto;
  overflow: visible;
  padding-right: 8px;
  scrollbar-gutter: stable;
}

.terminal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-bottom: 8px;
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.92);
}

.terminal-header .line {
  line-height: 1.22;
}

.terminal-header .section-title {
  margin-top: 14px;
}

.terminal-header pre.line {
  line-height: 1.05;
}

.terminal-history {
  display: grid;
  gap: 8px;
}

.terminal::-webkit-scrollbar {
  width: 10px;
}

.terminal::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.7);
}

.line {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.line--muted {
  color: var(--muted);
}

.line--error {
  color: #ff8a8a;
}

.input-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: 12px;
}

.prompt {
  color: #5EE6B1;
  font-family: Consolas, "Lucida Console", "Courier New", Courier, monospace;
  font-size: 1.3rem;
  margin-right: 0px;
  white-space: nowrap;
}

.typed {
  background: transparent;
  border: none;
  color: #e6e6e0;
  font-family: Consolas, "Lucida Console", "Courier New", Courier, monospace;
  font-size: 1.3rem;
  outline: none;
  flex: 0 0 auto;
  width: auto;
  white-space: pre;
  caret-color: transparent;
}

.caret {
  width: 6px;
  height: 18px;
  background: rgba(94, 230, 177, 0.95);
  display: inline-block;
  transform: translateY(3px);
  animation: blink 1.1s steps(1) infinite;
}

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

.hidden-input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 10px;
}

.card {
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.55);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.card__title {
  color: var(--accent-2);
  font-weight: 700;
}

.card__meta {
  color: var(--muted);
  font-size: 13px;
}

.preview {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(17, 17, 17, 0.9);
  border-radius: 10px;
  height: 120px;
  display: grid;
  place-items: center;
  color: rgba(230, 230, 224, 0.7);
  font-size: 12px;
}

.action-link {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
}

.action-link:hover,
.action-link:focus {
  text-decoration: underline;
}

/* === modulo who/w === */
.who-card {
  width: min(900px, calc(100% - 24px));
  margin: 14px auto;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid #333;
  background: rgba(13, 13, 13, 0.92);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.65);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  white-space: normal;
}

 .who-card p {
   margin: 0;
 }

.who-card__left {
  border-radius: 16px;
  border: none;
  background: transparent;
  overflow: hidden;
  padding: 0;
  display: grid;
  gap: 5px;
  align-content: start;
}

.who-card__ascii {
  margin-top: 12px;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  color: rgba(94, 230, 177, 0.55);
  font-size: 4px;
  line-height: 1.05;
  white-space: pre;
}

.who-card__right {
  display: grid;
  gap: 4px;
  align-content: start;
}

.who-card__name {
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1.05;
  font-size: 1.6rem;
}

.who-card__left .who-card__name {
  font-size: 28px;
  color: #52d6ff;
  letter-spacing: 0.2px;
}

.who-card__heading {
  color: rgba(230, 230, 224, 0.92);
  font-weight: 800;
  margin-bottom: 4px;
  margin-top: 8px;
}

.who-card__heading:first-child {
  margin-top: 0;
}

.who-card__text .line {
  line-height: 1.4;
  font-size: 1rem;
  color: rgba(230, 230, 224, 0.9);
  margin: 0 0 16px;
}

.who-card__text .line:last-child {
  margin-bottom: 0;
}

.who-card__accent {
  color: rgba(82, 214, 255, 0.95);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.who-card__strong {
  color: rgba(230, 230, 224, 0.98);
  font-weight: 800;
}

@media (max-width: 860px) {
  .who-card {
    grid-template-columns: 1fr;
  }
}

/* === modulo skills/s === */
.skills-block {
  white-space: normal;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 14px;
  line-height: 1.4;
}

.skills-grid {
  width: min(900px, calc(100% - 24px));
  margin: 14px auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

@media (max-width: 860px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

.skills-card {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px;
  padding-bottom: 56px;
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skills-item {
  color: #5EE6B1;
  transition: transform 0.2s ease, color 0.2s ease;
  transform-origin: left center;
}

.skills-item:hover {
  transform: scale(1.08) translateX(2px);
  color: #ffffff;
}

.skills-card__label {
  position: absolute;
  bottom: 15px;
  right: 15px;
  color: #555;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

