@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #f5f5f5;
  --bg-glow: radial-gradient(ellipse 50% 40% at 50% 40%, rgba(99, 34, 238, 0.06) 0%, transparent 70%);
  --card: #ffffff;
  --card-border: #e5e5e5;
  --text: #0a0a0a;
  --text-secondary: #525252;
  --text-muted: #a3a3a3;
  --accent: #6322EE;
  --accent-hover: #4A1BB5;
  --accent-subtle: rgba(99, 34, 238, 0.06);
  --accent-card: rgba(99, 34, 238, 0.04);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.06);
  --online: #22C55E;
  --beta-bg: rgba(99, 34, 238, 0.1);
  --beta-text: #6322EE;
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-glow: radial-gradient(ellipse 50% 40% at 50% 40%, rgba(139, 92, 246, 0.07) 0%, transparent 70%);
  --card: #141414;
  --card-border: #262626;
  --text: #fafafa;
  --text-secondary: #a3a3a3;
  --text-muted: #525252;
  --accent: #8B5CF6;
  --accent-hover: #A78BFA;
  --accent-subtle: rgba(139, 92, 246, 0.08);
  --accent-card: rgba(139, 92, 246, 0.06);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.3);
  --online: #4ADE80;
  --beta-bg: rgba(139, 92, 246, 0.15);
  --beta-text: #8B5CF6;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  background-image: var(--bg-glow);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 56px 24px;
  transition: background-color 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.6;
}

.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
  animation: fadeUp 0.6s ease-out;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: rotate(30deg);
}

.theme-toggle svg { width: 16px; height: 16px; }

.container {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === Entrance animations === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes drawIn {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

.anim-profile {
  animation: fadeUp 0.6s ease-out both;
}

.anim-name {
  animation: fadeUp 0.6s ease-out 0.1s both;
}

.anim-bio {
  animation: fadeUp 0.6s ease-out 0.15s both;
}

.anim-site {
  animation: fadeUp 0.6s ease-out 0.2s both;
}

.anim-link { animation: fadeUp 0.5s ease-out both; }
.anim-link:nth-child(1) { animation-delay: 0.25s; }
.anim-link:nth-child(2) { animation-delay: 0.3s; }
.anim-link:nth-child(3) { animation-delay: 0.35s; }
.anim-link:nth-child(4) { animation-delay: 0.4s; }

.anim-social { animation: fadeUp 0.5s ease-out both; }

.logo-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawIn 0.8s cubic-bezier(0.65, 0, 0.35, 1) 0.1s forwards;
}
.logo-path-2 {
  animation-delay: 0.3s;
}

/* === Profile === */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.mark {
  width: 56px;
  height: 56px;
  color: var(--accent);
  margin-bottom: 20px;
  transition: transform 0.3s;
}

.mark:hover { transform: scale(1.04); }

.status-dot {
  position: absolute;
  bottom: 2px;
  right: -6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--online);
  border: 2.5px solid var(--bg);
  animation: pulse 2s ease-in-out infinite;
  cursor: default;
}

.status-dot:hover::after {
  content: 'Building';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + 6px);
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* === Text === */
.name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text);
  margin-bottom: 6px;
}

.bio {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* === Website link === */
.website {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 32px;
  position: relative;
}

.website::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
  transition: opacity 0.2s;
}

.website:hover { opacity: 0.8; }
.website:hover::after { opacity: 0.6; }

.website svg { width: 14px; height: 14px; }

/* === Links === */
.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-bottom: 32px;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 12px;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.link-btn:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.link-btn:active { transform: scale(0.97); }

.link-btn.featured {
  border-color: var(--accent);
  background: var(--accent-card);
}

.link-btn.featured::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}

.link-btn.featured:hover {
  box-shadow: 0 4px 20px rgba(99, 34, 238, 0.12);
}

.link-btn .label-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-btn .label-group .link-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.link-btn.featured .link-title { color: var(--accent); }

.link-btn .label-group .link-desc {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.4;
}

.beta-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--beta-bg);
  color: var(--beta-text);
  margin-left: 6px;
  vertical-align: middle;
}

.link-btn .arrow {
  color: var(--text-muted);
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  margin-left: 12px;
}

.link-btn:hover .arrow {
  color: var(--accent);
  transform: translateX(5px);
}

/* === Social row === */
.social-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  background: var(--card);
  border: 1px solid var(--card-border);
  transition: all 0.25s;
  position: relative;
}

.social-link:hover {
  color: white;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-link svg { width: 18px; height: 18px; }
.social-link .label {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.social-link:hover .label { opacity: 1; }

.social-link[data-brand="github"]:hover { background: #24292e; }
.social-link[data-brand="linkedin"]:hover { background: #0077B5; }
.social-link[data-brand="huggingface"]:hover { background: #2D3361; }
.social-link[data-brand="facebook"]:hover { background: #1877F2; }
.social-link[data-brand="instagram"]:hover { background: #E4405F; }
.social-link[data-brand="tiktok"]:hover { background: #000000; }
.social-link[data-brand="discord"]:hover { background: #5865F2; }

@media (max-width: 420px) {
  body { padding: 40px 16px; }
  .container { max-width: 100%; }
}
