:root {
  --bg-main: #0B0308;
  --bg-surface: #1A0810;
  --bg-surface-hover: #2A1018;
  --bg-frame: #000000;
  --color-primary: #D946EF;
  --color-secondary: #C026D3;
  --text-primary: #F3F0FF;
  --text-secondary: #F3F0FF;
  --text-heading: #FFFFFF;
  --color-accent: #10B981;
  --color-primary-hover: #C026D3;
  --status-success: #10B981;
  --status-error: #EF4444;
  --status-warning: #F59E0B;
  --status-info: #D946EF;
  --sans: "Sora", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  --radius: 18px;
  --line: rgba(217, 70, 239, 0.28);
  --glow-primary: 0 0 48px rgba(217, 70, 239, 0.15);
  --glow-accent: 0 0 18px rgba(16, 185, 129, 0.35);
  --glow-info: 0 0 18px rgba(217, 70, 239, 0.28);
  --frame-border: #8B5CF6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text-primary);
  font-family: var(--sans);
  background: var(--bg-main);
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -6rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  color: var(--text-heading);
  background: var(--bg-surface);
  border: 1px solid var(--frame-border);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.85rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

#conteudo:focus {
  outline: none;
}

h1,
h2,
h3 {
  color: var(--text-heading);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.bg-grid,
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(217, 70, 239, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 70, 239, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 78%);
}

.bg-glow {
  background:
    radial-gradient(circle at 12% 8%, rgba(217, 70, 239, 0.2), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(217, 70, 239, 0.12), transparent 28%),
    radial-gradient(circle at 50% 92%, rgba(217, 70, 239, 0.1), transparent 30%);
}

.topbar,
.lang-banner,
main {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 20px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--frame-border);
}

.brand-sigil {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--frame-border);
  box-shadow: none;
  font-weight: 600;
}

.dim {
  color: var(--frame-border);
}

.sys-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.topbar-end {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0.7rem 1.25rem;
  background: transparent;
  color: var(--text-primary);
  text-align: center;
}

.lang-banner p {
  margin: 0;
  max-width: 52rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
}

.lang-banner a,
.lang-banner a:visited {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.lang-banner a:hover,
.lang-banner a:focus-visible {
  color: var(--color-accent);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--frame-border);
  box-shadow: none;
  animation: pulse 1.8s ease-in-out infinite;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 20px 0;
}

.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 70, 239, 0.4), transparent);
  width: 80%;
  margin: 0 auto;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  margin-bottom: 0;
  padding-top: 1.5rem;
  padding-bottom: 5rem;
  text-align: left;
}

.hero-copy {
  flex: 1 1 52%;
  min-width: 0;
}

.hero-visual {
  flex: 1 1 42%;
  min-width: 0;
  display: flex;
  align-items: center;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--frame-border);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.availability-badge:hover,
.availability-badge:focus-visible {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: rgba(16, 185, 129, 0.08);
  box-shadow: var(--glow-accent);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.75);
}

.availability-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--frame-border);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.95), 0 0 18px rgba(139, 92, 246, 0.45);
  animation: pulse 1.8s ease-in-out infinite;
}

.availability-badge:hover .availability-dot,
.availability-badge:focus-visible .availability-dot {
  background: var(--color-accent);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.95), 0 0 18px rgba(16, 185, 129, 0.45);
}

.hero-name {
  margin: 18px 0 6px;
  color: var(--text-heading);
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero-role {
  margin: 0 0 18px;
  font-size: clamp(1.35rem, 3.2vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--frame-border);
  background: none;
  -webkit-text-fill-color: unset;
}

.hero-desc {
  margin: 0;
  max-width: 38rem;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--frame-border);
  border-radius: 10px;
  background: transparent;
  color: #FFFFFF;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-btn:hover,
.hero-btn:focus-visible,
.hero-btn-primary:hover,
.hero-btn-primary:focus-visible,
.hero-btn-secondary:hover,
.hero-btn-secondary:focus-visible {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: rgba(16, 185, 129, 0.08);
  box-shadow: var(--glow-accent);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.75);
}

.hero-btn-primary,
.hero-btn-secondary {
  border: 1px solid var(--frame-border);
  color: #FFFFFF;
  background: transparent;
}

.boot-terminal {
  width: 100%;
  margin: 0;
  text-align: left;
  border: 1px solid var(--frame-border);
  border-radius: var(--radius);
  background: transparent;
  box-shadow: var(--glow-primary);
  overflow: hidden;
}

.boot-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--frame-border);
  background: transparent;
}

.boot-chrome .terminal-title {
  color: var(--frame-border);
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

#chat,
#quick-actions,
#projetos,
#terminal-interativo,
#contato {
  scroll-margin-top: 20px;
}

