/* style.css — Speartiran Cosmic Creations */

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

body {
  margin: 0;
  padding: 0;
  font-family: 'Orbitron', sans-serif;
  background: radial-gradient(ellipse at bottom, #0b0b1e 0%, #000000 100%);
  color: #d5caff;
  overflow: hidden;
}

main {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 1rem;
}

h1 {
  font-size: 3rem;
  margin: 0;
  color: #c9a7ff;
  text-shadow: 0 0 12px #7b4fc9;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #9f83ff;
  text-shadow: 0 0 8px #513875;
}

p {
  font-size: 1.1rem;
  color: #e3d8ff;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin: 3rem 0;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  background: linear-gradient(145deg, #6d4ccf, #45308a);
  padding: 0.75rem 2rem;
  border-radius: 12px;
  box-shadow: 0 0 15px #8f7bff;
  transition: transform 0.2s, box-shadow 0.3s;
}

nav ul li a:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #d8c0ff;
}

footer {
  font-size: 0.8rem;
  color: #7a6b95;
  text-align: center;
  margin-top: 2rem;
}

/* Background Star Animation */
.stars, .twinkle {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.stars::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('space_image.png') repeat;
  background-size: cover;
  animation: moveStars 100s linear infinite;
  opacity: 0.4;
  z-index: -2;
}

.twinkle::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('images/twinkle_layer.png') repeat;
  background-size: cover;
  animation: moveStars 180s linear infinite;
  opacity: 0.2;
  z-index: -1;
}

@keyframes moveStars {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-100px, -200px, 0); }
}

/* Mobile responsive */
@media (max-width: 600px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.2rem; }
  nav ul li a {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}
