@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,700;1,9..144,600&display=swap");

:root {
  /* font colors */
  --text-black-900: #000000;
  --text-black-700: #555555;
  --text-black-600: #666666;
  --text-black-300: #bbbbbb;
  --background-blackk: #333;

  /* font-size  */

  --normal-text: 1.1rem;
  --head-text: 2rem;
  --form-text: 1.3rem;

  /* fonts */

  --fraunces: "Montserrat", Arial, Helvetica, sans-serif;
  --montserrat: "Montserrat", Arial, Helvetica, sans-serif;

  /* body colors */
  --red: #ff0000c4;
  --dark: #1b1b1b;

  --bg-black-900: #000000;
  --bg-black-100: #dddddd;
  --bg-black-50: #eff0f4;
  --bg-opacity: rgba(255, 255, 255, 0.5);
  --outer-shadow: 3px 3px 3px #d0d0d0, -3px -3px 3px #f8f8f8;
  --outer-shadow-0: 0 0 0 #d0d0d0, 0 0 0 #f8f8f8;
  --outer-shadow-1: 4px 4px 5px #1b1b1b, -4px -4px 5px #3a3939;
  --inner-shadow: inset 3px 3px 3px #d0d0d0, inset -3px -3px 3px #f8f8f8;
  --innder-shadow-0: inset 0 0 0 #d0d0d0, inset 0 0 0 #f8f8f8;
}

body {
  font-family: var(--montserrat);
  word-wrap: break-word;
  background: #111;
}

html {
  scroll-behavior: smooth;
}

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

ul {
  list-style-type: none;
}

a {
  text-decoration: none;
  color: var(--bg-black-100);
}

/* icon back */

.icon-back {
  padding: 1rem 0 0 1rem;
}

.icon-back img {
  border: 2px solid red;
  border-radius: 50%;
  padding: 0.8rem;
}

/* title */

.cars-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 0 0 5rem 0;
  color: var(--bg-black-100);
}

.car-main-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.car-main-icon img {
  height: 64px;
  width: 64px;
}

.car-main-text h1 {
  font-weight: 600;
  letter-spacing: 2px;
  text-shadow: var(--outer-shadow-1);
  text-transform: uppercase;
}

.car-main-text h1 span {
  color: var(--red);
}

.car-main-text h2 {
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: var(--outer-shadow-1);
}

/* description */

.desc-ab-us-main {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding-top: 20px;
  text-shadow: var(--outer-shadow-1);
}

.desc-ab-left img {
  border-radius: 10px;
  box-shadow: var(--outer-shadow-1);
  height: 300px;
  width: 450px;
}

.first-right,
.second-right,
.third-right,
.fourth-right,
.fifth-right {
  padding: 15px 0;
}

.desc-right-abo-us p {
  font-size: var(--normal-text);
  width: 600px;
  word-wrap: break-word;
  color: white;
}

/* contact */

.contact {
  color: var(--bg-black-100);
}

.contact-section {
  padding-top: 10px;
  padding-bottom: 50px;
}

.contact-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.contact-main-icon img {
  height: 64px;
  width: 64px;
}

.contact-main-text h1 {
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: var(--outer-shadow-1);
}

.contact-flex {
  display: flex;
  gap: 50px;
  justify-content: center;
  align-items: center;
  padding-top: 30px;
}

.contact-left {
  display: flex;
  gap: 30px;
  flex-direction: column;
  font-size: var(--normal-text);
}

.contact-left p {
  text-shadow: var(--outer-shadow-1);
}

.left-first,
.left-second,
.left-third,
.left-fourth {
  display: flex;
  gap: 20px;
  align-items: center;
}

.left-fourth img {
  height: 64px;
  width: 64px;
}

.left-second-description p span {
  color: var(--red);
  font-weight: 600;
}

.left-first-description p:nth-child(1),
.left-second-description p:nth-child(1),
.left-third-description p:nth-child(1),
.left-fourth-description p:nth-child(1) {
  padding-bottom: 10px;
}

.left-first-description p:nth-child(1),
.left-second-description p:nth-child(1),
.left-third-description p:nth-child(1),
.left-fourth-description p:nth-child(1) {
  color: var(--red);
  font-weight: 600;
  font-size: 1.4rem;
  text-shadow: var(--outer-shadow-1);
}

.left-third-description a {
  font-size: var(--normal-text);
  text-shadow: var(--outer-shadow-1);
}

.left-third-description a:hover {
  color: var(--red);
  transition: 0.4s;
}

