@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  font-family: "Ubuntu", sans-serif;
  scroll-behavior: smooth;
}

body {
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #222222;
}

:root {
  --black: #2f2f2f;
  --white: #fff;
  --red: #f83038;
}

/* HEADER */

header .header-content {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.6s;
  padding: 20px 100px;
  z-index: 10;
}

header.sticky .header-content {
  padding: 5px 100px;
  background: var(--red);
}

header .logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

header nav {
  margin-left: auto;
}

header ul {
  display: flex;
  gap: 10px;
  list-style: none;
}

header ul li {
  position: relative;
  list-style: none;
}

header ul li a {
  color: var(--white);
  text-decoration: none;
  padding: 16px 25px;
  display: flex;
  position: relative;
  font-weight: 500;
}

header ul li a:hover,
header ul li a.active:hover {
  color: var(--red);
}

header.sticky ul li a:hover,
header.sticky ul li a.active:hover {
  color: #c2c2c2;
}

header ul li a.active {
  color: var(--white);
  text-decoration: underline;
  text-decoration-style: solid;
  text-underline-offset: 0.4rem;
  transition: text-decoration 1s;
}

header.sticky ul li a.active {
  color: var(--white);
  text-decoration: underline;
  text-decoration-style: solid;
  text-underline-offset: 0.4rem;
}

section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--clr);
}

/* HOME */

.home {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(#1c1c1c, #323232);
  padding: 30px 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.home::before {
  content: "Tecnologia Automotiva";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16vw;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
}

.content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: 100px;
  z-index: 1;
}

.content h2 {
  font-size: 5em;
  font-weight: 300;
  color: var(--white);
  text-align: center;
}

.content h2 span {
  font-weight: 700;
}

.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  padding: 16px 36px;
  margin-top: 20px;
  border-radius: 50px;
  font-size: 1.25em;
  transition: 0.25s;
}

.btn:hover {
  letter-spacing: 4px;
}

.bike {
  max-width: 80%;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 30px 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.sci {
  display: flex;
}

.sci li {
  list-style: none;
}

.sci li a {
  color: var(--white);
  font-size: 2em;
  margin-right: 20px;
  transition: 0.25s;
}

.sci li a:hover {
  color: var(--red);
}

/* O QUE FAZEMOS */

.whatwedo h1 {
  position: absolute;
  font-size: 56px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  z-index: 1;
  top: 15%;
  left: 100px;
}

.whatwedo h1 span {
  font-weight: 700;
}

.whatwedo p {
  position: absolute;
  bottom: 15%;
  right: 100px;
  max-width: 40%;
  color: #fff;
  font-size: 1.1em;
  font-weight: 300;
  line-height: 1.6;
  z-index: 1;
}

.whatwedo p span {
  font-weight: 700;
  color: var(--red);
}

.whatwedo .btn {
  position: absolute;
  bottom: 5%;
  right: 100px;
  margin-top: 20px;
}

.road {
  position: relative;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  transform: rotate(-15deg);
}

.road::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--white),
    var(--white) 50%,
    transparent 50%,
    transparent 100%
  );
  background-size: 50px;
  animation: animate_road 0.125s linear infinite;
}

@keyframes animate_road {
  0% {
    background-position: 50px 0;
  }
  100% {
    background-position: 0px 0;
  }
}

.car {
  position: absolute;
  left: var(--left, -100px);
  width: 200px;
  height: 80px;
  background: var(--car-color);
  border-radius: 10px;
  box-shadow: -10px 10px rgba(0, 0, 0, 0.05);
  transform-style: preserve-3d;
  perspective: 800px;
  z-index: 10;
  animation: animate_car_car 5s linear infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes animate_car_car {
  0% {
    transform: translateX(20px) translateY(-50px);
  }
  25% {
    transform: translateX(-10px) translateY(0px);
  }
  50% {
    transform: translateX(20px) translateY(50px);
  }
  75% {
    transform: translateX(-10px) translateY(0px);
  }
  100% {
    transform: translateX(20px) translateY(-50px);
  }
}

.car::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 2px;
  width: 5px;
  height: 15px;
  border-radius: 2px;
  background: #fc3c25;
  box-shadow: 0 42px #fc3c25;
}

.car::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 2px;
  width: 6px;
  height: 16px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 44px #fff;
}

.car span {
  position: absolute;
  inset: 5px 10px;
  background: var(--car-color);
  border-radius: 10px;
  overflow: hidden;
}

