@import url("https://fonts.googleapis.com/css2?family=Racing+Sans+One&family=Roboto:wght@100;300;400;500;700;900&display=swap");

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

:root {
  --primary: #00c2de;
}

body {
  background-color: black;
  font-family: "Racing Sans One", sans-serif;
}

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

header::after {
  position: absolute;
  content: "";
  top: 50%;
  transform: translateY(-50%);
  left: 100px;
  width: 40%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

.year {
  font-family: "Racing Sans One", cursive;
  font-size: 1rem;
  color: #ffff;
  letter-spacing: 1px;
  font-weight: 800;
  margin-top: 40px;
  position: absolute;
  left: 100px;
  top: 20px;
}

.logo {
  font-size: 30px;
  color: white;
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  z-index: 2;
}

.logo img {
  max-width: 200px;
  filter: invert(1);
}

.menu {
  position: absolute;
  right: 100px;
  top: 20px;
  height: 30px;
  width: 30px;
  cursor: pointer;
  background: url(./assets/image/menu-3-fill.png) no-repeat;
  background-size: 30px;
  background-position: center;
  filter: invert(1);
}

.menu.active {
  position: absolute;
  height: 30px;
  width: 30px;
  cursor: pointer;
  background: url(./assets/image/close-line.png) no-repeat;
  background-size: 30px;
  background-position: center;
  filter: invert(1);
}

.nav {
  z-index: 200;
  position: absolute;
  right: 100px;
  top: 0;
  width: 30%;
  height: 5px;
  border-bottom: 5px solid;
  border-image: linear-gradient(
      90deg,
      transparent,
      var(--primary),
      var(--primary)
    )
    30;
  background: transparent;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 1s;
  transform: right;
}

.nav.active {
  top: 100px;
  width: 40%;
  height: 100px;
  border-top: 5px solid;
  border-image: linear-gradient(
      90deg,
      transparent,
      var(--primary),
      var(--primary),
      transparent
    )
    30;
  border-bottom: none;
}

.nav li {
  opacity: 0;
  visibility: hidden;
  position: relative;
  list-style: none;
  transform: translateY(-100px);
  transition: 0.5s;
}

.nav.active li {
  opacity: 1;
  visibility: visible;
  transform: translateY(0px);
}

.nav li a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-transform: uppercase;
  font-weight: 200;
  letter-spacing: 1px;
  padding: 8px 20px;
  cursor: pointer;
  transition: 0.2s;
}

.nav li a:hover {
  box-shadow: inset 0 0 20px rgba(0, 194, 222, 0.5);
}

.banner {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 0 100px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  transition: 0.5s;
}

.banner::after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.9)
  );
}

.banner::before {
  position: absolute;
  content: "";
  top: 25%;
  left: 0;
  width: 5px;
  height: 40%;
  background: linear-gradient(var(--primary), var(--primary), transparent);
  z-index: 100;
}

.banner .bg-video {
  display: none;
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner .bg-video.active {
  display: block;
}

.banner .content {
  position: relative;
  max-width: 700px;
  padding-bottom: 200px;
  z-index: 100;
}

.banner .content h1 {
  font-family: "Racing Sans One", cursive;
  font-size: 10em;
  color: white;
  line-height: 5px;
  line-height: 0.8em;
  font-weight: 500;
}

.banner .content .model {
  font-size: 4em;
  color: var(--primary);
  text-transform: uppercase;
  display: none;
}

.banner .content .model.active {
  display: block;
}

.banner .content p {
  color: white;
  font-weight: 200;
  letter-spacing: 1px;
  margin-bottom: 50px;
}

.banner .content a {
  position: relative;
  width: 200px;
  color: white;
  text-decoration: none;
  padding: 15px 20px;
  background: transparent;
  border-bottom: 3px solid;
  border-image: linear-gradient(
      90deg,
      transparent,
      var(--primary),
      var(--primary),
      transparent
    )
    30;
  box-shadow: inset 0 0 10px rgba(0, 194, 222, 0.5);
  backdrop-filter: blur(20px);
  font-size: 1.2em;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.5s;
}

.banner .content a:hover {
  box-shadow: inset 0 0 50px rgba(0, 194, 222, 0.5);
}

.banner .screen {
  position: absolute;
  bottom: 100px;
  right: 10%;
  width: 300px;
  height: 200px;
  transform-style: preserve-3d;
  animation: animate 30s linear infinite;
  z-index: 100;
}

@keyframes animate {
  0% {
    transform: rotateX(-30deg) rotateY(0deg);
  }

  100% {
    transform: rotateX(-30deg) rotateY(360deg);
  }
}

.screen div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.screen div span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(transparent, var(--primary));
  transform: rotateY(calc(90deg * var(--i))) translateZ(150px);
}

