/* Google Font */
@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=Squada+One&display=swap");

* {
  padding: 0;
  margin: 0;
  scroll-behavior: smooth;
  scroll-padding-top: 3rem;
  box-sizing: border-box;
  font-family: var(--font-family-2);
}

/* Variables */
:root {
  --main-color: #fa7014;
  --second-color: #e05404;
  --text-color: #060414;
  --container-color: #efe8e0;
  --bg-color: #f7f7f7;
  --text-alter-color: #818181;
  --poppins-font: "Poppins", sans-serif;
  --font-family-2: "Squada One", sans-serif;
}

body {
  color: var(--text-color);
  background: var(--bg-color);
}

a {
  text-decoration: none;
}

img {
  width: 100%;
}

section {
  padding: 3rem 0 2rem;
}

.container {
  max-width: 1060px;
  margin: auto;
  width: 100%;
}

/* Header */
header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--text-color);
  padding: 17px 20px;
  border-radius: 0.8rem;
}

.logo {
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--bg-color);
  text-transform: uppercase;
  font-family: var(--font-family-2);
}

.logo span {
  color: var(--main-color);
}

.navbar {
  display: flex;
  align-items: center;
  column-gap: 1.5rem;
}

.nav-link {
  font-size: 0.88rem;
  color: var(--text-alter-color);
  font-family: var(--poppins-font);
  transition: 0.4s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.nav-link:hover {
  color: var(--bg-color);
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-icons .bx {
  color: var(--bg-color);
  font-size: 20px;
}

.nav-icons .user-icon {
  padding: 7px;
  background: var(--main-color);
  border-radius: 50%;
  transition: 0.3s ease;
}

.nav-icons .user-icon:hover {
  background: var(--second-color);
}

/* PROFILE CIRCLE */
.profile-circle {
  width: 34px;
  height: 34px;
  background: var(--main-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-family: var(--poppins-font);
  cursor: pointer;
  transition: 0.3s ease;
}

.profile-circle:hover {
  background: var(--second-color);
}


.menu-icon {
  display: none;
  flex-direction: column;
  align-items: center;
  row-gap: 5px;
  cursor: pointer;
  z-index: 200;
  transition: 0.3s;
}

.menu-icon div {
  background: var(--bg-color);
  height: 2px;
  width: 23px;
  transition: 0.3s;
}

.move .line1 {
  transform: rotate(-45deg) translate(-5px, 5px);
}

.move .line2 {
  opacity: 0;
}

.move .line3 {
  transform: rotate(45deg) translate(-5px, -5px);
}

.home {
  background: #dd4201;
  min-height: 670px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 12rem;
}

.home-content {
  position: relative;
  z-index: 2;
}

.home-img {
  position: relative;
}

.home-img img {
  width: 100%;
  display: block;
}

.home-img::before {
  content: "Taycan";
  position: absolute;
  top: -80px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 11rem;
  font-weight: 500;
  letter-spacing: 2rem;
  text-transform: uppercase;
  color: #ffb18d;
  z-index: -1;
  pointer-events: none;
}

.input-form {
  max-width: 550px;
  margin: 1.5rem auto 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-color);
  padding: 12px;
  border-radius: 0.5rem;
}

.input-box {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.input-box span {
  font-weight: 500;
}

.input-box input {
  outline: none;
  border: none;
  background: transparent;
  color: var(--text-alter-color);
  font-size: 0.94rem;
  margin-top: 6px;
}

.input-border {
  border-right: 1px solid var(--text-alter-color);
  padding-right: 10px;
}

.search-btn {
  background: var(--main-color);
  border: none;
  color: var(--bg-color);
  font-size: 20px;
  padding: 10px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  background: var(--second-color);
  transition: 0.3s ease;
}

/* Heading  */
.heading {
  margin-bottom: 2rem;
}

.heading h2 {
  font-size: 2.2rem;
  font-weight: 500;
}

.trending-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, auto));
  gap: 1.5rem;
}

.trend-box {
  background: var(--container-color);
  padding: 15px;
  border-radius: 10px;
  transition: background 0.5s ease;
}

.trend-box:hover {
  background: #fff;
  border: 2px solid var(--container-color);
  transition: background 0.5s ease;
}

.trend-box h4 {
  display: inline-block;
  font-family: var(--poppins-font);
  background: #fff;
  font-size: 0.8rem;
  padding: 4px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.trend-box:hover h4 {
  background: #eeeff2;
}

.trend-box img {
  margin: 1.4rem 0 1rem;
}

.trend-box h3 {
  font-size: 1.4rem;
  font-weight: 500;
}

.trend-box p {
  font-size: 0.9rem;
  margin-top: 7px;
}

.rentals .heading {
  text-align: center;
}

.heading p {
  max-width: 550px;
  width: 100%;
  font-size: 0.9rem;
  font-family: var(--poppins-font);
  margin: 1rem auto;
}

.rentals-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, auto));
  gap: 1.5rem;
}

.rental-box {
  background: var(--container-color);
  padding: 15px;
  border-radius: 10px;
  transition: transform 0.5s ease;
}

.rental-box:hover {
  transform: translateY(-10px);
  transition: transform 0.5s ease;
}

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

.rental-top h3 {
  display: inline-block;
  font-family: var(--poppins-font);
  background: #fff;
  font-size: 0.77rem;
  padding: 4px 7px;
  border-radius: 4px;
  font-weight: 600;
}

.rental-top .bx {
  font-size: 20px;
  color: var(--text-alter-color);
  cursor: pointer;
}

