

  @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&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');


/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
}

body {
  font-family: "Poppins", sans-serif;
  color: white;
  font-size: 12px;
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}


/* =========================================================
   HEADER
========================================================= */

header {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 70px;

  display: flex;
  align-items: center;

  z-index: 100;

  padding: 0 5%;
}

header nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

header a {
  position: relative;

  color: white;

  font-size: 14px;
  font-weight: 500;

  white-space: nowrap;

  text-shadow: 0 2px 8px rgba(0,0,0,.4);

  transition: opacity .3s ease;
}

header a:hover {
  opacity: .65;
}

header a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -7px;

  width: 0;
  height: 1px;

  background: white;

  transition: width .3s ease;
}

header a:hover::after {
  width: 100%;
}


/* =========================================================
   CAROUSEL
========================================================= */

.carousel {
  position: fixed;

  inset: 0;

  width: 100%;
  height: 100dvh;

  overflow: hidden;

  margin: 0;
}


/* =========================================================
   SLIDES
========================================================= */

.carousel .list .item {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;
}

.carousel .list .item img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}


/* =========================================================
   DARK OVERLAY
========================================================= */

.carousel .list .item::after {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,.42),
      rgba(0,0,0,.05) 65%
    );

  pointer-events: none;
}


/* =========================================================
   CONTENT
========================================================= */

.carousel .list .item .content {
  position: absolute;

  z-index: 5;

  top: 50%;

  left: 50%;

  transform: translate(-50%, -50%);

  width: min(1100px, 90%);

  padding-right: 35%;

  color: white;

  text-shadow: 0 4px 15px rgba(0,0,0,.45);
}


/* AUTHOR */

.carousel .list .item .content .author {
  margin-bottom: 12px;

  font-size: 13px;
  font-weight: 600;

  letter-spacing: 8px;

  text-transform: uppercase;
}


/* TITLE */

.carousel .list .item .content .title,
.carousel .list .item .content .topic {

  display: inline-block;

  margin: 0;

  font-size: clamp(55px, 7vw, 105px);

  font-weight: 700;

  line-height: .95;

  font-style: italic;

  letter-spacing: -3px;

  background: rgba(255, 0, 0, .55);

  padding: 3px 14px;
}


/* TOPIC */

.carousel .list .item .content .topic {

  color: white;

  background: rgba(255, 143, 0, .75);

  margin-top: 5px;
}


/* DESCRIPTION */

.carousel .list .item .content .des {

  max-width: 650px;

  margin-top: 25px;

  padding: 18px 22px;

  border-radius: 15px;

  background: rgba(20,20,20,.25);

  backdrop-filter: blur(5px);

}

.carousel .list .item .content .des h1 {

  margin: 0;

  font-size: clamp(18px, 2vw, 28px);

  font-weight: 500;

  line-height: 1.35;

}


/* =========================================================
   BUTTONS
========================================================= */

.carousel .list .item .content .buttons {

  display: flex;

  gap: 10px;

  margin-top: 25px;
}

.carousel .list .item .content button {

  min-width: 140px;
  height: 45px;

  border: 0;

  background: white;

  color: #111;

  letter-spacing: 2px;

  font-family: "Poppins", sans-serif;

  font-weight: 600;

  cursor: pointer;

  transition:
    transform .3s ease,
    background .3s ease,
    color .3s ease;
}

.carousel .list .item .content button:hover {
  transform: translateY(-3px);

  background: #111;

  color: white;
}

.carousel .list .item .content button a {
  display: flex;

  width: 100%;
  height: 100%;

  align-items: center;
  justify-content: center;

  color: inherit;
}


/* =========================================================
   THUMBNAILS
========================================================= */

.thumbnail {

  position: absolute;

  z-index: 100;

  right: 5%;
  bottom: 45px;

  display: flex;

  gap: 15px;

  width: auto;

  max-width: 45%;

  overflow: hidden;
}

.thumbnail .item {

  position: relative;

  flex-shrink: 0;

  width: 135px;
  height: 190px;
}

.thumbnail .item img {

  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  border-radius: 18px;

  box-shadow:
    0 10px 30px rgba(0,0,0,.25);

}

