/* Reset and base styles */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
/* Import Google Font */

.carousel{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* --- Carousel --- */
.carousel {
  width: 100vw;
  height: 80vh;
  overflow: hidden;
  position: relative;
}

.carousel .list .item {
  width: 180px;
  height: 180px;
  position: absolute;
  top: 80%;
  transform: translateY(-70%);
  left: 70%;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  background-position: center;
  background-size: cover;
  z-index: 100;
  transition: 1s;
}

/* Main items */
.carousel .list .item:nth-child(1),
.carousel .list .item:nth-child(2) {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: none;
  border-radius: 0;
}

/* Extra items on right */
.carousel .list .item:nth-child(3) { left: 67%; }
.carousel .list .item:nth-child(4) { left: calc(67% + 200px); }
.carousel .list .item:nth-child(5) { left: calc(67% + 400px); }
.carousel .list .item:nth-child(6) { left: calc(67% + 600px); }

/* Hide items after 6th */
.carousel .list .item:nth-child(n+7) {
  left: calc(67% + 800px);
  opacity: 0;
}

/* --- Content inside active item --- */
.list .item .content {
  position: absolute;
  top: 50%;
  left: 100px;
  transform: translateY(-50%);
  width: 85%;
  text-align: left;
  color: #fff;
  display: none;
  background:rgba(0, 0, 0, 0.4);
  padding: 10px;
  border-radius: 10px;
}

.list .item:nth-child(2) .content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Text animations */
.content .title,
.content .name,
.content .des,
.content .btn {
  opacity: 0;
  animation: animate 1s ease-in-out 1 forwards;
}

.content .title {
  font-size: 50px;
  color: #fff;
  font-weight: bold;
  animation-delay: 0.3s;
  text-shadow: 2px 2px 4px rgba(190,130,11,0.8);
}

.content .name {
  color: #eeb335;
  font-size: 40px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.6);
  animation-delay: 0.6s;
}

.content .des {
  font-size: 18px;
  margin: 10px 0 20px 5px;
  animation-delay: 0.9s;
  width: 50%;
  transition: all 0.5s ease;
}

.content .btn {
  margin-left: 5px;
  animation-delay: 1.2s;
}

.content .btn button {
  padding: 10px 20px;
  font-size: 16px;
  border: 2px solid #fff;
  background: none;
  cursor: pointer;
}

.content .btn button:nth-child(1) {
  margin-right: 15px;
  color: #fff;

}

.content .btn button:nth-child(2) {
  color: #fff;
  transition: 0.3s;
  background: #460abe;
  border: 1px solid #460abe;
}

.content .btn button:nth-child(2):hover {
  background: #2d0587;
  color: #fff;
  border-color: #2d0587;
}

/* Animation keyframe */
@keyframes animate {
  from {
    opacity: 0;
    transform: translateY(100px);
    filter: blur(33px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* --- Arrows --- */
.arrows {
  position: absolute;
  top: 80%;
  right: 52%;
  display: flex;
  gap: 10px;
  width: 300px;
  max-width: 30%;
  align-items: center;
  z-index: 100;
}

.arrows button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #460abe;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: 0.5s;
}

.arrows button:hover {
  background: #fff;
  color: #000;
}

/* --- Progress bar --- */
.carousel .timeRunning {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: #14ff72cb;
  animation: runningTime 7s linear forwards;
}

@keyframes runningTime {
  from { width: 0%; }
  to { width: 100%; }
}

/* --- Responsive --- */
@media screen and (max-width: 1024px) {
  header { padding-left: 50px; }
  .list .item .content { left: 50px; width: 90%; top: 40% }
  .content .title, .content .name { font-size: 30px; }
  .content .des { font-size: 16px; }
}

@media screen and (max-width: 720px) {
  header nav a {
    font-size: 14px;
    margin-right: 0;
  }

  .list .item .content { top: 40%; width: 80%; gap: 2rem;}
  .content .title, .content .name { font-size: 30px; }
  .content .btn button {
    padding: 10px 15px;
    font-size: 14px;
  }
}
