/*
* {
  outline: 1px solid red !important;
}
 */

:root {
  --color-primary: #8a2be2; /* Roxo */
  --color-secondary: #00ffff; /* Azul Neon */
  --color-background: #000000; /* Preto */
  --color-text: #ffffff;
  --color-accent: #ff00ff;
  --font-main: "Press Start 2P", monospace;
}

/* GARANTE FUNDO PRETO */
body:after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000 !important;
  z-index: -4; /* Abaixo do conteúdo e do starfield */
  pointer-events: none;
}

#audio-debug {
  position: absolute;
  top: 10px;
  left: 170px;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  padding: 5px 10px;
  font-family: "Press Start 2P", cursive;
  font-size: 10px;
  border-radius: 4px;
  z-index: 1000;
  display: flex;
  gap: 15px;
  align-items: center;
  border: 1px solid #8a2be2;
  backdrop-filter: blur(2px);
  max-width: 80%;
  white-space: nowrap;
}

/* Importação da fonte Press Start 2P */
@font-face {
  font-family: "Press Start 2P";
  src: url("./assets/fonts/press-start-2p.woff2") format("woff2");
  font-display: swap;
}

/* Reset e configurações globais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Adicione esta regra @font-face no início do seu CSS */
@font-face {
  font-family: "Press Start 2P";
  src: url("assets/fonts/press-start-2p.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Aplique a fonte aos elementos do terminal */
.terminal {
  font-family: "Press Start 2P", monospace;
  /* mantém o restante do seu estilo */
}

/* Se quiser aplicar apenas a elementos específicos: */
.terminal-title,
.terminal-prompt,
.terminal-input {
  font-family: "Press Start 2P", monospace;
}

/* Estilo base para os botões do menu */
.menu-item {
  background: var(--pixel-green);
  color: var(--arcade-black);
  border: 3px solid var(--arcade-black);
  padding: 10px 15px;
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  position: relative;
  border-radius: 0;
  font-family: "Press Start 2P", monospace;
  cursor: none;
}

/* Efeito quando o mouse passa por cima */
.menu-item:hover {
  background: var(--pixel-yellow);
  transform: translateY(-2px) rotate(2deg);
  box-shadow:
    0 4px 0 var(--arcade-black),
    0 0 12px var(--glow-yellow);
}

/* Efeito quando o botão é clicado */
.menu-item:active {
  transform: translateY(2px) rotate(-1deg);
  box-shadow:
    0 2px 0 var(--arcade-black),
    0 0 8px var(--glow-yellow);
}

/* Efeito nos ícones */
.menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: transform 0.2s ease;
}

.menu-item:hover .menu-icon {
  animation: iconGlow 1.5s ease-in-out infinite;
}

@keyframes iconGlow {
  0%,
  100% {
    color: #ffa500; /* Laranja */
    text-shadow:
      0 0 10px #ffa500,
      0 0 15px #ff8c00;
    transform: scale(1.1);
  }
  50% {
    color: #ff0000; /* Vermelho */
    text-shadow:
      0 0 12px #ff0000,
      0 0 25px #8b0000;
    transform: scale(1.3);
  }
}

/* Estilo específico para os controles de áudio */
.audio-control {
  background: var(--pixel-blue);
  padding: 10px 15px;
}

.audio-control:hover {
  background: var(--pixel-red);
  box-shadow:
    0 4px 0 var(--arcade-black),
    0 0 12px rgba(255, 0, 64, 0.6);
}

/* Estilo para os controles sociais */
.social-control {
  background: var(--pixel-blue);
  padding: 10px 15px;
}

.social-control:hover {
  background: var(--pixel-magenta);
  box-shadow:
    0 4px 0 var(--arcade-black),
    0 0 12px rgba(255, 0, 255, 0.6);
}

/* Estilo para os controles do Mega Man */
.megaman-control {
  background: var(--color-primary);
  color: var(--color-text);
  padding: 10px 15px;
}

.megaman-control:hover {
  background: var(--color-secondary);
  color: var(--color-background);
  box-shadow:
    0 4px 0 var(--arcade-black),
    0 0 12px rgba(0, 255, 255, 0.6);
}

/* Botão de estrela do Mega Man */
#megaman-control-button {
  background: var(--color-primary);
}

#megaman-control-button:hover {
  background: var(--color-secondary);
  box-shadow:
    0 4px 0 var(--arcade-black),
    0 0 12px rgba(0, 255, 255, 0.6);
}

#megaman-control-button.active {
  background: var(--color-secondary);
  color: var(--color-background);
}

/* Container dos controles do Mega Man */
#megaman-controls-container {
  border: 1px solid var(--color-primary);
  border-radius: 5px;
  padding: 5px;
  background: rgba(138, 43, 226, 0.1);
}

/* Estilo para os itens do menu móvel */
.mobile-menu-item {
  background: var(--pixel-green);
  color: var(--arcade-black);
  border: 3px solid var(--arcade-black);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 0.8rem;
}

.mobile-menu-item:hover {
  background: var(--pixel-yellow);
  transform: translateY(-2px) rotate(2deg);
  box-shadow:
    0 4px 0 var(--arcade-black),
    0 0 12px var(--glow-yellow);
}

.mobile-menu-item:active {
  transform: translateY(2px) rotate(-1deg);
}

/* Estilo para os itens sociais no menu móvel */
.mobile-social-item {
  background: var(--pixel-blue);
  color: var(--arcade-black);
  border: 3px solid var(--arcade-black);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 0.7rem;
}

.mobile-social-item:hover {
  background: var(--pixel-magenta);
  transform: translateY(-2px) rotate(2deg);
  box-shadow:
    0 4px 0 var(--arcade-black),
    0 0 12px rgba(255, 0, 255, 0.6);
}

body {
  font-family: var(--font-main);
  background: var(--color-background);
  color: var(--color-text);
  overflow-x: hidden;
  cursor:
    url("https://delirlo.github.io/megaman/assets/sprites/cursor.png"), auto;
  line-height: 1.6;
}

/* Cursor personalizado */
body:hover {
  cursor:
    url("https://delirlo.github.io/megaman/assets/sprites/cursor-hover.png"),
    auto;
}
/* Adicione isso APÓS o CSS do portfólio efeito starfield melhorada */
@media (max-width: 768px) {
  #custom-cursor {
    display: none !important;
  }
  #audio-debug {
    top: 60px;
    left: 10px;
    right: auto;
    width: auto;
  }
}

@keyframes spark {
  to {
    opacity: 0;
    transform: scale(2);
  }
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--color-background);
  z-index: 9999;
  transition: opacity 0.5s ease-out;
  overflow: hidden;
}

.loading-container {
  text-align: center;
  padding: 2rem;
}

.loading-image {
  width: 100px;
  height: 100px;
  margin-bottom: 1rem;
  image-rendering: pixelated;
}

.loading-title {
  font-size: 1.5rem;
  color: var(--color-secondary);
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.7);
  margin-bottom: 0.5rem;
}

.loading-subtitle {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.loading-progress {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  transition: width 0.3s ease;
}

.progress-text {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
}

/* controle de audio */
.audio-controls-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 10px;
  z-index: 1000;
}

.audio-control-item {
  cursor: pointer;
  transition: all 0.3s;
}

.audio-control-item:hover {
  transform: scale(1.05);
}

