:root {
  --dark-blue: rgb(21, 77, 113);
  --blue: rgb(28, 110, 164);
  --light-blue: rgb(51, 161, 224);
  --cream: rgb(255, 249, 175);
}

.dark-blue {
  background-color: rgb(21, 77, 113);
}

.dark-blue-font {
  color: rgb(21, 77, 113);
}

.blue {
  background-color: rgb(28, 110, 164);
}

.blue-font {
  color: rgb(28, 110, 164);
}

.light-blue {
  background-color: rgb(51, 161, 224);
}

.light-blue-font {
  color: rgb(51, 161, 224);
}

.cream {
  background-color: rgb(255, 249, 175);
}

.cream-font {
  color: rgb(255, 249, 175);
}

.sansation-light {
  font-family: "Sansation", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.sansation-regular {
  font-family: "Sansation", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.sansation-bold {
  font-family: "Sansation", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.sansation-light-italic {
  font-family: "Sansation", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.sansation-regular-italic {
  font-family: "Sansation", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.sansation-bold-italic {
  font-family: "Sansation", sans-serif;
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: "Motorama";
  src: url("assets/motorama.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

/* Loader Overlay */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
#loader.hidden {
  display: none;
}

.wheel-svg {
  height: 5rem;
  fill: #1c6ea4;
  animation: spinner-rotation 1s linear infinite;
  transform-origin: center center;
}

@keyframes spinner-rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.menu-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  padding: 0.5rem 1rem; /* Adjusts padding as needed */
}

.menu-link::after,
.menu-link::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #fff9af, #33a1e0);
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease-out;
}

.menu-link::before {
  top: -5px;
  transform-origin: left;
}

.menu-link:hover::after,
.menu-link:hover::before {
  transform: scaleX(1);
}

.menu-link:hover,
.menu-link:focus {
  color: white; /* No hover color change */
  text-decoration: none; /* No underline on hover */
}

.nav-link:hover,
.nav-link:focus {
  color: white; /* No hover color change */
  text-decoration: underline; /* No underline on hover */
}

.main-menu {
  position: relative;
  bottom: 5%;
}

.main-menu > ul:first-of-type,
.main-menu > ul:nth-of-type(3) {
  width: 250px;
}

.grid-container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr; /* Three equal columns */
  grid-template-rows: 1fr 1fr;
  z-index: 50;
}

.top-title {
  grid-column: 1 / 3;
  justify-self: center;
  align-self: start;
}

.bottom-title {
  position: relative;
  bottom: 5px;
  grid-column: 1 / 4;
  justify-self: center;
  align-content: center;
  align-self: self-start;
  min-width: 200px;
}

.text-overlay {
  position: relative;
  z-index: 1; /* Place the text above the SVG */
}

.background-svg-container {
  width: clamp(3rem, 8vw, 5rem);
  aspect-ratio: 1 / 1; /* keeps it square; delete if not needed */
  position: relative;

  left: 0.6rem;
  bottom: 0.2rem;
}

.background-svg {
  width: 100%;
  height: auto;
  display: block;
  fill: #1c6ea4;
}

.background-2-svg-container {
  width: clamp(3rem, 8vw, 5rem);
  aspect-ratio: 1 / 1; /* keeps it square; delete if not needed */
  position: relative;
  left: 0.6rem;
  bottom: 0.2rem;
  z-index: 0;
}

/* svg: scale by width, keep aspect */
.background-2-svg {
  width: 100%;
  height: auto; /* <-- the key change */
  display: block;
  fill: #1c6ea4;
}

.wind-svg {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  fill: #1c6ea4;
}

header {
  height: 190px;
}

.top-header {
  z-index: 1;
}

.navbar {
  z-index: 20;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler-icon {
  background-image: none;
  fill: var(--cream);
  stroke: var(--cream);
}

#myCarousel {
  position: relative;
  max-height: calc(100vh - 170px); /* Set maximum height to viewport height */
  overflow: hidden;
}

.carousel-item img {
  position: relative;
  width: 100%; /* Ensures the image fills the width of its container */
  height: calc(100vh - 170px);
  object-fit: cover; /* Crops the image to fit the container while maintaining aspect ratio */
}

#station {
  object-position: 50% 30%; /* Centers the image within the container */
}

#parts {
  object-position: 50% 60%; /* Centers the image within the container */
}

#steering-wheel {
  object-position: 50% 63%; /* Centers the image within the container */
}

