:root {
  --background: #08090c;
  --foreground: #f8fafc;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.profile-page {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 32px 20px 72px;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(145deg, #11131a 0%, #08090c 58%, #050608 100%);
}

.ambient {
  position: absolute;
  z-index: -1;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  opacity: 0.22;
  filter: blur(110px);
}

.ambient-one {
  top: -100px;
  left: -80px;
  background: #ec4899;
}

.ambient-two {
  right: -100px;
  bottom: -90px;
  background: #2563eb;
}

.profile-card {
  width: min(100%, 420px);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: card-in 600ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.avatar-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 22px;
  background: #16181d;
}

.avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transition: transform 500ms ease;
}

.profile-card:hover .avatar {
  transform: scale(1.025);
}

.avatar-wrap::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(to top, rgba(5, 6, 8, 0.35), transparent 38%);
}

.status-dot {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 18px;
  width: 15px;
  height: 15px;
  border: 3px solid #111318;
  border-radius: 50%;
  background: #36d399;
  box-shadow: 0 0 18px rgba(54, 211, 153, 0.7);
}

.profile-content {
  padding: 23px 10px 10px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 7px;
  color: #a1a1aa;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 2.55rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1;
}

.username {
  margin: 9px 0 22px;
  color: #a1a1aa;
  font-size: 0.92rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 13px;
}

.social-link {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.07);
  color: #f8fafc;
  font-size: 1.35rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-4px);
  outline: none;
}

.social-link:focus-visible {
  box-shadow: 0 0 0 3px #08090c, 0 0 0 5px #f8fafc;
}

.facebook:hover,
.facebook:focus-visible {
  border-color: #1877f2;
  background: #1877f2;
  box-shadow: 0 12px 28px rgba(24, 119, 242, 0.28);
}

.instagram:hover,
.instagram:focus-visible {
  border-color: #e1306c;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  box-shadow: 0 12px 28px rgba(225, 48, 108, 0.28);
}

.tiktok:hover,
.tiktok:focus-visible {
  border-color: #25f4ee;
  background: #050505;
  box-shadow: -5px 0 18px rgba(37, 244, 238, 0.26), 5px 0 18px rgba(254, 44, 85, 0.26);
}

.footer-note {
  position: absolute;
  bottom: 24px;
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
  .profile-page {
    padding-inline: 14px;
  }

  .profile-card {
    padding: 10px;
    border-radius: 25px;
  }

  .avatar-wrap {
    border-radius: 18px;
  }

  .profile-content {
    padding-top: 20px;
  }
}

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