/* 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;
}

: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;
}

/* 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 {
  transition: transform 0.2s ease;
}

.menu-item:hover .menu-icon {
  transform: rotate(20deg) scale(1.2);
}

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

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

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

.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;
}

/* Animação de fundo starfield */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(2px 2px at 20px 30px, var(--color-secondary), transparent),
    radial-gradient(2px 2px at 40px 70px, var(--color-primary), transparent),
    radial-gradient(1px 1px at 90px 40px, var(--color-accent), transparent),
    radial-gradient(1px 1px at 130px 80px, var(--color-secondary), transparent),
    radial-gradient(2px 2px at 160px 30px, var(--color-primary), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: starfield 7s linear infinite;
  z-index: -1;
  will-change: transform;
  transform: translateZ(0);
}

@keyframes starfield {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100px);
  }
}

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

/* Efeito de energia elétrica no fundo */
.loading-screen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(0, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    linear-gradient(
      90deg,
      transparent 48%,
      rgba(0, 255, 255, 0.3) 50%,
      transparent 52%
    );
  animation: electricFlow 2s ease-in-out infinite;
  z-index: -1;
}

/* Linhas de energia emanando do centro */
.loading-screen::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 2px;
  background: rgba(0, 255, 255, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 20px rgba(0, 255, 255, 0.5),
    0 0 40px rgba(0, 255, 255, 0.3),
    0 0 60px rgba(0, 255, 255, 0.1);
  animation: energyPulse 1.5s ease-in-out infinite;
  z-index: -1;
}

@keyframes electricFlow {
  0% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
}

@keyframes energyPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.loading-content {
  text-align: center;
}

.loading-sprite {
  width: 140px;
  height: 140px;
  background: url("https://delirlo.github.io/megaman/assets/sprites/carregando.gif")
    no-repeat center;
  background-size: contain;
  margin: 0 auto 20px;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.loading-text {
  font-size: 16px;
  color: var(--color-secondary);
  margin-bottom: 20px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.loading-bar {
  width: 200px;
  height: 20px;
  border: 2px solid var(--color-secondary);
  background: var(--color-background);
  margin: 0 auto;
  position: relative;
}

.loading-progress {
  height: 100%;
  background: var(--color-secondary);
  width: 0%;
  animation: loading 3s ease-in-out forwards;
}

@keyframes loading {
  to {
    width: 100%;
  }
}

/* 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);
  box-shadow: 0 0 20px var(--color-secondary);
  transform: scale(1.1) translateZ(0);
}

.menu-item:hover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    transparent 30%,
    var(--color-secondary) 70%
  );
  animation: pixelBurst 0.5s ease-out;
}

@keyframes pixelBurst {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.menu-icon {
  font-size: 16px;
  margin-right: 10px;
}

.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;
}

.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 */
.megaman-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(138, 43, 226, 0.2);
  z-index: 1999; /* Um abaixo do Mega Man */
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.megaman-bg.active {
  opacity: 1;
}

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

.megaman-sprite {
  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: 30px;
  text-align: center;
  max-width: 500px;
}

.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: 12px;
  margin-bottom: 15px;
  color: var(--color-secondary);
}

.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; /* Mostrar atalho de 3 pontos */
  }

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

  .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;
}

/* 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);
}

.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;
  }
}

/* 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) */
.audio-controls-top .menu-icon,
#music-button .menu-icon,
#mute-icon .menu-icon,
.audio-controls-top .social-control .menu-icon {
  all: unset;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  height: 100%;
  font-size: 1.2rem;
  position: relative;
  z-index: 2;
}

/* 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;
}

/* Loader Definitivo - Roxo Portfolio e Super Grossa */
.loading-bar {
  height: 18px; /* 60% maior que os 11.2px anteriores (total ~18px) */
  background: #1a1a1a;
  border-radius: 9px; /* Metade da altura */
  box-shadow:
    0 0 3px #000 inset,
    0 2px 5px rgba(0, 0, 0, 0.5); /* Sombra mais destacada */
  overflow: hidden;
  border: 1px solid #3a1a5f; /* Borda roxa sutil */
}

.loading-progress {
  height: 100%;
  width: 0;
  background: linear-gradient(
    90deg,
    #6a3093 0%,
    /* Roxo mais escuro */ #44e9ff 50%,
    /* Roxo vibrante do portfólio */ #6a3093 100%
  ); /* Roxo mais escuro */
  background-size: 200% 100%;
  animation:
    loading 2.3s cubic-bezier(0.65, 0, 0.35, 1) forwards,
    pixel-pulse 0.4s steps(3) infinite;
}

@keyframes loading {
  0% {
    width: 0;
    background-position: 0% 0;
  }
  100% {
    width: 100%;
    background-position: -200% 0;
  }
}

