body {
  margin: 0;
  height: 100vh;
  background: black url("https://www.transparenttextures.com/patterns/stardust.png");
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-family: Arial, sans-serif;
  text-align: center;
}

a {
  color: cyan;
  text-decoration: none;
  margin-top: 20px;
  font-size: 18px;
}

.back-button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: transparent;
  border: 2px solid cyan;
  border-radius: 20px;
  color: cyan;
  text-decoration: none;
  font-family: monospace;
  font-size: 1.2em;
  transition: 0.3s;
}

.back-button:hover {
  background: cyan;
  color: black;
  box-shadow: 0 0 20px cyan;
}

body {
  background: black;
  overflow: hidden;
}

/* фон для звёзд */
.stars {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1; /* чтобы звезды были на фоне */
  background: black;
  overflow: hidden;
}

/* обычные звёзды */
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s infinite ease-in-out;
}

/* стандартное мерцание */
@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/* когда звезды внутри projects — они ярче и быстрее */
#projects .star {
  animation: twinkle-strong 1.5s infinite ease-in-out;
  background: cyan;
  box-shadow: 0 0 6px cyan;
}

@keyframes twinkle-strong {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; transform: scale(1.6); }
}
