/* Reset e base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Rubik', sans-serif;
  color: #fff;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;

  /* Fundo com gradiente e profundidade visual */
  background: radial-gradient(circle at top center, rgba(0,255,255,0.06), rgba(0,0,0,1) 70%),
              linear-gradient(135deg, #0e0e0e 0%, #0a0a0a 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Textura animada de fundo */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: repeating-linear-gradient(
    45deg,
    rgba(0, 255, 255, 0.02),
    rgba(0, 255, 255, 0.02) 2px,
    transparent 2px,
    transparent 4px
  );
  z-index: -1;
  animation: bgMove 40s linear infinite;
}

/* Animação do fundo em movimento */
@keyframes bgMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-50px, -50px); }
}

/* Cabeçalho */
header {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn 2s ease;
  scroll-snap-align: start;
}
header img {
  width: 400px;
  animation: pulse 2s infinite;
}

/* Título principal com efeito neon */
h1.neon {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.8rem;
  color: #0ff;
  text-shadow: 0 0 8px #0ff, 0 0 12px #0ff;
  margin-top: 20px;
  animation: flicker 3s infinite;
}

/* Subtítulos */
h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.1rem;
  color: #0ff;
  margin-bottom: 20px;
  text-align: center;
}

/* Botão para adicionar o bot no Discord */
.btn-discord {
  background: #0ff;
  color: #000;
  padding: 12px 24px;
  margin-top: 30px;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 0 10px #0ff8;
  transition: all 0.3s ease;
}
.btn-discord:hover {
  background: #00e0e0;
  box-shadow: 0 0 20px #0ff;
  transform: scale(1.05);
}

/* Seções principais */
section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
  scroll-snap-align: start;
}

/* Cards de funcionalidades */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}
.card {
  background: #1c1c1c;
  border: 1px solid #333;
  border-radius: 14px;
  padding: 20px;
  width: 280px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 18px #0ff4;
}
.card h3 {
  color: #0ff;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

/* Lista de comandos */
.commands ul {
  list-style: none;
  padding-left: 0;
}
.commands li {
  margin: 10px 0;
  background: #222;
  padding: 12px 18px;
  border-left: 5px solid #0ff;
  animation: fadeInUp 0.8s ease;
  font-family: 'Rubik', sans-serif;
  border-radius: 5px;
}

/* Rodapé estilizado com ícones */
.footer {
  background: #000;
  color: #aaa;
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
  border-top: 1px solid #111;
}
.footer .social {
  margin-bottom: 16px;
}
.footer .social a {
  color: #0ff;
  font-size: 1.8rem;
  margin: 0 12px;
  transition: transform 0.3s ease, color 0.3s ease;
}
.footer .social a:hover {
  color: #00e0e0;
  transform: scale(1.2);
}
.footer p {
  font-size: 0.95rem;
  color: #888;
}

/* Animações visuais */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  40% { opacity: 0.8; }
  50% { opacity: 0.3; }
  60% { opacity: 0.9; }
}

/* Comportamento de rolagem das seções */
main {
  scroll-snap-type: y mandatory;
}

/* Canvas de faíscas animadas */
#sparkCanvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Botão voltar ao topo */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #0ff;
  color: #000;
  border: none;
  padding: 12px 18px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 0 10px #0ff;
  z-index: 20;
  display: none;
  transition: all 0.3s ease;
}
#backToTop:hover {
  background-color: #00e0e0;
}
/* Rodapé estilizado com ícones sociais */
.footer {
  padding: 30px 20px;
  text-align: center;
  background: #000;
  color: #888;
}

.footer .social {
  margin-bottom: 15px;
}

.footer .social a {
  margin: 0 15px;
  color: #0ff;
  font-size: 1.5rem;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s, text-shadow 0.2s;
}

.footer .social a:hover {
  transform: scale(1.2);
  text-shadow: 0 0 8px #0ff;
}
