
@import url('https://fonts.googleapis.com/css2?family=Krona+One&family=Montserrat:wght@400;600&display=swap');

:root {
  --cor-primaria: #001F3F; /* Dark Blue */
  --cor-secundaria: #F5F5F5; /* Light Gray */
  --cor-terciaria: #FFD700; /* Gold */
  --f1: 'Krona One', sans-serif;
  --f2: 'Montserrat', sans-serif;
@import url('https://fonts.googleapis.com/css2?family=Krona+One&family=Montserrat:wght@400;600&display=swap');

:root {
  --cor-primaria: #000000;
  --cor-secundaria: #F0F0F0;
  --cor-terciaria: #FFFF00;
  --f1: 'Krona One', sans-serif;
  --f2: 'Montserrat', sans-serif;


}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--cor-primaria);
  color: var(--cor-secundaria);
  font-family: var(--f2);
  padding-top: 80px; /* Add padding to offset the fixed top bar */
  /* Background image removed for professional look */
  overflow-x: hidden;
  /* Prevent scrollbar from animations */
}

.cabecalho {
  padding: 2% 0;
  /* Symmetric padding */
  display: flex;
  justify-content: center;
  /* Center the menu */
}

.cabecalho__menu {
  display: flex;
  gap: 40px;
  /* Reduced gap for cleaner look */
}

.cabecalho__menu__links {
  font-family: var(--f1);
  font-size: 1.2rem;
  /* Slightly smaller for professional look */
  color: var(--cor-secundaria);
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  position: relative;
}

.cabecalho__menu__links::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--cor-terciaria);
  transition: width 0.3s;
}

.cabecalho__menu__links:hover::after {
  width: 100%;
}

.cabecalho__menu__links:hover {
  color: var(--cor-terciaria);
  text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}


.apresentacao {
  padding: 5% 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap:82px;

  justify-content: center;
  min-height: 60vh;
  position: relative;
  z-index: 1;
  /* Ensure content is above animation */
}

.apresentacao--sobre {
  justify-content: center;
}

.apresentacao--sobre .apresentacao__conteudo {
  width: 80%;
  /* Mais largo na página sobre */
  text-align: center;
  align-items: center;
}

.apresentacao__conteudo {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
  align-items: center;
}

.apresentacao__conteudo__titulo {
  font-size: 2.5rem;
  font-family: var(--f1);
  line-height: 1.2;
}

.titulo-destaque {
  color: var(--cor-terciaria);
}

.apresentacao__conteudo__texto {
  font-size: 1.2rem;
  font-family: var(--f2);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
  text-align: justify;
  color: #CCCCCC;
  /* Softer white */
  max-width: 700px;
}

.apresentacao__links {
  display: flex;
  flex-direction: row;
  /* Horizontal buttons */
  justify-content: center;
  gap: 20px;
  width: 100%;
  flex-wrap: wrap;
}

.apresentacao__links__subtitulo {
  font-family: var(--f2);
  font-weight: 600;
  font-size: 1.2rem;
  width: 100%;
  margin-bottom: 10px;
}

.apresentacao__botao {
  display: flex;
  justify-content: center;
  gap: 16px;
  border: 3.5px double var(--cor-terciaria);
  width: 50%;
  text-align: center;
  border-radius: 8px;
  font-size: 1.5rem;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--cor-terciaria);
  /* Thinner border */
  width: auto;
  min-width: 200px;
  padding: 15px 30px;
  border-radius: 4px;
  /* Less rounded */
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--cor-secundaria);
  font-family: var(--f2);
  transition: 0.3s;
  box-shadow: 0px 5px 10px 0px rgba(0,0,0,0.2);
}

.apresentacao__botao:hover{
  background-color: var(--cor-terciaria);;
  color: var(--cor-primaria);
  transform: translateY(-5px);
  box-shadow: 0px 10px 20px 2px rgba(0,0,0,0.2);
}

.apresentacao__imagem{
  width: 50%;
  border-radius: 16px;
}

