.header-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
}
.header-link:active {
  opacity: 0.7;
}
.gradient-header {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin: 32px 0 24px 0;
  background: linear-gradient(90deg, #ffffff 10%, #89cff0 40%, #000000 60%, #ffffff 90%);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: lightsaber-outline-center 1.2s cubic-bezier(0.4,0,0.2,1) infinite alternate;
  position: relative;
  z-index: 2;
}

@keyframes gradient-wave {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 0%;
  }
}
body {
  margin: 0;
  background-color: #0d0d0d;
  color: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  background: #0d0d0d;
}

header {
  padding: 2rem 1rem 0.5rem;
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.section {
  padding: 1rem 2rem 3rem;
  max-width: 1000px;
  margin: auto;
}

.section-title {
  font-size: 1.3rem;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  height: 4px;
  width: 100%;
  margin-top: 7px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ffffff 20%, #693c5a 50%, #ffffff 60%);
  background-size: 200% 100%;
  animation: lightsaber-outline-center 1.2s cubic-bezier(0.4,0,0.2,1) infinite alternate;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.2rem;
}

.card {
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
  background-color: #1a1a1a;
}

.card {
  position: relative;
  z-index: 1;
}

.card::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 0%;
  border-radius: 10px;
  pointer-events: none;
  box-shadow: 0 0 0 0px #89cff0, 0 0 0 0px rgba(137,207,240,0.15);
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
  border: 2.5px solid #ffffff;
  box-sizing: border-box;
}

.card:hover::after {
  animation: lightsaber-outline-up 0.3s cubic-bezier(0.4,0,0.2,1) forwards;
  opacity: 1;
}

@keyframes lightsaber-outline-center {
  0% {
    background-position: 0% 0%;
    opacity: 0.7;
  }
  100% {
    background-position: 100% 0%;
    opacity: 1;
  }
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.username {
  font-size: 0.95rem;
  font-weight: 500;
  color: #ccc;
}

.discord-username {
  opacity: 0;
  visibility: hidden;
  font-size: 0.9em;
  color: #888;
  margin-top: 0.3rem;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.card:hover .discord-username {
  opacity: 1;
  visibility: visible;
}

a {
  text-decoration: none;
  color: inherit;
}

.discord-copy-btn {
  background: #23272A;
  color: #ccc;
  border: none;
  border-radius: 5px;
  padding: 2px 8px;
  margin-left: 6px;
  font-size: 0.8em;
  font-weight: 500;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  position: relative;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.card:hover .discord-username,
.card:hover .discord-copy-btn {
  opacity: 1;
  visibility: visible;
}

.discord-copy-btn:hover {
  background: #1a1a1a;
  color: #fff;
}

.discord-copy-tooltip {
  visibility: hidden;
  opacity: 0;
  background: #111;
  color: #fff;
  border-radius: 4px;
  padding: 3px 7px;
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  transition: opacity 0.2s;
  pointer-events: none;
  z-index: 1;
}

.discord-copy-btn:active .discord-copy-tooltip,
.discord-copy-btn:focus .discord-copy-tooltip {
  visibility: visible;
  opacity: 1;
}

@media (max-width: 500px) {
  .section-title {
    text-align: center;
  }
}
