@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
  --primary-color: #ed1c24;
  --secondary-color: #4ecdc4;
  --dark-bg: black;
  --light-text: #f0f0f0;
  --overlay-color: rgba(0, 0, 0, 0.4);
}

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

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, var(--dark-bg), #2f0a0b);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}
.page-title {
  position: absolute;
  top: 20px;
  text-align: center;
  color: white;
  font-size: 2.5rem;
  font-weight: 600;
  z-index: 10;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  letter-spacing: 1px;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 100vw;
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 30px;
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  z-index: 1;
  transform: scale(0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.5s ease;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay-color);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slide img {
  max-height: 55vh;
  max-width: 55vw;
  width: auto;
  height: auto;
  object-fit: cover;
  transition: all 0.7s ease;
  transform: scale(1);
}

.description {
  color: var(--light-text);
  text-align: center;
  margin-top: 25px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  max-width: 60vw;
  padding: 0 20px;
}

.description h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  letter-spacing: 1px;
}

.divider {
  height: 3px;
  width: 60px;
  background: var(--primary-color);
  margin: 0 auto 10px;
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 1s ease 0.3s;
}

.description p {
  font-size: .8rem;
  font-weight: 300;
  line-height: 1;
  margin-top: 0;
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
  margin: 0 auto;
}

/* Main image */
.slide.center {
  transform: scale(1);
  opacity: 1;
  z-index: 5;
}

.slide.center .image-container {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.slide.center img {
  transform: scale(1.03);
}

.slide.center .description {
  opacity: 1;
  transform: translateY(0);
}

.slide.center .divider {
  transform: scaleX(1);
}

/* Side images */
.slide.left {
  transform: translateX(-65%) scale(0.65);
  opacity: 0.4;
  z-index: 2;
  filter: blur(1px);
}

.slide.right {
  transform: translateX(65%) scale(0.65);
  opacity: 0.4;
  z-index: 2;
  filter: blur(1px);
}

.slide.left .overlay,
.slide.right .overlay {
  opacity: 0.6;
}

/* Hidden images */
.slide.hidden {
  opacity: 0;
  z-index: 0;
  transform: scale(0.4) translateY(100px);
}

/* Navigation buttons */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  border-radius: 50%;
  backdrop-filter: blur(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.nav:hover {
  background: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
}

.prev {
  left: 30px;
}

.next {
  right: 30px;
}

/* Dots navigation */
.dots-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  position: absolute;
  bottom: 90px;
}

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

.dot.active {
  background: var(--primary-color);
  transform: scale(1.3);
}

.btn{
  display: block;
  position: absolute;
  bottom: 10px;
  border: 1px solid #ed1c24;
  padding: 10px 30px;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  transition: background 0.3s;
}
.btn:hover{
  background: #ed1c24;
}

/* Media Queries */
@media (max-width: 768px) {
  .slide.left, .slide.right {
    transform: translateX(0) scale(0.8);
    opacity: 0;
  }
  
  .description h2 {
    font-size: 1.1rem;
  }
  
  .description p {
    font-size: 0.7rem;
  }
  
  .dots-container{
    bottom: 150px;
  }

  .btn{
    bottom: 80px;
  }
  .nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}