.car span b {
  position: absolute;
  inset: 0 30px;
  background: #344650;
  border-radius: 10px;
}

.car span b::before {
  content: "";
  position: absolute;
  inset: 6px 25px;
  background: var(--car-color);
  border-radius: 5px;
}

.car span b::after {
  content: "";
  position: absolute;
  inset: 0 58px;
  background: var(--car-color);
}

.car span i {
  position: absolute;
  inset: 0;
}

.car span i::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 20px;
  width: 40px;
  height: 5px;
  background: var(--car-color);
  transform-origin: right;
  transform: rotate(15deg);
  box-shadow: 100px 34px var(--car-color);
}

.car span i::after {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 20px;
  width: 40px;
  height: 5px;
  background: var(--car-color);
  transform-origin: right;
  transform: rotate(-15deg);
  box-shadow: 100px -34px var(--car-color);
}

.light_beam {
  position: absolute;
  top: 5px;
  right: -2px;
  width: 10px;
  height: 70px;
  background: #0002;
  border-radius: 15px;
  transform-style: preserve-3d;
}

.light_beam::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 150px;
  height: 16px;
  background: linear-gradient(90deg, #fff6, transparent);
  transform-origin: left;
  transform: perspective(500px) rotateY(-50deg);
}

.light_beam::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 150px;
  height: 16px;
  background: linear-gradient(90deg, #fff6, transparent);
  transform-origin: left;
  transform: perspective(500px) rotateY(-50deg);
}

.car .side_mirror {
  position: absolute;
  inset: 0;
}

.car .side_mirror::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 40px;
  width: 5px;
  height: 10px;
  background: var(--car-color);
  border-top-right-radius: 10px;
}

.car .side_mirror::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 40px;
  width: 5px;
  height: 10px;
  background: var(--car-color);
  border-bottom-right-radius: 10px;
}

/* CONTATO */

.contact {
  position: relative;
  padding: 30px 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: var(--clr);
}

.contact .content {
  max-width: 800px;
  text-align: center;
}

.contact .content h2 {
  font-size: 3em;
  color: var(--red);
  font-weight: 500;
}

.contact .content p {
  font-size: 1.3em;
  color: #fff;
  font-weight: 300;
}

.contact .container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  margin-top: 30px;
}

.contact .container .contactInfo {
  width: 50%;
  display: flex;
  flex-direction: column;
}

.contact .container .contactInfo .box {
  position: relative;
  padding: 20px 0;
  display: flex;
  cursor: pointer;
}

.contact .container .contactInfo .box .icon {
  min-width: 60px;
  height: 60px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.75em;
  border-radius: 15px;
}

.contact .container .contactInfo .box:hover .icon {
  background: var(--red);
  color: #fff;
}

.contact .container .contactInfo .box .text {
  display: flex;
  flex-direction: column;
  margin-left: 20px;
  font-size: 1.1em;
  color: #fff;
  font-weight: 300;
}

.contact .container .contactInfo .box .text h3 {
  font-weight: 500;
  color: var(--red);
}

.contact .container .contactInfo .txt {
  color: #fff;
  margin-top: 50px;
  font-weight: 500;
  padding-left: 10px;
  border-left: 50px solid var(--red);
  line-height: 1em;
}

.contact .container .contactForm {
  position: relative;
  width: 40%;
  background: var(--white);
  min-height: 300px;
  padding: 45px;
  border-radius: 15px;
}

.contact .container .contactForm h2 {
  font-size: 2em;
  color: #333;
  font-weight: 500;
}

.contact .container .contactForm .inputBox {
  position: relative;
  width: 100%;
  margin-top: 20px;
}

.contact .container .contactForm .inputBox input,
.contact .container .contactForm .inputBox textarea {
  width: 100%;
  padding: 5px 0;
  font-size: 1.1em;
  margin: 10px 0;
  border: none;
  border-bottom: 2px solid #333;
  outline: none;
  resize: none;
}

.contact .container .contactForm .inputBox span {
  position: absolute;
  left: 0;
  pointer-events: none;
  padding: 5px 0;
  margin: 10px 0;
  font-size: 1.1em;
  color: #666;
  transition: 0.5s;
}

.contact .container .contactForm .inputBox input:focus ~ span,
.contact .container .contactForm .inputBox textarea:focus ~ span,
.contact .container .contactForm .inputBox input:valid ~ span,
.contact .container .contactForm .inputBox textarea:valid ~ span {
  color: #322533;
  font-size: 0.9em;
  transform: translateY(-20px);
}

