:root {
  --bg: #0a0a0a;
  --fg: #eaeaea;
  --muted: #9b9b9b;
  --line: #1a1a1a;
  --btn-bg: transparent;
  --btn-fg: #ffffff;
  --btn-line: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: #111;
  color: #fff;
  border: 1px solid #333;
  border-radius: 6px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: saturate(140%) blur(8px);
  background: color-mix(in srgb, #000 70%, transparent);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
}

.nav {
  position: relative;
}

.nav-toggle {
  display: none;
  appearance: none;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
}

.menu {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.menu a {
  color: var(--fg);
  text-decoration: none;
}

.menu a:hover {
  text-decoration: underline;
}

/* Sections */
.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type {
  border-bottom: none;
}

.section h2 {
  font-size: 28px;
  margin: 0 0 16px;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.1),
    0 0 12px rgba(255, 255, 255, 0.05),
    0 0 18px rgba(255, 255, 255, 0.03);
}

.lead {
  color: #d9d9d9;
  max-width: 62ch;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--btn-line);
  color: var(--btn-fg);
  background: var(--btn-bg);
  border-radius: 10px;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}

.btn.small {
  padding: 8px 12px;
  border-radius: 8px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.btn.primary:hover {
  background: #eaeaea;
}

.link {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.link:hover {
  border-bottom-color: #fff;
}

/* Hero */
.hero {
  position: relative;
  padding: 120px 0 96px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 120% at 80% 20%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .55) 58%, rgba(0, 0, 0, .8) 100%);
}

#scene-canvas {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.hero-text {
  background: color-mix(in srgb, #000 40%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.hero-text h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  margin: 0 0 12px;
  text-shadow:
    0 0 5px rgba(255, 255, 255, 0.1),
    0 0 10px rgba(255, 255, 255, 0.05),
    0 0 15px rgba(255, 255, 255, 0.03);
}

.hero-text .muted {
  display: block;
  font-size: clamp(14px, 2vw, 16px);
  margin-top: 6px;
  color: #cfcfcf;
}

.identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #111;
}

/* Cards */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  display: grid;
  gap: 16px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 16px;
  background: #0b0b0b;
  align-items: flex-start;
}

.card-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.card-icon svg {
  width: 32px;
  height: 32px;
}

.card-content {
  flex: 1;
  min-width: 0;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card .muted {
  font-size: 14px;
  line-height: 1.5;
}

/* Tags */
.tags {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 16px 0 0;
  flex-wrap: wrap;
}

.tags li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 12px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.skills-group {
  margin: 0;
}

.skills-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--fg);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 48px;
  margin-top: 0;
}

