:root {
  color-scheme: dark;
  --bg: #050408;
  --card: rgba(18, 12, 32, 0.72);
  --card-border: rgba(168, 85, 247, 0.35);
  --card-glow: rgba(168, 85, 247, 0.16);
  --text: #f5f5f7;
  --muted: #c4c4d4;
  --accent: #a855f7;
  --accent-strong: #8b5cf6;
}

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

body {
  font-family: "Inter", sans-serif;
  background: radial-gradient(circle at top, #1a0f2e, #050408 55%, #020103 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

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

.galaxy__stars,
.galaxy__nebula,
.galaxy__orbit,
.galaxy__dust {
  position: absolute;
  inset: -50%;
}

.galaxy__stars {
  background-image: radial-gradient(#ffffffcc 1px, transparent 1px),
    radial-gradient(#ffffff55 1px, transparent 1px);
  background-size: 140px 140px, 240px 240px;
  background-position: 0 0, 60px 60px;
  opacity: 0.35;
  animation: drift 40s linear infinite;
}

.galaxy__nebula {
  background: radial-gradient(circle at 20% 20%, rgba(168, 85, 247, 0.3), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(124, 58, 237, 0.25), transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(236, 72, 153, 0.2), transparent 50%);
  filter: blur(12px);
  animation: pulse 16s ease-in-out infinite alternate;
}

.galaxy__orbit {
  border: 1px dashed rgba(168, 85, 247, 0.25);
  border-radius: 50%;
  width: 1200px;
  height: 1200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spin 80s linear infinite;
}

.galaxy__dust {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18), transparent 55%),
    radial-gradient(circle, rgba(14, 9, 20, 0.7), transparent 60%);
  filter: blur(20px);
  animation: drift 60s ease-in-out infinite;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-80px, 40px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 0.9;
  }
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 24px 0;
  backdrop-filter: blur(10px);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(8, 6, 14, 0.85);
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  gap: 20px;
}

.nav__brand {
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.nav__links {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
}

.nav__links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: var(--text);
}

main {
  position: relative;
  z-index: 1;
}

.custom-cursor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.custom-cursor__dot,
.custom-cursor__ring {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.custom-cursor__dot {
  width: 6px;
  height: 6px;
  background: rgba(216, 180, 254, 0.9);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
}

.custom-cursor__ring {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.35);
  backdrop-filter: blur(4px);
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 24px 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
}

.hero__content h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  margin-bottom: 8px;
}

.eyebrow {
  color: var(--muted);
  margin-bottom: 8px;
}

.hero__role {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.rotating {
  transition: opacity 0.4s ease;
  animation: glow 2.2s ease-in-out infinite;
}

@keyframes glow {
  0%,
  100% {
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
  }
  50% {
    text-shadow: 0 0 14px rgba(168, 85, 247, 0.7);
  }
}

.accent {
  color: var(--accent);
}

.hero__tags {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero__tags span {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(13, 10, 22, 0.78);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: var(--muted);
  font-size: 0.9rem;
}

.hero__card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
  animation: float 6s ease-in-out infinite;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  filter: blur(6px);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal].reveal--active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.hero__card.secondary {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.6;
  color: var(--muted);
  animation-delay: 1.2s;
}

.hero__card.presence {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  animation-delay: 0.6s;
}

.presence__header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.presence__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  text-transform: capitalize;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.presence__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca3af;
  box-shadow: 0 0 8px rgba(156, 163, 175, 0.6);
}

.presence__status--online .presence__dot {
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
}

.presence__status--idle .presence__dot {
  background: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.7);
}

.presence__status--dnd .presence__dot {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
}

.presence__detail {
  font-size: 0.95rem;
}

.presence__detail.muted {
  color: var(--muted);
}

.presence__timestamp {
  font-size: 0.75rem;
  color: var(--muted);
}

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

.label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.value {
  font-size: 1.1rem;
  font-weight: 600;
}

.status {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.15);
  color: var(--accent);
  font-size: 0.8rem;
}

.hero__avatar {
  display: flex;
  justify-content: center;
}

.avatar__ring {
  width: min(320px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed rgba(168, 85, 247, 0.4);
  display: grid;
  place-items: center;
  animation: spin 60s linear infinite;
}

.avatar__inner {
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><defs><radialGradient id='g' cx='50%25' cy='40%25' r='70%25'><stop offset='0%25' stop-color='%23a855f7'/><stop offset='100%25' stop-color='%2306040a'/></radialGradient></defs><rect width='300' height='300' rx='150' fill='url(%23g)'/><text x='50%25' y='56%25' text-anchor='middle' font-family='Inter, Arial' font-size='120' fill='%23ffffff'>HH</text></svg>")
    center/cover no-repeat;
  border: 1px solid rgba(168, 85, 247, 0.4);
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.section__header h2 {
  font-size: 2rem;
}

.divider {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.about__card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 24px;
  line-height: 1.7;
  color: var(--muted);
  transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.about__card:hover,
.skill:hover,
.project:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 18px 45px var(--card-glow);
}

.about__card.list h3 {
  margin-bottom: 12px;
  color: var(--accent);
}

.about__card ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.skills__group {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.skills__group h3 {
  color: var(--accent);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.skills__list {
  display: grid;
  gap: 12px;
}

.skill {
  background: rgba(10, 8, 18, 0.7);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: center;
  font-weight: 600;
  transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.project {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 24px;
  color: var(--muted);
  line-height: 1.6;
  transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.project h3 {
  color: var(--text);
}

.pill {
  background: rgba(168, 85, 247, 0.2);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.project--muted {
  text-align: center;
  font-weight: 600;
  align-items: center;
}

.project__action {
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.95), rgba(139, 92, 246, 0.95));
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 12px 24px rgba(139, 92, 246, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.project__action:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(139, 92, 246, 0.4);
}

.project__action:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.contact {
  display: flex;
  justify-content: center;
}

.contact__card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  width: min(520px, 100%);
}

.contact__card a {
  color: var(--accent);
  text-decoration: none;
}

.contact__actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

button,
.button {
  background: var(--accent-strong);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.25);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:hover,
.button:hover {
  transform: translateY(-2px);
}

button.ghost,
.button.ghost {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text);
}

.footer {
  text-align: center;
  padding: 32px 16px 48px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    gap: 12px;
    border-radius: 24px;
    padding: 16px;
  }

  .nav__links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .hero {
    padding-top: 72px;
  }
}

@media (pointer: fine) {
  body {
    cursor: none;
  }

  .custom-cursor {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}
