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

html, body {
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.slider {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.slides-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  min-width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #000;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Navigation buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0;
}

.slider:hover .nav-btn {
  opacity: 1;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.05);
}

.nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

/* Dots */
.dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slider:hover .dots {
  opacity: 1;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

.dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.6);
}

/* Slide counter */
.slide-counter {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 10;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slider:hover .slide-counter {
  opacity: 1;
}

/* Video mute toggle */
.mute-btn {
  position: absolute;
  bottom: 80px;
  right: 24px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mute-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Keyboard hint */
.keyboard-hint {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 10;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slider:hover .keyboard-hint {
  opacity: 1;
}

/* Video overlay slide — background image with iframes on top of card areas */
.slide--video-overlay {
  position: relative;
}

.slide--video-overlay img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-overlay-container {
  position: absolute;
  /* Match the image's displayed area (16:9 aspect ratio centered) */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Use aspect-ratio to match the image */
  aspect-ratio: 16 / 9;
  height: 100%;
  max-width: 100%;
}

.video-overlay-card {
  position: absolute;
  border-radius: 1.2%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.video-overlay-card iframe,
.video-overlay-card video {
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  height: 100%;
  border: none;
  object-fit: contain;
}

/* Card positions — matched to the gray rectangle areas in slide 5.png */
.video-overlay-card--1 {
  left: 4%;
  top: 48.5%;
  width: 28.5%;
  height: 23.5%;
}

.video-overlay-card--2 {
  left: 35.8%;
  top: 48.5%;
  width: 28.5%;
  height: 23.5%;
}

.video-overlay-card--3 {
  left: 67.5%;
  top: 48.5%;
  width: 28.5%;
  height: 23.5%;
}

/* Clickable link overlays */
.slide-links-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.slide-link-area {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.slide-link-area:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-btn {
    width: 40px;
    height: 40px;
    opacity: 1;
  }

  .prev { left: 12px; }
  .next { right: 12px; }

  .dots {
    opacity: 1;
    bottom: 16px;
  }

  .slide-counter {
    opacity: 1;
    top: 12px;
    right: 12px;
  }
}