.menu-icon i {
  font-size: 1.2em;
}
/* controle de audio */

/* Menu Flutuante */
.floating-menu {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-item {
  display: flex;
  align-items: center;
  background: rgba(138, 43, 226, 0.8);
  border: 2px solid var(--color-secondary);
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform: translateZ(0);
}

.menu-item:hover {
  background: var(--color-secondary);
  color: var(--color-background);
  transform: scale(1.1) translateZ(0);
}

.menu-icon {
  font-size: 16px;
  margin-right: 5px;
  position: relative;
  top: -2px;
}

.floating-menu .menu-icon {
  color: var(--color-text);
  transition: all 0.3s ease;
}

.floating-menu .menu-icon {
  color: var(--color-text);
  transition: all 0.3s ease;
}

/* Correção para centralizar ícones nos botões do topo esquerdo */
.audio-controls-top .menu-icon {
  margin-right: 0;
  top: 0;
}

/* Centraliza ícones nos botões de redes sociais e jogos */
.social-control .menu-icon,
.megaman-control .menu-icon {
  margin: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-label {
  font-size: 8px;
  white-space: nowrap;
}

/* Estilo para os controles de áudio no topo */
.audio-controls-top {
  position: fixed;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 15px;
  z-index: 1000;
}

.audio-control {
  cursor: pointer;
}

.audio-control .menu-icon i {
  transition: all 0.3s;
}

/* Controles de áudio */
.audio-controls {
  margin-top: 20px;
  text-align: center;
}

.audio-btn {
  background: var(--color-primary);
  border: 2px solid var(--color-secondary);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 16px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.audio-btn:hover {
  background: var(--color-secondary);
  color: var(--color-background);
  box-shadow: 0 0 15px var(--color-secondary);
}

/* Links sociais */
.social-links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-link {
  display: block;
  background: rgba(0, 255, 255, 0.8);
  border: 2px solid var(--color-primary);
  padding: 10px;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.3s ease;
  text-align: center;
}

.social-link:hover {
  background: var(--color-primary);
  box-shadow: 0 0 20px var(--color-primary);
  transform: scale(1.1);
}

/* Conteúdo Principal */
.main-content {
  /* min-height: 100vh; */
  padding: 20px;
  margin-right: 200px;
  padding-bottom: 0; /* Remove todo o espaço extra abaixo do conteúdo */
}

.page {
  display: none;
  /* min-height: 100vh; */
  padding: 40px 20px;
}

.page.active {
  display: block;
  animation: pageSlideIn 0.5s ease-out;
}

@keyframes pageSlideIn {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hero Section */
.hero-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-avatar {
  width: 128px;
  height: 128px;
  margin: 0 auto 30px;
  position: relative;
  cursor: pointer;
}

.avatar-sprite {
  width: 100%;
  height: 100%;
  background: url("https://delirlo.github.io/megaman/assets/sprites/megaman-idle.gif")
    no-repeat center;
  background-size: contain;
  transition: all 0.3s ease;
}

.hero-avatar:hover .avatar-sprite {
  transform: scale(1.2);
  filter: hue-rotate(90deg);
}

.hero-title {
  font-size: 24px;
  color: var(--color-secondary);
  margin-bottom: 10px;
  text-shadow: 2px 2px 0 var(--color-primary);
  animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from {
    text-shadow: 2px 2px 0 var(--color-primary);
  }
  to {
    text-shadow:
      2px 2px 0 var(--color-primary),
      0 0 20px var(--color-secondary);
  }
}

.hero-subtitle {
  font-size: 16px;
  color: var(--color-primary);
  margin-bottom: 30px;
}

.hero-description {
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Terminal */
.terminal {
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid var(--color-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-family: "Courier New", monospace;
}

.terminal-header {
  background: var(--color-secondary);
  color: var(--color-background);
  padding: 5px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terminal-title {
  font-size: 10px;
  font-weight: bold;
}

.terminal-controls {
  display: flex;
  gap: 5px;
}

.terminal-btn {
  background: var(--color-background);
  color: var(--color-secondary);
  padding: 2px 6px;
  font-size: 8px;
  cursor: pointer;
}

.terminal-body {
  padding: 15px;
  min-height: 200px;
}

.terminal-line {
  margin-bottom: 10px;
}

.terminal-prompt {
  color: var(--color-secondary);
  font-size: 12px;
}

.terminal-cursor {
  animation: blink 1s infinite;
  font-size: 12px;
}

.terminal-output {
  margin: 10px 0;
  font-size: 10px;
  line-height: 1.4;
}

.terminal-input-line {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.terminal-input {
  background: transparent;
  border: none;
  color: var(--color-text);
  font-family: "Courier New", monospace;
  font-size: 12px;
  outline: none;
  flex: 1;
  margin-left: 5px;
}

/* Transição Megaman */

/* Nova camada APENAS para o fundo roxo */

/* Transição Megaman ORIGINAL - NÃO ALTERADA */
.megaman-transition {
  position: fixed;
  top: 50%;
  left: -100px; /* Roxo sólido */
  transform: translateY(-50%);
  z-index: 2000;
  pointer-events: none;
}

.megaman-sprite {
  .transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(
      138,
      43,
      226,
      0
    ); /* Roxo, inicialmente transparente */
    z-index: 1999;
    pointer-events: none;
    transition: background-color 0.5s ease-in-out;
  }

  .transition-overlay.active {
    background-color: rgba(138, 43, 226, 0.5); /* 50% de transparência */
    animation: speed-lines 0.8s linear infinite;
  }

  @keyframes speed-lines {
    0% {
      background-position: 0 0;
    }
    100% {
      background-position: 100% 100%;
    }
  }
  width: 64px;
  height: 64px;
  background: url("https://delirlo.github.io/megaman/assets/sprites/megaman-running.gif")
    no-repeat center;
  background-size: contain;
}

.megaman-transition.active {
  animation: megamanPush 2s ease-in-out;
}

@keyframes megamanPush {
  0% {
    left: -100px;
  }
  50% {
    left: 50%;
    transform: translate(-50%, -50%);
  }
  100% {
    left: calc(100% + 100px);
  }
}

/* Speedrun Timer */
.speedrun-timer {
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(138, 43, 226, 0.9);
  border: 2px solid var(--color-secondary);
  padding: 15px;
  z-index: 1000;
}

.speedrun-timer.hidden {
  display: none;
}

.timer-label {
  font-size: 10px;
  color: var(--color-secondary);
  margin-bottom: 5px;
}

.timer-value {
  font-size: 16px;
  color: var(--color-text);
  margin-bottom: 10px;
}

.timer-ranking {
  font-size: 8px;
  line-height: 1.4;
}

/* Easter Egg - Konami Game */
.konami-game {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.konami-game.hidden {
  display: none;
}

.game-screen {
  background: var(--color-background);
  border: 4px solid var(--color-secondary);
  padding: 80px 30px 30px 30px; /* Adicionado padding-top */
  text-align: center;
  max-width: 500px;
  position: relative; /* Necessário para o posicionamento de filhos */
}

.game-screen h3 {
  color: var(--color-secondary);
  margin-bottom: 20px;
  font-size: 16px;
}

.mini-game {
  margin: 20px 0;
  padding: 20px;
  border: 2px solid var(--color-primary);
  background: rgba(138, 43, 226, 0.1);
}

.game-score {
  font-size: 7px; /* Fonte reduzida em 40% */
  margin: 0 auto 15px auto; /* Centraliza e mantém a margem inferior */
  color: var(--color-secondary);
  width: 100px; /* Largura ajustada */
  padding: 5px;
  box-sizing: border-box;
}

.game-area {
  height: 100px;
  background: var(--color-background);
  border: 1px solid var(--color-secondary);
  position: relative;
  margin-bottom: 15px;
}

.player-sprite {
  width: 32px;
  height: 32px;
  background: url("https://delirlo.github.io/megaman/assets/sprites/megaman-idle.gif")
    no-repeat center;
  background-size: contain;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 0.5s infinite alternate;
}

.game-screen button {
  background: var(--color-primary);
  border: 2px solid var(--color-secondary);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 12px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.game-screen button:hover {
  background: var(--color-secondary);
  color: var(--color-background);
}

/* Atalho de Menu Móvel (3 pontos) */
.mobile-menu-shortcut {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  display: none;
  width: 50px;
  height: 50px;
  background: rgba(138, 43, 226, 0.9);
  border: 2px solid var(--color-secondary);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.mobile-menu-shortcut:hover {
  background: var(--color-secondary);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5);
}

.shortcut-dots {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.shortcut-dots span {
  width: 6px;
  height: 6px;
  background: var(--color-text);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.mobile-menu-shortcut:hover .shortcut-dots span {
  background: var(--color-background);
}

/* Overlay de Menu Móvel */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1002;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.show {
  display: flex;
  opacity: 1;
  justify-content: center;
  align-items: center;
}

.mobile-menu-content {
  background: rgba(0, 0, 0, 0.98);
  border: 2px solid var(--color-secondary);
  border-radius: 15px;
  padding: 20px;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.mobile-menu-overlay.show .mobile-menu-content {
  transform: scale(1);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--color-primary);
}

.mobile-menu-header h3 {
  color: var(--color-secondary);
  font-size: 14px;
  margin: 0;
}

.close-menu {
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
}

.close-menu:hover {
  color: var(--color-secondary);
}

.mobile-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.mobile-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(138, 43, 226, 0.8);
  border: 2px solid var(--color-secondary);
  padding: 15px 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 80px;
  justify-content: center;
  touch-action: manipulation;
  border-radius: 10px;
}

.mobile-menu-item:hover,
.mobile-menu-item:active {
  background: var(--color-secondary);
  color: var(--color-background);
  box-shadow: 0 0 20px var(--color-secondary);
  transform: scale(1.05);
}

.mobile-menu-item .menu-icon {
  font-size: 20px;
  margin-bottom: 8px;
  margin-right: 0;
}

.mobile-menu-item .menu-label {
  font-size: 8px;
  text-align: center;
  white-space: nowrap;
}

.mobile-social-section {
  border-top: 1px solid var(--color-primary);
  padding-top: 20px;
  margin-top: 20px;
}

.mobile-social-title {
  font-size: 10px;
  color: var(--color-secondary);
  text-align: center;
  margin-bottom: 15px;
}

.mobile-social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mobile-social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 255, 255, 0.8);
  border: 2px solid var(--color-primary);
  padding: 12px 8px;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.3s ease;
  min-height: 60px;
  justify-content: center;
  touch-action: manipulation;
  border-radius: 8px;
}

.mobile-social-item:hover,
.mobile-social-item:active {
  background: var(--color-primary);
  box-shadow: 0 0 20px var(--color-primary);
  transform: scale(1.05);
}

.mobile-social-item .social-icon {
  font-size: 16px;
  margin-bottom: 4px;
}

.mobile-social-item .social-label {
  font-size: 6px;
  text-align: center;
}

/* Responsividade */
@media (max-width: 768px) {
  .main-content {
    margin-right: 0;
    padding: 10px;
  }

  .floating-menu {
    display: none; /* Ocultar menu desktop */
  }

  .mobile-menu-shortcut {
    display: flex !important;
    width: 35px !important; /* Reduzido em 30% */
    height: 35px !important; /* Reduzido em 30% */
  }

  .audio-controls-top {
    top: 20px; /* Posição normal */
  }

  .loading-title {
    font-size: 1.5rem !important; /* Reduzido em 40% */
  }

  .hero-title {
    font-size: 16px;
  }

  .hero-subtitle {
    font-size: 12px;
  }

  .hero-description {
    font-size: 10px;
  }

  .terminal {
    max-width: 100%;
  }

  /* Melhorar touch targets */
  .menu-item,
  .mobile-menu-item,
  .mobile-social-item {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Animações para gestos de arrastar */
@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Estilo para botão de música piscante quando pausado */
.music-button-paused {
  animation: musicButtonBlink 1s infinite !important;
  background-color: #ff0000 !important;
  border-color: #ff0000 !important;
}

@keyframes musicButtonBlink {
  0% {
    background-color: #ff0000 !important;
    border-color: #ff0000 !important;
    box-shadow: 0 0 15px #ff0000 !important;
    opacity: 1;
  }
  50% {
    background-color: rgba(255, 0, 0, 0.3) !important;
    border-color: #ff0000 !important;
    box-shadow: 0 0 5px #ff0000 !important;

    opacity: 0.7;
  }
  100% {
    background-color: #ff0000 !important;
    border-color: #ff0000 !important;
    box-shadow: 0 0 15px #ff0000 !important;
    opacity: 1;
  }
}

.music-button-paused .menu-icon i {
  color: #ffffff !important;
  text-shadow: 0 0 5px #ffffff !important;
}

.music-button-playing {
  background-color: rgba(138, 43, 226, 0.8) !important;
  border-color: var(--color-secondary) !important;
  animation: none !important;
  box-shadow: none !important;
}

.music-button-playing .menu-icon i {
  color: var(--color-text) !important;
  text-shadow: none !important;
}

/* Hover states para botão de música - só aplicar quando não estiver piscando */
.music-button-playing:hover {
  background: var(--color-secondary) !important;
  color: var(--color-background) !important;
  box-shadow: 0 0 20px var(--color-secondary) !important;
  transform: scale(1.1) !important;
}

.music-button-paused:hover {
  /* Manter a animação de piscar mesmo no hover */
  transform: scale(1.1) !important;
}
/* Estilo para o botão de modo de controle ativo */
.control-mode-active {
  animation: controlButtonBlink 1s infinite !important;
  background-color: #00ff00 !important; /* Verde */
  border-color: #00ff00 !important;
}

@keyframes controlButtonBlink {
  0% {
    background-color: rgba(0, 255, 0, 0.7) !important;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.7) !important;
    transform: scale(1);
  }
  50% {
    background-color: rgba(0, 255, 0, 1) !important;
    box-shadow: 0 0 18px rgba(0, 255, 0, 1) !important;
    transform: scale(1.05);
  }
  100% {
    background-color: rgba(0, 255, 0, 0.7) !important;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.7) !important;
    transform: scale(1);
  }
}

.control-mode-active .menu-icon i {
  color: #ffffff !important;
  text-shadow: 0 0 5px #ffffff !important;
}

/* Efeitos especiais */
.glitch {
  animation: glitch 2s ease-in-out;
}

@keyframes glitch {
  0%,
  100% {
    filter: hue-rotate(0deg);
    transform: translateX(0);
  }
  10% {
    filter: hue-rotate(90deg);
    transform: translateX(-2px);
  }
  20% {
    filter: hue-rotate(180deg);
    transform: translateX(2px);
  }
  30% {
    filter: hue-rotate(270deg);
    transform: translateX(-1px);
  }
  40% {
    filter: hue-rotate(360deg);
    transform: translateX(1px);
  }
  50% {
    filter: hue-rotate(90deg);
    transform: translateX(0);
  }
}

/* Efeito CRT */
.crt-effect {
  position: relative;
}

.crt-effect::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent 50%, rgba(0, 255, 255, 0.03) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(4px);
  }
}

/* Modo acelerado (Speedrun) */
.speed-mode * {
  animation-duration: 0.1s !important;
  transition-duration: 0.1s !important;
}

/* Estilos para páginas criadas dinamicamente */
.page-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.page-content h1 {
  font-size: 24px;
  color: var(--color-secondary);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 2px 2px 0 var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.page-content h1 .fa-graduation-cap {
  font-size: 0.8em; /* Ajusta o tamanho do ícone em relação ao h1 */
  color: var(--color-secondary);
}

.page-content h2 {
  font-size: 16px;
  color: var(--color-primary);
  margin: 30px 0 20px 0;
  border-bottom: 2px solid var(--color-secondary);
  padding-bottom: 10px;
}

.page-content h3 {
  font-size: 12px;
  color: var(--color-secondary);
  margin: 20px 0 10px 0;
}

.page-content p {
  font-size: 10px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.page-content ul {
  font-size: 10px;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-content li {
  margin-bottom: 5px;
}

/* Página Sobre */
.about-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  margin-bottom: 40px;
  align-items: center;
}

.about-avatar {
  text-align: center;
}

.avatar-large {
  width: 128px;
  height: 128px;
  background: url("https://delirlo.github.io/megaman/assets/sprites/megaman-idle.gif")
    no-repeat center;
  background-size: contain;
  margin: 0 auto;
  border: 4px solid var(--color-secondary);
  animation: bounce 2s infinite;
}

.about-text {
  font-size: 12px;
  line-height: 1.8;
}

.stats-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  background: rgba(138, 43, 226, 0.2);
  border: 2px solid var(--color-secondary);
  padding: 20px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(0, 255, 255, 0.2);
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--color-secondary);
}

.stat-value {
  font-size: 24px;
  color: var(--color-secondary);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 8px;
  color: var(--color-text);
}

/* Página Currículo */
.cv-section {
  margin-bottom: 40px;
}

.cv-item {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--color-primary);
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.cv-item:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

/* Página Projetos */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.project-card {
  background: rgba(138, 43, 226, 0.1);
  border: 2px solid var(--color-secondary);
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  background: rgba(0, 255, 255, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 255, 255, 0.3);
}

.project-icon {
  font-size: 32px;
  margin-bottom: 15px;
}

.project-card h3 {
  color: var(--color-secondary);
  margin-bottom: 15px;
}

.project-card p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.project-tech {
  font-size: 8px;
  color: var(--color-primary);
  border-top: 1px solid var(--color-secondary);
  padding-top: 10px;
}

/* Página Skills */
.skills-section {
  margin-top: 30px;
}

.skill-category {
  margin-bottom: 40px;
}

.skill-bars {
  margin-top: 20px;
}

.skill-bar {
  margin-bottom: 20px;
}

.skill-name {
  font-size: 10px;
  color: var(--color-secondary);
  margin-bottom: 5px;
}

.skill-progress {
  width: 100%;
  height: 20px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--color-secondary);
  position: relative;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
  transition: width 2s ease-in-out;
  position: relative;
}

.skill-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  animation: skillShine 2s infinite;
}

@keyframes skillShine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Página Blog */
.blog-terminal {
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid var(--color-secondary);
  max-width: 800px;
  margin: 0 auto;
}

.blog-post {
  margin-bottom: 30px;
  padding: 20px;
  border-bottom: 1px solid var(--color-primary);
}

.blog-post:last-child {
  border-bottom: none;
}

.post-date {
  color: var(--color-secondary);
  font-size: 8px;
  margin-bottom: 10px;
}

.blog-post h3 {
  color: var(--color-secondary);
  margin-bottom: 15px;
  font-size: 12px;
}

.blog-post p {
  font-size: 10px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.post-tags {
  font-size: 8px;
  color: var(--color-primary);
}

/* Página Contato */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: rgba(138, 43, 226, 0.1);
  border: 2px solid var(--color-secondary);
  padding: 15px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(0, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.contact-icon {
  font-size: 20px;
  color: var(--color-secondary);
}

.contact-text {
  font-size: 10px;
  line-height: 1.6;
}

.contact-text strong {
  color: var(--color-secondary);
  display: block;
  margin-bottom: 5px;
}

.contact-form {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--color-primary);
  padding: 30px;
}

.contact-form h2 {
  color: var(--color-secondary);
  margin-bottom: 20px;
  font-size: 14px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: var(--color-secondary);
  font-size: 10px;
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid var(--color-secondary);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 10px;
  padding: 10px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

.contact-form button {
  width: 100%;
  background: var(--color-primary);
  border: 2px solid var(--color-secondary);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 12px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background: var(--color-secondary);
  color: var(--color-background);
  box-shadow: 0 0 20px var(--color-secondary);
}

/* Responsividade para páginas */
@media (max-width: 768px) {
  .about-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .stats-section {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .contact-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-content {
    padding: 10px;
  }

  .page-content h1 {
    font-size: 18px;
  }

  .page-content h2 {
    font-size: 14px;
    word-break: break-word;
    white-space: normal;
  }
}

/* Estilo para os controles sociais */
.menu-item.social-control {
  margin-left: 10px;
  cursor: pointer;
}

.menu-item.social-control a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.menu-item.social-control .menu-icon {
  font-size: 1.2em;
  color: #fff;
  transition: all 0.3s;
}

.menu-item.social-control:hover .menu-icon {
  color: #8a2be2;
  transform: scale(1.1);
}

/* SEU CÓDIGO (MANTIDO INTEGRALMENTE) */
/*
  A regra anterior foi removida pois causava problemas de alinhamento.
  A centralização agora é controlada pela classe .menu-item pai.
*/

/* APRIMORAMENTO DA ANIMAÇÃO (SEM QUEBRAR SEU CÓDIGO) expansao de animacao sem quebrar icons centralizados*/
.audio-controls-top .menu-item:hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2); /* Fundo branco sutil */
  border: 2px solid rgba(255, 255, 255, 0.5); /* Borda branca */
  box-sizing: border-box;
  animation: expandir 0.4s ease-out;
  z-index: 1;
  pointer-events: none; /* Não interfere no clique */
}

@keyframes expandir {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  } /* Aumentei para 1.5 para ficar mais visível */
}

/* SEU CONTROLE DE CAMADAS (PERFEITO) */
.audio-controls-top .menu-item {
  position: relative;
  overflow: visible !important;
}
/* ANIMAÇÃO PARA O MENU PRINCIPAL (floating-menu) deixa centralizado icon e espansao  nao apagar*/
.floating-menu .menu-item {
  position: relative;
  overflow: visible !important;
}

.floating-menu .menu-item:hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-sizing: border-box;
  animation: expandir-menu 0.4s ease-out;
  z-index: 1;
  pointer-events: none;
}

@keyframes expandir-menu {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
/* Ajuste para o botão Voltar ao Topo */
#back-to-top {
  right: auto;
  left: 30px;
  bottom: 30px;
  z-index: 1000; /* Garante que fique acima de outros elementos */
}

/* Opcional: Ajuste para os ícones sociais */
.audio-controls-top {
  top: 20px;
  left: 20px;
  gap: 3px; /* Reduz o espaço entre os ícones */
}

/* ANIMAÇÃO DE EXPANSÃO ROSA VIBRANTE (NOVA VERSÃO) */
#back-to-top:hover::after {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border-radius: 50%;
  background: rgba(255, 20, 147, 0.4); /* Rosa vibrante com transparência */
  animation: expand 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  z-index: -1;
  border: 1px solid rgba(255, 20, 147, 0.6); /* Borda rosa mais marcante */
}

@keyframes expand {
  0% {
    transform: scale(0.7);
    opacity: 0.8;
  }
  70% {
    opacity: 0.5; /* Permanência mais visível */
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* Ajuste para mobile */
@media (max-width: 768px) {
  #back-to-top:hover::after {
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
  }
}

/* Estilo do Botão Voltar ao Topo */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  background: var(--color-secondary);
  color: var(--color-background);
  border: none;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  overflow: hidden; /* Para a animação de expansão */
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background: var(--color-primary);
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--color-secondary);

  /* Animação de expansão igual aos menus */
  animation: pulseExpand 0.5s ease-out;
}

/* Versão para mobile */
@media (max-width: 768px) {
  #back-to-top {
    width: 24px;
    height: 24px;
    font-size: 14px;
    bottom: 15px;
    right: 15px;
  }
}

