/* ============================================
   theusx.dev — Sistema de estilos
   ============================================ */

:root {
  /* Cores — tema escuro (padrão) */
  --bg: #0a0b0d;
  --bg-elevated: #111214;
  --bg-card: #16181c;
  --surface: #1c1e23;
  --text: #e6e8eb;
  --text-muted: #8b9099;
  --accent: #00d4aa;
  --accent-dim: rgba(0, 212, 170, 0.15);
  --accent-hover: #00f0c0;
  --border: #2a2d33;
  --error: #ff6b6b;
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 8px;
  --radius-lg: 12px;
  --header-h: 72px;
  --container: min(1120px, 92vw);
  --transition: 0.2s ease;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --noise-opacity: 0.03;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
ul { list-style: none; margin: 0; padding: 0; }

.container { width: var(--container); margin: 0 auto; padding: 0 1rem; }

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--text);
}
.logo:hover { color: var(--accent); }
.logo-img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-h);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-terminal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  max-width: 640px;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.term-dot:nth-child(1) { background: #ff5f56; }
.term-dot:nth-child(2) { background: #ffbd2e; }
.term-dot:nth-child(3) { background: #27c93f; }
.term-title { margin-left: 0.5rem; }

.hero-terminal .hero-greeting {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  margin: 0;
  padding: 1rem 1.25rem 0.25rem;
}
.hero-terminal .hero-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  padding: 0 1.25rem;
  color: var(--text);
}
.hero-terminal .hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-muted);
  margin: 0;
  padding: 0 1.25rem 0.5rem;
  min-height: 1.4em;
}
.typing .cursor { animation: blink 0.8s step-end infinite; margin-left: 2px; }
.hero-terminal .hero-desc {
  max-width: 100%;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  padding: 0 1.25rem 1.25rem;
}
.cursor-blink { animation: blink 1s step-end infinite; }

.hero-cta {
  margin-top: 1.5rem;
}

.hero-inner .hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--bg);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent-dim);
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn-large { padding: 1rem 2rem; font-size: 1rem; }

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  border-radius: 2px;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes blink { 50% { opacity: 0; } }
@keyframes scrollPulse { 0%, 100% { opacity: 0.3; transform: scaleY(0.8); } 50% { opacity: 1; transform: scaleY(1); } }

/* Sections */
.section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2.5rem;
}
.section-num { color: var(--text-muted); margin-right: 0.5rem; font-weight: 400; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: 540px;
}

.about-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.about-links a {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.code-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.code-header span:first-child,
.code-header span:nth-child(2),
.code-header span:nth-child(3) {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
}
.code-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.code-body {
  margin: 0;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-muted);
  overflow-x: auto;
}
.code-keyword { color: var(--accent); }
.code-string { color: #a8d4b0; }
.code-type { color: #7dd3fc; }

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition);
}
.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.skill-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.skill-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--text);
}

.skill-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tech-tags span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* Projects */
.projects-list { display: flex; flex-direction: column; gap: 2rem; }

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition);
}
.project-card:hover { border-color: var(--accent); }
.project-card.reverse { direction: rtl; }
.project-card.reverse > * { direction: ltr; }

.project-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

.project-info h3 {
  font-size: 1.35rem;
  margin: 0 0 0.75rem 0;
  color: var(--text);
}

.project-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.project-tags li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.project-links { display: flex; gap: 1rem; }
.project-links a {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.project-placeholder {
  aspect-ratio: 16/10;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-muted);
}
.project-placeholder.coming { font-size: 0.9rem; }