.thumbnail .item .content {

  position: absolute;

  z-index: 2;

  left: 12px;
  right: 12px;
  bottom: 12px;

  color: white;

  text-shadow: 0 2px 8px rgba(0,0,0,.7);
}

.thumbnail .item .content .title {

  font-size: 13px;

  font-weight: 700;
}

.thumbnail .item .content .des {

  font-size: 10px;

  opacity: .8;
}


/* =========================================================
   ARROWS
========================================================= */

.arrows {

  position: absolute;

  z-index: 200;

  left: 5%;
  bottom: 55px;

  display: flex;

  gap: 10px;
}

.arrows button {

  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: rgba(0,0,0,.25);

  border: 1px solid rgba(255,255,255,.5);

  color: white;

  font-family: monospace;

  font-size: 20px;
  font-weight: bold;

  cursor: pointer;

  transition:
    background .3s ease,
    color .3s ease,
    transform .3s ease;
}

.arrows button:hover {

  background: white;

  color: #222;

  transform: scale(1.08);
}


/* =========================================================
   FIRST SLIDE
========================================================= */

.carousel .list .item:nth-child(1) {
  z-index: 1;
}

.carousel .list .item:nth-child(1) .author,
.carousel .list .item:nth-child(1) .title,
.carousel .list .item:nth-child(1) .topic,
.carousel .list .item:nth-child(1) .des,
.carousel .list .item:nth-child(1) .buttons {

  transform: translateY(50px);

  filter: blur(20px);

  opacity: 0;

  animation:
    showContent 1s 1s linear 1 forwards;
}

.carousel .list .item:nth-child(1) .title {
  animation-delay: 1.2s;
}

.carousel .list .item:nth-child(1) .topic {
  animation-delay: 1.4s;
}

.carousel .list .item:nth-child(1) .des {
  animation-delay: 1.6s;
}

.carousel .list .item:nth-child(1) .buttons {
  animation-delay: 1.8s;
}

@keyframes showContent {

  to {

    opacity: 1;

    filter: blur(0);

    transform: translateY(0);
  }
}


/* =========================================================
   NEXT ANIMATION
========================================================= */

.carousel.next .list .item:nth-child(1) img {

  width: 135px;
  height: 190px;

  position: absolute;

  left: calc(100% - 5% - 135px);
  bottom: 45px;

  border-radius: 18px;

  animation:
    showImage 1s linear 1 forwards;
}

@keyframes showImage {

  to {

    width: 100%;
    height: 100%;

    left: 0;
    bottom: 0;

    border-radius: 0;
  }
}


.carousel.next .thumbnail .item:nth-last-child(1) {

  width: 0;

  overflow: hidden;

  animation:
    showThumbnail .5s linear 1 forwards;
}

@keyframes showThumbnail {

  to {
    width: 135px;
  }
}


.carousel.next .thumbnail {

  transform: translateX(135px);

  animation:
    transformThumbnail .5s linear 1 forwards;
}

@keyframes transformThumbnail {

  to {
    transform: translateX(0);
  }
}


/* =========================================================
   PREVIOUS ANIMATION
========================================================= */

.carousel.prev .list .item:nth-child(2) {
  z-index: 2;
}

.carousel.prev .list .item:nth-child(2) img {

  position: absolute;

  bottom: 0;
  left: 0;

  animation:
    outImage 1s linear 1 forwards;
}

@keyframes outImage {

  to {

    width: 135px;
    height: 190px;

    border-radius: 18px;

    left: calc(100% - 5% - 135px);

    bottom: 45px;
  }
}


.carousel.prev .thumbnail .item:nth-child(1) {

  width: 0;

  overflow: hidden;

  opacity: 0;

  animation:
    showThumbnail .5s linear 1 forwards;
}


.carousel.prev .list .item:nth-child(2) .author,
.carousel.prev .list .item:nth-child(2) .title,
.carousel.prev .list .item:nth-child(2) .topic,
.carousel.prev .list .item:nth-child(2) .des,
.carousel.prev .list .item:nth-child(2) .buttons {

  animation:
    contentOut 1.5s linear 1 forwards;
}