/* Animação de expansão (igual aos menus) para botao top down */
@keyframes pulseExpand {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(245, 2, 75, 0.979);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }
  100% {
    transform: scale(1.1);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

/* Efeito de clique (opcional) */
#back-to-top:active {
  transform: scale(0.95) !important;
}

/* Animação de linhas horizontais (Efeito Glitch) */
.horizontal-lines-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1; /* Acima do starfield mas abaixo do conteúdo */
  overflow: hidden;
}

.line {
  position: absolute;
  height: 2px;
  background: var(--color-primary);
  opacity: 0.5;
  box-shadow: 0 0 5px var(--color-primary);
  animation: moveAndGlitch 10.4s linear infinite;
}

.line:nth-child(odd) {
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-secondary),
    transparent
  );
  box-shadow: 0 0 5px var(--color-secondary);
  animation-duration: 15.6s;
  animation-delay: -2s;
}

.line:nth-child(3n) {
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-accent),
    transparent
  );
  box-shadow: 0 0 7px var(--color-accent);
  height: 1px;
  animation-duration: 7.8s;
  animation-direction: reverse;
}

@keyframes moveAndGlitch {
  0% {
    transform: translateX(-110%) translateY(0px);
    opacity: 0;
  }
  5% {
    opacity: 0.6;
  }
  20% {
    transform: translateX(-80%) translateY(-2px);
  }
  40% {
    transform: translateX(-40%) translateY(1px);
  }
  60% {
    transform: translateX(0%) translateY(2px);
  }
  80% {
    transform: translateX(40%) translateY(-1px);
  }
  95% {
    opacity: 0.6;
  }
  100% {
    transform: translateX(110%) translateY(0px);
    opacity: 0;
  }
}

