html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0;
  background-color: #0b0c2a;
  background-image: none;
  position: relative;
  overflow-x: hidden;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #1c1c3c;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0.55rem 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  font-family: monospace;
  border-bottom: 2px solid #444;
}

nav a {
  color: #ffe066;
  text-decoration: none;
  font-weight: bold;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #ffffff;
}

#stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background-color: transparent;
  animation: twinkle 2s infinite ease-in-out;
  image-rendering: pixelated;
}

.star::before,
.star::after {
  content: '';
  position: absolute;
  background-color: currentColor;
  box-shadow: 0 0 3px currentColor, 0 0 6px currentColor;
}

.star::before {
  top: -2px;
  left: 0;
  width: 2px;
  height: 6px;
}

.star::after {
  top: 0;
  left: -2px;
  width: 6px;
  height: 2px;
}

.star.white {
  color: #ffffff;
}

.star.yellow {
  color: #ffe066;
}

.star.orange {
  color: #ffaa33;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.2; }
}

.galaxy {
  position: absolute;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15), transparent 70%);
  filter: blur(8px);
  animation: pulse 5s infinite ease-in-out;
  border-radius: 50%;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.1); }
}

header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem;
}

.portrait {
  width: 150px;
  height: auto;
  image-rendering: pixelated;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 4px;
  background-color: rgba(20, 20, 40, 0.6);
}

.portrait:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  border-color: #ffe066;
}

.tagline {
  font-style: italic;
  color: #ccc;
}

.contact {
  font-size: 0.9rem;
  color: #aaa;
}

section {
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: auto;
  padding: 2rem;
  min-height: 100vh;
}

h1, h2 {
  color: #ffffff;
  border-bottom: 1px solid #555;
  padding-bottom: 0.3rem;
  text-align: center;
}

ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-item {
  background: none;
  border: none;
  padding: 0;
  text-align: center;
  box-shadow: none;
}

.gallery-item img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0.5rem;
}

.glow-text {
  font-family: 'Press Start 2P', monospace;
  color: #ffe066;
  font-size: 1.2rem;
  text-align: center;
  letter-spacing: 1px;
  text-shadow:
    0 0 2px #ffe066,
    0 0 4px #ffe066,
    0 0 8px #ffaa33;
  animation: twinkle-text 2s infinite ease-in-out;
}

@keyframes twinkle-text {
  0%, 100% {
    opacity: 1;
    text-shadow:
      0 0 2px #ffe066,
      0 0 4px #ffe066,
      0 0 8px #ffaa33;
  }
  50% {
    opacity: 0.6;
    text-shadow:
      0 0 1px #ffe066,
      0 0 2px #ffe066,
      0 0 4px #ffaa33;
  }
}

.gallery-item img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0.5rem;

  image-rendering: pixelated;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 4px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  border-color: #ffe066;
}