.overlay {
  position: absolute;
  top: 20%; /* Adjust as needed */
  z-index: 10; /* Ensure it stays on top of the carousel */
}

.carousel-jumbotron {
  background-color: rgb(21, 77, 113, 0.75);
}

.carousel-text {
  text-shadow: 0px 0px 10px rgba(28, 110, 164, 1);
}

.btn-flashy {
  position: relative;
  cursor: pointer;
  border: none;
  background: linear-gradient(to right, rgb(21, 77, 113), #33a1e0);
  overflow: hidden;
}

.btn-flashy svg {
  width: 1.2em;
  height: 1.2em;
  margin-right: 0.5em;
}

.btn-flashy span {
  position: relative;
  z-index: 10;
  transition: color 0.4s;
  display: inline-flex;
  align-items: center;
  padding: 0.8em 1.2em 0.8em 1.05em;
}

.btn-flashy::before,
.btn-flashy::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.btn-flashy::before {
  content: "";
  background-color: #1c6ea4;
  width: 120%;
  left: -10%;
  transform: skew(30deg);
  transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
}

.btn-flashy:hover::before {
  transform: translate3d(100%, 0, 0);
}

.btn-flashy:active {
  transform: scale(0.95);
}

.hero {
  background-image: url("images/parts-bg.webp");
  background-size: cover;
  overflow: hidden;
  position: relative;
}

.hero .col:first-of-type {
  animation: risingDiv1 linear;
  animation-timeline: scroll(root block);
  animation-duration: 1s;
  animation-fill-mode: both;
}

.hero h1 span {
  letter-spacing: 0.2rem;
}

.wires {
  width: 90%;
  height: 480px;

  background-size: cover;
  background-repeat: no-repeat;
  background-image: url("images/wires-edit.webp");
  background-position: center;
}

.wires-crop {
  height: 470px;
  position: relative;
}

.stamp-container {
  position: relative;
}

.stamp {
  transform: scale(0.75) rotate(10deg);
  position: absolute;
  top: 40%;
  right: 20%;
  width: 100%;
  height: 100%;
  background: url("images/stamp.png") no-repeat center center;
  background-size: contain;
  pointer-events: none;
}

@media only screen and (min-width: 992px) {
  header {
    height: 170px;
  }
  .wires {
    width: 90%;
    height: 480px;

    background-size: cover;
    background-repeat: no-repeat;
    background-image: url("images/wires-edit.webp");
    background-position: center;

    animation: slideInLeft linear;
    animation-timeline: scroll(root block);
    animation-range-end: 50%;
    animation-duration: 1s;
    animation-fill-mode: both;
  }

  @keyframes slideInLeft {
    0% {
      transform: translateX(-100%);
    }
    30% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(0);
    }
  }

  .hero-text {
    animation: slideInRight linear;
    animation-timeline: scroll(root block);
    animation-range-end: 50%;
    animation-duration: 1s;
    animation-fill-mode: both;
  }

  @keyframes slideInRight {
    0% {
      transform: translateX(100%);
    }
    30% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(0);
    }
  }

  .stamp {
    transform: translateX(100vw) scale(0.75) rotate(10deg);

    animation: rollIn linear;
    animation-timeline: scroll(root block);
    animation-range-end: 70%;
    animation-duration: 1s;
    animation-fill-mode: both;
  }

  @keyframes rollIn {
    0% {
      transform: translateX(100vw) translateY(0) rotate(-180deg) scale(2);
      opacity: 0.5;
    }
    15% {
      transform: translateX(-20vw) translateY(-50vh) rotate(180deg) scale(1);
      opacity: 1;
    }
    30% {
      transform: translateX(0) translateY(0) rotate(0deg) scale(0.75);
      opacity: 1;
    }
    100% {
      transform: translateX(0) translateY(0) rotate(0deg) scale(0.75);
      opacity: 1;
    }
  }

  @keyframes risingDiv1 {
    0% {
      transform: translateY(100%);
    }
    40% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(0);
    }
  }

  .hero .col:nth-of-type(2) {
    animation: risingDiv2 linear;
    animation-timeline: scroll(root block);
    animation-duration: 1s;
    animation-fill-mode: both;
  }

  @keyframes risingDiv2 {
    0% {
      transform: translateY(100%);
    }
    30% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(0);
    }
  }

  .hero .col:nth-of-type(3) {
    animation: risingDiv3 linear;
    animation-timeline: scroll(root block);
    animation-duration: 1s;
    animation-fill-mode: both;
  }

  @keyframes risingDiv3 {
    0% {
      transform: translateY(100%);
    }
    20% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(0);
    }
  }
}

