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

:root {
  --purple-50: #EEEDFE;
  --purple-100: #CECBF6;
  --purple-200: #AFA9EC;
  --purple-400: #7F77DD;
  --purple-600: #534AB7;
  --purple-800: #3C3489;
  --purple-900: #26215C;
  --bg: #1e1a3a;
  --bg-card: #2a2550;
  --bg-card-hover: #343062;
  --text-primary: #f5f3ff;
  --text-secondary: #c4bde8;
  --text-muted: #8d82c4;
  --accent: #9590e0;
  --accent-bright: #c4bff0;
  --border: rgba(149, 144, 224, 0.22);
  --border-hover: rgba(196, 191, 240, 0.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg);
  background-image: url('images/starbird-tile.svg');
  background-size: 100px 150px;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Star field background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(175,169,236,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 40%, rgba(175,169,236,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 40% 8%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 60%, rgba(175,169,236,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 25%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 82% 70%, rgba(175,169,236,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 45%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 75%, rgba(175,169,236,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 88%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 35% 55%, rgba(175,169,236,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 48% 32%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 78% 12%, rgba(175,169,236,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 88%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 5% 50%, rgba(175,169,236,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 67% 48%, rgba(255,255,255,0.4) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Nebula glow */
body::after {
  content: '';
  position: fixed;
  top: -30%;
  left: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(105,96,200,0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Profile section */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.6s ease both;
}

.avatar-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin-bottom: 1.25rem;
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    var(--purple-400) 0deg,
    var(--purple-200) 90deg,
    var(--purple-600) 180deg,
    var(--purple-400) 360deg
  );
  animation: spin 8s linear infinite;
}

.avatar-ring::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bg);
}

.avatar {
  position: relative;
  z-index: 1;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

.avatar-fallback {
  position: relative;
  z-index: 1;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-800), var(--purple-600));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: var(--purple-100);
  letter-spacing: -1px;
}

h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.handle {
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.bio {
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 400px;
}

.bio .llap {
  color: var(--accent-bright);
  font-style: italic;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 1.25rem;
  animation: fadeUp 0.6s ease 0.1s both;
}

.tag {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(149, 144, 224, 0.15);
  border: 0.5px solid var(--border);
  color: var(--accent-bright);
  letter-spacing: 0.03em;
}

/* Links section */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease 0.2s both;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 400;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  position: relative;
  overflow: hidden;
}

.link-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 3px 0 0 3px;
}

.link-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateX(3px);
}

.link-item:hover::before {
  opacity: 1;
}

.link-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(149, 144, 224, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.link-icon svg,
.link-icon img {
  width: 18px;
  height: 18px;
  fill: var(--accent-bright);
}

.link-text {
  flex: 1;
}

.link-name {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.925rem;
}

.link-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.link-arrow {
  color: var(--text-muted);
  font-size: 1rem;
  transition: color 0.2s, transform 0.2s;
}

.link-item:hover .link-arrow {
  color: var(--accent-bright);
  transform: translateX(2px);
}

/* Event callout */
.event-callout {
  width: 100%;
  padding: 18px 20px;
  background: rgba(105, 96, 200, 0.12);
  border: 0.5px solid rgba(149, 144, 224, 0.35);
  border-radius: 14px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.6s ease 0.3s both;
}

.event-callout p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.event-callout a {
  color: var(--accent-bright);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 0.5px solid rgba(196, 191, 240, 0.45);
  transition: border-color 0.2s, color 0.2s;
}

.event-callout a:hover {
  color: var(--purple-100);
  border-color: var(--purple-100);
}

.event-icon {
  font-size: 1.25rem;
  margin-bottom: 8px;
  display: block;
}

/* Section label */
.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 12px;
  align-self: flex-start;
  width: 100%;
}

/* Footer */
footer {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  animation: fadeUp 0.6s ease 0.4s both;
}

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

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
  .container { padding: 3rem 1.25rem 4rem; }
  h1 { font-size: 1.75rem; }
}
