@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");
::selection {
  background-color: var(--main-color);
  color: white;
}
* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
  transition: all 0.3s ease;
  /* overflow-x: hidden; */
  /* overflow-y: hidden; */
}
:root {
  --main-color: #fe5b3d;
  --second-color: #ffac38;
  --text-color: #444;
  --gradient: linear-gardient(#fe5b3d, #ffac38);
}
/* =============Scroll bar ===============*/
html::-webkit-scrollbar {
  width: 0.5rem;
}
html::-webkit-scrollbar-track {
  background: transparent;
}
html::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
  border-radius: 5rem;
}
/*====================== STYLES====================== */
section {
  padding: 50px 100px;
}
header {
  position: sticky;
  width: 100vw;
  top: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background-color: #eeeff1;
  /* padding: 15px 100px; */
  /* overflow-x: auto; */
}
.logo img {
  width: 40px;
}
.navbar {
  display: flex;
}
.navbar li {
  position: relative;
}
.navbar a {
  font-size: 1rem;
  color: var(--text-color);
  padding: 10px 20px;
  font-weight: 500;
}
.navbar li a::after {
  content: "";
  width: 0;
  height: 3px;
  background: #fe5b3d;
  position: absolute;
  bottom: -4px;
  left: 0;
  transition: width 0.5s;
}
.navbar li a:hover::after {
  width: 100%;
}
#menu-icon {
  font-size: 24px;
  cursor: pointer;
  z-index: 10001;
  display: none;
}
.header{
  overflow-x: hidden;
}
.header-btn a {
  padding: 10px 20px;
  color: var(--text-color);
  font-weight: 500;
  cursor: pointer;
}
.header-btn .sign-in {
  background-color: #474fa0;
  color: white;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}
.header-btn .sign-in:hover {
  background-color: var(--main-color);
}
.home {
  width: 100vw;
  height: 100vh;
  position: relative;
  background: url(./images/Car\ Website\ –\ 1@2x.png);
  background-repeat: repeat;
  background-size: cover;
  background-position: center;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
}
.text h1 {
  font-size: 3.5rem;
  letter-spacing: 2px;
}
.text span {
  color: var(--main-color);
}
.text p {
  margin: 0.5rem 0 1rem;
}
.app-stores {
  display: flex;
}
.app-stores img {
  width: 10vw;
  margin-right: 1rem;
  cursor: pointer;
}
.form-container form {
  position: absolute;
  display: flex;
  flex-wrap: wrap;
  flex-grow: 1;
  align-items: center;
  gap: 1rem;
  bottom: 4rem;
  left: 4rem;
  padding: 20px;
  background-color: white;
  border-radius: 0.5rem;
}
.input-box {
  display: flex;
  flex-direction: column;
}
.input-box span {
  font-weight: 500;
}
.input-box input {
  padding: 7px;
  outline: none;
  border: none;
  background-color: #eeeff1;
  border-radius: 0.5rem;
  font-size: 1rem;
}
.form-container form .submit-btn {
  padding: 10px 34px;
  border: none;
  border-radius: 0.5rem;
  background-color: #474fa0;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  transform: translateY(0.7rem);
  transition: all 0.3s ease;
}
.form-container form .submit-btn:hover {
  background-color: var(--main-color);
}

/* ============Ride=========== */
.heading {
  text-align: center;
}
.heading span {
  font-weight: 500;
  text-transform: uppercase;
}
.heading h1 {
  font-size: 2rem;
}
.ride-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, auto));
  gap: 1rem;
  margin-top: 2rem;
}
.ride-container .box {
  text-align: center;
  padding: 20px;
}
.ride-container .box .bx {
  font-size: 2rem;
  padding: 0.8rem;
  background-color: #eeeff1;
  color: #474fa0;
  border-radius: 0.5rem;
}
.ride-container .box h2 {
  font-size: 1.3rem;
  font-weight: 500;
  margin: 1.4rem 0 0.5rem;
}
.ride-container .box .bx:hover {
  color: var(--main-color);
  background-color: var(--gradient);
}
.services-container .box .btn {
  display: inline-block;
  background-color: #474fa0;
  color: white;
  border-radius: 0.5rem;
  padding: 0.5rem;
  text-align: center;
  width: 100%;
  transition: all 0.3s ease;
}
.services-container .box .btn:hover {
  background-color: var(--main-color);
}
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, auto));
  gap: 1rem;
  margin-top: 2rem;
  align-items: center;

}
.services-container .box {
  padding: 10px;
  border-radius: 1rem;
  box-shadow: 1px 4px 41px rgba(0, 0, 0, 0.1);
}
@media screen and (max-width:350px) {
  .services-container .box {
   max-width: 240px;
  }
}
.services-container .box .box-img {
  width: 100%;
  height: 200px;
  margin-bottom: 1rem;
  overflow: hidden;
  display: block;
}
.services-container .box .box-img img {
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  object-fit: cover;
  object-position: center;
}
.services-container .box p {
  padding: 0 10px;
  border: 1px solid var(--text-color);
  width: 58px;
  border-radius: 0.5rem;
  margin: 1rem 0 1rem;
}
.services-container .box h2 {
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--main-color);
}
.services-container .box h2 span {
  font-size: 1rem;
  color: var(--text-color);
}
.about-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  align-items: center;
}
.about-img img {
  width: 100%;
}
.about-text span {
  font-weight: 500;
  color: var(--main-color);
  text-transform: uppercase;
}
.about-text p {
  font-size: 1rem;
  color: var(--text-color);
  margin: 0.5rem 0 1.4rem;
}
.about-text .btn {
  padding: 10px 20px;
  border: none;
  border-radius: 0.5rem;
  background-color: #474fa0;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}
.about-text .btn:hover {
  background-color: var(--main-color);
}
.reviews-container .reviews-img {
  width: 70px;
  height: 70px;
}
.reviews-container .reviews-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 2px solid var(--main-color);
}

