/* css slider */
.slider {
  height: 100vh;
  top: 0;
  position: relative;
}
.slider .list .item {
  position: absolute;
  inset: 0 0 0 0;
  overflow: hidden;
  opacity: 0;
  transition: 0.5s;
}
.slider .list .item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.slider .list .item::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
  background-image: linear-gradient(to bottom, #00000044 50%, transparent);
}
.slider .list .item .content {
  position: absolute;
  left: 10%;
  top: 20%;
  width: 500px;
  max-width: 80%;
  z-index: 1;
}
.slider .list .item .content p:nth-child(1) {
  letter-spacing: 7px;
}
.slider .list .item .content h2 {
  font-size: 100px;
  margin: 0;
  color: #000;
  text-shadow: 1px 0px 1px #a19d9d, 0px 1px 1px #585555, 2px 1px 1px #fff;
}
.slider .list .item.active {
  opacity: 1;
  z-index: 10;
}
@keyframes showContent {
  to {
    transform: translateY(0);
    filter: blur(0);
    opacity: 1;
  }
}

/*  */
.show_items {
  font-size: 18px;
  color: #fff;
  margin-top: 20px;
  display: block;
  padding: 15px;
}
/*  */

.slider .list .item.active p:nth-child(1),
.slider .list .item.active h2,
.slider .list .item.active p:nth-child(3),
.slider .list .item.active a.btn-bax {
  transform: translateY(30px);
  filter: blur(20px);
  opacity: 0;
  animation: showContent 0.5s 0.7s ease-in-out 1 forwards;
}
.slider .list .item.active h2 {
  animation-delay: 1s;
}
.slider .list .item.active p:nth-child(3) {
  animation-duration: 1.3s;
}
.slider .list .item.active a.btn-bax {
  animation-delay: 1.3s;
}
/*  */
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  align-items: center;
  height: 48px;
  border-radius: 0.4rem;
  font-weight: 600;
  padding: 0 1.2rem;
  color: #000;
  border: none;
  cursor: pointer;
  box-shadow: 0 0.5rem 1rem rgba(143, 142, 142, 0.15) !important;
  background: #fff;
  text-decoration: none;
}

.cta:hover:before {
  background: #2b2a2a;
}

.cta span {
  position: relative;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #000;
  z-index: 1;
}

.cta svg {
  position: relative;
  top: 1px;
  margin-left: 10px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: #000;
  stroke-width: 2;
  transform: translateX(-5px);
  transition: all 0.3s ease;
  z-index: 1;
}

.cta:hover svg {
  transform: translateX(0);
}

.cta:active {
  transform: scale(0.96);
}

/*  */

.arrows {
  position: absolute;
  top: 30%;
  right: 50px;
  z-index: 100;
}
.arrows button {
  background-color: #eee5;
  border: none;
  font-family: monospace;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  font-size: x-large;
  color: #eee;
  transition: 0.5s;
}
.arrows button:hover {
  background-color: #eee;
  color: black;
}
.thumbnail {
  position: absolute;
  bottom: 50px;
  z-index: 11;
  width: 100%;
  justify-content: center;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden; /* vacibdir — vertikal scroll olmasın */
  scroll-behavior: smooth;
  padding: 0 50px;
  box-sizing: border-box;
  height: 250px;
  display: none;
}

.thumbnail::-webkit-scrollbar {
  width: 0;
}
.thumbnail .item {
  width: 150px;
  height: 220px;
  filter: brightness(0.5);
  transition: 0.5s;
  flex-shrink: 0;
}
.thumbnail .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.thumbnail .item.active {
  filter: brightness(1.2);
}
.thumbnail .item .content {
  position: absolute;
  inset: auto 10px 10px 10px;
  color: #000;
  font-weight: bolder;
  text-align: center;
  background-color: #fff;
  border-radius: 5px;
}
.thumbnail .item.active .content {
  filter: brightness(1.2);
  color: #ff007f;
}
@media screen and (max-width: 678px) {
  .thumbnail {
    justify-content: start;
  }
  .slider .list .item .content h2 {
    font-size: 60px;
  }
  .arrows {
    top: 10%;
    display: none;
  }
  /* sonradan elave */
  .slider {
    height: 100vh;
  }
  .slider .list .item .content {
    width: 90%;
    left: 5%;
    right: 5%;
  }

  .slider .list .item .content h2 {
    font-size: 40px;
    word-break: break-word; /* Uzun sözləri qırır */
  }

  .slider .list .item .content p {
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
  }
  .cta {
    font-size: 10px;
    height: 38px;
    border-radius: 0.4rem;
    font-weight: 300;
    padding: 0 0.6rem;
  }
}

@media screen and (max-height: 770px) {
  .thumbnail {
    justify-content: start;
    bottom: 0px;
  }
  .thumbnail .item {
    width: 150px;
    height: 180px;
  }
  .slider .list .item .content h2 {
    font-size: 60px;
  }
  .arrows {
    top: 10%;
    display: none;
  }
  /* sonradan elave */
  .slider {
    height: 90vh;
  }
  .slider .list .item .content {
    width: 90%;
    left: 5%;
    right: 5%;
  }

  .slider .list .item .content h2 {
    font-size: 40px;
    word-break: break-word; /* Uzun sözləri qırır */
  }

  .slider .list .item .content p {
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
  }
}

@media screen and (max-height: 580px) {
  .thumbnail {
    justify-content: start;
    display: none;
  }

  .arrows {
    top: 10%;
    display: none;
  }
  /* sonradan elave */
  .slider {
    height: 100vh;
  }
  .slider .list .item .content {
    width: 90%;
    left: 5%;
    right: 5%;
  }

  .slider .list .item .content h2 {
    font-size: 40px;
    word-break: break-word; /* Uzun sözləri qırır */
    margin-top: 30px;
  }

  .slider .list .item .content p {
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    display: none;
  }
}
@media screen and (max-height: 400px) {
  .thumbnail {
    justify-content: start;
    display: none;
  }
  .arrows {
    top: 10%;
    display: none;
  }
  /* sonradan elave */
  .slider {
    height: 100vh;
  }

  .slider .list .item .content h2 {
    font-size: 20px;
    word-break: break-word; /* Uzun sözləri qırır */
    margin-top: 25px;
  }
}