.top-bar {
  background-color: var(--cor-primaria);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  border-bottom: 1px solid var(--cor-terciaria);
}

.menu-bar {
  display: flex;
  justify-content: center;
  width: 100%;
}

.rodape{
  color: var(--cor-secundaria);
  background-color: var(--cor-primaria);
  border-top: 1px solid var(--cor-terciaria);
  padding: 24px;
  text-align: center;
  font-size: 1.2rem;
  font-family: var(--f2);
  font-weight: 400;

  color: var(--cor-terciaria);
  /* Yellow text */
  font-family: var(--f2);
  /* Montserrat for buttons is cleaner */
  transition: all 0.3s ease;
  background-color: rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.apresentacao__botao:hover {
  background-color: var(--cor-terciaria);
  color: var(--cor-primaria);
  box-shadow: 0 0 20px rgba(255, 255, 0, 0.3);
  transform: translateY(-2px);
}

.apresentacao__imagem {
  display: block;
  max-width: 450px;
  width: 45%;
  border-radius: 10px;
  filter: drop-shadow(0 0 15px rgba(0, 0, 255, 0.4));
  transition: transform 0.3s ease;
}

.apresentacao__imagem:hover {
  transform: scale(1.05);
}

@media (max-width: 992px) {
  .apresentacao__imagem {
    display: none;
  }
}

.rodape {
  color: var(--cor-primaria);
  background-color: var(--cor-terciaria);
  /* Yellow footer */
  padding: 20px;
  text-align: center;
  font-size: 1rem;
  font-family: var(--f2);
  font-weight: 600;
  border-top: none;
  position: relative;
  z-index: 1;
}

/* Seção de Projetos */
.projetos {
  padding: 5% 10%;
  text-align: center;
  border-top: 1px solid var(--cor-terciaria);
  border-bottom: 1px solid var(--cor-terciaria);
  background-color: #050505;
  /* Very dark grey */
  position: relative;
  z-index: 1;
}

.projetos__titulo {
  font-family: var(--f1);
  font-size: 2.5rem;
  color: var(--cor-secundaria);
  margin-bottom: 50px;
  text-shadow: 3px 3px 0px #0000CD;
  /* Sombra estilo retro */
}

.projetos__conteiner {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.projetos__card {
  background-color: rgba(0, 0, 0, 0.8);
  border: 4px double var(--cor-terciaria);
  border-radius: 15px;
  padding: 30px;
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.3s, box-shadow 0.3s;
}

.projetos__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 20px var(--cor-terciaria);
  border-color: #FF00FF;
  /* Neon Pink no hover */
}

.projetos__card__titulo {
  font-family: var(--f1);
  font-size: 1.5rem;
  color: var(--cor-terciaria);
  margin-bottom: 15px;
}

.projetos__card__descricao {
  font-family: var(--f2);
  font-size: 1.1rem;
  color: #FFFFFF;
  margin-bottom: 25px;
  line-height: 1.5;
}

.projetos__card__botao {
  background-color: transparent;
  border: 2px solid var(--cor-secundaria);
  padding: 10px 20px;
  color: var(--cor-secundaria);
  font-family: var(--f1);
  /* Fonte retro no botão */
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.projetos__card__botao:hover {
  background-color: var(--cor-secundaria);
  color: var(--cor-primaria);
  box-shadow: 0 0 10px var(--cor-secundaria);
}

@media (max-width: 1200px) {
  .apresentacao {
    padding: 5%;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }

  .cabecalho {
    padding: 10%;
  }

.cabecalho__menu{
  justify-content: center;

  }



  .cabecalho__menu {
    justify-content: center;
    gap: 30px;
    /* Reduzido para mobile */
  }

  .apresentacao__conteudo {
    width: auto;
  }

}

/* Animations */
#background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* Behind content, above body bg */
  pointer-events: none;
  overflow: hidden;
}

/* Pacman Animation */
.pacman-runner {
  position: absolute;
  bottom: 20px;
  left: -100px;
  width: 50px;
  height: 50px;
  background: var(--cor-terciaria);
  border-radius: 50%;
  animation: run 10s linear infinite, chomp 0.3s linear infinite;
}

/* Mouth created with clip-path */
@keyframes chomp {
  0% {
    clip-path: polygon(100% 0, 100% 100%, 50% 50%, 0 100%, 0 0);
  }

  50% {
    clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 0);
  }
}

