@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;500;700&family=Special+Elite&display=swap");
/* common style  */
html {
  cursor: default;
  font-size: 62.5%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  background-color: rgb(182, 176, 176);
  font-family: "Josefin Sans", sans-serif;
}
.section {
  transition: all 0.3s linear;
  margin-bottom: 5vh;
}
.rotate {
  width: 85%;
  transform: perspective(300rem) rotateY(30deg);
  transform-origin: left;
  margin-left: 15%;
}
.heading {
  font-family: "Special Elite", cursive;
  font-size: 6rem;
  font-weight: bolder;
  text-align: center;
  letter-spacing: 0.8rem;
  text-shadow: 0.4rem 0.4rem 0.5rem black;
}
/* end of common style  */

/* navbar */
.navbar {
  width: 0%;
  height: 100vh;
  background-color: white;
  position: fixed;
  top: 0;
  overflow: hidden;
  transition: all 0.3s linear;
}
.navbar > div {
  padding: 5vh;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}
.nav-items {
  font-size: 1.6rem;
  cursor: pointer;
  color: grey;
  font-weight: 700;
  text-decoration: none;
}
.nav-items:hover {
  color: black;
}
.navwidth {
  width: 15%;
}
/* end of navbar */

/* navbar button  */
.burger {
  width: 8rem;
  height: 5rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 1.5rem 0 0 2rem;
  box-sizing: border-box;
  margin-top: 3rem;
  cursor: pointer;
  transition: all 0.3s linear;
  z-index: 100;
}
.side {
  margin-left: 15%;
}
.line {
  width: 100%;
  height: 0.4rem;
  background-color: white;
  box-shadow: 0.2rem 0.2rem 0.4rem black;
  border-radius: 5px;
  margin-bottom: 4px;
  transition: all 0.3s linear;
}
.line-1 {
  transform: rotate(-45deg);
}
.line-2 {
  transform: rotate(45deg);
}
/* end of navbar button  */

/* section-1 */
.section-1 {
  width: 98%;
  height: 100vh;
  background-image: url("bg-section1.jpg");
  display: flex;
  justify-content: center;
  align-items: center;
}
.top-content {
  width: 100%;
  height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.heading-1 {
  color: white;
}
.head-img {
  height: 80%;
  /* width: 100%; */
}
/* end of section-1 */

/* section-2 */
.section-2 {
  width: 98%;
  height: 100%;
  background-color: rgb(219, 213, 213);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20vh;
  padding: 10vh 0;
}
.heading-2 {
  color: white;
}
.popular-car-div {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}
.popular-card {
  width: 360px;
  height: 300px;
  background-color: white;
  border-radius: 5px;
  padding: 8px 8px 0 8px;
  box-sizing: border-box;
  box-shadow: 0.4rem 0.4rem 0.5rem rgba(0, 0, 0, 0.5);
  opacity: 0.7;
  transition: opacity 0.4s linear;
  margin-bottom: 3vh;
}
.popular-card:hover {
  opacity: 1;
}
.popular-car-photo {
  width: 100%;
  height: 27vh;
  border-radius: 5px;
}
.popular-car-price {
  font-size: 1.6rem;
  color: grey;
}
.popular-car-more {
  font-size: 1.6rem;
  font-family: "Special Elite", cursive;
  border-radius: 3px solid rgb(180, 179, 179);
  border-radius: 5px;
  box-shadow: 0.2rem 0.2rem 0.4rem grey;
  color: white;
  text-shadow: 0.4rem 0.2rem 0.3rem grey, -0.4rem 0.2rem 0.3rem grey;
  font-weight: bolder;
  text-align: center;
  padding: 5px;
  letter-spacing: 0.3rem;
  cursor: pointer;
}
/* end of section-2 */

/* section-3 */
.section-3 {
  width: 98%;
  height: 100%;
  background-color: #2c2c2c;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 15vh;
}
.video-div {
  width: 100%;
  height: 100%;
  padding: 5px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}
.video-vid {
  width: 400px;
  height: 210px;
  margin-bottom: 5vh;
  border-radius: 5px;
  box-shadow: 0.4rem 0.4rem 0.4rem black;
}
/* end of section-3 */

/* section-4 */
.section-4 {
  width: 98%;
  height: 100%;
  background-color: rgb(241, 238, 220);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 15vh;
  padding-bottom: 5vh;
}
.gallery {
  width: 100%;
  margin: 10rem 0;
  perspective: 10rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.gallery-shelf {
  width: 80%;
  height: 3rem;
  background-color: rgba(38, 126, 199, 0.8);
  margin: auto;
  position: relative;
  box-shadow: 1rem 1rem 5rem #444;
}
.gallery-shelf::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 10rem;
  background-color: rgba(34, 152, 248, 0.7);
  top: -10rem;
  transform: rotateX(20deg);
  transform-origin: bottom;
}
.gallery img {
  width: 15%;
  position: absolute;
  bottom: 6rem;
  transform: translateX(-50%) rotateX(0.5deg);
  box-shadow: 0.2rem -0.2rem 0.5rem #888;
  border-radius: 0.5rem;
  transform-origin: bottom;
  transition: all 0.3s;
}
.gallery img:hover {
  transform: translateX(-50%) rotateX(0);
  box-shadow: 0 0.2rem 0.3rem #888;
}
.gallery-img-1 {
  left: 50%;
}
.gallery-img-2 {
  left: 30%;
}
.gallery-img-3 {
  left: 70%;
}
/* end of section-4 */

/* section-5 */
.section-5 {
  width: 98%;
  height: 100vh;
  background: url("bg-section5.jpg") no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.form {
  width: 50%;
  height: 60vh;
  background-color: rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  border: 10px solid white;
  margin-bottom: 4vh;
}
.input-field {
  width: 80%;
  height: 8%;
  border: 3px solid white;
  background-color: transparent;
  box-sizing: border-box;
  padding: 3.5px;
  color: rgba(0, 0, 0, 0.6);
  font-size: 1.5rem;
  font-weight: bold;
  outline: none;
}
.input-field::placeholder {
  font-family: "Josefin Sans", sans-serif;
  color: rgba(0, 0, 0, 0.6);
  font-size: 1.5rem;
  font-weight: bold;
}
.form > textarea {
  max-width: 80%;
  height: 30%;
  min-height: 30%;
  min-width: 30%;
}
.form > button {
  letter-spacing: 1px;
  background-color: white;
  color: black;
  cursor: pointer;
}
.copy-text {
  color: white;
  font-size: 1.6rem;
  letter-spacing: 1px;
  word-spacing: 2px;
}
/* end of section-5 */

/* media query */
@media screen and (max-width: 1000px) {
  .head-img {
    width: 100%;
  }
}
@media screen and (max-width: 800px) {
  html {
    font-size: 55%;
  }
  .navbar > div {
    padding: 5vh 0 5vh 0;
  }
  .form {
    width: 90%;
  }
}
@media screen and (max-width: 450px) {
  .video-vid,
  .popular-card {
    width: 95%;
  }
  .navwidth {
    width: 30%;
  }
  .rotate {
    width: 75%;
    margin-left: 30%;
  }
}
/* end of media query */