/* Efeito de Scanline Localizado */
.scanline-effect {
  position: relative;
  overflow: hidden;
}

.scanline-effect::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0, 0, 0, 0.3) 51%
  );
  background-size: 100% 4px;
  animation: scanlines-vertical 10s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes scanlines-vertical {
  from {
    background-position-y: 0;
  }
  to {
    background-position-y: 100%;
  }
}

/* Efeito de brilho suave para o loading */
.loading-screen::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(
    circle,
    rgba(0, 255, 255, 0.3) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: softGlow 3s ease-out forwards;
  z-index: -1;
}

@keyframes softGlow {
  0% {
    width: 0;
    height: 0;
    opacity: 0;
  }
  50% {
    width: 300px;
    height: 300px;
    opacity: 1;
  }
  100% {
    width: 600px;
    height: 600px;
    opacity: 0;
  }
}

/* Estilo para o container da miniatura */
.cv-thumbnail-container {
  text-align: center;
  margin: 20px 0;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Estilo para a miniatura */
.cv-thumbnail {
  width: 100%;
  max-width: 300px;
  border: 3px solid #2c3e50;
  border-radius: 5px;
  cursor: pointer;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.cv-thumbnail:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Legenda da miniatura */
.cv-thumbnail-caption {
  margin: 10px 0;
  color: #666;
  font-style: italic;
}

/* Botão de download */
.download-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
  transition: background 0.3s;
}

.download-btn:hover {
  background: #2980b9;
}

/* Estilo para o container da miniatura - tema 8-bit */
.cv-thumbnail-container {
  text-align: center;
  margin: 20px 0;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 5px;
  border: 2px solid #8a2be2;
  box-shadow:
    0 0 0 2px #000,
    0 0 0 4px #8a2be2;
  font-family: "Press Start 2P", cursive;
}

/* Estilo para a miniatura - tema 8-bit */
.cv-thumbnail {
  width: 100%;
  max-width: 300px;
  border: 4px solid #8a2be2;
  border-radius: 0;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 4px 4px 0 #000;
  image-rendering: pixelated;
}

.cv-thumbnail:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
}