body:has(.hero) .site-footer {
  margin-top: 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* Página Sobre - Fullscreen */
body:has(.sobre-fullscreen) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body:has(.sobre-fullscreen) main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sobre-fullscreen {
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.sobre-fullscreen .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.frases-animadas {
  text-align: center;
  max-width: 90vw;
  padding: 0 16px;
}

/* Seção Galeria de Projetos */
.galeria-section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.frase {
  font-size: clamp(16px, 3vw, 28px);
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  padding: 4px 0;
  opacity: 0;
  transform: translateY(20px);
  animation: surgirFrase 0.8s ease-out forwards;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.frase[data-frase="1"] {
  animation-delay: 0s;
}

.frase[data-frase="2"] {
  animation-delay: 0.6s;
}

.frase[data-frase="3"] {
  animation-delay: 1.2s;
}

.frase[data-frase="4"] {
  animation-delay: 1.8s;
}

@keyframes surgirFrase {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Galeria Projetos - Grid Responsivo */
.galeria-projetos {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

.galeria-titulo {
  text-align: center;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 600;
  margin-bottom: 48px;
  text-shadow:
    0 0 5px rgba(255, 255, 255, 0.1),
    0 0 10px rgba(255, 255, 255, 0.05);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 10px;
  justify-items: center;
}

@media (min-width: 768px) {
  .galeria-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}

.projeto-card {
  width: 100%;
  max-width: 160px;
  text-decoration: none;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s ease;
}

.projeto-card:hover {
  transform: scale(1.05);
}

.projeto-card:nth-child(odd) .projeto-img {
  transform: rotate(-3deg);
}

.projeto-card:nth-child(even) .projeto-img {
  transform: rotate(3deg);
}

.projeto-card:hover .projeto-img {
  transform: rotate(0deg) scale(1.02);
}

.projeto-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--line);
  background: #1a1a1a;
  transition: transform 0.3s ease, border-color 0.3s ease, filter 0.5s ease;
}

.projeto-card:hover .projeto-img {
  border-color: var(--fg);
}

.projeto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.projeto-img-contain {
  background: #fff;
}

.projeto-img-contain img {
  object-fit: contain;
  padding: 10px;
}

.projeto-nome {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.projeto-card:hover .projeto-nome {
  opacity: 1;
}

/* Projeto Bloqueado */
.projeto-card.locked {
  pointer-events: none;
}

.projeto-card.locked .projeto-img {
  filter: grayscale(100%) brightness(0.4);
}

.projeto-card.locked .projeto-nome {
  opacity: 0.4;
}

.projeto-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.lock-icon {
  font-size: 28px;
  margin-bottom: 4px;
}

.lock-text {
  font-size: 12px;
  color: #fbbf24;
  font-weight: 600;
}

.projeto-card:not(.locked) .projeto-lock {
  opacity: 0;
  pointer-events: none;
}

.projeto-card.unlocking .projeto-img {
  animation: unlockPulse 0.6s ease-out;
}

.projeto-card.unlocking .projeto-lock {
  animation: unlockFade 0.6s ease-out forwards;
}

@keyframes unlockPulse {
  0% {
    filter: grayscale(100%) brightness(0.4);
    transform: scale(1);
  }

  50% {
    filter: grayscale(0%) brightness(1.2);
    transform: scale(1.1);
  }

  100% {
    filter: grayscale(0%) brightness(1);
    transform: scale(1);
  }
}

@keyframes unlockFade {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

/* Confetti Effect */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.confetti {
  position: absolute;
  top: -10px;
  width: 10px;
  height: 10px;
  opacity: 0;
  animation: confettiFall 4s ease-out forwards;
}

@keyframes confettiFall {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }

  10% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(720deg) scale(0.5);
  }
}

/* Marquee de Tecnologias */
.tech-marquee {
  width: 100%;
  overflow: hidden;
  margin-bottom: 40px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tech-track {
  display: flex;
  gap: 24px;
  animation: scrollTech 35s linear infinite;
  width: max-content;
}

.tech-track:hover {
  animation-play-state: paused;
}

.tech-item {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.tech-item:hover {
  color: var(--fg);
}

@keyframes scrollTech {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Página Trabalhos - Fullscreen */
body:has(.trabalhos-fullscreen) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body:has(.trabalhos-fullscreen) main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

.trabalhos-fullscreen {
  border: none;
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
}

.trabalhos-container {
  max-width: 1200px;
  width: 100%;
}

.trabalhos-header {
  margin-bottom: 60px;
}

.trabalhos-main-title {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.12),
    0 0 16px rgba(255, 255, 255, 0.06),
    0 0 24px rgba(255, 255, 255, 0.04);
}

.trabalhos-main-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--fg);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

.trabalhos-accordion {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 80px;
}

.accordion-section {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  opacity: 0;
  transform: translateY(20px);
  animation: surgirFrase 0.8s ease-out forwards;
}

.accordion-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  transition: background 0.2s ease;
  user-select: none;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.accordion-title {
  flex: 1;
  font-weight: 600;
  font-size: 18px;
  color: var(--fg);
}

.accordion-arrow {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.accordion-arrow svg {
  width: 100%;
  height: 100%;
  color: var(--muted);
}

.accordion-section.active .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-section.active .accordion-content {
  max-height: 1200px;
  padding: 0 24px 20px 24px;
}

.trabalho-item {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trabalho-item:last-child {
  border-bottom: none;
}

.trabalho-icone {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.trabalho-icone svg {
  width: 20px;
  height: 20px;
}

.trabalho-icone.formacao {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.trabalho-icone.experiencia {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.trabalho-icone.projeto {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.trabalho-nome {
  font-weight: 600;
  color: var(--fg);
}

.trabalho-desc {
  color: var(--muted);
}

.trabalho-ano {
  color: var(--muted);
  text-align: right;
  min-width: 60px;
}

/* LinkedIn Badge */
.linkedin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(32px, 5vw, 48px);
  height: clamp(32px, 5vw, 48px);
  color: #0a66c2;
  transition: transform 0.3s ease, color 0.3s ease;
}

.linkedin-badge svg {
  width: 100%;
  height: 100%;
}

.linkedin-badge:hover {
  transform: scale(1.1);
  color: #0077b5;
}

/* Minigame Section - Cyberpunk System Unlock */
.minigame-unlock-section {
  padding: 60px 0;
  border-top: 1px solid var(--line);
}

.minigame-container.cyberpunk-theme {
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
  background: #050505;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  font-family: 'Courier New', Courier, monospace;
  /* Tech vibe */
  position: relative;
}

.minigame-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #0a0a0a;
  border-bottom: 1px solid #333;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.minigame-icon {
  font-size: 20px;
  animation: pulseIcon 2s infinite;
}

.minigame-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.minigame-stats {
  display: flex;
  gap: 20px;
  font-family: 'Courier New', monospace;
}

.stat-item {
  color: #888;
  font-size: 14px;
  font-weight: 600;
}

.stat-item span {
  color: #00ff9d;
  /* Neon Green */
  text-shadow: 0 0 5px rgba(0, 255, 157, 0.5);
}

.stat-item.combo {
  color: #ff0055;
  /* Neon Red/Pink */
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-item.combo.show {
  opacity: 1;
  transform: scale(1);
}

.stat-item.combo span {
  color: #ff0055;
  text-shadow: 0 0 8px rgba(255, 0, 85, 0.6);
  font-size: 16px;
}

/* Game Area & Background Effects */
.minigame-area {
  position: relative;
  height: 300px;
  background: radial-gradient(circle at center, #111 0%, #000 100%);
  overflow: hidden;
  cursor: crosshair;
  touch-action: none;
}

.game-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(transparent 98%, rgba(0, 255, 157, 0.05) 98%),
    linear-gradient(90deg, transparent 98%, rgba(0, 255, 157, 0.05) 98%);
  background-size: 30px 30px;
  pointer-events: none;
}

.game-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(to bottom, rgba(0, 255, 157, 0), rgba(0, 255, 157, 0.1), rgba(0, 255, 157, 0));
  animation: scanline 4s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(300px);
  }
}

.game-start-msg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.6);
  z-index: 20;
  backdrop-filter: blur(2px);
}

.msg-title {
  font-size: 24px;
  color: #00ff9d;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.4);
  animation: glitch 3s infinite;
}

.msg-sub {
  font-size: 14px;
  color: #fff;
  opacity: 0.8;
  animation: blink 1.5s infinite;
}

/* Game Items */
.game-item {
  position: absolute;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  user-select: none;
  transition: transform 0.1s;
  animation: floatItem 3s ease-in-out infinite;
  z-index: 10;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

.game-item:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.game-item.rare {
  font-size: 28px;
  filter: drop-shadow(0 0 8px #ffd700);
  animation: floatItem 2s ease-in-out infinite, pulseGlow 1.5s infinite alternate;
}

.game-item.bad {
  filter: drop-shadow(0 0 5px #ff0055);
}

.game-item.caught {
  pointer-events: none;
  animation: catchItem 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes floatItem {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-8px) rotate(5deg);
  }
}

@keyframes catchItem {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.8;
  }

  100% {
    transform: scale(0);
    opacity: 0;
  }
}

@keyframes pulseGlow {
  from {
    filter: drop-shadow(0 0 4px #ffd700);
  }

  to {
    filter: drop-shadow(0 0 12px #ffd700);
  }
}

@keyframes pulseIcon {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }

  20% {
    transform: translate(-2px, 2px);
  }

  40% {
    transform: translate(-2px, -2px);
  }

  60% {
    transform: translate(2px, 2px);
  }

  80% {
    transform: translate(2px, -2px);
  }

  100% {
    transform: translate(0);
  }
}

/* Score Popups */
.score-popup {
  position: absolute;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  pointer-events: none;
  animation: popupFloat 0.8s ease-out forwards;
  z-index: 15;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

.score-popup.good {
  color: #00ff9d;
}

.score-popup.rare {
  color: #ffd700;
  font-size: 20px;
}

.score-popup.bad {
  color: #ff0055;
}

@keyframes popupFloat {
  0% {
    transform: translate(-50%, 0) scale(0.8);
    opacity: 0;
  }

  20% {
    transform: translate(-50%, -10px) scale(1.1);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -40px) scale(1);
    opacity: 0;
  }
}

/* Footer & Progress */
.minigame-footer {
  padding: 12px 20px;
  background: #0a0a0a;
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.minigame-progress {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #888;
}

.progress-bar-container {
  flex: 1;
  height: 6px;
  background: #222;
  border-radius: 3px;
  overflow: hidden;
  max-width: 150px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00ff9d, #00dbde);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(0, 255, 157, 0.4);
}

#unlocked-count {
  color: #fff;
  font-weight: 700;
}

.minigame-btn {
  background: transparent;
  border: 1px solid #00ff9d;
  color: #00ff9d;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.minigame-btn:hover {
  background: rgba(0, 255, 157, 0.1);
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.2);
  transform: translateY(-1px);
}


/* Página Contato - Fullscreen */
body:has(.contato-fullscreen) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body:has(.contato-fullscreen) main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}

.contato-fullscreen {
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 160px);
}

.contato-container {
  max-width: 800px;
  width: 100%;
}

.contato-header {
  margin-bottom: 0;
}

.contato-main-title {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.12),
    0 0 16px rgba(255, 255, 255, 0.06),
    0 0 24px rgba(255, 255, 255, 0.04);
}

.contato-main-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--fg);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

.contato-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  margin-bottom: 0;
}

/* contato-intro removed as it is not in HTML */

.contato-subtitle {
  font-size: clamp(14px, 3vw, 18px);
  color: var(--muted);
  margin: 0;
  line-height: 1.2;
}

.contato-description {
  font-size: clamp(12px, 2.5vw, 14px);
  color: var(--muted);
  margin: 0;
  line-height: 1.2;
  max-width: 60ch;
  align-self: center;
}

.contato-location {
  font-size: clamp(10px, 2vw, 12px);
  color: #666;
  margin-top: 2px;
}

.contato-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
}

