* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #1c1a17;
  --paper: #faf7f2;
  --muted: #6b6358;
  --line: #e4ddd0;
  --sand-text: #9a7438;
}

body {
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ---------- nav ---------- */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 6%;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.nav .brand {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 14px;
  color: #fdf3e2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.nav .links a {
  color: #fdf3e2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  margin-left: 18px;
}
.nav .links a:not(:last-child)::after {
  content: "|";
  margin-left: 18px;
  opacity: 0.6;
}
.nav .links a:hover { opacity: 0.75; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background-image: url('../assets/hero-space.png');
  background-size: cover;
  background-position: center;
}

.nebula-glow {
  position: absolute;
  left: 50%;
  top: 35%;
  width: 50%;
  height: 55%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(214,120,220,0.22) 0%, rgba(140,80,210,0.10) 45%, transparent 75%);
  animation: pulse-glow 6s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.3) 60%, transparent 100%);
  animation: twinkle 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.7); }
  50%      { opacity: 1;    transform: scale(1.4); }
}

.constellation-name {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 5;
}
.constellation-name svg {
  display: block;
  margin: 0 auto 4px;
}
.constellation-name h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  font-size: clamp(26px, 5vw, 48px);
  color: #f4f0ff;
  text-shadow:
    0 0 6px rgba(255,255,255,0.85),
    0 0 18px rgba(200,160,255,0.6),
    0 0 36px rgba(170,110,255,0.4);
  margin: 0;
  animation: name-twinkle 4s ease-in-out infinite;
}
@keyframes name-twinkle {
  0%, 100% { text-shadow: 0 0 6px rgba(255,255,255,0.7), 0 0 18px rgba(200,160,255,0.45), 0 0 36px rgba(170,110,255,0.3); }
  50%      { text-shadow: 0 0 8px rgba(255,255,255,1),   0 0 24px rgba(200,160,255,0.75), 0 0 46px rgba(170,110,255,0.5); }
}
.constellation-name p {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #e6dbff;
  text-shadow: 0 0 6px rgba(170,110,255,0.5);
}

.scroll-cue {
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fde9c8;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  opacity: 0.85;
}

/* ---------- sections ---------- */
.section {
  max-width: 760px;
  margin: 0 auto;
  padding: 96px 24px;
}
.section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
}
.section p {
  color: var(--muted);
  font-size: 16px;
  max-width: 620px;
}

/* about */
#about p { margin-bottom: 16px; }

/* projects */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 32px;
}
.project {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.project:last-child { border-bottom: 1px solid var(--line); }
.project .name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 700;
  flex: 0 0 180px;
}
.project .desc {
  color: var(--muted);
  font-size: 14.5px;
  flex: 1 1 320px;
}

/* footer / contact */
footer {
  border-top: 1px solid var(--line);
  padding: 48px 24px 64px;
  text-align: center;
}
footer .links {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
footer .links a:not(:last-child)::after {
  content: "|";
  margin: 0 14px;
  opacity: 0.5;
}
footer .copy {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.7;
}

@media (max-width: 640px) {
  .nav { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nav .links a { margin-left: 0; margin-right: 14px; }
  .nav .links a::after { margin-left: 14px !important; }
  .project { flex-direction: column; }
  .project .name { flex: none; }
}