@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");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: red;
}

body {
  background: black;
  font-family: "Poppins", sans-serif;
  display: flex;
  flex-direction: column;
}

header {
  position: absolute;
  top: 0%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 100px;
  z-index: 10;
}

.logo {
  font-size: 30px;
  color: #ffffff;
  letter-spacing: 1px;
  font-weight: 800;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav li a::after {
  content: "";
  width: 0%;
  height: 2px;
  background-color: var(--primary);
  position: absolute;
  bottom: -4px;
  left: 0;
  transition: 1s;
}

.nav li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.5s;
  margin-right: 50px;
}
.nav li a:hover {
  color: var(--primary);
  border-bottom: 1px solid;
  transform: scale(1.5);
  filter: brightness(0.8);
}

.search {
  position: relative;
  width: 300px;
  height: 40px;
}

.search input {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  color: #ffffff;
  background: transparent;
  border: 1 solid rgba(255, 255, 255, 0.5);
  outline: none;
  border-radius: 4px;
  padding: 0 10px 0 45px !important;
  backdrop-filter: blur(10px);
}

.search input::placeholder {
  color: #ffffff;
}
.search i {
  position: absolute;
  top: 60%;
  transform: translateY(-50%);
  left: 10px;
  padding-right: 10px;
  color: #ffffff;
  border-right: 1px solid #ffffff;
}

.banner .content {
  margin-top: 250px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  margin: 0 30px;
  z-index: 10;
}

.banner {
  position: relative;
  width: 100%;
  min-height: 50vh;
  /* padding: 0 80px; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: url("./movies/bg-the-red-one.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: 0.5s;
}

.banner::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.content {
  position: absolute;
  min-width: 550px;
  display: none;
  visibility: hidden;
  transform: scale(0);
  transition: 0.5s;
}

.content.active {
  display: flex;
  justify-content: space-around;
  align-items: center;
  visibility: visible;
  transform: scale(1);
  transition: 0.5s;
}

.banner .content p {
  max-width: 600px;
}

.movie-title {
  min-width: 250px;
  height: 80px;
  display: flex;
  margin-right: 50px;
  margin-left: 50px;
  background-size: cover;
}

.banner .button {
  color: aqua;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 10px;
  margin-top: 50px;
}

.banner .button a {
  position: relative;
  display: inline-block;
  margin-top: 20px;
  background: var(--primary);
  color: #ffffff;
  padding: 4px 10px;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: 0.5s;
  cursor: pointer;
  width: 100%;
  border-radius: 10%;
}

.banner .button a:hover {
  transform: scale(1.2);
  filter: brightness(0.8);
}

.banner .button a:nth-child(2) {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.banner .button a:hover:nth-child(2) {
  background: var(--primary);
}

.banner .button a {
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-box {
  position: relative;
  max-height: 400px;
  max-width: 100%;
  height: 400px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(27, 17, 17, 0.2);
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding-top: 1px;
  padding-bottom: 1px;
  margin-top: 1px;
  margin-bottom: 30px;
}

.carousel {
  position: relative;
  perspective: 1500px;
}

.carousel .carousel-item {
  width: 250px;
  cursor: pointer;
}

.carousel .carousel-item img {
  max-width: 230px;
  border-radius: 10px;
  transform: translateX(8px) translateY(-100px);
  object-fit: cover;
  object-position: center;
}

.play-box {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.play {
  position: relative;
  left: 100px;
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  font-size: 1.2em;
  cursor: pointer !important;
  transition: 0.3s;
}

.play i {
  margin-right: 10px;
  font-size: 40px;
  cursor: pointer !important;
}

.play:hover {
  color: var(--primary);
  transform: scale(1.2);
  filter: brightness(0.8);
}

.sci {
  position: relative;
  right: 30px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  text-decoration: none;
}

.sci a {
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 1px;
  font-size: 25px;
  cursor: pointer !important;
  transition: 0.3s;
}

.sci a:hover {
  color: var(--primary);
}

.trailer {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(20px);
  visibility: hidden;
  opacity: 0;
  transition: 0.5s;
}

.trailer.active {
  visibility: visible;
  opacity: 1;
}

.trailer video {
  max-width: 900px;
  outline: none;
}

.close {
  position: absolute;
  top: 30px;
  right: 30px;
  cursor: pointer;
  filter: invert(1);
  max-width: 30px;
}

@media (max-width: 990px) {
  body {
    flex-direction: column;
    padding: 0 20px;
  }

  header {
    flex-direction: column;
    padding: 20px;
    align-items: flex-start;
  }

  .logo {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav li a {
    margin-right: 0;
    margin-bottom: 15px;
    font-size: 16px;
  }

  .search {
    width: 100%;
    margin-top: 20px;
  }

  .banner {
    min-height: 60vh;
    background-size: cover;
    margin-top: 50px;
  }

  .banner .content {
    margin: 150px 20px;
    text-align: center;
    align-items: center;
    flex-direction: column;
  }

  .banner .content h4 {
    max-width: 100%;
    font-size: 10px;
    margin-top: 30px;
  }

  .banner .content p {
    max-width: 100%;
    font-size: 10px;
  }

  .banner .button {
    flex-direction: row;
    justify-content: center;
    margin-top: 20px;
  }

  .banner .button a {
    margin: 10px;
    padding: 10px 15px;
    font-size: 14px;
  }

  .carousel-box {
    max-height: 300px;
    height: auto;
    padding: 10px;
    margin: 20px 0;
  }

  .carousel .carousel-item {
    width: 180px;
  }

  .carousel .carousel-item img {
    max-width: 100%;
    transform: translateX(0) translateY(0);
  }

  .play-box {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .play {
    left: 0;
    font-size: 1em;
    text-align: center;
    margin-bottom: 15px;
  }

  .sci {
    gap: 15px;
    margin-left: 30px;
    justify-content: center;
    align-items: center;
  }

  .trailer video {
    max-width: 90%;
    height: auto;
  }
}

@media (max-width: 430px) {
  body {
    padding: 0 10px;
    display: block;
  }

  header {
    padding: 15px;
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav li a {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .search {
    width: 100%;
    margin-top: 10px;
  }

  .banner {
    min-height: 100vh;
    background-size: cover;
    margin-top: 20px;
  }

  .banner .content {
    margin: 80px 10px;
    text-align: center;
    align-items: flex-end;
    flex-direction: column;
    min-width: 40vh;
  }

  .banner .content p {
    font-size: 8px;
  }

  .banner .button a {
    font-size: 12px;
    margin: 5px;
    padding: 8px 15px;
  }

  .carousel-box {
    max-height: 250px;
    height: auto;
    margin: 10px 0;
  }

  .carousel .carousel-item {
    width: 150px;
  }

  .carousel .carousel-item img {
    max-width: 100%;
  }

  .play-box {
    flex-direction: column;
    align-items: center;
  }

  .play {
    font-size: 14px;
  }

  .sci {
    gap: 15px;
    justify-content: center;
  }

  .trailer video {
    max-width: 95%;
  }
}
