body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
}

.slideshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Immediate first-paint background (fades away after first image shown) */
.slideshow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000 center/cover no-repeat;
  background-image: url("static/hero1.webp");
  opacity: 1;
  transition: opacity 0.8s ease;
  pointer-events: none;
  /* Blur the initial paint background and slightly upscale to avoid edge bleed */
  filter: blur(3px);
  /* transform: scale(1.02); */
  will-change: opacity, filter, transform;
}

.slideshow.ready::before {
  opacity: 0;
}

.slideshow img {
  position: absolute;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  /* Subtle blur for depth */
  filter: blur(3px);
  /* Slight upscale to avoid transparent edges from blur */
  transform: scale(1.02);
  will-change: opacity, filter, transform;
}

.slideshow img.visible {
  opacity: 1;
}

/* Make overlay fullscreen while scrolling */
.overlay {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1; /* above slideshow, below content */
  pointer-events: none; /* dont block clicks */
}

.content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

.content h1 {
  font-size: 3rem;
  font-weight: bold;
}

.content a {
  margin: 10px;
  position: relative;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: background-color 0.25s, color 0.25s, transform 0.25s,
    box-shadow 0.25s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  overflow: hidden; /* clip hover sheen */
}

/* Glass button base */
.content a.btn-glass {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.05)
  );
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(3px) saturate(140%);
  -webkit-backdrop-filter: blur(3px) saturate(140%);
  border-radius: 0.75rem;
}

/* Amber variant (View Collection) */
.content a.btn-glass-amber {
  background: linear-gradient(
    135deg,
    rgba(255, 193, 59, 0.35),
    rgba(255, 149, 0, 0.25)
  );
  border-color: rgba(255, 193, 59, 0.55);
  color: #fff;
}

/* Blue variant (Gallery) */
.content a.btn-glass-blue {
  background: linear-gradient(
    135deg,
    rgba(0, 123, 255, 0.35),
    rgba(0, 63, 180, 0.25)
  );
  border-color: rgba(102, 170, 255, 0.55);
  color: #e8f4ff;
}

.content a.btn-glass-amber:hover,
.content a.btn-glass-amber:focus-visible {
  background: linear-gradient(
    135deg,
    rgba(255, 200, 80, 0.55),
    rgba(255, 149, 0, 0.45)
  );
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
}

.content a.btn-glass-blue:hover,
.content a.btn-glass-blue:focus-visible {
  background: linear-gradient(
    135deg,
    rgba(0, 140, 255, 0.55),
    rgba(0, 82, 210, 0.45)
  );
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
}

.content a:active {
  transform: translateY(0) scale(0.985);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

/* Focus ring for accessibility */
.content a:focus-visible {
  outline: 3px solid #ffdd2d;
  outline-offset: 3px;
}

/* Optional subtle glowing edge */
.content a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0.15)
  );
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.3s;
  border-radius: 0.5rem;
}

.content a:hover::after,
.content a:focus-visible::after {
  opacity: 0.9;
}

/* Subtle animated sheen on hover */
.content a.btn-glass::before {
  content: "";
  position: absolute;
  top: -150%;
  bottom: -150%;
  width: 45%;
  left: -60%;
  transform: translateX(-120%) rotate(18deg);
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  filter: blur(6px);
  opacity: 0;
  transition: transform 0.85s ease, opacity 0.4s ease;
  pointer-events: none;
}

.content a.btn-glass:hover::before,
.content a.btn-glass:focus-visible::before {
  transform: translateX(260%) rotate(18deg);
  opacity: 0.55;
}