.rental-top .bx:hover {
  color: var(--main-color);
  transition: 0.3s ease;
}

.rental-box img {
  margin: 1.8rem 0 1rem;
  height: 74px;
  object-fit: contain;
  object-position: center;
}

.rental-box h2 {
  font-size: 1.4rem;
  font-weight: 500;
}

.rental-box h4 {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-alter-color);
  margin-top: 5px;
}

.price-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.price-btn p {
  font-size: 0.97rem;
}

.price-btn p span {
  color: var(--text-alter-color);
}

.rental-btn {
  background: var(--text-color);
  color: var(--bg-color);
  padding: 7px 10px;
  font-size: 0.97rem;
  border-radius: 4px;
  transition: 0.4s ease;
}

.rental-btn:hover {
  background: var(--main-color);
  transition: 0.4s ease;
}

.team .heading {
  text-align: center;
}

.team-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, auto));
  gap: 1.5rem;
}

.team-box img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
}

.team-box h2 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--main-color);
  margin-top: 1rem;
}

.team-box span {
  font-size: 0.77rem;
  color: var(--text-alter-color);
  font-family: var(--poppins-font);
}

.team-box p {
  font-size: 0.88rem;
  font-family: var(--poppins-font);
  color: var(--text-alter-color);
  margin-top: 8px;
}

.reviews .heading {
  text-align: center;
}

.reviews-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.t-box {
  background: var(--container-color);
  padding: 30px;
  border-radius: 10px;
}

.t-box .stars {
  color: var(--main-color);
  font-size: 20px;
}

.t-box p {
  font-size: 1rem;
  margin: 10px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-data h3 {
  font-size: 1rem;
  line-height: 1rem;
  font-weight: 500;
}
.profile-data span {
  font-size: 0.94rem;
  font-weight: 400;
  color: var(--text-alter-color);
}

.newsletter {
  max-width: 1040px;
  width: 90%;
  margin: auto;
}

.newsletter h2 {
  font-size: 3.5rem;
  font-weight: 500;
  text-align: center;
}

.newsletter p {
  text-align: center;
}

.newsletter form {
  max-width: 600px;
  margin: 1.8rem auto auto auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--text-color);
  padding: 7px;
  border-radius: 0.5rem;
}

.newsletter form input {
  border: none;
  outline: none;
  padding: 0 20px;
  font-size: 1.17rem;
  background: transparent;
}

.newsletter form .email {
  width: 100%;
}

.newsletter form input::placeholder {
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 400;
}

.newsletter form .s-btn {
  background: var(--main-color);
  color: var(--bg-color);
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 1px;
  cursor: pointer;
}

.newsletter form .s-btn:hover {
  background: var(--text-color);
  transition: 0.4s ease-in-out;
}

.footer {
  background: var(--text-color);
  color: var(--bg-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 40px 0 30px;
}

.footer-box {
  display: flex;
  flex-direction: column;
}

.social {
  display: flex;
  align-items: center;
  margin-top: 1rem;
}

.social a .bx {
  font-size: 20px;
  background: var(--main-color);
  color: var(--bg-color);
  border-radius: 50%;
  padding: 8px;
  margin-right: 0.8rem;
}

.social a .bx:hover {
  color: var(--text-color);
  background: var(--bg-color);
  transition: background 0.74s ease-in-out;
}

.footer-box h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--bg-color);
  margin-bottom: 1rem;
}

.footer-box p {
  margin-bottom: 8px;
}

.footer-box p span {
  display: inline-block;
  width: 50px;
}

.footer-box a {
  color: var(--bg-color);
  margin-bottom: 10px;
}

.copyright {
  padding: 30px;
  color: var(--bg-color);
  text-align: center;
}

/* Making Responsive */

@media (max-width: 992px) {
  .home-img::before {
    font-size: 7rem;
    letter-spacing: 1rem;
    top: -50px;
  }

  .reviews-content {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  header {
    top: 10px;
  }

  .menu-icon {
    display: flex;
  }

  .navbar {
    position: absolute;
    top: 110%;
    right: 0;
    background: var(--text-color);
    flex-direction: column;
    width: 220px;
    padding: 15px;
    border-radius: 0.6rem;
    display: none;
  }

  .navbar.active {
    display: flex;
  }

  .nav-link {
    padding: 10px 0;
    color: var(--bg-color);
  }

  .home {
    padding-top: 10rem;
  }

  .home-img::before {
    font-size: 5rem;
    letter-spacing: 0.6rem;
  }

  .input-form {
    flex-direction: column;
  }

  .input-border {
    border-right: none;
    border-bottom: 1px solid var(--text-alter-color);
    padding-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .heading h2 {
    font-size: 1.8rem;
  }

  .newsletter h2 {
    font-size: 2.2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* MODAL BACKGROUND */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 4, 20, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
}

/* MODAL BOX */
.modal-box {
  background: var(--bg-color);
  padding: 30px;
  width: 90%;
  max-width: 400px;
  border-radius: 12px;
  position: relative;
  animation: scaleUp 0.3s ease;
}

@keyframes scaleUp {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-box h2 {
  text-align: center;
  margin-bottom: 20px;
}

.modal-box input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  outline: none;
  font-family: var(--poppins-font);
}

.modal-btn {
  width: 100%;
  padding: 12px;
  background: var(--main-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.modal-btn:hover {
  background: var(--second-color);
}

/* CLOSE BUTTON */
.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 24px;
  cursor: pointer;
}