.contact-flex {
  display: flex;
  gap: 50px;
  justify-content: center;
  align-items: center;
  padding-top: 30px;
}

.contact-left {
  display: flex;
  gap: 30px;
  flex-direction: column;
  font-size: var(--normal-text);
}

.contact-left p {
  text-shadow: var(--outer-shadow-1);
}

.left-first,
.left-second,
.left-third,
.left-fourth {
  display: flex;
  gap: 20px;
  align-items: center;
}

.contact-flex-left {
  flex: 0.3;
  height: 480px;
  display: flex;
  gap: 5px;
  border-radius: 20px;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  box-shadow: var(--outer-shadow-1);
}

.contact-flex-right {
  flex: 0.3;
}

.contact-form-main h2 {
  letter-spacing: 2px;
  text-shadow: var(--outer-shadow-1);
}

.contact-form-main {
  height: 480px;
  display: flex;
  gap: 5px;
  padding: 32px 92px;
  border-radius: 20px;
  position: relative;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  box-shadow: var(--outer-shadow-1);
}

.contact-form-main p {
  font-size: 0.8rem;
  text-align: center;
  text-shadow: var(--outer-shadow-1);
}

.contact-form-main h2 span {
  color: var(--red);
  font-weight: 700;
}

/* input contact  form */

.contact-inputBox {
  position: relative;
  width: 280px;
  padding-top: 20px;
}

.contact-inputBox input {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  border-radius: 5px;
  outline: none;
  color: var(--bg-black-100);
  font-size: 1em;
  transition: 0.5s;
}

.contact-inputBox span {
  position: absolute;
  left: 0;
  padding: 10px;
  pointer-events: none;
  font-size: 1em;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  transition: 0.5s;
}

.contact-inputBox input:valid ~ span,
.contact-inputBox input:focus ~ span {
  color: var(--bg-black-100);
  transform: translateX(10px) translateY(-7px);
  font-size: 0.7em;
  padding: 0 10px;
  letter-spacing: 0.2em;
  background: var(--bg-black-100);
  color: rgba(0, 0, 0, 0.9);
  border-radius: 10px;
}

.contact-inputBox input:valid,
.contact-inputBox input:focus {
  border: 1px solid rgb(9, 206, 9, 0.6);
}

/* textarea contact */

.contact-inputBox-textarea {
  position: relative;
  width: 280px;
  padding-top: 15px;
}

.contact-inputBox-textarea textarea {
  width: 100%;
  height: 150px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  border-radius: 5px;
  outline: none;
  color: var(--bg-black-100);
  font-size: 1em;
  transition: 0.5s;
}

.contact-inputBox-textarea span {
  position: absolute;
  left: 0;
  padding: 10px;
  pointer-events: none;
  font-size: 1em;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  transition: 0.5s;
}

.contact-inputBox-textarea textarea:valid ~ span,
.contact-inputBox-textarea textarea:focus ~ span {
  color: var(--bg-black-100);
  transform: translateX(10px) translateY(-7px);
  font-size: 0.7em;
  padding: 0 10px;
  letter-spacing: 0.2em;
  background: var(--bg-black-100);
  color: rgba(0, 0, 0, 0.9);
  border-radius: 10px;
}

.contact-inputBox-textarea textarea:valid,
.contact-inputBox-textarea textarea:focus {
  border: 1px solid rgb(9, 206, 9, 0.6);
}

/* flex contact input */

.contact-input-flex {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* button contact form */

.contact-btn-form {
  width: 280px;
  margin-top: 18px;
  padding: 16px 0;
  font-size: var(--form-text);
  font-weight: 600;
  text-align: center;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.contact-btn-form:focus {
  outline-color: #fff;
}

.contact-btn-form:hover {
  background: linear-gradient(
    to right top,
    rgba(252, 252, 252, 0.1),
    rgba(0, 0, 0, 0.85)
  );
}

.contact-btn-form:after {
  width: 50px;
  height: 150%;
  position: absolute;
  left: -100px;
  top: -25px;
  content: "";
  background-color: rgba(255, 255, 255, 0.4);
  transform: rotate(20deg);
  transition: transform 0.8s;
}

.contact-btn-form:hover:after {
  transform: translateX(800px) rotate(20deg);
  transition: all 0.8s ease;
}

/*  thank you message */

#thank-you-message {
  display: none;
}

#thank-you-message.show {
  display: block;
}

p#thank-you-message.show {
  color: var(--red);
}

#thank-you-contact-message {
  display: none;
}

#thank-you-contact-message.show {
  display: block;
}

p#thank-you-contact-message.show {
  color: var(--red);
}

