.footer {
  animation: fadeInUp 0.6s ease 0.3s both;
  background: var(--color-cream);
  border-top: 1px solid var(--color-brown-a30);
  color: var(--color-gray);
  margin-bottom: 20px;
  margin-top: auto;
  padding: 2.5rem 1.5rem 2rem;
  position: relative;
  text-align: center;
  width: 100%;
}

.footer::after {
  background: linear-gradient(
    to bottom,
    var(--color-brown) 0 3px,
    transparent 3px 8px,
    var(--color-brown) 8px 20px
  );
  bottom: -20px;
  content: "";
  height: 20px;
  left: 0;
  position: absolute;
  right: 0;
}

.footer__social-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.footer__social-links a {
  align-items: center;
  border: 2px solid transparent;
  border-radius: 50%;
  color: var(--color-black);
  display: inline-flex;
  font-size: var(--fs-lg);
  height: 2.5rem;
  justify-content: center;
  text-decoration: none;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
  width: 2.5rem;
}

.footer__social-links a:hover {
  background: var(--color-black-a04);
  border-color: var(--color-black-a12);
}

.footer__social-links a[href*="instagram.com"]:hover {
  border-color: var(--color-social-instagram);
}

.footer__social-links a[href*="x.com"]:hover,
.footer__social-links a[href*="twitter.com"]:hover {
  border-color: var(--color-social-twitter);
}

.footer__social-links a[href*="youtube.com"]:hover {
  border-color: var(--color-social-youtube);
}

.footer__social-links a[href*="soundcloud.com"]:hover {
  border-color: var(--color-social-soundcloud);
}

.footer__social-links a[href*="discord.com"]:hover {
  border-color: var(--color-social-discord);
}

.footer__social-links a[href*="github.com"]:hover {
  border-color: var(--color-social-github);
}

.footer__dc {
  animation: gentleFloatDC 3s ease-in-out infinite;
  background: none;
  border: none;
  color: var(--color-brown);
  cursor: pointer;
  font-family: var(--font-latin);
  font-size: var(--fs-3xl);
  font-style: italic;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.5rem;
  position: absolute;
  right: 1.5rem;
  text-align: center;
  text-decoration: none;
  top: 50%;
  transform: translateY(-50%);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  white-space: nowrap;
}

@keyframes gentleFloatDC {
  0%,
  100% {
    transform: translateY(calc(-50% - 8px));
  }
  50% {
    transform: translateY(calc(-50% + 8px));
  }
}

.footer__dc-arrow {
  display: block;
  font-size: var(--fs-base);
  font-style: normal;
  line-height: 1;
  margin-bottom: 0.1rem;
}

.footer__dc:hover {
  opacity: 0.55;
  transform: translateY(-50%) scale(1.08);
}

.footer__copyright {
  animation: fadeIn 0.8s ease 0.6s both;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  margin: 1.2rem 0 0;
}

@media (max-width: 768px) {
  .footer {
    margin-top: 4rem;
    padding: 2.25rem 1rem 1.75rem;
  }

  .footer__social-links {
    gap: 0.3rem;
  }

  .footer__social-links a {
    font-size: var(--fs-xl);
    height: 2.2rem;
    width: 2.2rem;
  }

  .footer__dc {
    font-size: var(--fs-xl);
    right: 0.75rem;
  }
}