.shadow {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 300px;
  height: 200px;
  background: var(--primary);
  transform: rotateX(-90deg) translateZ(150px);
  filter: blur(20px);
  box-shadow:
    0 0 120px rgba(0, 194, 222, 0.2),
    0 0 120px rgba(0, 194, 222, 0.4),
    0 0 120px rgba(0, 194, 222, 0.6),
    0 0 120px rgba(0, 194, 222, 0.8),
    0 0 120px rgba(0, 194, 222, 1);
}

.screen div span video {
  position: absolute;
  bottom: 0;
  height: 75%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.trailer {
  display: none;
}
.trailer.active {
  display: block;
}

.banner .gallery {
  position: absolute;
  content: "";
  left: 100px;
  bottom: 0;
  width: 55%;
  height: 30%;
  z-index: 100;
  background: rgba(5, 5, 5, 0.7);
  box-shadow:
    0px 10px 40px rgba(0, 0, 0, 0.5),
    0px -10px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner .gallery::before{
  position: absolute;
  content: '';
  left: 0;
  bottom: 0;
  height: 10px;
  width: 100%;
  background: var(--primary);
  filter: blur(15px);
}

.banner .gallery .carousel{
  width: 100%;
  height: 100%;
}

.carousel .carousel-item{
  width: 250px;
  cursor: pointer;
}
.carousel .carousel-item img {
  border-radius: 10px;
  object-fit: cover;
  object-position: center;
}

.carousel .carousel-item h4 {
  text-align: center;
  color: var(--primary);
  font-size: 1.3em;
  font-weight: 200;
  letter-spacing: 1px;
}

.social{
  position: absolute;
  top: 50%;
  right: 100px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social li {
  list-style: none;
}

.social li a{
  text-decoration: none;
  color: white;
  font-size: 1.5em;
  transition: 0.3s;
}
.social li a:hover {
  color: var(--primary);
}

.banner .play,
.banner .pause {
  display: none;
  position: absolute;
  left: 70%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--primary);
  font-size: 8em;
  cursor: pointer;
  z-index: 100;
  opacity: 0.3;
  transition: 0.3s;
}

.banner .play:hover,
.banner .pause:hover {
  color: #ffffff;
  opacity: 1;
}

.banner .play.active {
  display: block;
}

.banner .pause.active {
  display: block;
}

/* Responsive Design */

/* Tablet and smaller laptops */
@media (max-width: 1200px) {
  header {
    padding: 20px 50px;
  }

  header::after {
    left: 50px;
    width: 30%;
  }

  .year {
    left: 50px;
  }

  .menu {
    right: 50px;
  }

  .nav {
    right: 50px;
    width: 40%;
  }

  .banner {
    padding: 0 50px;
  }

  .banner .content h1 {
    font-size: 7em;
  }

  .banner .content .model {
    font-size: 3em;
  }

  .banner .screen {
    right: 5%;
    width: 250px;
    height: 170px;
  }

  .banner .screen div span {
    transform: rotateY(calc(90deg * var(--i))) translateZ(125px);
  }

  .shadow {
    width: 250px;
    height: 170px;
    transform: rotateX(-90deg) translateZ(125px);
  }

  .banner .gallery {
    left: 50px;
    width: 50%;
  }

  .social {
    right: 50px;
  }

  .banner .play,
  .banner .pause {
    left: 75%;
    font-size: 6em;
  }
}

/* Tablets */
@media (max-width: 992px) {
  header::after {
    display: none;
  }

  .year {
    display: none;
  }

  .logo {
    left: 50%;
    transform: translateX(-50%);
  }

  .logo img {
    max-width: 150px;
  }

  .nav {
    right: 50px;
    width: 50%;
  }

  .nav.active {
    width: 60%;
  }

  .banner .content h1 {
    font-size: 5em;
  }

  .banner .content .model {
    font-size: 2.5em;
  }

  .banner .content p {
    font-size: 0.9em;
  }

  .banner .screen {
    display: none;
  }

  .shadow {
    display: none;
  }

  .banner .gallery {
    left: 50px;
    right: 50px;
    width: calc(100% - 100px);
    height: 25%;
  }

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

  .banner .play,
  .banner .pause {
    left: auto;
    right: 50px;
    top: 40%;
    transform: translateY(-50%);
    font-size: 5em;
  }

  .social {
    right: 50px;
    top: 55%;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  header {
    padding: 15px 30px;
  }

  .menu {
    right: 30px;
  }

  .logo img {
    max-width: 120px;
  }

  .nav {
    right: 0;
    width: 100%;
    border: none;
  }

  .nav.active {
    right: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    border: none;
    border-image: none;
  }

  .nav.active li {
    padding: 10px 0;
  }

  .nav li a {
    font-size: 1.2em;
    padding: 12px 25px;
  }

  .banner {
    padding: 100px 30px 50px;
    align-items: flex-start;
  }

  .banner::before {
    display: none;
  }

  .banner .content {
    padding: 80px 0 50px;
    max-width: 100%;
  }

  .banner .content h1 {
    font-size: 3.5em;
    line-height: 1em;
  }

  .banner .content .model {
    font-size: 1.8em;
  }

  .banner .content p {
    font-size: 0.85em;
    margin-bottom: 30px;
  }

  .banner .content a {
    font-size: 1em;
    padding: 12px 18px;
  }

  .banner .gallery {
    left: 0;
    right: 0;
    width: 100%;
    height: 22%;
    border-radius: 0;
  }

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

  .carousel .carousel-item h4 {
    font-size: 1em;
  }

  .banner .play,
  .banner .pause {
    right: 30px;
    top: 35%;
    font-size: 4em;
  }

  .social {
    position: fixed;
    bottom: 25%;
    top: auto;
    right: 15px;
    transform: none;
    gap: 8px;
    z-index: 200;
  }

  .social li a {
    font-size: 1.2em;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  header {
    padding: 10px 20px;
  }

  .menu {
    right: 20px;
    top: 15px;
  }

  .logo {
    top: 10px;
  }

  .logo img {
    max-width: 100px;
  }

  .nav.active li a {
    font-size: 1em;
    padding: 10px 20px;
  }

  .banner {
    padding: 80px 20px 50px;
  }

  .banner .content {
    padding: 60px 0 40px;
  }

  .banner .content h1 {
    font-size: 2.5em;
  }

  .banner .content .model {
    font-size: 1.4em;
  }

  .banner .content p {
    font-size: 0.8em;
    line-height: 1.5;
    margin-bottom: 25px;
  }

  .banner .content a {
    font-size: 0.9em;
    padding: 10px 15px;
  }

  .banner .gallery {
    height: 20%;
  }

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

  .carousel .carousel-item img {
    border-radius: 6px;
  }

  .carousel .carousel-item h4 {
    font-size: 0.85em;
  }

  .banner .play,
  .banner .pause {
    right: 20px;
    top: 30%;
    font-size: 3em;
  }

  .social {
    right: 10px;
    bottom: 22%;
    gap: 5px;
  }

  .social li a {
    font-size: 1em;
  }
}

/* Landscape mode for mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .banner {
    min-height: 100vh;
    padding: 80px 30px 20px;
  }

  .banner .content {
    padding: 20px 0;
  }

  .banner .content h1 {
    font-size: 3em;
  }

  .banner .content .model {
    font-size: 1.5em;
  }

  .banner .content p {
    margin-bottom: 15px;
  }

  .banner .gallery {
    height: 35%;
  }

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

  .banner .play,
  .banner .pause {
    top: 50%;
    font-size: 3em;
  }

  .social {
    bottom: 40%;
  }
}