.about-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-bottom: 0;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.about-body {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-copy {
  flex: 1 1 42%;
  min-width: 0;
  max-width: 34rem;
}

.about-header {
  margin-bottom: 14px;
}

.about-copy > p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
}

.about-copy > p:last-child {
  margin-bottom: 0;
}

.about-chat {
  flex: 1 1 58%;
  min-width: 0;
}

.projects {
  margin: 0;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.projects-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 28px;
}

.projects-index {
  margin: 0;
  color: var(--frame-border);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
}

.projects-header h2 {
  margin: 0;
  color: var(--text-heading);
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.projects-comment {
  margin: 0;
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 0.88rem;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0 0 24px;
}

.filter-cmd {
  padding: 6px 10px;
  border: 1px solid var(--frame-border);
  border-radius: 8px;
  background: transparent;
  color: #FFFFFF;
  font-family: var(--mono);
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-cmd:hover,
.filter-cmd:focus-visible,
.filter-cmd.active {
  color: var(--color-primary);
  background: transparent;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(217, 70, 239, 0.3);
}

.projects-log-window {
  max-height: none;
  overflow: visible;
  padding: 14px 10px 16px 14px;
  border: 1px solid var(--frame-border);
  border-radius: 14px;
  background: transparent;
  box-shadow: var(--glow-primary);
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) transparent;
}

.projects-log-window::-webkit-scrollbar {
  width: 6px;
}

.projects-log-window::-webkit-scrollbar-track {
  margin: 8px 0;
  background: transparent;
}

.projects-log-window::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  box-shadow:
    0 0 8px rgba(217, 70, 239, 0.85),
    0 0 16px rgba(217, 70, 239, 0.45);
}

.projects-log-window::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-hover);
  box-shadow:
    0 0 10px rgba(217, 70, 239, 1),
    0 0 18px rgba(217, 70, 239, 0.7);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-height: 432px;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-anchor: none;
  padding-right: 12px;
  padding-bottom: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) rgba(217, 70, 239, 0.05);
}

.projects-grid::-webkit-scrollbar {
  width: 8px;
}

.projects-grid::-webkit-scrollbar-track {
  background: rgba(217, 70, 239, 0.05);
  border-radius: 4px;
}

.projects-grid::-webkit-scrollbar-thumb {
  background: var(--color-primary, #d946ef);
  border-radius: 4px;
}

.projects-grid::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary, #8b5cf6);
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.75rem;
  min-height: 0;
  height: 100%;
  padding: 1.2rem 1.5rem;
  border: 1px solid var(--frame-border);
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.project-card:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--color-accent);
  box-shadow: var(--glow-accent);
}

.project-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.project-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.project-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.project-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-card h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-card:hover h3 {
  color: #059669;
}

.project-pill {
  flex-shrink: 0;
  padding: 4px 10px;
  border: 1px solid var(--frame-border);
  border-radius: 50px;
  background: transparent;
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, text-shadow 0.3s ease;
}

.project-card:hover .project-pill {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: rgba(16, 185, 129, 0.06);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.22);
  text-shadow: 0 0 6px rgba(16, 185, 129, 0.28);
}

.project-award {
  margin: 6px 0 0;
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.project-access {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.project-card-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-top: auto;
}

.project-desc {
  flex-grow: 1;
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  white-space: normal;
  overflow: visible;
  word-break: break-word;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-tags li {
  padding: 5px 10px;
  border: 1px solid var(--frame-border);
  border-radius: 50px;
  background: transparent;
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.72rem;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, text-shadow 0.3s ease;
}

.project-card:hover .project-tags li {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: rgba(16, 185, 129, 0.06);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.22);
  text-shadow: 0 0 6px rgba(16, 185, 129, 0.28);
}

.boot-log {
  min-height: 10.5rem;
  padding: 16px 18px 18px;
  background: transparent;
}

.boot-line {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

.boot-prompt {
  color: var(--color-accent);
  font-weight: 600;
}

.boot-ok {
  color: var(--color-accent);
  font-weight: 600;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.75);
}

.boot-cursor {
  display: inline-block;
  margin-left: 4px;
  color: var(--color-accent);
  font-weight: 600;
  animation: blink 1s step-end infinite;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  margin-left: 5px;
  vertical-align: middle;
  background-color: var(--color-accent);
  animation: blink 1s step-end infinite;
}

.terminal {
  border: 1px solid var(--frame-border);
  border-radius: var(--radius);
  background: transparent;
  box-shadow: var(--glow-primary);
  overflow: hidden;
}

.terminal-chrome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--frame-border);
  background: transparent;
}

.traffic {
  display: flex;
  gap: 6px;
}

.traffic span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.traffic span:nth-child(1) {
  background: var(--status-error);
}
.traffic span:nth-child(2) {
  background: var(--status-warning);
}
.traffic span:nth-child(3) {
  background: var(--status-success);
}