.contato-link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
}

.contato-link-item:last-child {
  border-bottom: none;
}

.contato-link-label {
  font-size: clamp(14px, 3vw, 18px);
  color: var(--fg);
  font-weight: 400;
}

.contato-link-action {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: clamp(12px, 2.5vw, 14px);
  transition: color 0.2s ease;
}

.contato-link-action:hover {
  color: var(--fg);
}

.contato-link-action svg {
  width: 16px;
  height: 16px;
}

/* Tablet */
@media (max-width: 1024px) {
  .trabalhos-container {
    max-width: 100%;
    padding: 0 20px;
  }

  .trabalhos-main-title {
    font-size: clamp(36px, 6vw, 72px);
  }

  .trabalhos-accordion {
    gap: 20px;
    margin-bottom: 60px;
  }

  .contador-numero {
    font-size: clamp(48px, 8vw, 96px);
  }
}

/* Mobile Large */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .menu {
    position: absolute;
    right: 0;
    top: 46px;
    background: #0b0b0b;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
    display: none;
  }

  .menu.open {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .frases-animadas {
    max-width: 95vw;
    padding: 0 20px;
  }

  .frase {
    font-size: clamp(14px, 4vw, 20px);
    line-height: 1.5;
  }

  /* Trabalhos responsivo */
  .trabalhos-fullscreen {
    padding: 30px 0;
    min-height: auto;
  }

  body:has(.trabalhos-fullscreen) main {
    padding: 40px 0;
  }

  .trabalhos-container {
    padding: 0 16px;
  }

  .trabalhos-main-title {
    font-size: clamp(32px, 8vw, 56px);
    margin-bottom: 8px;
  }

  .trabalhos-main-title::after {
    display: none;
  }

  .trabalhos-accordion {
    gap: 16px;
    margin-bottom: 50px;
  }

  .accordion-header {
    padding: 18px 20px;
    gap: 14px;
  }

  .accordion-title {
    font-size: clamp(15px, 4vw, 18px);
  }

  .trabalho-icone {
    width: 36px;
    height: 36px;
  }

  .trabalho-icone svg {
    width: 18px;
    height: 18px;
  }

  .trabalho-item {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px 0;
  }

  .trabalho-nome {
    grid-column: 1 / 2;
    font-size: 16px;
    margin-bottom: 4px;
  }

  .trabalho-desc {
    grid-column: 1 / 2;
    font-size: 14px;
    line-height: 1.4;
  }

  .trabalho-ano {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    text-align: right;
    font-size: 14px;
    align-self: start;
  }

  .accordion-section.active .accordion-content {
    padding: 0 20px 18px 20px;
    max-height: 600px;
  }

  .contador-section {
    margin-top: 40px;
  }

  .contador-numero {
    font-size: clamp(56px, 12vw, 96px);
  }

  .contador-label {
    font-size: clamp(14px, 3vw, 16px);
    padding: 0 10px;
  }
}