@keyframes pixel-pulse {
  0%,
  100% {
    transform: translateY(0) scaleY(1);
  }
  50% {
    transform: translateY(-2px) scaleY(0.96);
  }
}

/* Efeito de conclusão (opcional) */
.loading-progress::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 10px;
  background: rgba(255, 255, 255, 0.3);
  animation: finish-glow 0.5s ease-out 2.1s forwards;
}

@keyframes finish-glow {
  to {
    width: 100%;
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .loading-bar {
    height: 14px;
    border-radius: 7px;
  }
}

/* Animação de linhas horizontais */
.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: 3px; /* Espessura da linha aumentada */
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-primary),
    transparent
  );
  opacity: 0.8; /* Transparência aumentada */
  animation: moveLine 8s linear infinite; /* Animação */
  box-shadow: 0 0 6px var(--color-primary);
}

.line:nth-child(odd) {
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-secondary),
    transparent
  );
  box-shadow: 0 0 6px var(--color-secondary);
}

.line:nth-child(3n) {
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-accent),
    transparent
  );
  box-shadow: 0 0 6px var(--color-accent);
}

@keyframes moveLine {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* 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;
}

/* Container principal transparente */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: transparent; /* Fundo transparente */
}

/* Seções do currículo transparentes */
.cv-section {
  margin: 30px 0;
  padding: 25px;
  background: transparent; /* Levemente transparente */
  border-radius: 10px;
  backdrop-filter: blur(5px); /* Efeito de vidro fosco - opcional */
  border: 1px solid rgba(52, 152, 219, 0.7); /* Borda sutil */
}

/* 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 rgba(5, 193, 240, 0.3); /* Borda inferior sutil */
}

/* Texto e listas */
.cv-item p,
.cv-item ul {
  margin-left: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9); /* Texto com leve transparência */
}

.cv-item li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 15px;
  color: rgba(255, 255, 255, 0.8);
}

.cv-item li::before {
  content: "•";
  color: rgba(52, 152, 219, 0.7);
  position: absolute;
  left: 0;
}

/* === 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: rgba(138, 43, 226, 0.15); /* Quase transparente */
}

/* === 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);
  }
}

/* Animação de regeneração com brilho e pulsação */
@keyframes regenerate {
  0% {
    filter: brightness(1) contrast(1);
    text-shadow: 2px 2px 0 #000;
  }
  25% {
    filter: brightness(1.3) contrast(1.2);
    text-shadow:
      2px 2px 0 #000,
      0 0 5px rgba(0, 255, 255, 0.7),
      0 0 10px rgba(0, 255, 255, 0.5);
  }
  50% {
    filter: brightness(1.5) contrast(1.4);
    text-shadow:
      2px 2px 0 #000,
      0 0 8px rgba(0, 255, 255, 0.9),
      0 0 15px rgba(0, 255, 255, 0.7),
      0 0 20px rgba(0, 255, 255, 0.5);
  }
  75% {
    filter: brightness(1.2) contrast(1.1);
    text-shadow:
      2px 2px 0 #000,
      0 0 3px rgba(0, 255, 255, 0.5);
  }
  100% {
    filter: brightness(1) contrast(1);
    text-shadow: 2px 2px 0 #000;
  }
}

/* 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);
  }
}

/* Efeito de pulsação para regeneração */
@keyframes regeneratePulse {
  0% {
    transform: scale(1);
    filter: hue-rotate(0deg);
  }
  50% {
    transform: scale(1.02);
    filter: hue-rotate(30deg);
  }
  100% {
    transform: scale(1);
    filter: hue-rotate(0deg);
  }
}

/* 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;
}

/* Classe auxiliar para texto sendo regenerado */
.regenerating-text {
  animation:
    regenerate 0.5s ease-in-out,
    regeneratePulse 0.15s ease-in-out infinite;
}

/* Efeito especial para o título quando está sendo atacado */
.hero-title.under-attack {
  position: relative;
  z-index: 1;
}

.hero-title.under-attack::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background:
    linear-gradient(
      45deg,
      transparent 30%,
      rgba(255, 0, 0, 0.1) 35%,
      rgba(255, 0, 0, 0.2) 40%,
      transparent 45%
    ),
    linear-gradient(
      -45deg,
      transparent 30%,
      rgba(255, 0, 0, 0.1) 35%,
      rgba(255, 0, 0, 0.2) 40%,
      transparent 45%
    );
  animation: dangerField 0.3s ease-in-out infinite;
  z-index: -1;
  border-radius: 3px;
}

@keyframes dangerField {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

/* Efeito para quando o nome está sendo regenerado */
.hero-title.regenerating {
  animation:
    regenerate 0.5s ease-in-out,
    titleGlow 1s ease-in-out infinite;
}