/* Legenda da miniatura - estilo 8-bit */
.cv-thumbnail-caption {
  margin: 15px 0 10px;
  color: #8a2be2;
  font-size: 12px;
  text-shadow: 2px 2px 0 #000;
  line-height: 1.5;
}

/* Botão de download - estilo 8-bit */
.download-btn {
  background: #8a2be2;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 0;
  cursor: pointer;
  font-size: 14px;
  margin-top: 15px;
  transition: all 0.2s;
  font-family: "Press Start 2P", cursive;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 4px 4px 0 #000;
  position: relative;
  overflow: hidden;
  border: 2px solid #000;
}

.download-btn:hover {
  background: #6a1b9a;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
}

.download-btn:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 #000;
}

/* Efeito de glitch no hover para combinar com o tema */
.download-btn:hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  animation: glitch 0.3s infinite;
}

@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);
  }
}

/* Estilo para o container da miniatura - tema 8-bit com bordas finas */
.cv-thumbnail-container {
  text-align: center;
  margin: 20px 0;
  padding: 15px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 3px;
  border: 1px solid #8a2be2;
  box-shadow:
    0 0 0 1px #000,
    0 0 0 2px #8a2be2;
  font-family: "Press Start 2P", cursive;
}

/* Estilo para a miniatura - bordas finas */
.cv-thumbnail {
  width: 100%;
  max-width: 300px;
  border: 2px solid #8a2be2;
  border-radius: 0;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 2px 2px 0 #000;
  image-rendering: pixelated;
}

.cv-thumbnail:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #000;
}

/* Legenda da miniatura - estilo 8-bit */
.cv-thumbnail-caption {
  margin: 12px 0 8px;
  color: #8a2be2;
  font-size: 11px;
  text-shadow: 1px 1px 0 #000;
  line-height: 1.4;
}

