:root {
  --bg-top: #58c4dd;
  --bg-bottom: #1a2cae;
  --card-bg: rgba(36, 82, 165, 0.62);
  --card-border: rgba(255, 255, 255, 0.78);
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.88);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  font-family: "Cairo", sans-serif;
  background: linear-gradient(180deg, var(--bg-top) 0%, #2f67b9 46%, var(--bg-bottom) 100%);
  color: var(--text-main);
}

.page-glow {
  position: fixed;
  z-index: -1;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.36;
  pointer-events: none;
}

.page-glow-a {
  top: -7rem;
  left: -7rem;
  background: #b8f9ff;
}

.page-glow-b {
  right: -8rem;
  bottom: -8rem;
  background: #6789ff;
}

.links-page {
  width: min(45rem, 100% - 2rem);
  margin: 0 auto;
  padding: 2.6rem 0 3.2rem;
}

.profile-block {
  text-align: center;
  margin-bottom: 1.8rem;
  animation: rise-in 0.55s ease-out both;
}

.avatar-wrap {
  display: inline-grid;
  place-items: center;
  width: 11.6rem;
  height: 11.6rem;
  border-radius: 50%;
  padding: 1rem;
  background: radial-gradient(
    circle at 30% 25%,
    rgba(92, 151, 242, 0.58) 0%,
    rgba(11, 43, 112, 0.94) 65%,
    rgba(6, 28, 81, 0.98) 100%
  );
  border: 2px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 46px rgba(6, 26, 82, 0.4);
  margin-bottom: 1rem;
}

.avatar {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.45)) contrast(1.08);
}

.handle {
  margin: 0;
  font-family: "Changa", sans-serif;
  font-size: clamp(2rem, 4.8vw, 2.9rem);
  line-height: 1.1;
}

.tagline,
.subline {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: clamp(1.04rem, 2.6vw, 1.38rem);
  font-weight: 700;
}

.links-list {
  display: grid;
  gap: 0.88rem;
}

.link-item {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 5.4rem;
  padding: 1.15rem 4rem;
  border-radius: 2rem;
  border: 2px solid var(--card-border);
  background: linear-gradient(180deg, rgba(58, 109, 185, 0.68), var(--card-bg));
  color: var(--text-main);
  text-decoration: none;
  font-size: clamp(1.15rem, 2.8vw, 1.58rem);
  font-weight: 700;
  letter-spacing: 0.1px;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
  animation: rise-in 0.5s ease-out both;
}

.link-item:nth-child(2) {
  animation-delay: 70ms;
}

.link-item:nth-child(3) {
  animation-delay: 120ms;
}

.link-item:nth-child(4) {
  animation-delay: 170ms;
}

.link-item:nth-child(5) {
  animation-delay: 220ms;
}

.link-item:nth-child(6) {
  animation-delay: 270ms;
}

.link-item:hover,
.link-item:focus-visible {
  transform: translateY(-3px) scale(1.01);
  border-color: #ffffff;
  background: linear-gradient(180deg, rgba(78, 127, 201, 0.73), rgba(40, 85, 171, 0.7));
}

.link-item:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.78);
  outline-offset: 2px;
}

.link-icon {
  position: absolute;
  left: 0.9rem;
  width: 3.55rem;
  height: 3.55rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 7px 16px rgba(9, 34, 98, 0.24);
  overflow: hidden;
}

.link-icon svg {
  width: 1.76rem;
  height: 1.76rem;
  fill: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-whatsapp {
  background: #1fbe5f;
}

.icon-instagram {
  background: linear-gradient(225deg, #f9ce34 0%, #ee2a7b 48%, #6228d7 100%);
}

.icon-instagram svg {
  fill: none;
}

.icon-youtube {
  background: #ff1010;
}

.icon-snapchat {
  color: #111;
  background: #ffec00;
}

.snapchat-icon-image {
  width: 1.9rem;
  height: 1.9rem;
  object-fit: contain;
}

.icon-x {
  background: #111111;
}

.icon-site {
  background: radial-gradient(circle at 20% 20%, #4a8fff 0%, #0e2d8d 100%);
}

.icon-site svg {
  fill: none;
}

.link-more {
  position: absolute;
  right: 1rem;
  opacity: 0.75;
  font-size: 1.24rem;
  letter-spacing: 2px;
}

@media (max-width: 540px) {
  .links-page {
    width: min(30rem, 100% - 1rem);
    padding-top: 1.8rem;
  }

  .avatar-wrap {
    width: 10rem;
    height: 10rem;
  }

  .link-item {
    min-height: 4.95rem;
    padding: 1rem 3.75rem;
    border-radius: 1.72rem;
    font-size: 1.32rem;
  }

  .link-icon {
    width: 3.2rem;
    height: 3.2rem;
  }
}

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