/* Better Pacman Mouth */
.pacman-runner {
  background: conic-gradient(var(--cor-terciaria) 30deg, transparent 30deg, transparent 330deg, var(--cor-terciaria) 330deg);
  border-radius: 50%;
  animation: run 15s linear infinite, chomp 0.4s alternate infinite;
}

@keyframes run {
  0% {
    left: -100px;
    transform: scaleX(1);
  }

  49.9% {
    left: 100vw;
    transform: scaleX(1);
  }

  50% {
    left: 100vw;
    transform: scaleX(-1);
  }

  100% {
    left: -100px;
    transform: scaleX(-1);
  }
}

@keyframes chomp {
  0% {
    background: conic-gradient(var(--cor-terciaria) 0deg, transparent 0deg, transparent 360deg, var(--cor-terciaria) 360deg);
  }

  100% {
    background: conic-gradient(var(--cor-terciaria) 30deg, transparent 30deg, transparent 330deg, var(--cor-terciaria) 330deg);
  }
}

/* Ghost Cursor */
.ghost-cursor {
  position: fixed;
  width: 40px;
  height: 40px;
  background: #FF0000;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.1s ease-out;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.ghost-cursor::before,
.ghost-cursor::after {
  content: '';
  position: absolute;
  top: 15px;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
}

.ghost-cursor::before {
  left: 8px;
}

.ghost-cursor::after {
  right: 8px;
}

.ghost-cursor .pupil {
  position: absolute;
  top: 4px;
  left: 2px;
  width: 4px;
  height: 4px;
  background: blue;
  border-radius: 50%;
}

/* Random Ghosts */
.ghost-random {
  position: absolute;
  width: 30px;
  height: 30px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  z-index: 0;
  opacity: 0.7;
  animation: floatGhost 20s infinite linear;
}

.ghost-random::before,
.ghost-random::after {
  content: '';
  position: absolute;
  top: 10px;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.ghost-random::before {
  left: 5px;
}

.ghost-random::after {
  right: 5px;
}

/* Ghost Colors */
.ghost-pink {
  background: #FFB8FF;
  top: 20%;
  left: 10%;
  animation-duration: 25s;
  animation-delay: 0s;
}

.ghost-cyan {
  background: #00FFFF;
  top: 60%;
  left: 80%;
  animation-duration: 30s;
  animation-delay: -5s;
}

.ghost-orange {
  background: #FFB852;
  top: 80%;
  left: 20%;
  animation-duration: 22s;
  animation-delay: -10s;
}

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

  25% {
    transform: translate(100px, 50px);
  }

  50% {
    transform: translate(0, 100px);
  }

  75% {
    transform: translate(-100px, 50px);
  }

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

/* Ghost Feet */
.ghost-cursor {
  background: radial-gradient(circle at 10px 40px, transparent 10px, #FF0000 10px) -10px 0;
  background-size: 40px 50px;
  clip-path: polygon(0% 100%, 0% 0%, 100% 0%, 100% 100%, 83% 90%, 66% 100%, 50% 90%, 33% 100%, 16% 90%);
  background: #FF0000;
}

/* Dots Line */
#background-animation::after {
  content: '';
  position: absolute;
  bottom: 45px;
  left: 0;
  width: 100%;
  height: 10px;
  background-image: radial-gradient(circle, #FFB8AE 2px, transparent 3px);
  background-size: 30px 10px;
  background-repeat: repeat-x;
  opacity: 0.5;
}

/* STAGE SELECT (Nova estilização criativa de projetos) */
.projetos {
  background-color: #030303;
  border-top: 4px solid var(--cor-terciaria);
  border-bottom: 4px solid var(--cor-terciaria);
  padding: 60px 10%;
  position: relative;
  z-index: 1;
}

.projetos__titulo {
  font-family: var(--f1);
  font-size: 3rem;
  color: var(--cor-terciaria);
  text-shadow: 4px 4px 0px #0000CD;
  letter-spacing: 2px;
  margin-bottom: 50px;
}

.projetos__conteiner {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.stage-card {
  background-color: #0c0c0c;
  border: 4px solid var(--cor-secundaria);
  outline: 2px solid #000;
  box-shadow: 0 0 0 4px var(--cor-terciaria);
  border-radius: 4px;
  padding: 24px;
  width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 350px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stage-card::before {
  content: "ZONE";
  position: absolute;
  top: 10px;
  right: 15px;
  font-family: var(--f1);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 1px;
}

.stage-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 0 4px #FF00FF;
  border-color: #FF00FF;
}

.stage-card__act {
  font-family: var(--f1);
  font-size: 0.85rem;
  color: #FF00FF; /* Rosa neon */
  margin-bottom: 5px;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0px #000;
  text-align: left;
}

.stage-card__titulo {
  font-family: var(--f1);
  font-size: 1.35rem;
  color: var(--cor-terciaria);
  margin-bottom: 12px;
  line-height: 1.2;
  text-align: left;
  text-shadow: 1px 1px 0px #0000CD;
}

.stage-card__descricao {
  font-family: var(--f2);
  font-size: 0.95rem;
  color: #CCCCCC;
  margin-bottom: 20px;
  line-height: 1.5;
  text-align: left;
  flex-grow: 1;
}

.stage-card__botao {
  background-color: #000;
  border: 2px solid var(--cor-terciaria);
  padding: 12px 0;
  width: 100%;
  text-align: center;
  color: var(--cor-terciaria);
  font-family: var(--f1);
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s ease;
  display: inline-block;
  letter-spacing: 1px;
  box-shadow: 3px 3px 0px #0000CD;
}

.stage-card__botao:hover {
  background-color: var(--cor-terciaria);
  color: #000;
  box-shadow: none;
  transform: translate(2px, 2px);
  animation: blink 0.5s infinite alternate;
}

@keyframes blink {
  0% { opacity: 1; }
  100% { opacity: 0.7; }
}

/* STATUS SCREEN (Ficha do Jogador - Nova página de Skills) */
.apresentacao__conteudo--skills {
  max-width: 1200px;
}

.status-container {
  display: flex;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 30px;
}

.profile-card {
  background-color: rgba(0, 0, 0, 0.9);
  border: 4px double var(--cor-terciaria);
  border-radius: 8px;
  padding: 25px;
  width: 300px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.profile-avatar {
  width: 150px;
  height: 150px;
  border: 4px solid var(--cor-secundaria);
  border-radius: 50%;
  background-color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(255, 255, 0, 0.2);
}

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

.profile-name {
  font-family: var(--f1);
  font-size: 1.25rem;
  color: var(--cor-terciaria);
  text-shadow: 2px 2px 0px #0000CD;
}

.profile-class {
  font-family: var(--f2);
  font-size: 0.95rem;
  color: #CCCCCC;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stats-card {
  flex: 1;
  min-width: 320px;
  max-width: 600px;
  background-color: rgba(0, 0, 0, 0.9);
  border: 4px double var(--cor-terciaria);
  border-radius: 8px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-name {
  font-family: var(--f1);
  font-size: 1.1rem;
  color: var(--cor-terciaria);
}

.stat-level {
  font-family: var(--f2);
  font-weight: bold;
  font-size: 0.85rem;
  background-color: #222;
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid var(--cor-secundaria);
}

.stat-description {
  font-family: var(--f2);
  font-size: 0.9rem;
  color: #BBBBBB;
  line-height: 1.4;
  text-align: left;
}

.stat-bar-container {
  width: 100%;
  height: 14px;
  background-color: #1a1a1a;
  border: 2px solid var(--cor-secundaria);
  border-radius: 3px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    var(--cor-terciaria),
    var(--cor-terciaria) 8px,
    #ccaa00 8px,
    #ccaa00 16px
  );
  box-shadow: 0 0 5px var(--cor-terciaria);
  transition: width 1.5s ease-out;
}

/* Caixa de Diálogo Retrô (Sobre Mim) */
.dialogo-retro {
  background-color: rgba(0, 0, 0, 0.95);
  border: 6px double var(--cor-terciaria);
  border-radius: 4px;
  padding: 30px;
  max-width: 800px;
  width: 100%;
  margin: 0 auto 40px auto;
  box-shadow: 0 0 20px rgba(255, 255, 0, 0.15);
  position: relative;
  text-align: left;
}

.dialogo-retro::before {
  content: "BIO / QUEST LOG";
  position: absolute;
  top: -15px;
  left: 20px;
  background-color: #000;
  color: var(--cor-terciaria);
  padding: 2px 10px;
  font-family: var(--f1);
  font-size: 0.9rem;
  border: 2px solid var(--cor-terciaria);
}

/* Moldura Arcade para o Pacman Canvas */
.arcade-container {
  display: inline-block;
  background-color: #111;
  border: 8px solid #333;
  outline: 4px solid var(--cor-terciaria);
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 255, 0, 0.2);
  margin-top: 20px;
  max-width: 100%;
  overflow: hidden;
}

.arcade-header {
  background-color: #000;
  color: var(--cor-terciaria);
  font-family: var(--f1);
  font-size: 0.85rem;
  padding: 10px;
  border-bottom: 4px solid #333;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.arcade-footer {
  background-color: #222;
  color: #aaa;
  font-family: var(--f2);
  font-size: 0.8rem;
  padding: 8px;
  border-top: 4px solid #333;
  line-height: 1.4;
}

/* GIFs Interativos Caindo */
.gif-interativo {
  position: absolute;
  image-rendering: pixelated;
  transition: transform 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 1.5s ease;
  cursor: pointer;
  z-index: 10;
  pointer-events: auto;
}

.gif-interativo.caindo {
  transform: translateY(120vh) rotate(540deg) scale(0.2);
  opacity: 0;
  pointer-events: none;
}

/* Responsividade do Canvas do Pacman */
#pacman-canvas {
  max-width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  display: block;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .gif-interactive-container, .gif-interativo {
    display: none;
  }
}

/* Colunas de balanceamento para manter a centralização geométrica */
.home-card-col {
  width: 300px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.sonic-col {
  width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.sonic-col .apresentacao__imagem {
  width: 100%;
  max-width: 280px;
  height: auto;
}

/* Card de Perfil da Home (Formato Oval/Arredondado Suave) */
.home-card {
  background-color: #001F3F; /* Fundo Azul Escuro */
  border-radius: 24px; /* Cantos muito arredondados (sem formato quadrado) */
  padding: 20px;
  width: 240px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 0 15px rgba(0, 31, 63, 0.4);
  transition: transform 0.3s ease;
  z-index: 5;
  border: none; /* Sem borda amarela externa */
}

.home-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 15px rgba(0, 31, 63, 0.4); /* Sem neon amarelo no hover */
}

.home-avatar {
  width: 100px;
  height: 100px;
  border: 3px solid var(--cor-terciaria);
  border-radius: 50%;
  background-color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.home-card-name {
  font-family: var(--f1);
  font-size: 1.1rem;
  color: var(--cor-secundaria);
  text-shadow: 2px 2px 0px #0000CD;
  margin: 5px 0 0 0;
}

.home-card-subtitle {
  font-family: var(--f2);
  font-size: 0.8rem;
  color: var(--cor-terciaria);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

/* Ajuste responsivo de 3 colunas para empilhamento vertical em telas médias/pequenas */
@media (max-width: 1200px) {
  .apresentacao {
    flex-direction: column-reverse;
    align-items: center;
    gap: 40px;
    padding: 5% 2%;
  }

  .home-card-col, .sonic-col {
    width: auto;
  }

  .sonic-col .apresentacao__imagem {
    max-width: 300px;
  }
}