@keyframes contentOut {

  to {

    transform: translateY(-150px);

    filter: blur(20px);

    opacity: 0;
  }
}


/* =========================================================
   DISABLE BUTTONS DURING ANIMATION
========================================================= */

.carousel.next .arrows button,
.carousel.prev .arrows button {

  pointer-events: none;
}


/* =========================================================
   PROGRESS BAR
========================================================= */

.time {

  position: absolute;

  z-index: 300;

  top: 0;
  left: 0;

  width: 0;
  height: 4px;

  background: #f1683a;
}

.carousel.next .time,
.carousel.prev .time {

  width: 100%;

  animation:
    timeRunning 2s linear 1 forwards;
}

@keyframes timeRunning {

  to {
    width: 0;
  }
}


/* =========================================================
   TABLET
========================================================= */

@media screen and (max-width: 1000px) {

  header {
    padding: 0 4%;
  }

  header nav {
    gap: 25px;
  }

  header a {
    font-size: 13px;
  }

  .carousel .list .item .content {

    width: 90%;

    max-width: none;

    padding-right: 25%;
  }

  .carousel .list .item .content .title,
  .carousel .list .item .content .topic {

    font-size: clamp(48px, 8vw, 80px);
  }

  .carousel .list .item .content .des h1 {

    font-size: 20px;
  }

  .thumbnail {

    right: 4%;

    bottom: 35px;

    max-width: 40%;
  }

  .thumbnail .item {

    width: 110px;
    height: 155px;
  }

  .arrows {

    left: 4%;
    bottom: 45px;
  }

  .carousel.next .list .item:nth-child(1) img {

    width: 110px;
    height: 155px;

    left: calc(100% - 4% - 110px);

    bottom: 35px;
  }

  @keyframes showImage {

    to {

      width: 100%;
      height: 100%;

      left: 0;
      bottom: 0;

      border-radius: 0;
    }
  }

  @keyframes outImage {

    to {

      width: 110px;
      height: 155px;

      left: calc(100% - 4% - 110px);

      bottom: 35px;
    }
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 700px) {

  body {
    overflow: hidden;
  }


  /* ---------------------------------------------
     HEADER
  --------------------------------------------- */

  header {

    height: 65px;

    padding: 0 20px;

    align-items: center;
  }

  header nav {

    width: 100%;

    justify-content: space-between;

    gap: 10px;
  }

  header a {

    font-size: 11px;

    letter-spacing: .02em;
  }


  /* ---------------------------------------------
     IMAGE
  --------------------------------------------- */

  .carousel .list .item img {

    object-position: center;

  }


  /* ---------------------------------------------
     MOBILE OVERLAY
  --------------------------------------------- */

  .carousel .list .item::after {

    background:
      linear-gradient(
        180deg,
        rgba(0,0,0,.4),
        rgba(0,0,0,.05) 35%,
        rgba(0,0,0,.5) 100%
      );
  }


  /* ---------------------------------------------
     CONTENT
  --------------------------------------------- */

  .carousel .list .item .content {

    top: 48%;

    left: 20px;

    transform: translateY(-50%);

    width: calc(100% - 40px);

    padding: 0;

  }


  .carousel .list .item .content .author {

    margin-bottom: 10px;

    font-size: 9px;

    letter-spacing: 5px;
  }


  .carousel .list .item .content .title,
  .carousel .list .item .content .topic {

    font-size: clamp(42px, 14vw, 68px);

    line-height: .9;

    letter-spacing: -2px;

    padding: 3px 9px;
  }


  .carousel .list .item .content .topic {

    margin-top: 4px;
  }


  /* ---------------------------------------------
     DESCRIPTION
  --------------------------------------------- */

  .carousel .list .item .content .des {

    max-width: 100%;

    margin-top: 18px;

    padding: 14px 16px;

    border-radius: 12px;

    background: rgba(20,20,20,.35);
  }


  .carousel .list .item .content .des h1 {

    font-size: 15px;

    line-height: 1.4;

    font-weight: 500;
  }


  /* ---------------------------------------------
     BUTTON
  --------------------------------------------- */

  .carousel .list .item .content .buttons {

    margin-top: 18px;

    display: flex;

    width: 100%;
  }

  .carousel .list .item .content button {

    width: 130px;

    min-width: 130px;

    height: 42px;

    font-size: 10px;

    letter-spacing: 1.5px;
  }


  /* ---------------------------------------------
     THUMBNAILS
  --------------------------------------------- */

  .thumbnail {

    left: 20px;

    right: auto;

    bottom: 25px;

    width: calc(100% - 40px);

    max-width: none;

    gap: 10px;

    overflow: hidden;
  }

  .thumbnail .item {

    width: 78px;

    height: 105px;
  }

  .thumbnail .item img {

    border-radius: 12px;
  }

  .thumbnail .item .content {

    left: 7px;
    right: 7px;
    bottom: 7px;
  }

  .thumbnail .item .content .title {

    font-size: 9px;
  }

  .thumbnail .item .content .des {

    font-size: 7px;
  }


  /* ---------------------------------------------
     ARROWS
  --------------------------------------------- */

  .arrows {

    left: auto;

    right: 20px;

    bottom: 145px;

    gap: 7px;
  }

  .arrows button {

    width: 38px;
    height: 38px;

    font-size: 16px;
  }


  /* ---------------------------------------------
     NEXT ANIMATION MOBILE
  --------------------------------------------- */

  .carousel.next .list .item:nth-child(1) img {

    width: 78px;
    height: 105px;

    left: calc(100% - 20px - 78px);

    bottom: 25px;

    border-radius: 12px;
  }

  @keyframes showImage {

    to {

      width: 100%;
      height: 100%;

      left: 0;
      bottom: 0;

      border-radius: 0;
    }
  }


  /* ---------------------------------------------
     PREVIOUS ANIMATION MOBILE
  --------------------------------------------- */

  @keyframes outImage {

    to {

      width: 78px;
      height: 105px;

      left: calc(100% - 20px - 78px);

      bottom: 25px;

      border-radius: 12px;
    }
  }


  .carousel.next .thumbnail {

    transform: translateX(78px);
  }


  @keyframes transformThumbnail {

    to {
      transform: translateX(0);
    }
  }


  .carousel.next .thumbnail .item:nth-last-child(1) {

    width: 0;
  }

  @keyframes showThumbnail {

    to {
      width: 78px;
    }
  }


  /* ---------------------------------------------
     PROGRESS
  --------------------------------------------- */

  .time {
    height: 3px;
  }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media screen and (max-width: 420px) {

  header {
    height: 55px;
  }

  header nav {
    gap: 7px;
  }

  header a {
    font-size: 9px;
  }


  .carousel .list .item .content {

    top: 45%;

    width: calc(100% - 30px);

    left: 15px;
  }


  .carousel .list .item .content .author {

    font-size: 8px;

    letter-spacing: 4px;
  }


  .carousel .list .item .content .title,
  .carousel .list .item .content .topic {

    font-size: 38px;

    letter-spacing: -1.5px;
  }


  .carousel .list .item .content .des {

    margin-top: 14px;

    padding: 12px;
  }


  .carousel .list .item .content .des h1 {

    font-size: 13px;
  }


  .carousel .list .item .content button {

    width: 115px;

    min-width: 115px;

    height: 38px;

    font-size: 9px;
  }


  .thumbnail {

    left: 15px;

    width: calc(100% - 30px);

    bottom: 18px;
  }


  .thumbnail .item {

    width: 65px;

    height: 88px;
  }


  .carousel.next .list .item:nth-child(1) img {

    width: 65px;
    height: 88px;

    left: calc(100% - 15px - 65px);

    bottom: 18px;
  }


  @keyframes outImage {

    to {

      width: 65px;
      height: 88px;

      left: calc(100% - 15px - 65px);

      bottom: 18px;

      border-radius: 10px;
    }
  }


  .carousel.next .thumbnail {

    transform: translateX(65px);
  }


  .arrows {

    right: 15px;

    bottom: 120px;
  }

  .arrows button {

    width: 34px;
    height: 34px;
  }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {

    animation-duration: .01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: .01ms !important;
  }
}