/* media */

@media only screen and (max-width: 1350px) {
  .cars-section-flex,
  .certificate-main {
    flex-direction: column;
  }

  .contact-flex-left {
    flex: 0.4;
  }
}

@media only screen and (max-width: 1250px) {
  .desc-ab-us-main {
    flex-direction: column;
  }

  .desc-right-abo-us {
    padding-top: 10px;
  }

  .desc-ab-left img {
    height: 250px;
    width: 400px;
  }
}

@media only screen and (max-width: 1050px) {
  .contact-flex-left,
  .contact-form-right {
    flex: 0.6;
  }

  .desc-ab-left img {
    height: 240px;
    width: 400px;
  }
}

@media only screen and (max-width: 912px) {
  .contact-flex-left {
    padding: 20px;
  }

  .contact-flex {
    flex-direction: column;
  }
}

@media only screen and (max-width: 780px) {
  .contact-flex-left {
    padding: 20px;
  }

  .desc-ab-left img {
    height: 200px;
    width: 350px;
  }

  .contact-flex {
    flex-direction: column;
  }
}

@media only screen and (max-width: 630px) {
  .desc-right-abo-us p {
    width: 400px;
  }
}

@media only screen and (max-width: 590px) {
  .desc-ab-left img {
    height: 200px;
    width: 350px;
  }
}

@media only screen and (max-width: 550px) {
  .contact-form-main {
    width: 340px;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
  }
  .contact-form-main h2 {
    font-size: 1.4rem;
    text-align: center;
  }
  .desc-ab-left img {
    height: 200px;
    width: 350px;
  }
}

@media only screen and (max-width: 490px) {
  .desc-ab-left img {
    height: 150px;
    width: 250px;
  }
  .desc-right-abo-us p {
        width: 350px;
    }
}

@media only screen and (max-width: 450px) {
  .car-main-text h1 {
    font-size: 1.4rem;
  }

  .desc-ab-left img {
    height: 150px;
    width: 250px;
  }

  .car-main-text h2 {
    font-size: 1.1rem;
  }

  .icon-back img {
    height: 50px;
    width: 50px;
  }

  .contact-flex {
    flex-direction: column;
  }

  .contact-flex-left {
    width: 340px;
    height: 600px;
    display: flex;
    gap: 5px;
    border-radius: 20px;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    box-shadow: var(--outer-shadow-1);
  }
  .contact-form-main {
    width: 340px;
    height: 600px;
    display: flex;
    gap: 5px;
    padding: 32px 92px;
    border-radius: 20px;
    position: relative;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    box-shadow: var(--outer-shadow-1);
  }

  .contact-flex {
    flex-direction: column;
  }

  .contact-main-icon img {
    height: 48px;
    width: 48px;
  }

  .contact-form-main {
    width: 340px;
    height: 600px;
    display: flex;
    gap: 5px;
    padding: 32px 92px;
    border-radius: 20px;
    position: relative;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    box-shadow: var(--outer-shadow-1);
  }
}

@media only screen and (max-width: 390px) {
  .car-main-text h1 {
    font-size: 1.3rem;
  }

  .desc-right-abo-us p {
    width: 320px;
    font-size: 15px;
}

.desc-ab-left img {
  height: 150px;
  width: 250px;
}

  .car-main-text h2 {
    font-size: 1rem;
  }

  .contact-flex-left {
    width: 340px;
    height: 600px;
    display: flex;
    gap: 5px;
    border-radius: 20px;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    box-shadow: var(--outer-shadow-1);
  }

  .contact-form-main {
    width: 340px;
    height: 600px;
    display: flex;
    gap: 5px;
    padding: 32px 92px;
    border-radius: 20px;
    position: relative;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    box-shadow: var(--outer-shadow-1);
  }

  .contact-flex {
    flex-direction: column;
  }

  .contact-flex-left {
    width: 340px;
    height: 600px;
    display: flex;
    gap: 5px;
    border-radius: 20px;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    box-shadow: var(--outer-shadow-1);
  }

  .contact-form-main {
    width: 340px;
    height: 600px;
    display: flex;
    gap: 5px;
    padding: 32px 92px;
    border-radius: 20px;
    position: relative;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    box-shadow: var(--outer-shadow-1);
  }
}

@media only screen and (max-width: 320px) {
  .car-main-text h1 {
    font-size: 1.2rem;
  }

  .car-main-text h2 {
    font-size: 0.9rem;
  }

  .contact-form-main,
  .contact-flex-left {
    width: 300px;
  }
}