.any {
  text-shadow: 0px 0px 20px rgba(51, 161, 224, 1);
}

.feature-icon {
  width: 7rem;
  height: 7rem;
  border-radius: 0.75rem;
  stroke: none;
  fill: rgb(51, 161, 224);
  margin-top: 1rem;
  margin-left: 1rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  align-content: center;
  background-image: linear-gradient(
    180deg,
    rgb(28, 110, 164, 0.15),
    rgb(28, 110, 164, 0)
  );
}

.testimonials {
  background-image: url("images/engine-bg.webp");
  background-size: cover;
  height: auto;
}

.testimonials > .text-center:first-of-type {
  text-shadow: 0px 0px 10px rgba(51, 161, 224, 1);
}

/* Make each slide a flex container so the card can stretch */
.mySwiper .swiper-slide {
  display: flex;
  height: auto; /* avoid unexpected fixed slide heights */
  overflow-x: hidden;
}

/* Ensure the card fills the slide and stacks content correctly */
.mySwiper .swiper-slide > .card {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Keep the quote text pushing the footer down so footers align */
.mySwiper .card .card-text {
  flex-grow: 1;
}

.makeSwiper {
  height: auto;
  font-family: "Motorama";
}

.makeSwiper .swiper-wrapper {
  transition-timing-function: linear;
  text-align: center;
}

.makeSwiper .swiper-slide {
  width: auto;
  cursor: default;
}

.fleet-banner {
  background-image: url("images/another-engine-bg.webp");
  background-size: cover;
  background-position: center;
  text-shadow: 0px 0px 10px rgba(51, 161, 224, 1);
}

.about-banner {
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0.5)
    ),
    url("images/hood.webp");
  background-size: cover;
  background-position: center;
  text-shadow: 2px 2px 10px rgba(21, 77, 113, 1);
  height: 20vh;
}

.about-main {
  background-image: url("images/about-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: none;
}

.services-main {
  background-image: url("images/services.webp");
  background-size: cover;
  background-position: center;
  background-repeat: none;
}

.services-main .card {
  height: 100%;
  background-color: var(--dark-blue);
  border: none;
}

.services-main .card-title {
  text-align: center;
}

.services-main .card-body {
  display: flex;
  flex-direction: column;
  color: var(--cream);
  text-shadow: 2px 2px 10px rgb(51, 161, 224, 1);
  background-image: linear-gradient(
    90deg,
    var(--dark-blue) 0%,
    var(--blue) 100%
  );
}

.services-main .card-body button {
  margin-top: auto;
}

.services-main img {
  height: 190px;
  object-position: 50% 75%;
  object-fit: cover;
}

.contact-main {
  background-image: linear-gradient(
      180deg,
      rgba(51, 161, 224, 1),
      rgba(21, 77, 113, 0.7)
    ),
    url("images/contact-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: none;
}

.contact-main .card {
  background-color: rgba(255, 249, 175, 0.8);
}

.contact-main .card svg {
  fill: var(--dark-blue);
  height: 150px;
}

.picsSwiper {
  width: 100%;
  height: 100%;
}

.pic {
  background-position: center center; /* Centers the background image */
  background-repeat: no-repeat; /* Prevents the image from repeating */
  background-size: cover; /* Scales the image to cover the entire div while maintaining aspect ratio */
  height: 50vh;
}

.office-back-img {
  background-image: url("images/office_back.webp");
}

.engine-removal-img {
  background-image: url("images/engine-removal.webp");
}

.doggy-img {
  background-image: url("images/doggy.jpg");
  background-position: bottom 90% center;
}

.parts-2-img {
  background-image: url("images/parts-2.webp");
}

.office-front-img {
  background-image: url("images/office_front.webp");
}

.parts-img {
  background-image: url("images/parts.webp");
}

.footer-menu {
  background-image: url("images/transmission.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.footer-menu p {
  line-height: 1.2rem;
}

.footer-bottom-border {
  border-bottom: 1px solid var(--cream);
}

.garage-svg {
  fill: var(--blue);
  transform: rotateY(180deg);
  filter: drop-shadow(0px 0px 10px var(--dark-blue));
}
