@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");
body {
  font-family: Poppins;
  margin: 0;
  background-color: #010101;
  color: #eee;
}
a {
  text-decoration: none;
  color: #eee;
}
svg {
  width: 25px;
}
header {
  width: 1400px;
  max-width: 90%;
  margin: auto;
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  grid-template-rows: 50px;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 100;
}
header .logo {
  /* font-weight: bold; */
  height: 80px;
  padding-top: 70px;
}
header .menu {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  font-weight: 500;
  padding-top: 70px;
}
header .search {
  padding-top: 70px;
}
/* css slider */
.slider {
  height: 100vh;
  margin-top: -50px;
  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: cover;
}
.slider .list .item::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
  background-image: linear-gradient(to top, #000 40%, transparent);
}
.slider .list .item .content {
  position: absolute;
  left: 10%;
  top: 20%;
  width: 1000px;
  max-width: 80%;
  z-index: 1;
}
.slider .list .item .content p:nth-child(1) {
  text-transform: uppercase;
  letter-spacing: 10px;
}
.slider .list .item .content h2 {
  font-size: 55px;
  margin: 0;
  /* line-height: 70px; */
}
.slider .list .item.active {
  opacity: 1;
  z-index: 10;
}
@keyframes showContent {
  to {
    transform: translateY(0);
    filter: blur(0);
    opacity: 1;
  }
}
.slider .list .item.active p:nth-child(1),
.slider .list .item.active h2,
.slider .list .item.active p:nth-child(3) {
  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;
}
.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;
  display: flex;
  gap: 10px;
  width: 100%;
  height: 250px;
  padding: 0 50px;
  box-sizing: border-box;
  overflow: auto;
  justify-content: center;
}
.thumbnail::-webkit-scrollbar {
  width: 0;
}
.thumbnail .item {
  width: 150px;
  height: 220px;
  filter: brightness(0.5);
  transition: 0.5s;
  flex-shrink: 0;
  position: relative;
}
.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;
}
@media screen and (max-width: 678px) {
  .thumbnail {
    justify-content: start;
  }
  /* .slider .list .item .content h2 {
    font-size: 60px;
  } */
  .arrows {
    top: 5%;
  }
}

.cta {
  border: none;
  background: none;
  cursor: pointer;
  text-decoration: none;
}

.cta span {
  padding-bottom: 7px;
  letter-spacing: 4px;
  font-size: 12px;
  padding-right: 15px;
  text-transform: uppercase;
}

.cta svg {
  transform: translateX(-8px);
  transition: all 0.3s ease;
}

.cta:hover svg {
  transform: translateX(0);
}

.cta:active svg {
  transform: scale(0.9);
}

.hover-underline-animation {
  position: relative;
  color: #ffffff;
  padding-bottom: 20px;
}

.hover-underline-animation:after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #ffffff;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.cta:hover .hover-underline-animation:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}
.cta svg #Path_10 {
  fill: white;
}

/* media query */

@media (max-width: 1440px) {
  .slider .list .item .content h2 {
    font-size: 40px;
  }
  .slider .list .item .content p {
    font-size: 18px;
  }
  .cta span {
    font-size: 12px;
  }
}

@media (max-width: 1024px) {
  header .logo {
    height: 80px;
  }
  .slider .list .item .content h2 {
    font-size: 35px;
  }
  .slider .list .item .content p {
    font-size: 18px;
  }
  .cta span {
    font-size: 12px;
  }
}

@media (max-width: 992px) {
  header .logo {
    height: 80px;
  }
  .slider .list .item .content h2 {
    font-size: 40px;
  }
  .slider .list .item .content p {
    font-size: 18px;
  }
  .cta span {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  header .logo {
    height: 70px;
  }
  header .menu {
    display: none;
  }
  header .search {
    display: none;
  }
  .slider .list .item .content h2 {
    font-size: 35px;
  }
  .slider .list .item .content p {
    font-size: 16px;
  }
  .cta span {
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  header .logo {
    height: 70px;
  }
  .slider .list .item .content h2 {
    font-size: 30px;
  }
  .slider .list .item .content p {
    font-size: 14px;
  }
  .cta span {
    font-size: 10px;
  }
}
@media (max-width: 480px) {
  header .logo {
    height: 60px;
  }
  .slider .list .item .content h2 {
    font-size: 25px;
  }
  .slider .list .item .content p {
    font-size: 14px;
  }
  .cta span {
    font-size: 10px;
  }
}
@media (max-width: 360px) {
  header .logo {
    height: 50px;
  }
  .slider .list .item .content h2 {
    font-size: 30px;
  }
  .slider .list .item .content p {
    font-size: 12px;
  }
  .cta span {
    font-size: 10px;
  }
}
@media (max-width: 320px) {
  header .logo {
    height: 40px;
  }
  .slider .list .item .content h2 {
    font-size: 30px;
  }
  .slider .list .item .content p {
    font-size: 12px;
  }
  .cta span {
    font-size: 10px;
  }
}
@media (max-width: 280px) {
  header .logo {
    height: 40px;
  }
  .slider .list .item .content h2 {
    font-size: 30px;
  }
  .slider .list .item .content p {
    font-size: 12px;
  }
  .cta span {
    font-size: 10px;
  }
}

/* For viewports shorter than 800px */
@media (max-height: 720px) {
  .thumbnail {
    height: 200px;
  }
  .thumbnail .item {
    height: 170px;
  }
}

/* For viewports shorter than 600px */
@media (max-height: 650px) {
  .thumbnail {
    height: 150px;
  }
  .thumbnail .item {
    height: 120px;
  }
}

/* For viewports shorter than 400px */
@media (max-height: 600px) {
  .thumbnail {
    height: 100px;
  }
  .thumbnail .item {
    height: 80px;
  }
}
