@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg-deep: #2c3e4a;
  --bg-mid: #3a5060;
  --coral: #e85b5b;
  --cyan: #3cc8c8;
  --gold: #d4a843;
  --purple: #a66db5;
  --teal-light: #7ecaca;
  --white: #f0f2f4;
  --white-muted: #b0bec5;
  --node-cyan: #6ec6c6;
  --node-coral: #d96060;
  --node-gold: #c9a84e;
  --node-purple: #9a6aad;
  --node-yellow: #d6c74e;
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-deep);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* ── Constellation Background ── */

.constellation-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.constellation-bg svg {
  width: 100%;
  height: 100%;
}

/* Node dots */
.node {
  animation: pulse 4s ease-in-out infinite;
}
.node:nth-child(2) { animation-delay: 0.6s; }
.node:nth-child(3) { animation-delay: 1.2s; }
.node:nth-child(4) { animation-delay: 1.8s; }
.node:nth-child(5) { animation-delay: 2.4s; }
.node:nth-child(6) { animation-delay: 0.3s; }
.node:nth-child(7) { animation-delay: 0.9s; }
.node:nth-child(8) { animation-delay: 1.5s; }
.node:nth-child(9) { animation-delay: 2.1s; }
.node:nth-child(10) { animation-delay: 2.7s; }

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* Edge lines */
.edge {
  animation: edgeFade 6s ease-in-out infinite;
}
.edge:nth-child(2) { animation-delay: 1s; }
.edge:nth-child(3) { animation-delay: 2s; }
.edge:nth-child(4) { animation-delay: 3s; }
.edge:nth-child(5) { animation-delay: 0.5s; }
.edge:nth-child(6) { animation-delay: 1.5s; }
.edge:nth-child(7) { animation-delay: 2.5s; }
.edge:nth-child(8) { animation-delay: 3.5s; }

@keyframes edgeFade {
  0%, 100% { opacity: 0.06; }
  50% { opacity: 0.2; }
}

/* Orbit rings */
.orbit {
  fill: none;
  stroke-width: 1;
  opacity: 0.07;
  animation: orbitPulse 8s ease-in-out infinite;
}
.orbit:nth-child(2) { animation-delay: 2s; }
.orbit:nth-child(3) { animation-delay: 4s; }

@keyframes orbitPulse {
  0%, 100% { opacity: 0.04; }
  50% { opacity: 0.12; }
}

/* ── Content ── */

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

/* Logo lockup */
.logo-mark {
  margin-bottom: 1.2rem;
}

.logo-mark svg {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 0 20px rgba(60, 200, 200, 0.3));
  animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.brand-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.brand-name .coral { color: var(--coral); }
.brand-name .cyan  { color: var(--cyan); }

.brand-sub {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: clamp(0.7rem, 1.6vw, 0.95rem);
  letter-spacing: 0.25em;
  color: var(--white-muted);
  text-transform: uppercase;
  margin-bottom: 3.5rem;
}

/* Divider */
.divider {
  width: 48px;
  height: 2px;
  margin: 0 auto 2.5rem;
  background: linear-gradient(90deg, var(--coral), var(--cyan));
  border-radius: 2px;
  opacity: 0.6;
}

/* Projects section */
.section-label {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: clamp(0.6rem, 1.3vw, 0.75rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-bottom: 1.4rem;
}

.projects {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.projects li {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 2.8vw, 1.5rem);
  letter-spacing: 0.01em;
  position: relative;
  padding: 0.3rem 1.4rem;
  transition: color 0.3s ease;
}

.projects li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transition: box-shadow 0.3s ease;
}

.projects li:nth-child(1)::before {
  background: var(--coral);
  box-shadow: 0 0 8px var(--coral);
}

.projects li:nth-child(2)::before {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.projects li:hover {
  color: var(--cyan);
}

.tagline {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  color: var(--white-muted);
  font-style: italic;
  opacity: 0.7;
}

/* ── Entrance Animations ── */

.content > * {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s ease forwards;
}

.content > :nth-child(1) { animation-delay: 0.2s; }
.content > :nth-child(2) { animation-delay: 0.35s; }
.content > :nth-child(3) { animation-delay: 0.5s; }
.content > :nth-child(4) { animation-delay: 0.65s; }
.content > :nth-child(5) { animation-delay: 0.8s; }
.content > :nth-child(6) { animation-delay: 0.95s; }
.content > :nth-child(7) { animation-delay: 1.1s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Subtle grain overlay ── */

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
