/* Original Portfolio button from commit 4f88f84, shared across the demos. */
.portfolio-back-button {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  width: 136px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 5px;
  background: #07111f;
  color: #e5f0ff;
  font-family: Manrope, Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transform: translateX(-50%);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.portfolio-back-button::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -75%;
  width: 55%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}

.portfolio-back-button:hover {
  border-color: #67e8f9;
  color: #67e8f9;
}

.portfolio-back-button.is-portfolio-exiting {
  pointer-events: none;
}

.portfolio-back-button.is-portfolio-exiting::after {
  animation: portfolio-button-glow-sweep 560ms ease-out;
}

@keyframes portfolio-button-glow-sweep {
  0% { left: -75%; }
  100% { left: 125%; }
}

/* Preserve the original demo-specific fonts and player/cart clearance. */
.portfolio-back-button[data-demo="NMH-demo"] {
  font-family: "Roboto", Arial, Helvetica, sans-serif;
}

.portfolio-back-button[data-demo="qq-demo"] {
  font-family: "Inter", sans-serif;
}

body.has-audio-dock .portfolio-back-button[data-demo="NMH-demo"] {
  bottom: 104px;
}

.portfolio-back-button[data-demo="davinci-cafe-demo"] {
  bottom: calc(24px + var(--mobile-cart-clearance, 0px));
}
