body, html {
  height: 100%;
  margin: 0;
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  background: #222;
  overflow: hidden;
}
si
.background {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1280&q=80') center/cover no-repeat;
  z-index: 0;
  filter: blur(6px) brightness(0.6);
}

.slideshow-container {
  position: relative;
  max-width: 980px;
  margin: 60px auto;
  background: rgba(255,255,255,0.35);
  border-radius: 32px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.28);
  backdrop-filter: blur(30px) saturate(1.6);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  z-index: 1;
  overflow: visible;
  padding: 32px 32px 60px 32px;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  margin-bottom: 24px;
}
.logo {
  font-size: 2.7rem;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(90deg, #fff 60%, #c0c0c0 100%);
  border-radius: 50%;
  width: 70px; height: 70px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(70,70,70,0.18);
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  margin: 0 18px;
  transition: color 0.3s;
  letter-spacing: 1px;
}
nav a:hover {
  color: #ffd700;
}

main {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  margin-top: 32px;
}

.slide-info {
  flex: 1;
  color: #fff;
  padding-top: 40px;
  min-width: 220px;
  max-width: 280px;
}
.slide-info h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
  letter-spacing: 2px;
}
.slide-info p {
  font-size: 1.1rem;
  margin-bottom: 24px;
  opacity: 0.85;
}
.see-more {
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(90deg, #fff 60%, #f3f3f3 100%);
  color: #222;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  transition: background 0.3s, transform 0.2s;
}
.see-more:hover {
  background: #ffd700;
  transform: scale(1.05);
}

.carousel {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  min-height: 340px;
  height: 340px;
  gap: 20px;
  padding-left: 20px;
}

.slide-card {
  position: relative;
  width: 180px; height: 280px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
  overflow: hidden;
  opacity: 1;
  z-index: 1;
  transition:
    opacity 0.8s cubic-bezier(.53,.01,.17,1),
    transform 0.9s cubic-bezier(.53,.01,.17,1),
    box-shadow 0.7s cubic-bezier(.53,.01,.17,1);
  will-change: transform, opacity;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  pointer-events: auto;
  animation-duration: 0.9s;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(.53,.01,.17,1);
}

.slide-card.transitioning {
  transition:
    opacity 0.6s ease-in-out,
    transform 0.6s ease-in-out,
    box-shadow 0.6s ease-in-out;
}

@keyframes slideFadeIn {
  0% {
    opacity: 0;
    transform: translateX(30px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes slideFadeOut {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-30px) scale(0.9);
  }
}

/* Center (main) card */
.slide-card.center {
  opacity: 1;
  transform: none;
  z-index: 5;
  box-shadow: 0 18px 48px rgba(0,0,0,0.22);
  pointer-events: auto;
  animation-name: none;
}

.slide-card.left {
  animation-name: slideFadeOut;
}

.slide-card.right {
  animation-name: slideFadeOut;
}

/* Left card */
.slide-card.left {
  opacity: 0.92;
  transform: translate(-170%, -50%) scale(0.91) rotateY(18deg);
  z-index: 3;
  filter: blur(1.2px);
  pointer-events: auto;
}

/* Right card */
.slide-card.right {
  opacity: 0.92;
  transform: translate(70%, -50%) scale(0.91) rotateY(-18deg);
  z-index: 3;
  filter: blur(1.2px);
  pointer-events: auto;
}

/* For further-out cards, hide them */
.slide-card.hidden {
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

.slide-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px 32px 0 0;
  filter: brightness(0.93) saturate(1.1);
  transition: filter 0.6s cubic-bezier(.53,.01,.17,1);
}

.slide-card.center img {
  filter: brightness(1) saturate(1.2);
}

.slide-card:hover {
  box-shadow: 0 24px 54px rgba(0,0,0,0.34);
  transform: scale(1.04) translateY(-12px) rotateY(0deg) !important;
  z-index: 10;
}

/* Caption styles */
.slide-caption {
  position: absolute;
  bottom: 16px;
  left: 12px;
  right: 12px;
  background: rgba(30, 30, 30, 0.54);
  color: #fff;
  font-size: 1.07rem;
  font-weight: 500;
  text-align: center;
  padding: 12px 8px 10px 8px;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.13);
  opacity: 0.96;
  letter-spacing: 0.5px;
  transition: background 0.4s;
  z-index: 2;
  pointer-events: none;
}

.slide-card.center .slide-caption {
  background: rgba(30, 30, 30, 0.85);
  font-weight: 600;
  opacity: 1;
}

.controls {
  position: relative;
  margin: 20px auto 0 auto;
  width: 140px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  z-index: 10;
}

.controls button {
  width: 50px; height: 50px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: #333;
  font-size: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.13);
  cursor: pointer;
  transition: background 0.2s, transform 0.18s;
}
.controls button:hover {
  background: #ffd700;
  transform: scale(1.13);
}

@media (max-width: 900px) {
  .slideshow-container {
    max-width: 99vw;
    padding: 18px 4vw 28px 4vw;
  }
  main {
    flex-direction: column;
    gap: 22px;
  }
  .slide-info {
    padding-top: 10px;
    min-width: 180px;
    max-width: 99vw;
  }
  .carousel {
    min-height: 220px;
    height: 240px;
  }
  .slide-card,
  .slide-card.center,
  .slide-card.left,
  .slide-card.right {
    width: 140px; height: 210px;
    border-radius: 18px;
  }
  .slide-caption {
    font-size: 0.95rem;
    padding: 8px 5px 7px 5px;
    bottom: 7px;
    left: 6px;
    right: 6px;
    border-radius: 8px;
  }
}

/* Modal popup styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow: auto;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal.open {
  display: flex;
}

.modal-content {
  position: relative;
  background: #222;
  border-radius: 20px;
  padding: 20px;
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: morphIn 0.5s forwards;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #ffd700;
}

.modal img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  margin-bottom: 12px;
  transition: transform 0.5s cubic-bezier(.53,.01,.17,1);
}

.modal-caption {
  color: #fff;
  font-size: 1.2rem;
  text-align: center;
  user-select: none;
}

/* Morph transition keyframes */
@keyframes morphIn {
  0% {
    transform: scale(0.8) rotate(10deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes morphOut {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: scale(0.8) rotate(10deg);
    opacity: 0;
  }
}
