:root {
  --bg-1: #0a0a0f;
  --bg-2: #12121a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --text: #f5f5f7;
  --text-muted: rgba(245, 245, 247, 0.65);
  --text-faint: rgba(245, 245, 247, 0.45);
  --accent-1: #8b5cf6;
  --accent-2: #ec4899;
  --accent-3: #06b6d4;
  --shadow: 0 10px 40px -10px rgba(139, 92, 246, 0.35);
}

[data-theme='light'] {
  --bg-1: #fafafa;
  --bg-2: #f0f0f5;
  --surface: rgba(0, 0, 0, 0.03);
  --surface-hover: rgba(0, 0, 0, 0.06);
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.18);
  --text: #0a0a0f;
  --text-muted: rgba(10, 10, 15, 0.65);
  --text-faint: rgba(10, 10, 15, 0.45);
  --shadow: 0 10px 40px -10px rgba(139, 92, 246, 0.2);
}

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

html,
body {
  height: 100%;
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  background: var(--bg-1);
  transition:
    background 0.4s ease,
    color 0.4s ease;
}

body {
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  padding: 2rem 1rem 4rem;
}

/* Animated gradient background blobs */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
  animation: float 20s ease-in-out infinite;
}
.bg-blob.b1 {
  top: -10%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: var(--accent-1);
}
.bg-blob.b2 {
  bottom: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: var(--accent-2);
  animation-delay: -7s;
}
.bg-blob.b3 {
  top: 40%;
  left: 50%;
  width: 350px;
  height: 350px;
  background: var(--accent-3);
  animation-delay: -14s;
  opacity: 0.3;
}
[data-theme='light'] .bg-blob {
  opacity: 0.25;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(40px, -40px) scale(1.08);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.95);
  }
}

.container {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.theme-toggle {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 10;
}
.theme-toggle:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: scale(1.05);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
[data-theme='dark'] .icon-sun {
  display: block;
}
[data-theme='dark'] .icon-moon {
  display: none;
}
[data-theme='light'] .icon-sun {
  display: none;
}
[data-theme='light'] .icon-moon {
  display: block;
}

/* Header / profile */
.header {
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeUp 0.7s ease-out;
}

.avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 1.25rem;
}
.avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--accent-1),
    var(--accent-2),
    var(--accent-3)
  );
  z-index: 0;
  animation: spin 8s linear infinite;
}
.avatar {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-1);
  z-index: 1;
  display: block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.name {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.name .gradient {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bio {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 420px;
  margin: 0 auto 0.5rem;
}
.bio strong {
  color: var(--text);
  font-weight: 600;
}

/* Social icons row */
.socials {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.5rem 0 2rem;
  animation: fadeUp 0.7s ease-out 0.1s both;
}
.social {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s ease;
}
.social:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.social svg {
  width: 20px;
  height: 20px;
}

/* Section label */
.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin: 1.75rem 0 0.75rem;
  font-weight: 600;
  animation: fadeUp 0.7s ease-out 0.2s both;
}

/* Link cards */
.links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.7s ease-out both;
}
.link:nth-of-type(1) {
  animation-delay: 0.25s;
}
.link:nth-of-type(2) {
  animation-delay: 0.32s;
}
.link:nth-of-type(3) {
  animation-delay: 0.39s;
}
.link:nth-of-type(4) {
  animation-delay: 0.46s;
}

.link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 0;
}
.link:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.link:hover::before {
  opacity: 0.08;
}
.link > * {
  position: relative;
  z-index: 1;
}

.link-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.link-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.link-icon.yt {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: white;
}
.link-icon.yt svg {
  width: 22px;
  height: 22px;
}

.link-body {
  flex: 1;
  min-width: 0;
}
.link-title {
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.3;
  margin-bottom: 0.15rem;
}
.link-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-arrow {
  color: var(--text-faint);
  transition:
    transform 0.25s ease,
    color 0.25s ease;
  flex-shrink: 0;
}
.link:hover .link-arrow {
  transform: translateX(3px);
  color: var(--text);
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--text-faint);
  animation: fadeUp 0.7s ease-out 0.6s both;
}
.footer .heart {
  display: inline-block;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

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

@media (max-width: 480px) {
  .name {
    font-size: 1.5rem;
  }
  .avatar {
    width: 100px;
    height: 100px;
  }
  .link {
    padding: 0.85rem 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
