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

html, body { height: 100%; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #fff;
  background-color: #111;
  /* Troque assets/bg.jpg pela sua imagem; o gradiente é o fallback */
  background-image:
    linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, .45)),
    url("assets/bg.jpg"),
    linear-gradient(135deg, #1e3c72, #2a5298 50%, #6a3093);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  padding: 16px;
}

main { text-align: center; }

h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}

.bio {
  margin-top: .5rem;
  font-size: 1.15rem;
  opacity: .85;
}

.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px);
  transition: background .2s, transform .2s;
}

.social a:hover,
.social a:focus-visible {
  background: rgba(255, 255, 255, .28);
  transform: translateY(-2px);
}

.social svg { width: 22px; height: 22px; fill: currentColor; }
.social a { color: #fff; }

h1 { user-select: none; -webkit-tap-highlight-color: transparent; }

/* Terminal (easter egg: 5 cliques no nome) */
.terminal {
  width: min(34rem, 100%);
  margin: 1.5rem auto 0;
  text-align: left;
  font-family: ui-monospace, "DejaVu Sans Mono", Menlo, Consolas, monospace;
  font-size: .9rem;
  line-height: 1.5;
  background: rgba(12, 12, 12, .88);
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}

.terminal-barra {
  padding: .35rem;
  text-align: center;
  font-size: .8rem;
  color: #bbb;
  background: #2b2b2b;
}

.terminal-corpo {
  padding: .75rem 1rem;
  color: #d4d4d4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.terminal .usuario { color: #4ee44e; font-weight: 700; }
.terminal .caminho { color: #5c9cff; font-weight: 700; }

.cursor {
  display: inline-block;
  width: .6em;
  height: 1.1em;
  vertical-align: text-bottom;
  background: #d4d4d4;
  animation: piscar 1s steps(1) infinite;
}

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

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