/* Mobile Medium */
@media (max-width: 600px) {
  .trabalhos-fullscreen {
    padding: 20px 0;
  }

  body:has(.trabalhos-fullscreen) main {
    padding: 20px 0;
  }

  .trabalhos-container {
    padding: 0 12px;
  }

  .trabalhos-main-title {
    font-size: clamp(28px, 10vw, 48px);
  }

  .trabalhos-accordion {
    gap: 12px;
    margin-bottom: 40px;
  }

  .accordion-header {
    padding: 14px 16px;
    gap: 12px;
  }

  .accordion-title {
    font-size: clamp(14px, 4vw, 16px);
  }

  .trabalho-icone {
    width: 32px;
    height: 32px;
  }

  .trabalho-icone svg {
    width: 16px;
    height: 16px;
  }

  .trabalho-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
  }

  .trabalho-nome {
    font-size: 15px;
    font-weight: 600;
    color: var(--fg);
    line-height: 1.3;
  }

  .trabalho-desc {
    font-size: 13px;
    line-height: 1.3;
    color: var(--muted);
  }

  .trabalho-ano {
    font-size: 12px;
    text-align: left;
    color: var(--muted);
  }

  .accordion-section.active .accordion-content {
    padding: 0 16px 14px 16px;
    max-height: 800px;
  }

  .job-techs {
    grid-column: 1;
    margin-top: 6px;
  }

  .tech-tag {
    font-size: 10px;
    padding: 2px 6px;
  }

  .contador-numero {
    font-size: clamp(48px, 15vw, 72px);
  }

  .contador-label {
    font-size: clamp(12px, 4vw, 14px);
    padding: 0 8px;
    line-height: 1.4;
  }
}

