/* ═══════════════════════════════════════════════════════
   §6  FOOTER  ·  footer.css
═══════════════════════════════════════════════════════ */

.footer-section {
  position: relative;
  width: 100%;
  background: var(--c-black);
  display: grid;
  overflow: hidden;
  z-index: 10;
}

.footer-waves-wrap {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.footer-waves-svg {
  width: 100%;
  height: auto;
  /* Scales proportionally based on viewBox */
  display: block;
  color: var(--c-yellow);
}

.footer-section__inner {
  grid-area: 1 / 1;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--pad);
  gap: 80px;
  /* guarantees at least 80px distance between name and icon */
  z-index: 2;
  pointer-events: none;
}

/* Interactivity restored on text and button */
.footer-section__left,
.footer-section__right {
  pointer-events: auto;
}

.footer-section__left {
  display: flex;
  flex-direction: column;
  flex: 1;
  /* Take remaining space */
  min-width: 0;
  container-type: inline-size;
  /* container querying for exact text scaling */
}

.footer-section__name {
  margin: 0 0 16px 0;
  line-height: 0.8;
  white-space: nowrap;
  font-size: min(180px, 13cqi);
  /* scale to max 180px, shrink to 13% of available left space */
}

.footer-section__copy {
  margin: 0;
  white-space: nowrap;
  font-size: min(20px, 3.5cqi);
}

.footer-section__up-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--c-yellow);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: floatUpBtn 3s ease-in-out infinite;
  transition: scale 0.2s ease, background-color 0.2s ease;
  padding: 0;
}

.footer-section__up-btn:active {
  scale: 0.92;
}

.footer-section__up-btn:hover {
  background-color: var(--c-olive-dark);
}

@keyframes floatUpBtn {
  0% {
    translate: 0 0;
  }

  50% {
    translate: 0 -12px;
  }

  100% {
    translate: 0 0;
  }
}