/* Botão de download - estilo 8-bit com bordas finas */
.download-btn {
  background: #8a2be2;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 0;
  cursor: pointer;
  font-size: 12px;
  margin-top: 12px;
  transition: all 0.2s;
  font-family: "Press Start 2P", cursive;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 2px 2px 0 #000;
  position: relative;
  overflow: hidden;
  border: 1px solid #000;
}

.download-btn:hover {
  background: #6a1b9a;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #000;
}

.download-btn:active {
  transform: translate(0, 0);
  box-shadow: 1px 1px 0 #000;
}

/* Efeito de glitch mais sutil */
.download-btn:hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.05);
  animation: glitch 0.3s infinite;
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-1px, 1px);
  }
  40% {
    transform: translate(-1px, -1px);
  }
  60% {
    transform: translate(1px, 1px);
  }
  80% {
    transform: translate(1px, -1px);
  }
  100% {
    transform: translate(0);
  }
}

/* Estilo para o container da miniatura - sem bordas */
.cv-thumbnail-container {
  text-align: center;
  margin: 20px 0;
  padding: 15px;
  background: rgba(0, 0, 0, 0.7);
  font-family: "Press Start 2P", cursive;
}

/* Estilo para a miniatura - sem bordas */
.cv-thumbnail {
  width: 100%;
  max-width: 300px;
  cursor: pointer;
  transition: transform 0.2s;
  image-rendering: pixelated;
}

.cv-thumbnail:hover {
  transform: scale(1.02);
}

/* Legenda da miniatura */
.cv-thumbnail-caption {
  margin: 12px 0 8px;
  color: #8a2be2;
  font-size: 11px;
  text-shadow: 1px 1px 0 #000;
  line-height: 1.4;
}

/* Botão de download - estilo minimalista 8-bit */
.download-btn {
  background: #8a2be2;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 12px;
  margin-top: 12px;
  transition: all 0.2s;
  font-family: "Press Start 2P", cursive;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.download-btn:hover {
  background: #6a1b9a;
  transform: translateY(-1px);
}

.download-btn:active {
  transform: translateY(0);
}

/* Efeito de glitch sutil */
.download-btn:hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.05);
  animation: glitch 0.3s infinite;
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-1px, 0);
  }
  40% {
    transform: translate(1px, 0);
  }
  60% {
    transform: translate(0, -1px);
  }
  80% {
    transform: translate(0, 1px);
  }
  100% {
    transform: translate(0);
  }
}

/* Container da miniatura */
.cv-thumbnail-container {
  position: relative;
  z-index: 1000; /* Valor alto para ficar acima de tudo */
  text-align: center;
  margin: 20px 0;
}

/* Estilo da imagem - sem borda e com sombra sutil */
.cv-thumbnail {
  position: relative;
  max-width: 300px;
  border: none !important; /* Remove qualquer borda */
  box-shadow: 0 4px 12px transparent;
  border-radius: 8px;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  transform: translateZ(0); /* Melhora performance e empilhamento */
}

/* Efeito hover sutil */
.cv-thumbnail:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Legenda da miniatura */
.cv-thumbnail-caption {
  margin: 10px 0;
  color: #666;
  font-style: italic;
  font-size: 14px;
}

/* Botão de download */
.download-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
  transition: background 0.3s;
}

.download-btn:hover {
  background: #bf02ee;
}

.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: var(--color-background);
}

.cv-section {
  margin: 30px 0;
  padding: 25px;
  background: transparent;
  border-radius: 10px;
  border: 1px solid rgba(52, 152, 219, 0.7);
}

/* Itens individuais */
.cv-item {
  margin-bottom: 25px;
  padding-left: 20px;
  border-left: 3px solid rgba(52, 152, 219, 0.7); /* Borda esquerda com transparência */
  color: #fff; /* Cor do texto para contraste */
}

/* Títulos */
.cv-section h2 {
  color: #fff; /* Cor clara para contraste */
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-secondary);
}

/* Texto e listas */
.cv-item p,
.cv-item ul {
  margin-left: 0;
  padding-left: 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.cv-item p {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.cv-item li {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
}

.cv-item li::before {
  content: "•";
  color: var(--color-secondary);
  text-shadow: 0 0 5px var(--color-secondary);
  margin-right: 10px;
}

/* === Título Principal (Sem Cobertura da Borda) === */
.title-section {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  position: relative;
  z-index: 1; /* Garante que o título fique acima da borda */
}

/* Borda Ajustada (Não cobre o título) */
.title-section::before {
  content: "";
  position: absolute;
  top: 5px; /* Ajustado para não vazar no topo */
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 2px solid rgba(138, 43, 226, 0.1); /* Roxo 80% transparente */
  border-radius: 15px;
  background-color: rgba(138, 43, 226, 0.1); /* Fundo 80% transparente */
  z-index: -1; /* Fica atrás do título */
  backdrop-filter: blur(5px);
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.1);
}

/* Efeito tracejado externo (opcional) */
.title-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  z-index: -2;
  opacity: 0.5;
}

/* === Lista e Container (80% Transparente) === */
.highlights {
  background: rgba(138, 43, 226, 0.1); /* 80% transparente */
  border-left: 3px solid rgba(255, 255, 255, 0.4);
}

.page-content {
  background: var(--color-background);
}

/* === MEGA MAN CHARACTER STYLES === */
.megaman-character {
  position: fixed;
  width: 64px;
  height: 64px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 800;
  pointer-events: none;
  transition: opacity 0.5s ease;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* Animação suave de movimento */
.megaman-character.moving {
  transition:
    left 0.1s linear,
    top 0.1s linear;
}

/* Efeito de brilho quando ativo */
.megaman-character.active {
  filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.6));
  animation: megamanGlow 3s ease-in-out infinite alternate;
}

@keyframes megamanGlow {
  0% {
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.6));
  }
  100% {
    filter: drop-shadow(0 0 12px rgba(138, 43, 226, 0.8));
  }
}

/* Efeito de tiro - pulso rápido */
.megaman-character.shooting {
  animation: shootingPulse 0.3s ease-in-out 3;
}

@keyframes shootingPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Efeito de entrada/saída */
.megaman-character.entering {
  animation: megamanEnter 1s ease-out;
}

.megaman-character.leaving {
  animation: megamanLeave 1s ease-in;
}

@keyframes megamanEnter {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(180deg);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2) rotate(90deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes megamanLeave {
  0% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2) rotate(-90deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.5) rotate(-180deg);
  }
}

/* Responsividade para mobile */
@media (max-width: 768px) {
  .megaman-character {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .megaman-character {
    width: 40px;
    height: 40px;
  }
}

/* Efeito especial quando Mega Man está próximo do cursor */
.megaman-character.near-cursor {
  animation: nearCursorEffect 2s ease-in-out infinite;
}

@keyframes nearCursorEffect {
  0%,
  100% {
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.6));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(255, 0, 255, 0.8));
  }
}

/* Efeito de rastro de movimento (opcional) */
.megaman-character.trail::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  opacity: 0.3;
  z-index: -1;
  animation: trailFade 0.5s ease-out;
}

