/* css slider */
.slider {
  height: 100vh;
  top: 0;
  position: relative;
  margin-top: 60px;
}
.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: cover;
}
.slider .list .item::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
  background-image: linear-gradient(to bottom, #000 10%, 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;
}
.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;
  padding: 12px 18px;
  transition: all 0.2s ease;
  background: none;
  cursor: pointer;
  text-decoration: none;
  margin-top: 20px;
  border-radius: 50px;
}

.cta:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  border-radius: 50px;
  background: #b1dae7;
  width: 45px;
  height: 45px;
  transition: all 0.3s ease;
  z-index: 0;
}

.cta span {
  position: relative;
  font-family: "Ubuntu", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  z-index: 1;
}

.cta svg {
  position: relative;
  top: 0;
  margin-left: 10px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: #ffffff;
  stroke-width: 2;
  transform: translateX(-5px);
  transition: all 0.3s ease;
  z-index: 1;
}

.cta:hover:before {
  width: 100%;
  background: #b1dae7;
}

.cta:hover svg {
  transform: translateX(0);
}

.cta:active {
  transform: scale(0.95);
}

/*  */

.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;
}

.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.5);
}
.thumbnail .item .content {
  position: absolute;
  inset: auto 10px 10px 10px;
  background-color: #000;
  text-align: center;
}
@media screen and (max-width: 678px) {
  .thumbnail {
    justify-content: start;
    bottom: 0px;
  }
  .slider .list .item .content h2 {
    font-size: 60px;
  }
  .arrows {
    top: 10%;
    display: none;
  }
  /* sonradan elave */
  .slider {
    height: calc(100vh - 60px);
  }
  .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: 770px) {
  .thumbnail {
    justify-content: start;
    bottom: 0px;
  }
  .thumbnail .item {
    width: 150px;
  }
  .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;
  }
  .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 */
    margin-top: 50px;
  }

  .slider .list .item .content p {
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    display: none;
  }
}

/*  */
.logo-container {
  position: absolute;
  width: 300px;
  height: 300px;
  top: -20px;
  left: 150px;
  z-index: 999;
}

.logo-part {
  position: absolute;
  opacity: 0;
  animation-fill-mode: forwards;
}

/* Animasiya tərifləri */
@keyframes moveFromRight {
  0% {
    right: -200px;
    opacity: 0;
  }
  100% {
    right: 100px;
    opacity: 1;
  }
}

@keyframes moveFromLeft {
  0% {
    left: -200px;
    opacity: 0;
  }
  100% {
    left: -80px;
    opacity: 1;
  }
}

@keyframes moveFromTop {
  0% {
    top: -200px;
    opacity: 0;
  }
  100% {
    top: 70px;
    opacity: 1;
  }
}

/* Hər logo hissəsinə animasiya tətbiq olunur */
#logo2 {
  animation: moveFromRight 1s ease-out 0s forwards;
  top: 100px;
  width: 250px;
}

#logo1 {
  animation: moveFromLeft 1s ease-out 1s forwards;
  top: 65px;
  width: 60px;
}

#logo3 {
  animation: moveFromTop 1s ease-out 2s forwards;
  left: 10px;
  width: 30px;
}
#logo3_2 {
  animation: moveFromTop 1s ease-out 2s forwards;
  left: 157px;
  width: 30px;
}

@media screen and (max-width: 510px) {
  .logo-container {
    position: absolute;
    width: 200px;
    height: 200px;
    top: -40px;
    /* left: 125px; */
    left: calc(100% - 200px);
  }

  .logo-part {
    position: absolute;
    opacity: 0;
    animation-fill-mode: forwards;
  }

  /* Animasiya tərifləri */
  @keyframes moveFromRight {
    0% {
      right: -200px;
      opacity: 0;
    }
    100% {
      right: 100px;
      opacity: 1;
    }
  }

  @keyframes moveFromLeft {
    0% {
      left: -200px;
      opacity: 0;
    }
    100% {
      left: -118px;
      opacity: 1;
    }
  }

  @keyframes moveFromTop {
    0% {
      top: -200px;
      opacity: 0;
    }
    100% {
      top: 75px;
      opacity: 1;
    }
  }

  /* Hər logo hissəsinə animasiya tətbiq olunur */
  #logo2 {
    animation: moveFromRight 1s ease-out 0s forwards;
    top: 100px;
    width: 200px;
  }

  #logo1 {
    animation: moveFromLeft 1s ease-out 1s forwards;
    top: 80px;
    width: 40px;
  }

  #logo3 {
    animation: moveFromTop 1s ease-out 2s forwards;
    left: -57px;
    width: 30px;
  }
  #logo3_2 {
    animation: moveFromTop 1s ease-out 2s forwards;
    left: 63px;
    width: 30px;
  }
}

@media screen and (max-height: 635px) {
  .logo-container {
    position: absolute;
    width: 200px;
    height: 200px;
    top: -60px;
    left: calc(100% - 200px);
  }

  .logo-part {
    position: absolute;
    opacity: 0;
    animation-fill-mode: forwards;
  }

  /* Animasiya tərifləri */
  @keyframes moveFromRight {
    0% {
      right: -200px;
      opacity: 0;
    }
    100% {
      right: 100px;
      opacity: 1;
    }
  }

  @keyframes moveFromLeft {
    0% {
      left: -200px;
      opacity: 0;
    }
    100% {
      left: -118px;
      opacity: 1;
    }
  }

  @keyframes moveFromTop {
    0% {
      top: -200px;
      opacity: 0;
    }
    100% {
      top: 75px;
      opacity: 1;
    }
  }

  /* Hər logo hissəsinə animasiya tətbiq olunur */
  #logo2 {
    animation: moveFromRight 1s ease-out 0s forwards;
    top: 100px;
    width: 200px;
  }

  #logo1 {
    animation: moveFromLeft 1s ease-out 1s forwards;
    top: 80px;
    width: 40px;
  }

  #logo3 {
    animation: moveFromTop 1s ease-out 2s forwards;
    left: -57px;
    width: 30px;
  }
  #logo3_2 {
    animation: moveFromTop 1s ease-out 2s forwards;
    left: 63px;
    width: 30px;
  }
}
