@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #0b0908;
  color: #ffffff;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  position: relative;
}

/* Ambient Background Layer */
.ambient-bg {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(0.35);
  transition: background-image 1.2s ease-in-out;
  z-index: 1;
}

/* Slideshow Viewport */
.slideshow-viewport {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 40px;
}

.slide-item {
  position: absolute;
  max-width: 85vw;
  max-height: 80vh;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.slide-item.active {
  opacity: 1;
  transform: scale(1);
}

.slide-media {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: kenburns 12s infinite alternate ease-in-out;
}

@keyframes kenburns {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

/* Caption Overlay */
.slide-caption-box {
  margin-top: 18px;
  background: rgba(18, 14, 13, 0.75);
  backdrop-filter: blur(12px);
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid rgba(197, 160, 89, 0.3);
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.slide-uploader {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e5c483;
}

.slide-wish {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  color: #fff;
  margin-left: 8px;
}

/* Floating Corner QR Code */
.corner-qr-card {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.95);
  color: #1a1615;
  padding: 12px 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 50;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid #c5a059;
}

.corner-qr-img {
  width: 72px;
  height: 72px;
  border-radius: 6px;
}

.corner-qr-text h4 {
  font-size: 0.88rem;
  font-weight: 700;
}

.corner-qr-text p {
  font-size: 0.75rem;
  color: #6d635f;
}

/* Controls */
.controls-bar {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 60;
  opacity: 0;
  transition: opacity 0.3s;
}

body:hover .controls-bar {
  opacity: 1;
}

.ctrl-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 0.85rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}