@keyframes trailFade {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

/* Debug mode - mostra informações do Mega Man */
.megaman-debug {
  position: fixed;
  top: 100px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--color-secondary);
  padding: 10px;
  font-family: var(--font-main);
  font-size: 8px;
  border: 1px solid var(--color-secondary);
  z-index: 1001;
  display: none;
}

.megaman-debug.active {
  display: block;
}

.megaman-debug .debug-line {
  margin-bottom: 5px;
}

/* Efeito especial para o modo speedrun */
.speed-mode .megaman-character {
  animation-duration: 0.1s !important;
  transition-duration: 0.05s !important;
}

.speed-mode .megaman-character.shooting {
  animation: shootingPulse 0.1s ease-in-out 5;
}

/* === ANIMAÇÕES PARA DESTRUIÇÃO E REGENERAÇÃO DO NOME === */

/* Animação de tremor/shake para quando o nome está sendo destruído */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10% {
    transform: translateX(-2px) rotate(-0.5deg);
  }
  20% {
    transform: translateX(2px) rotate(0.5deg);
  }
  30% {
    transform: translateX(-2px) rotate(-0.5deg);
  }
  40% {
    transform: translateX(2px) rotate(0.5deg);
  }
  50% {
    transform: translateX(-1px) rotate(-0.25deg);
  }
  60% {
    transform: translateX(1px) rotate(0.25deg);
  }
  70% {
    transform: translateX(-1px) rotate(-0.25deg);
  }
  80% {
    transform: translateX(1px) rotate(0.25deg);
  }
  90% {
    transform: translateX(-0.5px) rotate(-0.1deg);
  }
}

/* Efeito adicional para letras quebrando - cintilação */
@keyframes letterBreaking {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  10% {
    opacity: 0.8;
    transform: scale(0.98) rotate(-0.5deg);
  }
  20% {
    opacity: 0.9;
    transform: scale(1.02) rotate(0.5deg);
  }
  30% {
    opacity: 0.7;
    transform: scale(0.96) rotate(-0.3deg);
  }
  40% {
    opacity: 0.85;
    transform: scale(1.01) rotate(0.3deg);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.94) rotate(-0.2deg);
  }
  60% {
    opacity: 0.8;
    transform: scale(1.03) rotate(0.2deg);
  }
  70% {
    opacity: 0.9;
    transform: scale(0.97) rotate(-0.1deg);
  }
  80% {
    opacity: 0.75;
    transform: scale(1.01) rotate(0.1deg);
  }
  90% {
    opacity: 0.95;
    transform: scale(0.99);
  }
}

/* Classe auxiliar para aplicar efeito de quebra */
.breaking-text {
  animation: letterBreaking 0.1s ease-in-out infinite;
}

/* Classe auxiliar para texto sendo destruído */
.destroying-text {
  animation: shake 0.3s ease-in-out;
}

/* Efeito especial para o título quando está sendo atacado */
.hero-title.under-attack {
  position: relative;
  z-index: 1;
}
/* Estilos para o Carrossel de Cursos */
.carousel-container {
  position: relative;
  max-width: 800px;
  margin: 40px auto;
  border: 4px solid var(--color-secondary);
  background: rgba(138, 43, 226, 0.1);
  padding: 20px;
  overflow: hidden;
  /* Estilos para os Indicadores (Dots) */
  .carousel-dots-container {
    text-align: center;
    padding-top: 20px;
  }

  .carousel-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: var(--color-primary);
    border: 2px solid var(--color-secondary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .carousel-dot.active {
    background-color: var(--color-secondary);
    transform: scale(1.2);
  }

  .carousel-dot:hover {
    background-color: var(--color-secondary);
  }
  z-index: 2; /* Garante que o carrossel fique acima das linhas */
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-track img {
  width: 200px;
  height: 150px;
  object-fit: cover;
  object-position: top; /* Garante que a miniatura mostre o topo da imagem */
  margin: 0 10px;
  border: 2px solid var(--color-primary);
  image-rendering: pixelated;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.carousel-track img:hover {
  transform: scale(1.1); /* Aumenta o zoom no hover */
  box-shadow: 0 0 20px var(--color-secondary);
  z-index: 3; /* Garante que a imagem com zoom fique na frente */
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-primary);
  border: 2px solid var(--color-secondary);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 24px;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
}
.carousel-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.carousel-caption {
  font-size: 12px;
  color: var(--color-secondary);
  text-shadow: 1px 1px 0 var(--color-background);
  margin-top: 10px;
  text-align: center;
}

.carousel-button:hover {
  background: var(--color-secondary);
  color: var(--color-background);
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

@media (max-width: 768px) {
  #audio-debug {
    display: none !important;
  }
  .carousel-container {
    height: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .carousel-track {
    flex-direction: column;
    height: 100%;
    width: 100%;
  }
  .carousel-slide {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
  }
  .carousel-track img {
    width: 80%;
    height: auto;
    margin: 0 auto;
  }
  .carousel-dots-container {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .carousel-button.up {
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-150%);
  }
  .carousel-button.down {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    top: auto;
  }
}

.hero-description {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.hero-description strong {
  color: var(--color-secondary);
  display: block;
  margin: 15px 0 5px 0;
  text-align: right;
  padding-right: 20px;
  margin-left: auto;
  width: fit-content;
}

.hero-description ul {
  list-style-type: none;
  padding-left: 45px;
  margin: 5px 0 10px 0;
}

.hero-description li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 5px;
  font-size: 14px;
  line-height: 1.6;
}

.hero-description li:before {
  content: "•";
  color: var(--color-primary);
  position: absolute;
  left: 0;
}

@keyframes red-pulse {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.2);
  }
}

/* Ícones amarelos (títulos) */
.yellow-icon {
  color: #ffd700; /* Amarelo dourado */
  text-shadow: 0 0 8px #ffa500; /* Brilho laranja */
  margin-right: 10px;
}

/* Ícones vermelhos (itens da lista) */
.red-icon {
  color: #ff4500; /* Vermelho laranjado */
  text-shadow: 0 0 8px #8b0000; /* Brilho vermelho escuro */
  margin-right: 10px;
}

/* Efeitos de hover */
.hero-description li:hover .red-icon {
  animation: red-pulse 0.5s infinite alternate;
}

.hero-description strong:hover .yellow-icon {
  animation: yellow-pulse 0.5s infinite alternate;
}

@keyframes yellow-pulse {
  0% {
    text-shadow: 0 0 8px #ffa500;
  }
  100% {
    text-shadow:
      0 0 15px #ffd700,
      0 0 20px #ffa500;
  }
}

/* Mantendo seus estilos existentes */
.hero-description {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.hero-description strong {
  color: var(--color-secondary);
  display: block;
  margin: 15px 0 5px 0;
  text-align: right;
  padding-right: 20px;
}

.hero-description ul {
  list-style-type: none;
  padding-left: 45px;
  margin: 5px 0 10px 0;
}

.hero-description li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 5px;
  font-size: 14px;
  line-height: 1.6;
}

/* Ícones amarelos com pulsação */
.yellow-pulse-icon {
  color: #ffd700;
  margin: 0 5px;
  position: relative;
  top: -2px;
  text-shadow: 0 0 5px #ffa500;
  animation: yellow-pulse 1.5s infinite alternate;
}

/* Texto vermelho com pulsação */
.red-pulse-text {
  color: #ff4500;
  display: inline-block;
  text-shadow: 0 0 5px #8b0000;
  animation: red-pulse 2s infinite alternate;
  margin: 0 5px;
}

/* Animações */
@keyframes yellow-pulse {
  0% {
    transform: scale(1);
    text-shadow: 0 0 5px #ffa500;
  }
  100% {
    transform: scale(1.1);
    text-shadow:
      0 0 15px #ffd700,
      0 0 20px #ffa500;
  }
}

@keyframes red-pulse {
  0% {
    transform: scale(1);
    text-shadow: 0 0 5px #8b0000;
    color: #ff4500;
  }
  50% {
    text-shadow:
      0 0 10px #ff0000,
      0 0 20px #8b0000;
    color: #ff6347;
  }
  100% {
    transform: scale(1.02);
    text-shadow: 0 0 15px #8b0000;
    color: #ff4500;
  }
}

/* Ajuste de posicionamento */
.hero-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ESTILOS BASE */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #000;
  color: #fff;
  margin: 0;
  padding: 20px;
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.cv-section {
  margin-bottom: 30px;
  padding: 20px;
  background-color: transparent;
  border-radius: 5px;
  position: relative;
  z-index: 10;
}

h2 {
  margin: 0 0 15px 0;
  padding: 0;
  display: flex;
  align-items: center;
  font-size: 1.5em;
}

h3 {
  margin: 15px 0 5px 0;
  padding: 0;
  font-size: 1.2em;
  display: flex;
  align-items: center;
}

p {
  margin: 0 0 10px 0;
  padding: 0;
}

ul {
  margin: 10px 0;
  padding-left: 0;
  list-style: none;
}

li {
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
}

/* ÍCONES */
.section-icon {
  margin-right: 10px;
  font-size: 1.2em;
}

.bullet-icon {
  margin-right: 10px;
  font-size: 0.9em;
  min-width: 20px;
  position: relative;
  top: -2px;
}

/* ANIMAÇÕES */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes shine {
  0% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 8px currentColor;
  }
  100% {
    opacity: 0.8;
  }
}

