* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Montserrat', sans-serif;
  color: #ffffff;
  background-color: #0c001f;
  overflow-x: hidden;
  position: relative;
}
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.main-header, main, footer {
  position: relative;
  z-index: 2;
}
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 5%;
  background: rgba(12, 0, 31, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: #fff;
  text-decoration: none;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}
.nav-links a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}
.nav-links a:hover { color: #fff; }
.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 10;
}
.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}
main {
  padding: 120px 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
}
.page-title {
  text-align: center;
  margin-bottom: 50px;
}
.page-title h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 3.5rem;
  margin-bottom: 10px;
}
.page-title p {
  font-size: 1.1rem;
  color: #e0e0e0;
  max-width: 600px;
  margin: 0 auto;
}
#team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.member-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px;
  width: 300px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: card-enter 0.5s ease-out forwards;
  display: flex;
  flex-direction: column;
}
@keyframes card-enter {
  to {
      opacity: 1;
      transform: translateY(0);
  }
}
.member-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.15), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.member-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}
.member-card:hover::before {
  opacity: 1;
}
.member-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid #b571ff;
  box-shadow: 0 0 20px rgba(181, 113, 255, 0.6);
}
.member-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.member-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  min-height: 25px;
}
.tag {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  color: #fff;
}
.tag.owner { background-color: #6800a8; box-shadow: 0 0 12px #9f00ff; }
.tag.admin { background-color: #ff0000; box-shadow: 0 0 12px #ff0000; }
.tag.designer { background-color: #4d7cff; box-shadow: 0 0 12px #4d7cff; }
.tag.dev { background-color: #050505; box-shadow: 0 0 12px #050505; }
.tag.moderador { background-color: #009c03; box-shadow: 0 0 12px #009c03; }
.tag.suporte { background-color: #007bff; box-shadow: 0 0 12px #007bff; }
.tag.investidor { background-color: #00ff20; box-shadow: 0 0 12px #00ff20; }
.member-description {
  font-size: 0.95rem;
  color: #d1d1d1;
  line-height: 1.6;
  flex-grow: 1;
}
.member-socials {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}
.social-icon {
  color: #c4c4c4;
  transition: color 0.3s ease, transform 0.3s ease;
}
.social-icon:hover {
  transform: scale(1.15);
}
.social-icon.website:hover { color: #87CEEB; }
.social-icon.pinterest:hover { color: #E60023; }
.social-icon.instagram:hover { color: #E4405F; }
.social-icon.spotify:hover { color: #1DB954; }
.social-icon.twitter:hover { color: #1DA1F2; }
.social-icon.github:hover { color: #ffffff; }
.social-icon.discord:hover { color: #5865F2; }
.social-icon.twitch:hover { color: #9146FF; }
.social-icon.youtube:hover { color: #FF0000; }
.social-icon svg {
  width: 24px;
  height: 24px;
}
.main-footer-bottom {
  text-align: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
  color: #aaa;
}

#elias {
  background: rgba(40, 0, 80, 0.3); /* Roxo mais escuro */
  animation: card-enter 0.5s ease-out forwards, glitch-base 0.5s infinite linear alternate-reverse;
  /* Animação base de glitch */
  position: relative; /* Necessário para os pseudo-elementos */
  overflow: visible; /* Permitir que os pseudo-elementos saiam um pouco */
}

/* Animação base mais sutil, focada em tremores */
@keyframes glitch-base {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(1px, -1px); }
  50% { transform: translate(-1px, 1px); }
  75% { transform: translate(1px, 1px); }
}

#elias::before,
#elias::after {
  content: ''; /* Mantém vazio para não duplicar conteúdo */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit; /* Copia o fundo do card */
  border-radius: 16px; /* Mantém o border-radius */
  opacity: 0.8;
  pointer-events: none; /* Não interfere com o mouse */
}

/* Pseudo-elemento para o glitch vermelho */
#elias::before {
  background: rgba(40, 0, 80, 0.3); /* Fundo base */
  animation: glitch-color-1 0.1s infinite linear alternate-reverse;
  mix-blend-mode: screen; /* Efeito de mistura de cor */
  filter: drop-shadow(-2px 0 red); /* Sombra colorida como glitch */
}

/* Pseudo-elemento para o glitch azul/ciano */
#elias::after {
   background: rgba(40, 0, 80, 0.3); /* Fundo base */
  animation: glitch-color-2 0.15s infinite linear alternate-reverse;
  mix-blend-mode: screen; /* Efeito de mistura de cor */
  filter: drop-shadow(2px 0 cyan); /* Sombra colorida como glitch */
}

/* Animações de deslocamento e corte para os pseudo-elementos */
@keyframes glitch-color-1 {
  0% { transform: translate(2px, -2px); clip-path: polygon(0 0, 100% 0, 100% 30%, 0 40%); }
  100% { transform: translate(-2px, 2px); clip-path: polygon(0 60%, 100% 50%, 100% 100%, 0 100%); }
}

@keyframes glitch-color-2 {
  0% { transform: translate(-3px, 3px); clip-path: polygon(0 0, 100% 0, 100% 45%, 0 55%); }
  100% { transform: translate(3px, -3px); clip-path: polygon(0 45%, 100% 35%, 100% 100%, 0 100%); }
}

/* Media Queries (Mantidos como estavam) */
@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links {
      position: fixed; top: 0; right: -100%; width: 70%; height: 100vh;
      background: rgba(20, 1, 46, 0.85);
      backdrop-filter: blur(15px);
      -webkit-backdrop-filter: blur(15px);
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 30px; transition: right 0.4s ease-in-out;
  }
  .nav-links.active { right: 0; }
  .nav-links a { font-size: 1.5rem; }
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  main { padding-top: 100px; }
  .page-title h1 { font-size: 2.5rem; }
}
@media (max-width: 640px) {
  .member-card {
      width: 100%;
      max-width: 320px;
  }
}