body {
  font-family: "Poppins", "Exo", sans-serif;
  background-color: var(--body-color);
  color: var(--white-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  box-sizing: border-box;
}

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

/*  **Fonts**   */

/*  Poppins Font  */

@font-face {
  font-family: "Poppins";
  src: url("../font/Poppins-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("../font/Poppins-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("../font/Poppins-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("../font/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("../font/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("../font/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

/*   **Fonts**  */

/*  Exo Font  */

@font-face {
  font-family: "Exo";
  src: url("../font/Exo-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: "Exo";
  src: url("../font/Exo-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "Exo";
  src: url("../font/Exo-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Exo";
  src: url("../font/Exo-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Exo";
  src: url("../font/Exo-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Exo";
  src: url("../font/Exo-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

/*  colors  */

:root {
  --first-color-alt: hsl(219, 67%, 52%);
  --first-color: hsl(220, 67%, 56%);
  --title-color: hsl(210, 9%, 95%);
  --text-color: hsl(210, 12%, 74%);
  --text-color-light: hsl(225, 4%, 55%);
  --white-color: hsl(0, 0%, 100%);
  --body-color: hsl(240, 8%, 4%);
  --container-color: hsl(210, 5%, 7%);
}

/** header**/

header {
  top: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  background-color: var(--body-color);
  align-items: flex-start;
}

.logo {
  width: 200px;
  height: 200px;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.shape-big {
  height: 50rem;
}

.logo-img {
  margin-left: -30rem;
  margin-bottom: 5rem;
  height: 15%;
}

.shape-big-mobil {
  display: none;
}

.img-mobil-Right {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  flex-wrap: nowrap;
}

.logo-img-mobil {
  display: none;
}

.header-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 3rem;
}

.header-links a {
  display: block;
  padding: 30px 16px;
  color: var(--white-color);
  text-decoration: none;
  font-size: 16px;
  font-family: "Poppins";
  text-transform: uppercase;
  transition: all ease-in-out 100ms;
}

.header-links a:hover {
  color: var(--first-color);
}

.header-links li a:hover {
  color: var(--first-color);
}

.header-links .header-cat-button {
  padding: 10px 18px;
  margin-left: 16px;
  border-radius: 50px;
}

.home-mobil {
  display: none;
}

/*  menu   */

.hamburger {
  display: none;
  cursor: pointer;
  width: 34px;
}

.hamburger .bar {
  flex-basis: 100%;
  height: 4px;
  background-color: var(--white-color);
  margin: 3px;
}

/*  nav  */

nav {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
}

.car-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  color: var(--text-color);
  gap: 0.5rem;
}

.hero-title {
  font-family: "Exo";
  font-weight: 600;
  font-size: 3rem;
}

.hero-subtitle {
  font-family: "Exo";
  font-weight: 600;
  font-size: 2rem;
  margin: 0;
}

.items {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  margin-top: 5rem;
  gap: 5rem;
}

.shape-small {
  margin-left: 67%;
  margin-top: -100px;
}

.item {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
}

.item > img {
  margin-bottom: 2rem;
}

.item h1 {
  margin: 0;
  font-family: "Exo";
  font-weight: 600;
  font-size: 1.5rem;
}

.item > p {
  margin: 0;
  color: var(--text-color);
}

.small-mobil {
  display: none;
}

.shape-small {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(47%);
}

.image-container {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-top: 5rem;
}

.image1,
.image2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 70%;
  height: 70%;
  z-index: -1;
}

.start-text {
  position: absolute;
  z-index: 1;
  margin-right: 2.8rem;
  margin-bottom: 2.5rem;
}

.about-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 5rem 0;
}

.about-images {
  position: relative;
  display: inline-block;
  padding-bottom: 70px;
}

.img-main {
  display: block;
  width: 35rem;
  height: auto;
  border-radius: 12px;
}

.img-overlay {
  position: absolute;
  bottom: 0;
  right: 0rem;
  z-index: 1;
  width: 14rem;
}

.stat {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 15px;
  right: 35px;
  z-index: 2;
  text-align: right;
  max-width: 160px;
}

.stat h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 400;
}

.stat p {
  font-size: 13px;
  color: var(--text-color);
  margin-right: 12px;
  margin-top: 0;
}

.about-content {
  max-width: 480px;
}

.about-content h1 {
  max-width: 100%;
  font-weight: normal;
  font-size: 1.5rem;
  color: var(--white-color);
}

.about-content p {
  color: var(--text-color);
  line-height: 1.2;
  margin-bottom: 2rem;
  max-width: 97%;
  font-weight: normal;
  font-size: 1rem;
}

.about-content button {
  padding: 1rem 3rem;
  border: none;
  background: var(--first-color);
  color: var(--white-color);
  border-radius: 5px;
  cursor: pointer;
}

.shape-small-short {
  position: absolute;
  bottom: -50%;
  width: 100%;
  z-index: -1;
  margin-bottom: -30%;
}

.img-main-mobil {
  display: none;
}

/*  main  */

main {
  margin-top: -7rem;
  background: var(--body-color);
}

.text-top {
  padding: 2rem;
  max-width: 24%;
  margin-top: 12%;
  margin-left: 40%;
  font-size: 1.5rem;
  text-align: center;
  font-family: "Exo";
  font-weight: 500;
}

.cars {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  margin-top: 0;
  gap: 4rem;
  padding: 2rem;
}

.car-card {
  position: relative;
  min-width: 15rem;
  padding: 24px;
  border-radius: 24px;
  background: var(--body-color);
  color: var(--white-color);
  overflow: hidden;
  font-family: "Exo";
  background-image: url(../img/shape-back.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.car-card h1 {
  font-weight: 500;
}

.car-card h1 > {
  margin-left: 0;
}

.car-card:nth-child(1) {
  display: none;
}

.car-card:nth-child(2) {
  display: none;
}

.car-card:nth-child(3) {
  display: none;
}

.car-card:nth-child(4) {
  display: none;
}

.car-brand {
  margin-left: 25%;
}

.car-title h1 {
  font-size: 22px;
  margin: 0;
}

.car-title p {
  margin: 4px 0 0;
  color: var(--white-color);
  font-size: 14px;
}

.car-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 22px 0;
}

.spec {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--white-color);
}

.spec img {
  width: 16px;
}

.car-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4.2rem;
}

.car-footer h2 {
  margin-top: -10px;
  font-weight: 600;
}

.car-footer img {
  width: 3rem;
  cursor: pointer;
  background-color: var(--first-color);
  border-radius: 50% 10% 50% 10%;
  padding: 1rem;
}

.Car-popular {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}

.mobile {
  display: none;
}

.featured-cars {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-wrap: nowrap;
}

.featured-cars h2 {
  padding: 3rem;
}

.filter-icons {
  margin-left: 2rem;
}

.filter-icons img {
  margin-right: 1rem;
}

/*   section   */

.box-card__image {
  margin-top: 2rem;
}

.box-card__footer {
  display: flex;
  align-items: flex-end;
  flex-direction: row;
  gap: 6rem;
}

.box-card__price {
  margin-top: -1rem;
  font-weight: 500;
}

.box-card {
  position: relative;
}

.shape-back {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 100%;
}

.box-card__image {
  position: relative;
  z-index: 2;
}

.box-card h2 {
  margin-top: 20%;
}

.box-card__icon {
  width: 40px;
  height: 40px;
  cursor: pointer;
  background-color: var(--first-color);
  border-radius: 50% 10% 50% 10%;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.boxes {
  display: grid;
  grid-template-columns: repeat(3, auto);
  padding: 21rem 0rem 9rem 25rem;
  margin-top: -12%;
  margin-left: -12%;
  width: 100%;
  gap: 9rem;
}

.offer {
  position: relative;
  display: flex;
  justify-content: center;
  background-color: var(--body-color);
}

.img.body {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  z-index: 1;
  pointer-events: none;
}

.img-body-mobile {
  display: none;
}

.offer__container {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 60px;
  border-radius: 28px;
}

.offer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  flex: 1;
  color: var(--white-color);
}

.offer__title {
  font-size: 34px;
  line-height: 1.4;
  margin-bottom: 20px;
  font-weight: 500;
}

.offer__desc {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 30px;
  color: var(--text-color);
  max-width: 420px;
}

.offer__btn {
  padding: 14px 32px;
  background: var(--first-color);
  border: none;
  border-radius: 8px;
  color: var(--white-color);
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.offer__btn:hover {
  opacity: 0.85;
}

.offer__image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.subscribe {
  display: block;
}

.subscribe-mobile {
  display: none;
}

.icon-cars {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  margin-top: 10%;
  margin-left: 0%;
  margin-bottom: 5%;
  gap: 8rem;
}

/*  Footer  */

.site-end {
  color: var(--white-color);
  font-family: "Exo";
  padding: 60px 20px 0px;
  position: relative;
}

.site-end a {
  color: inherit;
  text-decoration: none;
}

.end-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  position: relative;
  flex-direction: column;
  gap: 40px;
}

.shape-top,
.shape-bottom {
  position: absolute;
}

.shape-top {
  top: 0;
  left: 0;
}

.shape-bottom {
  top: 0;
  right: 0;
}

.brand-block {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-left: 6%;
  margin-bottom: -1%;
  gap: 10px;
}

.brand-block h1 {
  font-size: 28px;
  margin: 0;
}

.brand-text {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  max-width: 13.5%;
  margin-left: 7rem;
  margin-bottom: -11%;
  color: var(--text-color-light);
}

.links-wrapper {
  display: flex;
  flex-direction: row;
  margin-left: 35%;
  gap: 40px;
}

.links-col {
  min-width: 29%;
}

.links-col h2 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--white-color);
}

.links-col p {
  margin: 8px 0;
  color: var(--text-color-light);
  cursor: pointer;
  transition: color 0.3s;
}

.social-group {
  display: flex;
  gap: 2rem;
  margin-top: 10px;
}

.social-group img {
  width: 24px;
  height: 24px;
  cursor: pointer;
  transition: transform 0.3s;
}

.shape-right {
  display: none;
}

.shape-left {
  display: none;
}
