/* Glassmorphic tile transition overlay */
.tile-overlay {
  position: fixed;
  top: calc(5rem + 1px);
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 40;
  overflow: hidden;
}

.tile-grid {
  display: grid;
  width: 100%;
  height: 100%;
}

.tile {
  background: rgba(107, 70, 193, 0.4);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity var(--tile-duration, 80ms) cubic-bezier(0.4, 0, 0.2, 1),
              transform var(--tile-duration, 80ms) cubic-bezier(0.4, 0, 0.2, 1),
              backdrop-filter var(--tile-duration, 80ms) cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.dark .tile {
  background: rgba(139, 98, 224, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tile.active {
  opacity: 1;
  transform: scale(1);
}

.tile.exit {
  opacity: 0;
  transform: scale(1.05);
  transition-duration: var(--tile-exit-duration, 60ms);
  transition-timing-function: ease-out;
}

/* Slide navigation indicators */
.slide-indicators {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.slide-indicator {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(107, 70, 193, 0.3);
  border: 1px solid rgba(107, 70, 193, 0.5);
  cursor: pointer;
  transition: all 300ms ease;
}

.slide-indicator.active {
  background: rgba(107, 70, 193, 1);
  transform: scale(1.3);
}

.slide-indicator:hover {
  background: rgba(107, 70, 193, 0.7);
  transform: scale(1.2);
}

@media (prefers-reduced-motion: reduce) {
  .tile {
    transition: none !important;
    animation: none !important;
  }

  .tile.active {
    display: none !important;
  }
}