/* Mobile Small */
@media (max-width: 400px) {
  .trabalhos-container {
    padding: 0 10px;
  }

  .trabalhos-main-title {
    font-size: clamp(24px, 12vw, 40px);
  }

  .accordion-header {
    padding: 12px 14px;
    gap: 10px;
  }

  .accordion-title {
    font-size: 14px;
  }

  .trabalho-icone {
    width: 28px;
    height: 28px;
  }

  .trabalho-icone svg {
    width: 14px;
    height: 14px;
  }

  .trabalho-item {
    padding: 10px 0;
  }

  .trabalho-nome {
    font-size: 14px;
  }

  .trabalho-desc {
    font-size: 12px;
  }

  .trabalho-ano {
    font-size: 11px;
  }

  .accordion-section.active .accordion-content {
    padding: 0 14px 12px 14px;
    max-height: 700px;
  }

  .job-techs {
    grid-column: 1;
  }

  .tech-tag {
    font-size: 9px;
    padding: 2px 5px;
  }

  .contador-numero {
    font-size: clamp(40px, 18vw, 64px);
  }

  .contador-label {
    font-size: 12px;
    padding: 0 6px;
  }
}

/* Contato Responsivo */
@media (max-width: 900px) {
  .contato-fullscreen {
    padding: 0;
  }

  body:has(.contato-fullscreen) main {
    padding: 20px 0;
  }

  .contato-container {
    padding: 0 16px;
  }

  .contato-main-title {
    justify-content: center;
  }

  .contato-main-title::after {
    display: none;
  }

  .trabalhos-main-title {
    justify-content: center;
  }

  .trabalhos-main-title::after {
    display: none;
  }

  .contato-content {
    gap: 4px;
  }

  .contato-links {
    gap: 0;
  }

  .contato-link-item {
    padding: 6px 0;
  }
}

@media (max-width: 600px) {
  .contato-fullscreen {
    padding: 0;
  }

  body:has(.contato-fullscreen) main {
    padding: 10px 0;
  }

  .contato-container {
    padding: 0 12px;
  }

  .contato-content {
    gap: 4px;
  }

  .contato-link-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 6px 0;
  }

  .contato-link-label {
    font-size: 14px;
  }

  .contato-link-action {
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  .contato-container {
    padding: 0 10px;
  }

  .contato-main-title {
    font-size: clamp(24px, 12vw, 40px);
  }

  .contato-content {
    gap: 12px;
  }
}

/* Motion reduction */
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

/* Page Transition */
main {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tech Tags in Work Section */
.job-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  grid-column: 2;
  /* Aligns with name in the grid */
}

.tech-tag {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  /* Glassy look */
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  color: var(--muted);
  transition: all 0.2s;
}

.tech-tag:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--fg);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Footer Polish */
.site-footer {
  background: #050505;
  border-top: 1px solid #222;
}

.footer-row small {
  font-family: 'Courier New', monospace;
  /* Tech vibe */
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #00ff9d;
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #00ff9d;
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.4);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(0, 255, 157, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 157, 0);
  }
}