.terminal-title,
.terminal-hint {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.terminal-title {
  color: var(--text-secondary);
}

.terminal-hint {
  color: var(--frame-border);
}

.chat-log {
  height: min(38vh, 320px);
  overflow-y: auto;
  padding: 20px 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
  background: transparent;
}

.msg {
  max-width: 82%;
  padding: 12px 14px;
  border: 1px solid var(--frame-border);
  border-radius: 10px;
  background: transparent;
  animation: rise 220ms ease-out;
}

.msg p {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 1.65;
}

.ai-prefix {
  color: var(--frame-border);
}

.msg-meta {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.msg-user {
  align-self: flex-end;
  background: transparent;
  border-color: var(--frame-border);
  box-shadow: var(--glow-primary);
}

.msg-user .msg-meta {
  color: var(--frame-border);
  text-align: right;
}

.msg-agent {
  align-self: flex-start;
  background: transparent;
  border-color: var(--frame-border);
  box-shadow: var(--glow-primary);
}

.msg-agent .msg-meta {
  color: var(--frame-border);
}

.msg-typing {
  max-width: 8.5rem;
  padding: 12px 16px 14px;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 1.2rem;
}

.typing-indicator .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--frame-border);
  color: transparent;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  animation: typingBlink 1.4s infinite both;
}

.typing-indicator .dot:nth-child(1) {
  animation-delay: 0s;
}

.typing-indicator .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator .dot:nth-child(3) {
  animation-delay: 0.4s;
}

.command-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 16px;
  border-top: 1px solid var(--frame-border);
  background: transparent;
}

.prompt-sign {
  color: var(--color-accent);
  font-family: var(--mono);
  font-weight: 600;
}

.command-display {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 1.5;
}

#command-text {
  color: var(--frame-border);
  white-space: pre-wrap;
  word-break: break-word;
}

#command-text.is-placeholder {
  color: var(--text-secondary);
}

.caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 3px;
  background: var(--color-accent);
  box-shadow: var(--glow-accent);
  animation: blink 1s step-end infinite;
  flex-shrink: 0;
}

.action-btn:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--frame-border);
}

.action-btn {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--frame-border);
  border-radius: 50px;
  background: transparent;
  color: #ffffff;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-btn:hover,
.action-btn:focus-visible {
  color: var(--color-accent);
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--color-accent);
  box-shadow: var(--glow-accent);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.75);
}

.zsh-section {
  margin: 0;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.zsh-window {
  overflow: hidden;
  border: 1px solid var(--frame-border);
  border-radius: var(--radius);
  background: transparent;
  box-shadow: var(--glow-primary);
}

.zsh-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--frame-border);
  background: transparent;
}

.zsh-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 280px;
  max-height: 420px;
  overflow-y: auto;
  padding: 16px 18px 16px;
  scroll-behavior: smooth;
  background: transparent;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) transparent;
}

.zsh-body::-webkit-scrollbar {
  width: 6px;
}

.zsh-body::-webkit-scrollbar-track {
  background: transparent;
}

.zsh-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--color-primary);
  box-shadow: 0 0 8px rgba(217, 70, 239, 0.75);
}

.zsh-history {
  flex: 0 0 auto;
}

.zsh-history .zsh-line:last-child {
  margin-bottom: 2px;
}

.zsh-line {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.zsh-welcome {
  color: var(--color-accent);
}

.zsh-hint {
  color: var(--text-secondary);
}

.zsh-cmd {
  color: var(--frame-border);
}

.zsh-out {
  color: var(--text-primary);
}

.zsh-error {
  color: var(--status-error);
}

.zsh-help-row {
  display: grid;
  grid-template-columns: minmax(13.5ch, max-content) minmax(0, 1fr);
  column-gap: 0.85rem;
  align-items: baseline;
  margin-bottom: 4px;
}

.zsh-help-cmd {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-accent);
  font: inherit;
  cursor: pointer;
  text-align: left;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.zsh-help-prompt {
  font-weight: 600;
}

.zsh-help-cmd:hover,
.zsh-help-cmd:focus-visible {
  color: #34d399;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.zsh-help-cmd:focus-visible {
  outline: 1px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.zsh-help-desc {
  color: var(--text-primary);
  opacity: 0.82;
}

.zsh-input-line {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  margin-top: 0;
}

.zsh-prompt {
  flex-shrink: 0;
  color: var(--color-accent);
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 600;
}

.zsh-input-line input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  caret-color: var(--color-accent);
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.6;
  outline: none;
}

.zsh-input-line input::placeholder {
  color: rgba(243, 240, 255, 0.38);
  opacity: 1;
}

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 3rem;
  gap: 0;
}

.footer-contact-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin-top: 0;
  margin-bottom: 4rem;
  padding-top: 5rem;
}

