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

:root {
  --bg: #080810;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --text: #f0f0f5;
  --text-muted: rgba(240, 240, 245, 0.45);
  --accent: #7df9c2;
  --accent2: #a78bfa;
  --accent3: #fca5a5;
  --glow: rgba(125, 249, 194, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Mono", monospace;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px 80px;
  overflow-x: hidden;
  cursor: none;
}

/* Custom cursor */
.cursor {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
  mix-blend-mode: screen;
}
.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(125, 249, 194, 0.4);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    left 0.12s ease,
    top 0.12s ease,
    width 0.3s ease,
    height 0.3s ease,
    opacity 0.3s ease;
}
.cursor-ring.hovered {
  width: 56px;
  height: 56px;
  border-color: var(--accent);
  opacity: 0.8;
}

/* Animated background */
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 180px;
  pointer-events: none;
  opacity: 0.4;
}

.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(125, 249, 194, 0.06) 0%,
    transparent 70%
  );
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 6s ease-in-out infinite;
}
.bg-glow2 {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(167, 139, 250, 0.07) 0%,
    transparent 70%
  );
  bottom: 0;
  right: -100px;
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 8s ease-in-out infinite reverse;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
  }
}

/* Main container */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Avatar */
.avatar-wrap {
  position: relative;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}
.avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  background: #0a0a14;
  position: relative;
  z-index: 1;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent2)) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: spinRing 8s linear infinite;
}
@keyframes spinRing {
  to {
    transform: rotate(360deg);
  }
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
.name {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 30%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 8px;
}
.handle {
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  opacity: 0.8;
}
.bio {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
  font-style: italic;
}

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 4px 0 36px;
  opacity: 0;
  animation: fadeIn 0.5s ease 0.5s forwards;
}

/* Links grid */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  cursor: none;
  opacity: 0;
  transform: translateY(20px);
  transition:
    border-color 0.3s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.3s ease;
}
.link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--card-accent, var(--accent)),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}
.link-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px) scale(1.01);
  background: rgba(255, 255, 255, 0.07);
}
.link-card:hover::before {
  opacity: 0.06;
}

/* Animated shimmer on hover */
.link-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transition: left 0.5s ease;
}
.link-card:hover::after {
  left: 150%;
}

.link-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.link-card:hover .link-icon {
  transform: rotate(-8deg) scale(1.12);
}

.link-text {
  flex: 1;
  position: relative;
  z-index: 1;
}
.link-label {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.link-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.link-arrow {
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}
.link-card:hover .link-arrow {
  transform: translateX(4px);
  color: var(--text);
}

/* Staggered animation for each card */
.link-card:nth-child(1) {
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}
.link-card:nth-child(2) {
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.42s forwards;
}
.link-card:nth-child(3) {
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.49s forwards;
}
.link-card:nth-child(4) {
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.56s forwards;
}
.link-card:nth-child(5) {
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.63s forwards;
}
.link-card:nth-child(6) {
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}
.link-card:nth-child(7) {
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.77s forwards;
}
.link-card:nth-child(8) {
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.84s forwards;
}

/* Section label */
.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 20px 0 8px 2px;
  width: 100%;
  opacity: 0;
  animation: fadeIn 0.5s ease 0.6s forwards;
}

/* Footer */
.footer {
  margin-top: 52px;
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  opacity: 0;
  animation: fadeIn 0.5s ease 1s forwards;
}
.footer a {
  color: var(--accent);
  text-decoration: none;
}

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

/* Status dot */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: var(--accent);
  margin-top: 10px;
  padding: 4px 10px;
  border: 1px solid rgba(125, 249, 194, 0.2);
  border-radius: 100px;
  background: rgba(125, 249, 194, 0.05);
}
.status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

@media (max-width: 480px) {
  body {
    padding: 40px 16px 60px;
    cursor: auto;
  }
  .cursor,
  .cursor-ring {
    display: none;
  }
}
