@import url('https://fonts.googleapis.com/css2?family=Audiowide&display=swap');

:root {
  --bg-main: #0a1c2b;
  --text-main: #e0f7fa;
  --text-muted: #b2ebf2;
  --accent: #00e5ff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-image: url('https://picbin.vip/img/6/p/w9i4u85d20n1hzykzfjnlbp6b.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  background-color: var(--bg-main);
  font-family: 'Audiowide', sans-serif;
  margin: 0;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

.glow {
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.8), 0 0 40px rgba(0, 184, 212, 0.5);
}

#particles-js {
  position: fixed;
  inset: 0;
  z-index: 1;
}

#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  opacity: 0.3;
}

.content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: clamp(1rem, 3vw, 2.5rem) 1rem 2rem;
  opacity: 0;
  flex: 1;
  width: min(100%, 920px);
  margin: 0 auto;
}

.parallax {
  transform-style: preserve-3d;
}

.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-main);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.loader h2 {
  font-size: clamp(1.8rem, 8vw, 4rem);
  color: var(--accent);
  filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.8));
}

.loader-particles {
  position: absolute;
  inset: 0;
  z-index: 101;
}

.nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.8rem, 2.2vw, 1.5rem);
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}

h2 {
  font-size: clamp(1.6rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
}

p {
  font-size: clamp(0.95rem, 2.3vw, 1.5rem);
  color: var(--text-muted);
  margin-bottom: 1.4rem;
  line-height: 1.65;
}

.nav-item {
  width: 100%;
}

.nav-item a {
  position: relative;
  display: block;
  width: min(100%, 420px);
  padding: 0.85rem 1rem;
  background: linear-gradient(45deg, rgba(0, 184, 212, 0.2), rgba(0, 151, 167, 0.2));
  border: 2px solid rgba(178, 235, 242, 0.5);
  border-radius: 20px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: clamp(0.85rem, 2.6vw, 1.35rem);
  text-align: center;
  color: var(--text-main);
  text-decoration: none;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.5), inset 0 0 5px rgba(0, 229, 255, 0.3);
  margin: 0 auto;
  overflow: hidden;
}

.nav-item a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(0, 229, 255, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: -1;
}

.nav-item a:hover::before {
  width: 500px;
  height: 500px;
}

.nav-item a:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 229, 255, 0.7);
  color: #ffffff;
}

strong {
  color: var(--accent);
}

footer {
  position: relative;
  width: 100%;
  text-align: center;
  padding: 1rem 0.75rem calc(1rem + env(safe-area-inset-bottom));
  background: rgba(0, 24, 43, 0.8);
  border-top: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--text-muted);
  font-size: clamp(0.75rem, 2.2vw, 1rem);
  z-index: 10;
  backdrop-filter: blur(2px);
}

footer p {
  margin: 0;
  font-size: inherit;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  .content {
    padding-top: 1.2rem;
  }

  .nav-item a {
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  .content {
    padding-inline: 0.65rem;
  }

  .nav-item a {
    letter-spacing: 1px;
    padding: 0.72rem 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