/* CORES E ANIMAÇÕES DOS ÍCONES */
/* SEÇÃO AMARELA */
.yellow-section .section-icon,
.yellow-section .bullet-icon {
  color: #ffd700;
  animation:
    pulse 2s infinite,
    shine 2s infinite;
}

/* SEÇÃO AZUL */
.blue-section .section-icon,
.blue-section .bullet-icon {
  color: #1e90ff;
  animation:
    pulse 2s infinite,
    shine 2s infinite;
}

/* SEÇÃO VERMELHA */
.red-section .section-icon,
.red-section .bullet-icon {
  color: #ff4500;
  animation:
    pulse 2s infinite,
    shine 2s infinite;
}

/* SEÇÃO VERDE */
.green-section .section-icon,
.green-section .bullet-icon {
  color: #32cd32;
  animation:
    pulse 2s infinite,
    shine 2s infinite;
}

/* Footer Styles */
footer {
  background-color: rgba(10, 10, 20, 0.8);
  border-top: 1px solid var(--color-primary);
  padding: 15px 0;
  width: 100%;
  position: relative;
  bottom: 20px;
  z-index: 100;
  backdrop-filter: blur(5px);
}

.footer-content {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.social-link-footer i {
  font-size: 24px;
  color: var(--color-text);
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.social-link-footer:hover i {
  color: var(--color-secondary);
  transform: scale(1.2);
}

.footer-info {
  text-align: center;
  font-size: 10px;
  color: #aaa;
}

.footer-info p {
  margin: 5px 0;
}

.footer-nav,
.footer-subscribe {
  min-width: 200px;
}

.footer-nav h4,
.footer-subscribe h4 {
  color: var(--color-secondary);
  margin-bottom: 15px;
  font-size: 14px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.footer-nav ul li {
  margin-bottom: 0;
}

.footer-nav a {
  color: #aaa;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--color-secondary);
}

.footer-subscribe input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--color-primary);
  color: #fff;
  padding: 8px;
  width: calc(100% - 90px);
  font-family: var(--font-main);
  font-size: 10px;
}

.footer-subscribe button {
  background: var(--color-primary);
  border: none;
  color: #fff;
  padding: 8px 10px;
  font-family: var(--font-main);
  font-size: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.footer-subscribe button:hover {
  background: var(--color-secondary);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-nav ul {
    padding: 0;
    flex-direction: column;
    gap: 10px;
  }
}

/* Cores Hover para Redes Sociais no Rodapé */
.social-link-footer[title="GitHub"]:hover i {
  color: #8a2be2;
  transform: scale(1.2) rotate(5deg);
}
.social-link-footer[title="LinkedIn"]:hover i {
  color: #0077b5;
  transform: scale(1.2) rotate(5deg);
}
.social-link-footer[title="Instagram"]:hover i {
  color: #d6249f;
  transform: scale(1.2) rotate(5deg);
}
.social-link-footer[title="WhatsApp"]:hover i {
  color: #25d366;
  transform: scale(1.2) rotate(5deg);
}
.social-link-footer[title="Telegram"]:hover i {
  color: #24a1de;
  transform: scale(1.2) rotate(5deg);
}
.social-link-footer[title="Facebook"]:hover i {
  color: #1877f2;
  transform: scale(1.2) rotate(5deg);
}

@media (max-width: 320px) {
  .game-score {
    position: absolute !important;
    top: 70px !important; /* Posição abaixo dos controles */
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    text-align: center !important;
    z-index: 3001 !important; /* Garante visibilidade acima de outros elementos */
  }
}

/* Ajuste fino para alinhamento do menu flutuante */
.floating-menu .menu-item {
  justify-content: flex-start; /* Alinha ícone e texto à esquerda */
  width: 122px; /* Largura reajustada */
}

.floating-menu .menu-icon {
  width: 35px; /* Define uma largura fixa para a área do ícone */
  text-align: center; /* Centraliza o ícone dentro da sua área */
}

.floating-menu .menu-label {
  text-align: left; /* Garante que o texto comece logo após o ícone */
  flex-grow: 1; /* Faz o texto ocupar o espaço restante */
  font-size: 6px; /* Fonte reajustada */
}

/* === Estilos para o Menu Superior Esquerdo === */

.audio-controls-top {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.top-menu-row {
  display: flex;
  gap: 5px;
}

.audio-controls-top .menu-item {
  width: 45px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-menu-dropdown {
  display: none; /* Inicia escondido */
  flex-direction: column;
  gap: 5px;
  /* O JavaScript controlará a exibição */
}

/* === ESTILOS CORRIGIDOS PARA O MENU SUPERIOR ESQUERDO === */

.audio-controls-top {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Alinha todos os filhos (linha de botões e menus) à esquerda */
  gap: 5px;
}

.top-menu-row {
  display: flex;
  gap: 5px;
}

/* Padroniza TODOS os botões nesta seção para o mesmo tamanho */
.audio-controls-top .menu-item {
  width: 45px;
  height: 40px;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box; /* Garante que padding/border não afetem o tamanho final */
}

/* Controla os menus que abrem para baixo */
#social-buttons-container,
#megaman-controls-container {
  display: none; /* Controlado por JS */
  flex-direction: column;
  gap: 5px;
  padding-left: 0; /* Remove qualquer indentação acidental */
}
