/* ---------- GLOBAL STYLES ---------- */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;

  /* Vaultscope-style dynamic neon gradient */
  background: linear-gradient(270deg, #001020, #002b45, #003b60, #002b45, #001020);
  background-size: 1000% 1000%;
  animation: gradientShift 25s ease infinite, fadeInPage 1s ease-in forwards;
}

/* Gradient animation */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Page fade-in */
@keyframes fadeInPage {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- PARTICLES ---------- */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

.particles span {
  position: absolute;
  display: block;
  width: 3px;
  height: 3px;
  background: rgba(0, 170, 255, 0.3);
  border-radius: 50%;
  animation: particleMove linear infinite;
}

@keyframes particleMove {
  0% {
    transform: translateY(0) translateX(0) scale(0.5);
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-120vh) translateX(50px) scale(1);
    opacity: 0;
  }
}

/* ---------- FULL-SCREEN SOUND WAVE ---------- */
.wave-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8px, 1fr));
  align-items: end;
  z-index: -1;
  pointer-events: none;
}

.wave-bar {
  width: 100%;
  height: 100px;
  background: rgba(0, 170, 255, 0.12);
  border-radius: 3px;
  transform-origin: bottom;
  animation: waveRise 1.5s ease-in-out infinite;
}

.wave-bar:nth-child(n) {
  animation-delay: calc(var(--i) * 0.1s);
}

@keyframes waveRise {
  0%, 100% { transform: scaleY(0.2); }
  50% { transform: scaleY(2.8); }
}

/* ---------- HEADER & FOOTER ---------- */
header, footer {
  background: rgba(11, 28, 52, 0.9);
  backdrop-filter: blur(6px);
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  animation: fadeInHeader 0.8s ease-out forwards;
}

@keyframes fadeInHeader {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

header img.logo {
  height: 50px;
  vertical-align: middle;
  transition: transform 0.4s ease;
}

header img.logo:hover {
  transform: scale(1.05) rotate(2deg);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  margin: 0.5rem 1rem;
  color: #00aaff;
  font-weight: bold;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #00aaff;
  bottom: -3px;
  left: 0;
  transition: width 0.3s ease;
}

nav a:hover {
  color: #33ccff;
}

nav a:hover::after {
  width: 100%;
}


/* ---------- ANNOUNCEMENT ---------- */
.announcement {
  background: #ffcc00;
  color: #000;
  text-align: center;
  padding: 0.5rem;
  animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ---------- MAIN CONTENT ---------- */
main {
  flex: 1;
  padding: 2rem;
  max-width: 1100px;
  margin: auto;
  animation: fadeInMain 1.2s ease-out forwards;
}

@keyframes fadeInMain {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

main h1, main h2, main h3 {
  text-shadow: 0 0 8px rgba(0, 170, 255, 0.5);
}

/* ---------- BUTTONS ---------- */
button {
  background: #00aaff;
  color: #000;
  border: none;
  padding: 0.75rem 1.5rem;
  margin: 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 170, 255, 0.3);
  font-weight: bold;
}

button:hover {
  background: #0088cc;
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(0, 170, 255, 0.5);
}

/* ---------- VERSION CARDS ---------- */
.version-card {
  background: rgba(15, 34, 61, 0.9);
  border: 1px solid #00aaff;
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 170, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInCard 0.8s ease forwards;
}

.version-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(0, 170, 255, 0.4);
}

@keyframes fadeInCard {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.85;
  transition: opacity 0.3s ease;
  margin-top: auto; /* sticks footer to bottom */
}

footer:hover {
  opacity: 1;
}

/* ---------- RESPONSIVE DESIGN ---------- */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
  }

  main {
    padding: 1.5rem;
  }
}
