.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-links a {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 999px;
  color: #d4af37;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 34%),
    rgba(5, 5, 5, 0.78);
  text-decoration: none;
  overflow: hidden;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 0.28s ease,
    color 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
  animation: socialFloat 3.2s ease-in-out infinite;
}

.social-links a:nth-child(2) {
  animation-delay: 0.12s;
}

.social-links a:nth-child(3) {
  animation-delay: 0.24s;
}

.social-links a:nth-child(4) {
  animation-delay: 0.36s;
}

.social-links a::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 180deg, transparent, rgba(212, 175, 55, 0.55), transparent 38%);
  opacity: 0;
  transform: rotate(0deg);
  transition: opacity 0.28s ease;
}

.social-links a::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: rgba(5, 5, 5, 0.88);
}

.social-links svg {
  position: relative;
  z-index: 2;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-links a:hover {
  transform: translateY(-5px) scale(1.08);
  color: #050505;
  border-color: rgba(245, 215, 107, 0.88);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(212, 175, 55, 0.34);
}

.social-links a:hover::before {
  opacity: 1;
  animation: socialSpin 1.4s linear infinite;
}

.social-links a:hover::after {
  background: linear-gradient(135deg, #d4af37, #fff1a8);
}

.social-links-header {
  margin-left: auto;
  padding-right: clamp(20px, 4vw, 56px);
}

.social-links-footer {
  margin-top: 24px;
}

.footer .social-links-footer a {
  display: inline-flex;
  margin: 0;
}

@keyframes socialFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes socialSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .social-links-header {
    position: fixed;
    top: 24px;
    right: 16px;
    padding-right: 0;
    gap: 8px;
  }

  .social-links-header a {
    width: 36px;
    height: 36px;
  }

  .social-links-header svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 620px) {
  .social-links-header {
    top: 92px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    justify-content: center;
    width: max-content;
  }

  .social-links-footer {
    justify-content: flex-start;
  }
}