.footer-contact-section .projects-header {
  width: 100%;
  justify-content: center;
}

.footer-social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
}

.footer-note {
  margin-top: 0;
  margin-bottom: 0;
  text-align: center;
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

a.brand {
  text-decoration: none;
}

.error-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 5.5rem);
  padding: 24px 20px 64px;
}

.error-panel {
  width: min(560px, 100%);
  text-align: center;
}

.error-panel .boot-terminal {
  margin-bottom: 1.75rem;
  text-align: left;
}

.error-log {
  min-height: 0;
}

.error-status {
  color: var(--status-error);
  font-weight: 600;
}

.error-code {
  margin: 0;
  color: var(--text-heading);
  font-family: var(--sans);
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  letter-spacing: -0.04em;
}

.error-lead {
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.demo-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 32px 20px;
  overflow: auto;
  border: 0;
  background: rgba(11, 3, 8, 0.32);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.demo-modal:not([open]) {
  display: none;
}

.demo-modal::backdrop {
  background: rgba(11, 3, 8, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.demo-stage {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
}

.demo-slide {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-bottom: 14px;
}

.demo-toolbar h2 {
  margin: 0;
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  text-transform: uppercase;
}

.demo-modal-close {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(11, 3, 8, 0.28);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.demo-modal-close:hover,
.demo-modal-close:focus-visible,
.demo-nav:hover,
.demo-nav:focus-visible {
  color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: var(--glow-accent);
}

.demo-slide img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(960px, 90vw);
  max-height: min(64vh, 680px);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.demo-slide figcaption {
  width: 100%;
  margin-top: 14px;
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-align: center;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.demo-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  margin-top: 12px;
}

.demo-nav {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(11, 3, 8, 0.28);
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.demo-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.demo-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.demo-dot[aria-selected="true"] {
  background: #00ff66;
  border-color: #00ff66;
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.45);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid var(--frame-border);
  border-radius: 50px;
  background: transparent;
  color: #ffffff;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

button.social-link {
  appearance: none;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--color-accent);
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--color-accent);
  box-shadow: var(--glow-accent);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.75);
}

.email-card {
  width: min(28rem, 100%);
  padding: 22px 20px 20px;
  border: 1px solid var(--frame-border);
  border-radius: var(--radius);
  background: rgba(11, 3, 8, 0.72);
  box-shadow: var(--glow-primary);
}

.email-card .demo-toolbar {
  margin-bottom: 18px;
}

.email-copy-row {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--frame-border);
  border-radius: 10px;
  background: transparent;
}

.email-address {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 12px 14px;
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
  user-select: all;
  overflow-wrap: anywhere;
}

.email-copy-btn {
  flex-shrink: 0;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-left: 1px solid var(--frame-border);
  background: transparent;
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.email-copy-btn:hover,
.email-copy-btn:focus-visible {
  color: var(--color-primary);
  background: rgba(217, 70, 239, 0.08);
}

.email-copy-btn.is-copied {
  color: var(--color-accent);
}

@keyframes typingBlink {
  0% {
    opacity: 0.2;
    transform: translateY(0);
  }
  20% {
    opacity: 1;
    transform: translateY(-2px);
  }
  100% {
    opacity: 0.2;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.86);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    max-height: 306px;
  }
}

@media (max-width: 860px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    max-height: 330px;
  }

  .about-body {
    flex-direction: column;
    align-items: stretch;
    gap: 1.75rem;
  }

  .about-copy {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-bottom: 3.5rem;
  }

  .about-section,
  .projects,
  .zsh-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .zsh-help-row {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .footer-contact-section {
    padding-top: 3.5rem;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .lang-banner {
    padding: 0.75rem 1rem;
  }

  .lang-banner p {
    font-size: 0.86rem;
  }

  .topbar-end {
    width: 100%;
    justify-content: space-between;
  }

  .hero-name {
    font-size: clamp(2.1rem, 11vw, 3.2rem);
  }

  .hero-actions,
  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .project-card-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .msg {
    max-width: 94%;
  }

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

  .terminal-hint {
    display: none;
  }
}

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

  .demo-modal {
    padding: 16px 12px 24px;
  }

  .demo-slide img {
    max-height: min(52vh, 480px);
  }

  .demo-toolbar h2 {
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse,
  .availability-dot,
  .msg,
  .caret,
  .boot-cursor,
  .terminal-cursor,
  .typing-indicator .dot {
    animation: none;
  }

  .chat-log,
  .zsh-body {
    scroll-behavior: auto;
  }

  html {
    scroll-behavior: auto;
  }

  .action-btn,
  .hero-btn,
  .project-card,
  .filter-cmd,
  .demo-modal-close,
  .demo-nav,
  .email-copy-btn {
    transition: none;
  }
}
