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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

img {
  display: block;
  /* max-width: 100%; */
}

body {
  font-family: "Pridi", sans-serif;
  font-weight: 400;
  color: #fdfdff;
  background-color: #283957;
  font-size: 1.8rem;
  overflow-x: hidden;
  line-height: 1.8;
}

h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 500;
}

h1,
h2 {
  margin-bottom: 2rem;
}

h1 {
  font-size: 5rem;
}

h2 {
  font-size: 4rem;
}

h3 {
  font-size: 3rem;
}

h4 {
  font-size: 2.5rem;
  line-height: 1.2;
}

cite {
  font-style: normal;
}

address {
  font-style: normal;
}

.icon {
  height: 2rem;
  width: 2rem;
}

.center {
  align-self: center;
}

.header {
  position: relative;
}

.nav-top {
  background-color: #badfe8;
  color: #283957;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-bottom {
  width: 100%;
  background-color: #283957;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
}

.nav-contact {
  display: flex;
  gap: 7rem;
}

.social-icons {
  display: flex;
  gap: 2rem;
}

.icon-wrapper {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 999;
  width: 100%;
  border-bottom: 2px solid #eaebee;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 5rem;
  padding: 1.5rem 3rem;
  border-radius: 5rem;
  justify-content: center;
  align-items: center;
}

a:link,
a:visited {
  display: inline-block;
  text-decoration: none;
  color: #eaebee;
  transition: all 0.3s;
}

a:hover,
a:active {
  text-decoration: none;
  transform: scale(1.05);
  color: #badfe8;
}

.blue-text {
  color: #283957 !important;
}

.light-blue-text {
  color: #badfe8 !important;
}

.white-text {
  color: #eaebee !important;
}

.dark-blue-background {
  background-color: #24334e;
}

.btn:link,
.btn:visited {
  background-color: #badfe8;
  color: #283957;
  display: inline-flex;
  border-radius: 1rem;
  padding: 1rem 3rem;
  transition: all 0.3s;
  box-shadow: 0px 5px 5px 5px rgb(28, 40, 61, 0.5);
}

.btn:hover,
.btn:active {
  background-color: #eaebee;
  box-shadow: 0px 5px 5px 2px rgb(234, 235, 238, 0.2);
}

.btn-alt:link,
.btn-alt:visited {
  display: inline-flex;
  transition: all 0.3s;
  align-items: center;
  gap: 0.5rem;
}

.btn-alt:hover,
.btn-alt:active {
  text-decoration: underline;
  text-underline-offset: 0.4rem;
  text-decoration-color: #eaebee;
  text-decoration-thickness: 0.15rem;
  transform: scale(1.05);
  color: #badfe8;
}

.section {
  padding: 10rem 5%;
  gap: 3rem;
  display: flex;
  flex-direction: column;
}

/* HERO SECTION */
.hero-section {
  height: 100vh;
  position: relative;
  justify-content: center;
  background-image: linear-gradient(rgba(40, 57, 87, 0.8)), url(/img/car.jpg);
  background-size: cover;
  border-bottom: 2px solid #eaebee;
}

.heading-text {
  color: #badfe8;
  text-decoration: underline;
  text-underline-offset: 0.4rem;
  text-decoration-color: #eaebee;
  text-decoration-thickness: 0.15rem;
  font-size: 2rem;
  letter-spacing: 2px;
  font-weight: 500;
}

.hero-btns {
  display: flex;
  gap: 5rem;
}

/* SERVICES SECTION */
.grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5rem;
  margin: 5rem 0;
}

.service-card:link,
.service-card:visited {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 3rem;
  background-color: #24334e;
  border-radius: 1rem;
  transition: all 0.3s;
  box-shadow: 0px 5px 5px 5px rgb(28, 40, 61, 0.5);
}

.service-card:hover,
.service-card:active {
  color: #eaebee;
  transform: scale(1);
  transform: translateY(-1rem);
  box-shadow: 0px 0px 5px 5px rgb(234, 235, 238, 1);
}

.service-card-bottom {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.slider-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
}

.container {
  display: grid;
  place-content: center;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  --position: 50%;
  border: 2px solid #fdfdff;
  place-items: center;
}

.slider-img-container {
  max-width: 800px;
  max-height: 90vh;
  aspect-ratio: 1;
}

.slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;
}

.img-before {
  position: absolute;
  inset: 0;
  width: var(--position);
}

.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  opacity: 0;
  /* for Firefox */
  width: 100%;
  height: 100%;
}