.reviews-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, auto));
  gap: 1rem;
  margin-top: 2rem;
}
.reviews-container .box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  background-color: #fff;
  box-shadow: 1px 4px 41px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
}
.reviews-container .box h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.4rem;
}
.stars > i {
  color: var(--main-color);
}
.reviews-container .box p {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.newsletter {
  background: linear-gradient(
    to top right,
    var(--main-color),
    var(--second-color)
  );
  display: flex;
  flex-direction: column;
  align-items: center;
}
.newsletter .center h2 {
  color: #fff;
  font-size: 1.8rem;
}
.newsletter .center .box {
  margin-top: 1rem;
  background: #fff;
  border-radius: 0.5rem;
  padding: 4px 8px;
  width: 100%;
  height: 3rem;
  display: flex;
  justify-content: space-between;
}
.newsletter .center .box input {
  border: none;
  outline: none;
}
.newsletter .center .box button {
  border: none;
  padding: 0.3rem 1rem;
  color: #fff;
  font-size: 0.9rem;
  background-color: #474fa0;
  border-radius: 0.5rem;
}
.newsletter .center .box button:hover {
  background-color: var(--main-color);
}
.copyright {
  padding: 20px;
  display: flex;
  justify-content: space-between;
}
.copyright p span {
  color: #fe5b3d;
  font-weight: 700;
  letter-spacing: 0.2rem;
}
.social {
  margin-right: 2.5rem;
}
.social a i {
  color: #474fa0;
  font-size: 1.5rem;
  padding: 0.5rem;
  font-size: 1.5rem;
  background-color: #474fa0;
  color: #fff;
  border-radius: 50%;
  transition: all 0.25s ease;
}
.social a i:hover {
  background-color: var(--main-color);
}
.home-button span i {
  position: fixed;
  right: 1rem;
  bottom: 1.2rem;
  z-index: 100001;
  background-color: #474fa0;
  color: #fff;
  padding: 0.5rem;
  font-size: 1.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
}
.home-button span i:hover {
  background-color: var(--main-color);
}

/* ============Media Queries=================== */

@media (max-width: 991px) {
  header {
    padding: 18px 40px;
  }
  section {
    padding: 50px 40px;
  }
  .home {
    background-position: left;
  }
}
@media (max-width: 881px) {
  /* .form-container {
    width: fit-content;
  } */

  .form-container form {
    left: 40px;
    bottom: 0.2px;
  }
  .form-container form .submit-btn {
    display: inline-block;
    width: 100%;
  }
}
@media (max-width: 790px) {
  header {
    padding: 11px 40px;
  }

  #menu-icon {
    display: inline-block;
  }
  .sign-up {
    display: none;
  }
  .text h1 {
    font-size: 2.5rem;
  }
  .home {
    grid-template-columns: 1fr;
  }
  .form-container form {
    position: unset;
  }
  header .navbar {
    position: absolute;
    top: -500px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    box-shadow: 1px 4px 41px rgba(0, 0, 0, 0.1);
    transition: 0.2s ease;
    text-align: left;
  }
  .social {
    display: none;
  }
  .navbar.active{
    top: 100%;
  }
  header .navbar a{
    padding: 1rem;
    border-left: 2px solid var(--main-color);
    margin: 1rem;
    display: block;
  }
  .navbar a:hover{
    color: #fff;
    background-color: var(--main-color);
    border: none;
  }
  .navbar a:after{
    display: none;
  }
  header span{
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1rem;
  }
  header h1{
    font-size: 1.3rem;
  }
}
@media (max-width:576px){
  .about-container{
    grid-template-columns: 1fr;
  }
}
@media (max-width:350px){
  .form-container{
    padding-top: 2rem;
  }
}