.contact .container .contactForm .inputBox input[type="submit"] {
  width: auto;
  background: var(--red);
  color: var(--white);
  border: none;
  cursor: pointer;
  padding: 10px;
  font-size: 1.1em;
  font-weight: 500;
  transition: 0.25s;
  border-radius: 50px;
}

.contact .container .contactForm .inputBox input[type="submit"] {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  padding: 16px 36px;
  margin-top: 20px;
  border-radius: 50px;
  font-size: 1.25em;
  transition: 0.25s;
}

.contact .container .contactForm .inputBox input[type="submit"]:hover {
  letter-spacing: 4px;
}

/* COPYRIGHT */

.copyright p {
  background-color: #444;
  color: #fff;
  text-align: center;
}

/* BOTAO FIXADO */

#btnTop {
  position: fixed;
  bottom: 15px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: rgb(51, 51, 51, 0.5);
  border-radius: 50px 50px 50px 50px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: width 0.7s;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  align-items: center;
  justify-content: center;
}

#btnTop:hover {
  width: 125px;
  border-radius: 50px 50px 50px 50px;
  transition: width 0.7s;
}

#btnTop ion-icon {
  color: var(--red);
  font-size: 2em;
}

/* RESPONSIVIDADE */

@media (max-width: 1200px) {
  /* HEADER RESPONSIVO */

  header .header-content {
    background: var(--red);
    padding: 5px 30px;
  }

  header.sticky .header-content {
    width: 100%;
    left: 0;
  }

  header .logo {
    height: 40px;
  }

  header nav {
    position: fixed;
    width: 100%;
    top: 61px;
    left: 0;
    background: #333;
    display: none;
  }

  header.active nav {
    display: initial;
    border-radius: 0;
    border-top: none;
  }

  header nav ul {
    flex-direction: column;
  }

  header nav ul li {
    width: 100%;
  }

  .menuToggle {
    position: relative;
    width: 40px;
    height: 50px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
  }

  .menuToggle::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--white);
    transform: translateY(-12px);
    box-shadow: 0 12px var(--white);
    transition:
      transform 0.7s,
      box-shadow 0.9s;
  }

  .menuToggle::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--white);
    transform: translateY(12px);
    transition: transform 0.7s;
  }

  header ul li a.active {
    background: transparent;
    color: var(--white);
    text-decoration: none;
  }

  header ul li a.active:hover,
  header ul li a:hover {
    color: var(--white);
  }

  header ul li:hover {
    background: rgba(0, 0, 0, 0.25);
  }

  header.active .menuToggle::before {
    transform: rotate(45deg);
    box-shadow: 0 0 var(--white);
    transition: transform 0.7s;
  }

  header.active .menuToggle::after {
    transform: rotate(315deg);
    transition: transform 0.7s;
  }

  /* HOME RESPONSIVA */

  .footer {
    justify-content: center;
  }

  .sci li:last-child a {
    margin-right: 0;
  }

  /* O QUE FAZEMOS RESPONSIVO */

  .whatwedo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 30px 60px;
    min-height: 100vh;
    height: auto;
  }

  .whatwedo h1 {
    order: 1;
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    text-align: center;
    padding: 0;
    word-break: break-word;
    margin-bottom: 20px;
  }

  .road {
    order: 2;
    margin: 40px 0;
  }

  .whatwedo p {
    order: 3;
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding: 0;
    word-break: break-word;
    margin-bottom: 30px;
  }

  .whatwedo .btn {
    order: 4;
    position: relative;
    bottom: auto;
    right: auto;
    left: auto;
    transform: none;
    white-space: nowrap;
  }

  .road {
    order: 2;
    margin: 100px 0 150px 0;
  }

  /* CONTATO RESPONSIVO */

  .contact {
    padding: 50px;
  }

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

  .contact .container .contactInfo,
  .contact .container .contactForm {
    width: 100%;
  }

  .contact .container .contactForm {
    padding: 50px 30px;
  }

  /* BOTAO FIXADO RESPONSIVO*/

  #btnTop:hover {
    width: 50px;
    border-radius: 50px 50px 50px 50px;
  }

  #btnTopWpp:hover {
    width: 50px;
    border-radius: 50px 50px 50px 50px;
  }
}