.slider:focus-visible ~ .slider-button {
  outline: 5px solid #283957;
  outline-offset: 3px;
}

.slider-line {
  position: absolute;
  inset: 0;
  width: 0.3rem;
  height: 100%;
  background-color: #fff;
  left: var(--position);
  transform: translateX(-50%);
  pointer-events: none;
}

.slider-button {
  position: absolute;
  background-color: #fff;
  padding: 0.5rem;
  border-radius: 100vw;
  display: grid;
  place-items: center;
  top: 50%;
  left: var(--position);
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 1px 1px 1px hsl(0, 50%, 2%, 0.5);
}

/* LOGOS SECTION */
.logos-section {
  border-bottom: 2px solid #eaebee;
}

.logos-wrapper {
  display: flex;
  gap: 5rem;
  align-items: center;
  justify-content: center;
  margin: 5rem 0;
}

.client-logo {
  width: 20rem;
  align-self: center;
  justify-self: center;
  filter: brightness(0) invert(95%);
  transition: all 0.3s;
}

.client-logo:hover {
  transform: scale(1.05);
}

/* TESTIMONIAL SECTION */
.testimonial-section {
  background-color: #24334e;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  border-radius: 1rem;
  background-color: #283957;
  box-shadow: 0px 5px 5px 5px rgb(28, 40, 61, 0.5);
}

.testimonial-top {
  display: flex;
  justify-content: space-between;
}

.name {
  color: #badfe8;
  text-decoration: underline;
  text-underline-offset: 0.5rem;
  text-decoration-color: #eaebee;
  text-decoration-thickness: 0.15rem;
}

.testimonial-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* MEET THE TEAM SECTION */
.meet-the-team-section {
  background-color: #24334e;
  border-bottom: 2px solid #eaebee;
  position: relative;
  padding-bottom: 15rem;
}

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7rem;
  padding: 3rem;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.profile-img {
  border-radius: 50%;
  width: 30rem;
  border: 2px solid #eaebee;
  box-shadow: 0px 5px 5px 5px rgb(28, 40, 61, 0.5);
}

.profile-bio {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.animated-car {
  position: absolute;
  bottom: -19rem;
  right: 0;
  animation: drive-across 3s linear forwards;
  animation-play-state: paused;
  will-change: transform;
}

.animated-car.is-active {
  animation-play-state: running;
}

@keyframes drive-across {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100vw - 700px));
  }
}

/* CONTACT SECTION */
.contact-section {
  border-bottom: 2px solid #eaebee;
}

.contact-option {
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 7rem;
  padding: 5rem;
  border-radius: 1rem;
  width: 80%;
  align-self: center;
  margin-top: 5rem;
  box-shadow: 0px 5px 5px 5px rgb(28, 40, 61, 0.5);
}

.contact-option-heading {
  color: #badfe8;
  font-size: 2.2rem;
}

.contact-options-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: center;
}

.form-field {
  width: 100%;
}

.form-box {
  width: 100%;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0px 5px 5px 5px rgb(28, 40, 61, 0.5);
  font-family: "Pridi", sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: #283957;
  background-color: #eaebee;
  border: none;
}

.btn-form {
  background-color: #badfe8;
  color: #283957;
  display: inline-flex;
  border-radius: 1rem;
  padding: 1rem 3rem;
  transition: all 0.3s;
  box-shadow: 0px 5px 5px 5px rgb(28, 40, 61, 0.5);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
  margin-top: 2rem;
  font-size: 1.8rem;
}

/* FOOTER SECTION */
.footer {
  padding: 10rem 5% 0 5%;
  background-color: #24334e;
}

.grid-4-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.footer-link {
  display: flex;
  gap: 1rem;
}

.footer-nav-links {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 3rem;
}

.arrow {
  width: 1.5rem;
}

.copyright-box {
  display: flex;
  justify-content: center;
}

.copyright-text {
  margin-top: 15rem;
  padding-bottom: 2rem;
}

/* Animations */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(3rem);
  transition-property: opacity, transform;
  transition-duration: 0.5s;
  transition-timing-function: ease;
  transition-delay: 0s;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll-delay {
  opacity: 0;
  transform: translateY(3rem);
  transition-property: opacity, transform;
  transition-duration: 0.5s;
  transition-timing-function: ease;
  transition-delay: 0.2s;
}

.animate-on-scroll-delay.visible {
  opacity: 1;
  transform: translateY(0);
}
