@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap");

#footer.fancy {
  --bg-1: #0f1724;
  --bg-2: #081024;
  --accent-1: #7c5cff;
  --accent-2: #ff7aa2;
  --glass: rgba(255, 255, 255, 0.06);
  --muted: #9aa3b2;
  --radius: 16px;
  --gap: 1.25rem;
  --container-max: 1200px;
  position: relative;
  /* full-bleed footer: span entire viewport width while keeping internal padding */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  box-sizing: border-box;
  margin-top: auto;
  /* keep footer behind global UI like header/nav */
  z-index: 1;
  background: #000000;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

#footer.fancy::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  /* gradient removed per request */
  background: none;
  z-index: -2;
}

#footer.fancy .backdrop {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
}

#footer.fancy .backdrop::after {
  content: "";
  position: absolute;
  inset: 0; /* cover entire footer */
  z-index: -3;
  /* full-bleed soft radial circles filling the background */
  /* solid background requested */
  background: none;
  filter: none;
  pointer-events: none;
}

#footer.fancy .col {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.25rem;
  border-radius: 12px;
}

#footer.fancy .col1 {
  align-items: flex-start;
}

#footer.fancy .col2,
#footer.fancy .col3 {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.04);
}

#footer.fancy .col p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

#footer.fancy .col p:first-child {
  color: #cfe3ff;
  font-weight: 600;
}

#footer.fancy .social {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

#footer.fancy .link {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#footer.fancy .link img {
  width: 20px;
  height: 20px;
  filter: grayscale(0.2) contrast(0.95);
  transition: filter 0.18s ease;
}

#footer.fancy .link:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.6);
}

#footer.fancy .link:hover img {
  filter: none;
}

#footer.fancy .col h3 {
  color: #eaf3ff;
  margin-bottom: 0.25rem;
}

#footer.fancy .col .muted {
  color: var(--muted);
  font-size: 0.85rem;
}

#footer.fancy .footer-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
}

#footer.fancy .footer-row p {
  margin: 0;
}

#footer.fancy .footer-row .footer-heart {
  color: #ba6573;
}

#footer.fancy .footer-row .footer-name {
  color: #A48BB3; /* darker baseline for pastel cycle */
  animation: rainbowPastel 5s linear infinite;
  text-shadow: 0 0 10px rgba(121, 151, 161, 0.18);
  will-change: color, text-shadow;
}

#footer.fancy .footer-row a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.18s ease, text-shadow 0.18s ease;
}

/* On hover or keyboard focus, links get the pastel rainbow animation */
#footer.fancy .footer-row a:hover,
#footer.fancy .footer-row a:focus-visible {
  animation: rainbowPastel 5s linear infinite;
  text-shadow: 0 0 8px rgba(121, 151, 161, 0.16);
  color: inherit; /* color driven by animation */
  outline: none;
}

@keyframes rainbowPastel {
  0% {
    color: #A48BB3; /* Pastell Violett (darker) */
  }
  16.67% {
    color: #B394A0; /* Pastell Rosa (darker) */
  }
  33.33% {
    color: #B3A186; /* Pastell Apricot (darker) */
  }
  50% {
    color: #ACA98B; /* Pastell Gelb (darker) */
  }
  66.67% {
    color: #8CA995; /* Pastell Gruen (darker) */
  }
  83.33% {
    color: #8DA2B2; /* Pastell Blau (darker) */
  }
  100% {
    color: #A48BB3; /* Pastell Violett (darker) */
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

#footer.fancy .col {
  animation: fadeUp 0.6s ease both;
}

#footer.fancy .col:nth-child(1) {
  animation-delay: 0.05s;
}

#footer.fancy .col:nth-child(2) {
  animation-delay: 0.12s;
}

#footer.fancy .col:nth-child(3) {
  animation-delay: 0.18s;
}

@media (max-width: 950px) {
  #footer.fancy {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 4rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *:not(.link) {
    animation: none;
    transition: none;
  }
}