/* Enigma */
.enigma-section .section-num { color: var(--accent); }
.enigma-box {
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.enigma-intro {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent);
  margin: 0 0 1.25rem;
  text-align: center;
}
.enigma-block {
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}
.enigma-line {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.35rem 0;
}
.enigma-terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.enigma-terminal .code-header {
  padding: 0.5rem 1rem;
  background: var(--bg-elevated);
}
.enigma-code {
  margin: 0;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.enigma-cursor { animation: blink 0.8s step-end infinite; color: var(--accent); }
.enigma-foot {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  font-style: italic;
}

/* Desktop / OS — Interface gráfica (GUI) */
.desktop-section .section-num { color: var(--accent); }
.gui-screen {
  max-width: 920px;
  margin: 0 auto;
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 8%, #0d0d0d 100%);
  border: 8px solid #333;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 2px #555, 0 12px 40px rgba(0,0,0,0.6);
  padding: 10px;
}
.gui-screen-inner {
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid #444;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}
.os-frame { /* compat */
  max-width: 100%;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}
.os-desktop {
  min-height: 440px;
  background: #008080;
  padding: 12px 16px 16px;
  position: relative;
}
.desktop-icons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px 20px;
  position: relative;
  margin-bottom: 12px;
  z-index: 1;
}
.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 72px;
  padding: 10px 6px;
  border: 2px solid transparent;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 11px;
  font-family: Tahoma, sans-serif;
  cursor: pointer;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.desktop-icon:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.4);
}
.desktop-icon:focus { outline: 2px solid #fff; outline-offset: 2px; }
.desktop-icon-img { font-size: 28px; }
.os-windows {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.os-windows .w95-window { pointer-events: auto; }
.w95-window {
  position: absolute;
  width: 320px;
  min-height: 200px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.4);
  display: none;
  flex-direction: column;
  z-index: 10;
}
.w95-window.is-open { display: flex; }
.w95-window.is-minimized { display: none; }
.w95-window.w95-maximized { left: 0 !important; top: 0 !important; right: 0 !important; bottom: 0 !important; width: auto !important; height: auto !important; }
.w95-titlebar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  background: linear-gradient(90deg, #0a2463 0%, #245edb 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: Tahoma, sans-serif;
  cursor: move;
  user-select: none;
}
.w95-title-icon { font-size: 14px; }
.w95-title { flex: 1; }
.w95-btns { display: flex; gap: 1px; }
.w95-btn {
  width: 21px;
  height: 21px;
  border: 1px solid #003c74;
  background: #c0c0c0;
  color: #000;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: sans-serif;
  box-shadow: inset 1px 1px 0 #fff, 1px 1px 0 #808080;
}
.w95-btn:hover { background: #d4d4d4; }
.w95-btn:active { box-shadow: inset 1px 1px 2px #808080; }
.w95-close { background: #c0c0c0; color: #000; }
.w95-menubar {
  display: flex;
  gap: 12px;
  padding: 2px 8px;
  background: #c0c0c0;
  font-size: 12px;
  font-family: Tahoma, sans-serif;
  border-bottom: 1px solid #808080;
}
.w95-menubar span { cursor: pointer; padding: 2px 4px; }
.w95-menubar span:hover { background: #0a2463; color: #fff; }
.w95-body {
  flex: 1;
  padding: 12px;
  background: #fff;
  border: 1px solid #808080;
  margin: 2px;
  min-height: 80px;
  overflow: auto;
}
.w95-statusbar {
  padding: 2px 8px;
  background: #c0c0c0;
  font-size: 11px;
  font-family: Tahoma, sans-serif;
  border-top: 1px solid #808080;
}
.w95-mycomputer .w95-icon-row { display: flex; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.w95-folder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 80px;
  padding: 8px;
  font-size: 12px;
  cursor: pointer;
  border: 2px solid transparent;
}
.w95-folder:hover { background: #0a2463; color: #fff; }
.w95-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: #c0c0c0;
  border-bottom: 1px solid #808080;
  flex-wrap: wrap;
}
.w95-toolbar button, .w95-toolbar select {
  height: 22px;
  padding: 0 6px;
  border: 1px solid #808080;
  background: #c0c0c0;
  font-size: 11px;
  cursor: pointer;
  box-shadow: 1px 1px 0 #fff;
}
.w95-sep { width: 1px; height: 18px; background: #808080; margin: 0 4px; }
.w95-ruler {
  height: 24px;
  background: #c0c0c0;
  border-bottom: 1px solid #808080;
  background-image: repeating-linear-gradient(90deg, transparent, transparent 23px, #808080 24px);
}
.w95-paint { display: flex; gap: 8px; padding: 8px; background: #c0c0c0; }
.w95-paint-tools {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
  background: #c0c0c0;
  border: 1px solid #808080;
}
.w95-tool {
  width: 28px;
  height: 28px;
  border: 1px solid #808080;
  background: #c0c0c0;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 1px 1px 0 #fff;
}
.w95-tool:hover, .w95-tool.active { background: #0a2463; color: #fff; }
.w95-paint-canvas {
  background: #fff;
  border: 2px solid #808080;
  cursor: crosshair;
  display: block;
}
.w95-paint-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-content: flex-start;
  width: 28px;
}
.w95-paint-colors span {
  width: 14px;
  height: 14px;
  border: 1px solid #000;
  cursor: pointer;
}
.w95-wordpad-text {
  width: 100%;
  height: 100%;
  min-height: 120px;
  border: none;
  resize: none;
  font-size: 12px;
  font-family: "Times New Roman", serif;
  padding: 8px;
}
.w95-wordpad-text:focus { outline: none; }
.w95-calc-body { padding: 8px; background: #c0c0c0; }
.w95-calc-display {
  width: 100%;
  height: 36px;
  margin-bottom: 6px;
  padding: 4px 8px;
  font-size: 20px;
  font-weight: 700;
  text-align: right;
  border: 2px inset #808080;
  background: #fff;
  color: #000;
  box-sizing: border-box;
  font-family: "Courier New", monospace;
}
.w95-calc-keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.w95-calc-key {
  height: 28px;
  border: 1px solid #808080;
  background: #c0c0c0;
  color: #000;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: Tahoma, sans-serif;
  box-shadow: 1px 1px 0 #fff;
}
.w95-calc-key:hover { background: #d4d4d4; }
.w95-calc-key:active { box-shadow: inset 1px 1px 2px #808080; }
.w95-calc-key.num { background: #fff; }
.w95-calc-key.zero { grid-column: span 2; }
.w95-calc-key.op { background: #e8e8e8; }
.w95-calc-key.eq { background: #0a2463; color: #fff; }
.os-taskbar {
  display: flex;
  align-items: center;
  height: 30px;
  background: #c0c0c0;
  border-top: 2px solid #dfdfdf;
  padding: 0 4px;
  position: relative;
}
.os-start {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  background: linear-gradient(180deg, #4a9a2e 0%, #2d6a1f 100%);
  border: 2px solid;
  border-color: #5cb83d #2d6a1f #2d6a1f #5cb83d;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: Tahoma, sans-serif;
  box-shadow: 2px 2px 0 #000;
}
.os-start:hover { filter: brightness(1.1); }
.os-start-icon {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #ff0 0%, #ff0 40%, #fc0 50%, #c90 100%);
  border: 1px solid #960;
  border-radius: 2px;
}
.os-start-menu {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 2px;
  min-width: 200px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #dfdfdf #000 #000 #dfdfdf;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  z-index: 1000;
}
.os-start-menu.is-open { display: block; }
.os-start-menu-inner { padding: 4px 0; }
.os-start-item {
  padding: 6px 24px 6px 28px;
  font-size: 13px;
  font-family: Tahoma, sans-serif;
  cursor: pointer;
}
.os-start-item:hover { background: #0a2463; color: #fff; }
.os-start-divider { height: 2px; background: #808080; margin: 2px 4px; }
.os-taskbar-tasks {
  flex: 1;
  display: flex;
  gap: 4px;
  padding: 0 8px;
  flex-wrap: wrap;
  align-items: center;
}
.os-task-btn {
  padding: 4px 12px;
  height: 22px;
  border: 2px solid;
  border-color: #dfdfdf #808080 #808080 #dfdfdf;
  background: #c0c0c0;
  font-size: 12px;
  font-family: Tahoma, sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  box-shadow: 1px 1px 0 #000;
}
.os-task-btn:hover { background: #d4d4d4; }
.os-task-btn.active {
  border-color: #808080 #dfdfdf #dfdfdf #808080;
  box-shadow: inset 1px 1px 2px #808080;
}
.os-tray {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  font-size: 12px;
  font-family: Tahoma, sans-serif;
  border-left: 2px solid #808080;
  height: 100%;
}
.os-tray-icon { font-size: 16px; cursor: pointer; }
.os-clock { font-family: "Courier New", monospace; }

/* Contact */
.contact-box {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.contact-text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.contact-links a {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.footer-cmd { font-family: var(--font-mono); color: var(--text-muted); opacity: 0.9; }

/* Responsivo */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .skills-grid { grid-template-columns: 1fr; }
  .project-card,
  .project-card.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .project-image { order: -1; }
}

@media (max-width: 700px) {
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-toggle { display: flex; }
  .section { padding: 3rem 0; }
}

/* Animações de entrada (opcional, reduz motion) */
@media (prefers-reduced-motion: no-preference) {
  .hero-greeting, .hero-title, .hero-tagline, .hero-desc, .hero-cta {
    animation: fadeUp 0.6s ease backwards;
  }
  .hero-greeting { animation-delay: 0.1s; }
  .hero-title { animation-delay: 0.2s; }
  .hero-tagline { animation-delay: 0.35s; }
  .hero-desc { animation-delay: 0.45s; }
  .hero-cta { animation-delay: 0.55s; }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
