html {
  scroll-behavior: smooth;
}

body {
  background: #080b18;
  font-family: "Space Grotesk", sans-serif;
  color: #e8e6f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.starfield::before,
.starfield::after {
  content: "";
  position: absolute;
  inset: -50%;
  background-repeat: repeat;
}

.starfield::before {
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 100px 80px, #b9c8ff, transparent),
    radial-gradient(1px 1px at 180px 150px, #fff, transparent),
    radial-gradient(1px 1px at 240px 40px, #d6c5ff, transparent);
  background-size: 280px 220px;
  opacity: 0.55;
}

.starfield::after {
  background-image:
    radial-gradient(2px 2px at 50px 60px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 190px 110px, #c4b5fd, transparent),
    radial-gradient(2px 2px at 130px 200px, #dbeafe, transparent);
  background-size: 320px 260px;
  opacity: 0.65;
  animation: twinkle 5s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from {
    opacity: 0.2;
  }
  to {
    opacity: 0.8;
  }
}

body > nav,
body > main,
body > footer {
  position: relative;
  z-index: 1;
}

.navbar,
footer {
  background: #0d1123 !important;
}

.navbar {
  border-bottom: 1px solid rgba(180, 170, 255, 0.12);
}

footer {
  border-top: 1px solid rgba(180, 170, 255, 0.12);
}

.footer-note {
  color: #8f86aa;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  font-style: italic;
  text-align: center;
}

.footer-note-credit {
  color: #8f86aa;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-align: center;
}
.footer-note-credit a {
  color: #e5ddff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-note-credit a:hover {
  color: #c4b5fd;
}

.navbar-brand {
  color: #e5ddff;
}

.nav-link {
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #c4b5fd;
}

.footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  box-sizing: border-box;
  color: #c4b5fd;
  text-decoration: none;
  background: rgba(196, 181, 253, 0.07);
  border: 1px solid rgba(196, 181, 253, 0.2);
  border-radius: 50%;
  font-size: 1.1rem;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.footer-socials a i {
  display: block;
  color: inherit;
  line-height: 1;
  text-align: center;
}

.footer-socials a:hover {
  color: #ffffff;
  background: rgba(196, 181, 253, 0.16);
  border-color: #c4b5fd;
  box-shadow: 0 0 14px rgba(196, 181, 253, 0.18);
  transform: translateY(-3px);
}

.footer-socials a:focus-visible {
  outline: 2px solid #c4b5fd;
  outline-offset: 4px;
}

.footer-socials .fa-x-twitter,
.footer-socials .fa-tumblr,
.footer-socials .fa-youtube {
  transform: translateY(1px);
}

@media (prefers-reduced-motion: reduce) {
  .starfield::after {
    animation: none;
  }

  .footer-socials a {
    transition: none;
  }
}

.info-box {
  background: rgba(17, 19, 38, 0.88);
  border: 1px solid rgba(196, 181, 253, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.info-box:hover {
  border-color: rgba(196, 181, 253, 0.4);
  box-shadow: 0 0 18px rgba(196, 181, 253, 0.05);
}

.info-box h3 {
  color: #c4b5fd;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}

.info-item h4 {
  color: #e8e6f0;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.info-item p {
  color: #b8b6ca;
  line-height: 1.7;
  margin-bottom: 0;
}

.info-box hr {
  border-color: rgba(196, 181, 253, 0.2);
  opacity: 1;
  margin: 1.25rem 0;
}

.info-box a {
  color: #c4b5fd;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-box a:hover {
  color: #e5ddff;
}

@media (max-width: 576px) {
  .info-box {
    padding: 1rem;
    border-radius: 10px;
  }

  .info-box h3 {
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .info-box {
    transition: none;
  }
}

#about p {
  color: #b8b6ca;
  line-height: 1.7;
}

.bottom-button {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.join-button {
  background-color: #8b5cf6;
  color: #ffffff;
  padding: 12px 30px;
  border: 1px solid #a78bfa;
  border-radius: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.join-button:hover {
  background-color: #a78bfa;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.6);
  transform: translateY(-3px);
}
.join-button:visited {
  color: #ffffff;
  background-color: #8b5cf6;
}
