*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #0a0a0f;
  --bg-card: rgba(255, 255, 255, 0.06);
  --bg-card-hover: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --accent: #6366f1;
  --telegram: #229ed9;
  --tiktok: #ff0050;
  --avito: #00aaff;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.25), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(255, 0, 80, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(34, 158, 217, 0.1), transparent);
  pointer-events: none;
  z-index: 0;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  top: -100px;
  left: -50px;
  animation-delay: 0s;
}

.orb-2 {
  width: 250px;
  height: 250px;
  background: var(--tiktok);
  bottom: 10%;
  right: -80px;
  animation-delay: -7s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: var(--telegram);
  bottom: 30%;
  left: -60px;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.container {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.profile {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.6s ease-out;
}

.avatar {
  width: 112px;
  height: 112px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow);
  background: var(--bg-card);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: rgba(255, 255, 255, 0.8);
}

.avatar-placeholder svg {
  width: 48px;
  height: 48px;
}

.name {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.bio {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.6;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  flex: 1;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeUp 0.6s ease-out backwards;
}

.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.2s; }
.link-card:nth-child(3) { animation-delay: 0.3s; }

.link-card:hover {
  transform: translateY(-2px);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow);
}

.link-card:active {
  transform: translateY(0);
}

.link-telegram:hover { border-color: rgba(34, 158, 217, 0.4); }
.link-tiktok:hover { border-color: rgba(255, 0, 80, 0.4); }
.link-avito:hover { border-color: rgba(0, 170, 255, 0.4); }

.link-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.link-icon svg {
  width: 24px;
  height: 24px;
}

.link-telegram .link-icon {
  background: rgba(34, 158, 217, 0.15);
  color: var(--telegram);
}

.link-tiktok .link-icon {
  background: rgba(255, 0, 80, 0.15);
  color: var(--tiktok);
}

.link-avito .link-icon {
  background: rgba(0, 170, 255, 0.15);
  color: var(--avito);
}

.link-content {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.link-title {
  display: block;
  font-weight: 600;
  font-size: 1rem;
}

.link-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}

.link-arrow {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.link-card:hover .link-arrow {
  transform: translateX(4px);
  color: var(--text);
}

.footer {
  margin-top: 2.5rem;
  text-align: center;
  animation: fadeUp 0.6s ease-out 0.4s backwards;
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 380px) {
  .container {
    padding: 2rem 1rem 2.5rem;
  }

  .name {
    font-size: 1.5rem;
  }

  .link-card {
    padding: 0.875rem 1rem;
  }
}
