/*Media-Queries */
/* For Screens Below 840px */
@media (max-width: 52rem) {
  body {
    overflow-x: hidden;
  }

  html {
    overflow-x: hidden;
  }

  h2 {
    font-size: 2rem;
    margin-top: 0rem;
    margin-bottom: 5rem;
  }

  h1 {
    font-size: 2rem;
  }

  .hero-section {
    height: 100vh;
  }

  header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
      url(Models-Section/52rem-header-background-images/52rem-header-background-image-1.avif);
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    position: relative;

    /* for bouncing background  */
    animation: bounceBackground 4s ease-in-out infinite;
    transition: background-image 0.4s ease-in-out;
  }

  /* Mobile Navigation */
  .quantum-mobile-nav {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 8rem;
    right: 15rem;
    z-index: 9999;
  }

  /* This helps open and close the nav, Which later would be handled by javascript */
  .nav-open .Quantum-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translate(0);
  }

  .nav-open .close-nav-btn-icon {
    display: block;
    height: 2.4rem;
    width: 2.4rem;
    z-index: 9999;
    fill: #f5f5f5;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .nav-open .open-nav-btn-icon {
    display: none;
    height: 2.5rem;
    width: 2.5rem;
    z-index: 9999;
    fill: #f5f5f5;
  }

  .open-nav-btn-icon {
    height: 2.4rem;
    width: 2.4rem;
    z-index: 9999;
    fill: #f5f5f5;
    position: absolute;
    top: -1.5rem;
    right: -7rem;
  }

  .close-nav-btn-icon {
    height: 2.8rem;
    width: 2.8rem;
    z-index: 9999;
    color: #888;
    display: none;
  }

  /* Mobile Navigation End 
  **************************/

  /* Hero Section */
  /****************/
  .Quantum-nav {
    display: flex;
    gap: 2rem;
    padding: 0;
    font-size: 2.2rem;
    background-color: rgba(10, 10, 10, 0.382);
    backdrop-filter: blur(8px);
    justify-content: center;
    flex-direction: column;
    align-items: center;
    font-family: "Open-sans";
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 9999;
    text-transform: capitalize;
    transition: all 0.5s;
    height: 100vh;
    transform: translateX(
      100%
    ); /* To make it slide, Transform Translate (0) in the .nav-open .Quantum-nav class makes it work,otherwise is stucked */

    /*Hide The navigation */
    opacity: 0;
    pointer-events: none;
    visibility: 0;
  }

  .Quantum-nav > div {
    flex-grow: 0;
    text-align: justify;
  }

  .Quantum-Motors-logo {
    height: 10.5rem;
    width: 17rem;
    position: absolute;
    top: 14%;
    left: 39.5%;
  }

  .Quantum-Motors-logo-1 {
    display: block;
    height: 25rem;
    width: 25rem;
    position: absolute;
    top: -3rem;
    left: 2rem;
    color: #800020;
  }

  .Quantum-nav-link:link,
  .Quantum-nav-link:visited {
    text-decoration: none;
    color: #f5f5f5;
    transition: 0.3s ease-in-out;
    font-size: 1.6rem;
    letter-spacing: 1.6px;
  }

  .Quantum-nav-link:active,
  .Quantum-nav-link:hover {
    /*color: #a64d63; */
    background-color: #f5f5f5;
    color: #0a0a0a;
    padding: 1.2rem 1.6rem;
    transition: all ease-in-out 0.4s;
    border-radius: 0.5rem;
    font-family: "Orbitron";
    font-size: 1.6rem;
    border: 2px solid #0a0a0a;
  }

  .header-inner-container {
    position: absolute;
    font-size: 2rem;
    text-transform: uppercase;
    color: #f5f5f5;
    font-family: "Orbitron";
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.8;
    width: 80%;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.4),
      0 0 8px rgba(255, 255, 255, 0.3);
  }

  .discover-button:link,
  .discover-button:visited {
    text-decoration: none;
    color: #f5f5f5;
    background-color: #800020;
    font-size: 1.8rem;
    border-radius: 0.5rem;
    letter-spacing: 4px;
    padding: 1.6rem 2.2rem;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  }

  .discover-button:active,
  .discover-button:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
    transition: all 0.3s ease-in-out;
    background-color: rgba(245, 245, 245, 0.803);
    color: #f5f5f5;
    padding: 2.2rem 2.8rem;
    border-radius: 0.5rem;
    color: #800020;
  }
  /* Hero Section End */
  /****************/

  /* About Section */
  /****************/
  .About-Section {
    padding: 1rem 5rem;
    background: linear-gradient(to bottom, #800020, #4a0010);
  }

  .h2-about {
    font-size: 2rem;
    color: #f5f5f5;
    margin-bottom: 3rem;
    text-align: center;
  }

  .about-descriptive-text {
    font-size: 1.6rem;
    color: #f5f5f5;
    margin-bottom: 2rem;
    width: 100%;
    line-height: 1.5;
    text-align: center;
  }
  /* About Section End */
  /****************/

  /* Search Models Section */
  .Search-Models {
    padding: 7.5rem 5rem;
    background-color: #0a0a0a;
  }

  .Search-Models-title {
    font-size: 2.4rem;
    text-align: center;
    letter-spacing: 1.5px;
    font-weight: 700;
    font-family: "Orbitron";
    color: #f5f5f5;
    margin-bottom: 0rem;
  }

  .models-description-text {
    font-size: 1.6rem;
    letter-spacing: 1.2px;
    text-align: center;
    margin-bottom: 0rem;
  }

  .car-card-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
    width: 100%;
    margin-top: 7.5rem;
    grid-auto-rows: 40.2rem;
  }

  .card-title {
    display: none;
    font-size: 2.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: "Orbitron";
    margin-bottom: 0rem;
    color: #f5f5f5;
    text-align: center;
    text-shadow: 3px 3px 10px rgba(255, 255, 255, 0.3);
  }

  .card-subtitle {
    font-size: 1.6rem;
    display: none;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0rem;
    text-transform: uppercase;
    color: #f5f5f5;
    text-align: center;
    text-shadow: 2px 2px 5px rgba(255, 255, 255, 0.3);
  }

  .card-slogan {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    color: #f5f5f5;
    display: none;
  }

  .SearchModelsbtn {
    text-decoration: none;
    font-size: 2rem;
    font-weight: 900;
    color: #f5f5f5;
    width: 100%;
    display: block;
    background-color: #800020;
    padding: 1rem 2rem;
    text-align: center;
    margin-top: 0rem;
    display: none;
  }

  .SearchModelsbtn:hover {
    background: linear-gradient(
      90deg,
      #800020,
      #cc99a6
    ); /* Changes the color of the button when hovered over in gradient manner from left to right */
    transform: scale(1.4); /* Makes the button pops up when hovered over */
  }
  /* SearchModelsModal Section End 
  **************************** */

  /* Styling the card background here */
  .card-background-1 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url(Models-Section/52rem-card-background-images/52rem-card-background-image-1.avif);
    background-size: cover; /* Ensures full coverage */
    background-position: center; /* Centers the image */
  }

  .card-background-2 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url(Models-Section/52rem-card-background-images/52rem-card-background-image-2.avif);
    background-size: cover; /* Ensures full coverage */
    background-position: center; /* Centers the image */
  }

  .card-background-3 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url(Models-Section/52rem-card-background-images/52rem-card-background-image-3.avif);
    background-size: cover; /* Ensures full coverage */
    background-position: center; /* Centers the image */
  }

  .card-background-4 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url(Models-Section/52rem-card-background-images/52rem-card-background-image-4.avif);
    background-size: cover; /* Ensures full coverage */
    background-position: left; /* Centers the image */
  }
  /********************
  Styling the cards background end*/

  /* How it works Section */
  /********************/
  .How-it-works-section {
    position: relative;
    padding: 7.5rem 5rem;
    background-color: #800020;
    background: linear-gradient(to bottom, #800020, #4a0010),
      radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    clip-path: polygon(
      0 0,
      100% 2%,
      100% 98%,
      0 100%
    ); /* Makes the edges of beggining and the end of the section sharp */
    /* 0 0,
        100% 5%,
        100% 100%,
        0% 95% */

    /* angled divider at the top/bottom to add depth. */
  }
  .grid-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    column-gap: 0rem;
    row-gap: 0rem;
    grid-auto-rows: 30rem; /* grid auto rows 50rem gives all the elements equal height and width */
    align-items: stretch; /* this one stretches the images to fit into the gien height and width ? */
  }

  .Z-pattern-1 {
    display: grid;
    grid-template-columns: 45fr 55fr;
    gap: 0rem;
  }

  .How-it-works-header {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 7.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #f5f5f5;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6); /* Subtle shadow for depth */
  }

  .optional-text {
    font-size: 1.4rem;
    font-weight: 700;
    align-self: center;
    text-align: center;
    color: #f5f5f5;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
    cursor: pointer;
  }

  .z-pattern-image,
  .z-pattern-image-1,
  .z-pattern-image-2 {
    width: 100%;
    height: 100%;
    object-fit: scale-down; /* /* this property makes the images fit into the grid-auto-rows */
    border-radius: 0.5rem;
    justify-self: center;
    transition: transform 0.3s ease; /*This effect compliments the transition in the transform scale property with hover */
  }

  .Z-Pattern-link:link,
  .Z-Pattern-link:visited {
    position: relative; /* this one supplements the Z-pattern-link::after */
    font-size: 1.8rem;
    font-weight: 950;
    align-self: center;
    text-align: center;
    text-decoration: none;
    color: #f5f5f5;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
  }
  /* How it works Section End*/
  /********************


  
  /* Test-Drive Section 
    /********************/
  .test-drive {
    padding: 10rem 5rem;
    background-color: #0a0a0a;
  }

  .test-drive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 5rem;
  }

  .Test-drive-Header {
    color: #f5f5f5;
    text-align: center;
    font-size: 2.4rem;
    text-transform: uppercase;
    margin-bottom: 7.5rem;
    letter-spacing: 1.5px;
    text-shadow: 2px 3px 5px rgba(121, 114, 114, 0.25); /* Stronger text-shadow for a more intense look */
    font-weight: 700;
  }

  .test-text {
    font-size: 1.6rem;
    color: #f5f5f5;
    line-height: 1.4;
    letter-spacing: 1.3px;
    font-weight: 400;
  }

  .test-flex {
    display: flex;
    gap: 2rem;
    align-items: center;
  }

  .test-drive-link:link,
  .test-drive-link:visited {
    text-decoration: none;
    font-size: 1.6rem;
    border-radius: 100%;
    background-color: #f5f5f5;
    padding: 0.8rem 1.4rem;
    color: #0a0a0a;
    transition: background-color 0.3s ease; /* Smooth transition on hover */
  }

  /* Hover effect to make it pop */
  .test-drive-link:hover,
  .test-drive-link:active {
    background-color: #0a0a0a;
    color: #f5f5f5;
  }

  .horizontal-line {
    background-color: #f5f5f5;
    height: 0.15rem;
    flex-grow: 0.9;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Add subtle shadow for more depth */
  }

  .test-drive-text {
    color: #f5f5f5;
    font-size: 1.4rem;
    margin-bottom: 3rem;
    letter-spacing: 1px;
    font-weight: 400;
    text-align: justify;
  }
  .test-drive-form label {
    font-size: 1.4rem;
    color: #f5f5f5;
    letter-spacing: 1px;
    color: #f5f5f5;
    justify-self: start;
  }

  .test-drive-form input {
    font-size: 1.2rem;
    border-radius: 0.5rem;
    padding: 0.8rem 1.4rem;
    text-align: center;
    border: solid 2px #f5f5f5;
    letter-spacing: 1px;
  }

  .test-drive-form select {
    margin-right: 3rem;
    font-size: 1.2rem;
    border-radius: 0.5rem;
    padding: 0.8rem 1.4rem;
    letter-spacing: 1px;
    color: #888;
    text-align: center;
  }
  .submit-button {
    font-size: 1.2rem;
    border-radius: 0.5rem;
    padding: 0.8rem 1.4rem;
    letter-spacing: 1px;
    cursor: pointer;
    width: 50%;
    justify-self: center;
    margin-top: 3rem;
    color: #888;
    grid-column: 1 / 3;
  }
  /* Test-Drive Section End
    /********************/

  /* Support-Section */
  .Support-Section {
    padding: 7.5rem 5rem;
    background: linear-gradient(to bottom, #800020, #4a0010),
      radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    clip-path: polygon(0 0, 100% 2%, 100% 98%, 0 100%);
  }

  .support-section-grid {
    margin-left: -2rem;
    margin-right: -2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    text-align: center;
  }

  .support-title {
    font-size: 2.4rem;
    text-align: center;
    font-weight: 700;
    margin-bottom: 7.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #f5f5f5;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6); /* Subtle shadow for depth */
  }

  .support-section-title {
    font-size: 1.6rem;
    font-weight: 500;
    color: #f5f5f5;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
  }

  .contact-col-3 {
    grid-column: 1 / 3;
    justify-self: center;
    align-self: center;
    width: 50%;
  }

  .support-section-descriptive-text {
    font-size: 1.4rem;
    color: #f5f5f5;
    letter-spacing: 1.2px;
    margin-bottom: 2rem;
  }

  .support-section-grid > div {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* This ensures content is spaced evenly and pushes the link to the bottom */
  }

  .support-section-image {
    width: 100%;
    height: 38rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 3px 5px 10px rgba(0, 0, 0, 0.3);
    border: 1.5px solid #0a0a0a;
  }

  .support-section-link:link,
  .support-section-link:visited {
    text-decoration: none;
    border-radius: 0.5rem;
    border: solid 3px #0a0a0a;
    letter-spacing: 1px;
    padding: 1.2rem 1.6rem;
    background-color: #f5f5f5;
    font-size: 1.2rem;
    text-transform: uppercase;
    font-weight: bolder;
    color: #0a0a0a;
    display: block;
    margin-top: auto; /* Makes sure that the link stays at the bottom no matter the content above it */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
  }

  .support-section-link:hover,
  .support-section-link:focus {
    background-color: #0a0a0a; /* Dark background on hover/focus */
    color: #f5f5f5; /* Light text color on hover/focus */
    transform: scale(1.05); /* Slightly enlarge the link on hover */
    border: solid 4px #0a0a0a;
  }
  /* Support Section End 
      *****************/

  /* Support Complimentary Section */
  /********************/
  .support-section-complimentary {
    padding: 5rem;
    background-color: #0a0a0a;
  }

  .complimentary-header {
    font-size: 1.5rem;
    color: #f5f5f5;
    letter-spacing: 1.5px;
    margin-bottom: 0.3rem;
    margin-top: 3rem;
    font-weight: 600;
    text-transform: none;
  }

  .complimentary-header-first {
    margin-top: 0;
  }

  .complimentary-text {
    font-size: 1.4rem;
    color: #f5f5f5;
    letter-spacing: 1px;
    text-align: justify;
  }

  /* Support Complimentary Section End */
  /********************/

  /* Footer-Section */
  /********************/
  .footer-section {
    padding: 10rem 5rem;
    background: linear-gradient(to bottom, #800020, #4a0010),
      radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    clip-path: polygon(0 0, 100% 5%, 100% 95%, 0 100%);
    border-top: 4px solid #f5f5f5;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 6rem;
    column-gap: 0;
    height: auto;
    align-items: start;
    width: 100%;
  }

  .footer-header {
    font-size: 1.5rem;
    margin-bottom: 0rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    color: #f5f5f5;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
  }

  .footer-elements {
    margin-top: 1rem;
    color: #f5f5f5;
    font-size: 1.3rem;
    text-transform: none;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 1px;
  }

  .footer-elements-links-grid {
    display: flex;
    gap: 4rem;
  }

  .social-links {
    margin-top: 3rem;
    display: flex;
    border-radius: 1rem;
    justify-content: start;
    gap: 3rem;
  }

  .footer-icon {
    height: 2.4rem;
    width: 2.4rem;
    fill: #f5f5f5;
  }

  .footer-link:link,
  .footer-link:visited {
    text-decoration: none;
    color: #f5f5f5;
    letter-spacing: 1.7px;
    font-size: 1.3rem;
    font-weight: 400;
    transition: all 0.3s ease-in-out;
  }

  .footer-link:active,
  .footer-link:hover {
    background-color: #f5f5f5;
    color: #0a0a0a;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1.5rem;
    transition: all ease-in-out 0.4s;
    font-family: "Orbitron";
    font-weight: 600;
    border: 2px solid #0a0a0a;
  }

  .footer-column-second {
    justify-self: center;
  }
}

/* Media Query for screens below 625px */
@media (max-width: 39rem) {
  body {
    overflow-x: hidden;
  }

  html {
    overflow-x: hidden;
  }

  h2 {
    font-size: 1.8rem;
    margin-top: 1rem;
    margin-bottom: 5rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  .hero-section {
    height: 100vh;
  }

  header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
      url(Models-Section/39rem-header-background-images/39rem-header-background-image-1.avif);
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    position: relative;

    /* for bouncing background  */
    animation: bounceBackground 4s ease-in-out infinite;
    transition: background-image 0.4s ease-in-out;
  }

  /* Hero Section */
  /****************/
  .Quantum-nav {
    display: flex;
    gap: 2rem;
    padding: 0;
    font-size: 2.2rem;
    background-color: rgba(10, 10, 10, 0.382);
    backdrop-filter: blur(8px);
    justify-content: center;
    flex-direction: column;
    align-items: center;
    font-family: "Open-sans";
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 9999;
    text-transform: capitalize;
    transition: all 0.5s;
    height: 100vh;
    transform: translateX(
      100%
    ); /* To make it slide, Transform Translate (0) in the .nav-open .Quantum-nav class makes it work,otherwise is stucked */

    /*Hide The navigation */
    opacity: 0;
    pointer-events: none;
    visibility: 0;
  }

  .Quantum-Motors-logo {
    height: 9rem;
    width: 14rem;
    position: absolute;
    top: 17%;
    left: 39%;
  }

  .Quantum-Motors-logo-1 {
    display: block;
    height: 35rem;
    width: 25rem;
    position: absolute;
    top: -9rem;
    left: 2.5rem;
    color: #800020;
  }

  /* Mobile Navigation */
  .quantum-mobile-nav {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 8rem;
    right: 15rem;
    z-index: 9999;
  }

  .open-nav-btn-icon {
    height: 2.5rem;
    width: 2.5rem;
    z-index: 9999;
    fill: #f5f5f5;
    position: absolute;
    top: -3rem;
    right: -8rem;
  }

  .close-nav-btn-icon {
    height: 2.5rem;
    width: 2.5rem;
    z-index: 9999;
    color: #888;
    display: none;
  }

  .nav-open .close-nav-btn-icon {
    display: block;
    height: 2.4rem;
    width: 2.4rem;
    z-index: 9999;
    fill: #f5f5f5;
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
  }

  .Quantum-nav-link:link,
  .Quantum-nav-link:visited {
    text-decoration: none;
    color: #f5f5f5;
    transition: 0.3s ease-in-out;
    font-size: 1.6rem;
    letter-spacing: 1.8px;
  }

  .Quantum-nav-link:active,
  .Quantum-nav-link:hover {
    background-color: #f5f5f5;
    color: #0a0a0a;
    padding: 1rem 1.5rem;
    transition: all ease-in-out 0.4s;
    border-radius: 0.5rem;
    font-family: "Orbitron";
    font-size: 1.6rem;
    border: 2px solid #0a0a0a;
    text-transform: none;
  }

  .header-inner-container {
    position: absolute;
    font-size: 2rem;
    text-transform: uppercase;
    color: #f5f5f5;
    font-family: "Orbitron";
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1.5;
    text-align: center;
    width: 100%;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.4),
      0 0 8px rgba(255, 255, 255, 0.3);
  }

  .discover-button:link,
  .discover-button:visited {
    text-decoration: none;
    color: #f5f5f5;
    background-color: #800020;
    font-size: 1.6rem;
    border-radius: 0.5rem;
    letter-spacing: 2.5px;
    padding: 1.4rem 2rem;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  }

  .discover-button:active,
  .discover-button:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
    transition: all 0.3s ease-in-out;
    background-color: rgba(245, 245, 245, 0.803);
    color: #f5f5f5;
    padding: 2.2rem 2.8rem;
    border-radius: 0.5rem;
    color: #800020;
  }
  /* Hero Section End */
  /****************/

  /* About Section */
  /****************/
  .About-Section {
    padding: 1rem 5rem;
    background: linear-gradient(to bottom, #800020, #4a0010);
  }

  .h2-about {
    font-size: 1.8rem;
    color: #f5f5f5;
    margin-bottom: 1rem;
    text-align: center;
  }

  .about-descriptive-text {
    font-size: 1.4rem;
    color: #f5f5f5;
    margin-bottom: 2rem;
    width: 100%;
    line-height: 1.5;
    text-align: center;
  }
  /* About Section End */
  /****************/

  /* Search Models Section */
  .Search-Models {
    padding: 5rem 2.5rem;
    background-color: #0a0a0a;
  }

  .Search-Models-title {
    font-size: 2.4rem;
    text-align: center;
    letter-spacing: 1.5px;
    font-weight: 700;
    font-family: "Orbitron";
    color: #f5f5f5;
    align-self: center;
    display: block;
  }

  .car-card {
    background: #141414;
    backdrop-filter: blur(10px);
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 10px 10px 25px rgba(0, 0, 0, 0.9);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border-radius: 0.5rem;
    overflow: hidden;
    min-height: 40rem;
  }

  .car-card-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    width: 100%;
    margin-top: 5rem;
    grid-auto-rows: 40.2rem;
  }

  .card-content {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    min-height: 40.4rem;
    justify-content: space-around;
  }

  .card-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: "Orbitron";
    margin-bottom: 1rem;
    color: #f5f5f5;
    text-align: center;
    text-shadow: 3px 3px 10px rgba(255, 255, 255, 0.3);
  }

  .card-subtitle {
    font-size: 1.6rem;
    display: none;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0rem;
    text-transform: uppercase;
    color: #f5f5f5;
    text-align: center;
    text-shadow: 2px 2px 5px rgba(255, 255, 255, 0.3);
  }

  .car-slogan {
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 0rem;
    color: #f5f5f5;
    line-height: 1.3;
    text-align: center;
  }

  .SearchModelsbtn {
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    color: #f5f5f5;
    width: 75%;
    display: none;
    background-color: #800020;
    padding: 1rem 2rem;
    text-align: center;
    align-self: center;
    border-radius: 0.5rem;
    letter-spacing: 1px;
  }

  .SearchModelsbtn:hover,
  .SearchModelsbtn:focus {
    background: linear-gradient(
      90deg,
      #040404,
      #9b9b9b
    ); /* Changes the color of the button when hovered over in gradient manner from left to right */
    transform: scale(1.4); /* Makes the button pops up when hovered over */
    padding: 0.8rem 1.2rem;
    font-size: 1.4rem;
  }
  /* Search Models Section End 
  *******************************/

  /* Styling the card background here */
  .card-background-1 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url(Models-Section/39rem-card-background-images/39rem-card-background-image-1.avif);
    background-size: cover; /* Ensures full coverage */
    background-position: center; /* Centers the image */
  }

  .card-background-2 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url(Models-Section/39rem-card-background-images/39rem-card-background-image-2.avif);
    background-size: cover; /* Ensures full coverage */
    background-position: center; /* Centers the image */
  }

  .card-background-3 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url(Models-Section/39rem-card-background-images/39rem-card-background-image-3.avif);
    background-size: cover; /* Ensures full coverage */
    background-position: center; /* Centers the image */
  }

  .card-background-4 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url(Models-Section/39rem-card-background-images/39rem-card-background-image-4.avif);
    background-size: cover; /* Ensures full coverage */
    background-position: center; /* Centers the image */
  }
  /********************
  Styling the cards background end*



  /* How it Works Section */
  /*******************/
  .How-it-works-section {
    position: relative;
    padding: 5rem 2.5rem;
    background-color: #800020;
    background: linear-gradient(to bottom, #800020, #4a0010),
      radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    clip-path: polygon(
      0 0,
      100% 2%,
      100% 98%,
      0 100%
    ); /* Makes the edges of beggining and the end of the section sharp */
  }

  .grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 0rem;
    row-gap: 0rem;
    grid-auto-rows: 15rem; /* grid auto rows 50rem gives all the elements equal height and width */
    align-items: stretch; /* this one stretches the images to fit into the gien height and width ? */
  }

  .Z-pattern-1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 10rem;
    column-gap: 0rem;
    row-gap: 4rem;
  }

  .How-it-works-header {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1.5px;
    color: #f5f5f5;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6); /* Subtle shadow for depth */
  }

  .optional-text {
    font-size: 1.2rem;
    font-weight: 700;
    align-self: center;
    text-align: center;
    color: #f5f5f5;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
    cursor: pointer;
  }

  .z-pattern-image,
  .z-pattern-image-1,
  .z-pattern-image-2 {
    width: 50%;
    height: 100%;
    object-fit: cover; /* /* this property makes the images fit into the grid-auto-rows */
    border-radius: 2rem;
    align-self: center;
    justify-self: center;
    transition: transform 0.3s ease; /*This effect compliments the transition in the transform scale property with hover */
  }

  .Z-Pattern-link:link,
  .Z-Pattern-link:visited {
    font-size: 1.3rem;
    font-weight: 600;
    align-self: flex-end;
    text-align: center;
    text-decoration: none;
    color: #f5f5f5;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
  }

  .z-pattern-image:hover {
    transform: scale(0.6);
  }
  .z-pattern-image-1:hover {
    transform: scale(0.6);
  }
  .z-pattern-image-2:hover {
    transform: scale(0.6);
  }
  /* How it Works Section End */
  /*******************/

  /* Test-Drive Section 
    /********************/
  .test-drive {
    padding: 5rem 2.5rem;
    background-color: #0a0a0a;
  }

  .test-drive-grid {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 1rem;
    margin-bottom: 5rem;
  }

  .Test-drive-Header {
    color: #f5f5f5;
    font-size: 2.4rem;
    text-transform: uppercase;
    margin-bottom: 5rem;
    letter-spacing: 1.5px;
    text-shadow: 2px 3px 5px rgba(121, 114, 114, 0.25); /* Stronger text-shadow for a more intense look */
    font-weight: 700;
    text-align: center;
  }

  .test-flex {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
  }

  .test-drive-text {
    color: #f5f5f5;
    font-size: 1.3rem;
    margin-bottom: 3rem;
    letter-spacing: 1px;
    font-weight: 400;
    text-align: center;
  }

  .test-text {
    font-size: 1.4rem;
    color: #f5f5f5;
    line-height: 1.4;
    letter-spacing: 1.3px;
    font-weight: 400;
  }

  .horizontal-line {
    background-color: #f5f5f5;
    height: 0.15rem;
    flex-grow: 0.9;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Add subtle shadow for more depth */
    display: none;
  }

  .test-drive-link:link,
  .test-drive-link:visited {
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: 100%;
    background-color: #f5f5f5;
    padding: 0.6rem 1.1rem;
    color: #0a0a0a;
    transition: background-color 0.3s ease; /* Smooth transition on hover */
  }

  /* Hover effect to make it pop */
  .test-drive-link:hover,
  .test-drive-link:active {
    background-color: #0a0a0a;
    color: #f5f5f5;
  }

  .test-drive-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 1.5rem;
  }

  .test-drive-form label {
    font-size: 1.4rem;
    color: #f5f5f5;
    letter-spacing: 1px;
    color: #f5f5f5;
    justify-self: center;
  }

  .test-drive-form input {
    font-size: 1.2rem;
    border-radius: 0.5rem;
    padding: 0.8rem 1.4rem;
    text-align: center;
    border: solid 2px #f5f5f5;
    letter-spacing: 1px;
  }

  .test-drive-form select {
    margin-right: 3rem;
    font-size: 1.2rem;
    border-radius: 0.5rem;
    padding: 0.8rem 1.4rem;
    letter-spacing: 1px;
    color: #888;
    text-align: center;
  }

  .submit-button {
    font-size: 1.2rem;
    border-radius: 0.5rem;
    padding: 0.8rem 1.4rem;
    letter-spacing: 1px;
    cursor: pointer;
    width: 50%;
    justify-self: center;
    margin-top: 2rem;
    color: #888;
    grid-column: 1 / 3;
  }

  /* Test-Drive Section End
    /********************/

  /* Support-Section */
  .Support-Section {
    padding: 5rem 2.5rem;
    background: linear-gradient(to bottom, #800020, #4a0010),
      radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    clip-path: polygon(0 0, 100% 1%, 100% 99%, 0 100%);
  }

  .support-section-grid {
    margin-left: 0rem;
    margin-right: 0rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
    text-align: center;
  }

  .support-title {
    font-size: 2.4rem;
    text-align: center;
    font-weight: 700;
    margin-bottom: 5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #f5f5f5;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6); /* Subtle shadow for depth */
  }

  .support-section-title {
    font-size: 1.6rem;
    font-weight: 500;
    color: #f5f5f5;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
  }

  .contact-col-3 {
    grid-column: 1 / 2;
    justify-self: center;
    align-self: center;
    width: 100%;
  }

  .support-section-descriptive-text {
    font-size: 1.4rem;
    color: #f5f5f5;
    letter-spacing: 1.2px;
    margin-bottom: 2rem;
  }

  .support-section-grid > div {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* This ensures content is spaced evenly and pushes the link to the bottom */
  }

  .support-section-image {
    width: 100%;
    height: 33rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 3px 5px 10px rgba(0, 0, 0, 0.3);
    border: 1.5px solid #0a0a0a;
  }

  .support-section-link:link,
  .support-section-link:visited {
    text-decoration: none;
    border-radius: 0.5rem;
    border: solid 3px #0a0a0a;
    letter-spacing: 1px;
    padding: 1.2rem 1.6rem;
    background-color: #f5f5f5;
    font-size: 1.2rem;
    text-transform: uppercase;
    font-weight: bolder;
    color: #0a0a0a;
    display: inline-block;
    margin-top: auto; /* Makes sure that the link stays at the bottom no matter the content above it */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
    width: 57%;
    align-self: center;
  }

  .support-section-link:hover,
  .support-section-link:focus {
    background-color: #0a0a0a; /* Dark background on hover/focus */
    color: #f5f5f5; /* Light text color on hover/focus */
    transform: scale(1.05); /* Slightly enlarge the link on hover */
    border: solid 4px #0a0a0a;
  }
  /* Support Section End 
      *****************/

  /* Support Complimentary Section */
  /********************/
  .support-section-complimentary {
    padding: 5rem 2.5rem;
    background-color: #0a0a0a;
  }

  .complimentary-header {
    font-size: 1.4rem;
    color: #f5f5f5;
    letter-spacing: 1.3px;
    margin-bottom: 0.5rem;
    margin-top: 3rem;
    font-weight: 600;
    text-transform: none;
    text-align: center;
  }

  .complimentary-header-first {
    margin-top: 0;
  }

  .complimentary-text {
    font-size: 1.3rem;
    color: #f5f5f5;
    letter-spacing: 1px;
    text-align: justify;
  }
  /* Support Complimentary Section End */
  /********************/

  /* Footer-Section */
  /********************/
  .footer-section {
    padding: 7.5rem 2.5rem;
    background: linear-gradient(to bottom, #800020, #4a0010),
      radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    clip-path: polygon(0 0, 100% 3%, 100% 97%, 0 100%);
    border-top: 0px solid #f5f5f5;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 4rem;
    column-gap: 0;
    height: auto;
    align-items: normal;
    width: 100%;
  }

  .footer-header {
    font-size: 1.3rem;
    margin-bottom: 0rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    font-weight: 600;
    color: #f5f5f5;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
  }

  .footer-column-first {
    justify-self: start;
  }

  .footer-column-second {
    justify-self: end;
  }

  .footer-column-third {
    justify-self: start;
  }

  .social-links {
    margin-top: 3rem;
    width: 50%;
    display: flex;
    justify-self: start;
    border-radius: 1rem;
    justify-content: start;
  }

  .footer-icon {
    height: 2rem;
    width: 2rem;
    fill: #f5f5f5;
  }

  .footer-link:link,
  .footer-link:visited {
    text-decoration: none;
    color: #f5f5f5;
    letter-spacing: 1.7px;
    font-size: 1.2rem;
    font-weight: 400;
    transition: all 0.3s ease-in-out;
  }

  .footer-link:active,
  .footer-link:hover {
    background-color: #f5f5f5;
    color: #0a0a0a;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 1.4rem;
    transition: all ease-in-out 0.4s;
    font-family: "Orbitron";
    font-weight: 600;
    border: 2px solid #0a0a0a;
  }

  .footer-elements-links-grid {
    display: flex;
    gap: 2rem;
  }
  /* Footer-Section End */
  /********************/
}

/* Media Query for screens below 625px */
@media (max-width: 30rem) {
  body {
    overflow-x: hidden;
  }

  html {
    overflow-x: hidden;
  }

  h2 {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    margin-bottom: 3rem;
  }

  h1 {
    font-size: 1.2rem;
  }

  .hero-section {
    height: 100vh;
  }

  header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
      url(Models-Section/30rem-header-background-images/30rem-header-background-image-1.png);
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;

    /* for bouncing background  */
    animation: bounceBackground 4s ease-in-out infinite;
    transition: background-image 0.4s ease-in-out;
  }

  /* Hero Section */
  /****************/
  .Quantum-nav {
    display: flex;
    gap: 1rem;
    padding: 0;
    font-size: 2.2rem;
    background-color: rgba(10, 10, 10, 0.382);
    backdrop-filter: blur(8px);
    justify-content: center;
    flex-direction: column;
    align-items: center;
    font-family: "Open-sans";
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
    position: relative;
    top: 0;
    left: 0;
    z-index: 9999;
    text-transform: capitalize;
    transition: all 0.5s;
    height: 100vh;
    transform: translateX(
      100%
    ); /* To make it slide, Transform Translate (0) in the .nav-open .Quantum-nav class makes it work,otherwise is stucked */

    /*Hide The navigation */
    opacity: 0;
    pointer-events: none;
    visibility: 0;
  }

  .Quantum-nav-link:link,
  .Quantum-nav-link:visited {
    text-decoration: none;
    color: #f5f5f5;
    transition: 0.3s ease-in-out;
    font-size: 1.3rem;
    letter-spacing: 1.8px;
  }

  .Quantum-nav-link:active,
  .Quantum-nav-link:hover {
    background-color: #f5f5f5;
    color: #0a0a0a;
    padding: 0.7rem 1rem;
    transition: all ease-in-out 0.4s;
    border-radius: 0.5rem;
    font-family: "Orbitron";
    font-size: 1.4rem;
    border: 2px solid #0a0a0a;
    text-transform: none;
  }

  .quantum-mobile-nav {
    display: flex;
    gap: 12rem;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    width: max-content;
    top: 10%;
    left: 50%;
    transform: translate(-50%);
  }

  .Quantum-Motors-logo {
    height: 9rem;
    width: 14rem;
    position: absolute;
    top: 17%;
    left: 39%;
  }

  .Quantum-Motors-logo-1 {
    display: none;
    height: 25rem;
    width: 15rem;
    position: absolute;
    top: -9rem;
    left: -2.5rem;
    color: #800020;
  }

  .nav-open .small-screens-menu {
    display: none;
  }

  .small-screens-menu {
    display: block;
    color: #f5f5f5;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.6rem;
    font-family: "Orbitron";
    font-weight: bold;
  }

  .open-nav-btn-icon {
    height: 2rem;
    width: 2rem;
    z-index: 9999;
    fill: #f5f5f5;
    position: static;
  }

  .menu-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-inner-container {
    position: absolute;
    font-size: 2rem;
    text-transform: uppercase;
    color: #f5f5f5;
    font-family: "Orbitron";
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.5;
    text-align: center;
    width: 85%;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.4),
      0 0 8px rgba(255, 255, 255, 0.3);
  }
  .discover-button:link,
  .discover-button:visited {
    text-decoration: none;
    color: #f5f5f5;
    background-color: #800020;
    font-size: 1rem;
    border-radius: 0.5rem;
    letter-spacing: 2px;
    padding: 1.1rem 1.2rem;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  }

  .discover-button:active,
  .discover-button:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
    transition: all 0.3s ease-in-out;
    background-color: rgba(245, 245, 245, 0.803);
    color: #f5f5f5;
    padding: 1.6rem 2.2rem;
    border-radius: 0.5rem;
    color: #800020;
  }

  .nav-open .close-nav-btn-icon {
    display: block;
    height: 2rem;
    width: 2rem;
    z-index: 9999;
    fill: #f5f5f5;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    cursor: pointer;
  }
  /* Hero Section End */
  /****************/

  /* About Section */
  /****************/
  .About-Section {
    padding: 2rem 5rem;
    background: linear-gradient(to bottom, #800020, #4a0010);
  }

  .h2-about {
    font-size: 1.6rem;
    color: #f5f5f5;
    margin-bottom: 1rem;
    text-align: center;
  }

  .about-descriptive-text {
    font-size: 1.3rem;
    color: #f5f5f5;
    margin-bottom: 2rem;
    width: 100%;
    line-height: 1.5;
    text-align: center;
  }
  /* About Section End */
  /****************/

  /* Search Models Section */
  .Search-Models {
    padding: 5rem 1rem;
    background-color: #0a0a0a;
  }

  .Search-Models-title {
    font-size: 2rem;
    text-align: center;
    letter-spacing: 1.5px;
    font-weight: 700;
    font-family: "Orbitron";
    color: #f5f5f5;
    align-self: center;
    display: block;
    margin-bottom: 0.5rem;
  }

  .models-description-text {
    font-size: 1.4rem;
    letter-spacing: 1.2px;
    text-align: center;
    margin-bottom: 0rem;
  }

  .car-card {
    background: #141414;
    backdrop-filter: blur(10px);
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 10px 10px 25px rgba(0, 0, 0, 0.9);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border-radius: 0.5rem;
    overflow: hidden;
    min-height: 40rem;
  }

  .car-card-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    margin-top: 4rem;
    grid-auto-rows: 40.2rem;
  }

  .card-content {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    min-height: 40.4rem;
    justify-content: space-evenly;
  }

  .card-title {
    display: block;
    font-size: 1.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: "Orbitron";
    margin-bottom: 0rem;
    color: #f5f5f5;
    text-align: center;
    text-shadow: 3px 3px 10px rgba(255, 255, 255, 0.3);
  }

  .card-subtitle {
    font-size: 1.2rem;
    display: block;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5rem;
    text-transform: uppercase;
    color: #f5f5f5;
    text-align: center;
    text-shadow: 2px 2px 5px rgba(255, 255, 255, 0.3);
  }

  .card-slogan {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #f5f5f5;
    display: block;
    margin-bottom: 0rem;
  }

  .car-price {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0rem;
    color: #f5f5f5; /* Red color to stand out */
    text-align: center;
    margin-bottom: -7.8rem;
  }

  .SearchModelsbtn {
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    color: #f5f5f5;
    width: 100%;
    display: block;
    background-color: #800020;
    padding: 1rem 2rem;
    text-align: center;
    align-self: center;
    border-radius: 0.5rem;
    letter-spacing: 1px;
    margin-top: 18.5rem;
  }

  .SearchModelsbtn:hover,
  .SearchModelsbtn:focus {
    background: linear-gradient(
      90deg,
      #040404,
      #9b9b9b
    ); /* Changes the color of the button when hovered over in gradient manner from left to right */
    transform: scale(1.4); /* Makes the button pops up when hovered over */
    padding: 0.8rem 1.2rem;
    font-size: 1.4rem;
  }
  /* Search Models Section End 
  *****************************

  
  /* Styling the card background here */
  .card-background-1 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url(Models-Section/30rem-card-background-images/30rem-card-background-image-1.webp);
    background-size: cover; /* Ensures full coverage */
    background-position: center; /* Centers the image */
  }

  .card-background-2 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url(Models-Section/30rem-card-background-images/30rem-card-background-image-2.webp);
    background-size: cover; /* Ensures full coverage */
    background-position: center; /* Centers the image */
  }

  .card-background-3 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url(Models-Section/30rem-card-background-images/30rem-card-background-image-3.png);
    background-size: cover; /* Ensures full coverage */
    background-position: center; /* Centers the image */
  }

  .card-background-4 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url(Models-Section/30rem-card-background-images/30rem-card-background-image-4.webp);
    background-size: cover; /* Ensures full coverage */
    background-position: center; /* Centers the image */
  }
  /********************
  Styling the cards background end*


  /* How it Works Section */
  /*******************/
  .How-it-works-section {
    position: relative;
    padding: 5rem 1rem;
    background-color: #800020;
    background: linear-gradient(to bottom, #800020, #4a0010),
      radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    clip-path: polygon(
      0 0,
      100% 2%,
      100% 98%,
      0 100%
    ); /* Makes the edges of beggining and the end of the section sharp */
  }

  .Z-pattern-1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 10rem;
    column-gap: 0rem;
  }

  .How-it-works-header {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1.5px;
    color: #f5f5f5;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6); /* Subtle shadow for depth */
  }

  .optional-text {
    font-size: 0.8rem;
    font-weight: 700;
    align-self: center;
    text-align: center;
    color: #f5f5f5;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
    cursor: pointer;
  }

  .z-pattern-image,
  .z-pattern-image-1,
  .z-pattern-image-2 {
    width: 75%;
    height: 100%;
    object-fit: scale-down; /* /* this property makes the images fit into the grid-auto-rows */
    border-radius: 0.5rem;
    align-self: center;
    justify-self: center;
    transition: transform 0.3s ease; /*This effect compliments the transition in the transform scale property with hover */
  }
  /* How it Works Section End */
  /*******************/

  /* Test-Drive Section 
    /********************/
  .test-drive {
    padding: 5rem 1rem;
    background-color: #0a0a0a;
  }

  .test-drive-grid {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 0.5rem;
    margin-bottom: 3rem;
  }

  .Test-drive-Header {
    color: #f5f5f5;
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 3rem;
    letter-spacing: 1.5px;
    text-shadow: 2px 3px 5px rgba(121, 114, 114, 0.25); /* Stronger text-shadow for a more intense look */
    font-weight: 700;
    text-align: center;
  }

  .test-drive-text {
    color: #f5f5f5;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    font-weight: 400;
    text-align: center;
  }

  .test-text {
    font-size: 1.2rem;
    color: #f5f5f5;
    line-height: 1.4;
    letter-spacing: 1.3px;
    font-weight: 400;
  }

  .test-drive-link:link,
  .test-drive-link:visited {
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 100%;
    background-color: #f5f5f5;
    padding: 0.4rem 0.9rem;
    color: #0a0a0a;
    transition: background-color 0.3s ease; /* Smooth transition on hover */
  }

  /* Hover effect to make it pop */
  .test-drive-link:hover,
  .test-drive-link:active {
    background-color: #0a0a0a;
    color: #f5f5f5;
  }

  .test-drive-form label {
    font-size: 1.2rem;
    color: #f5f5f5;
    letter-spacing: 1px;
    color: #f5f5f5;
    justify-self: start;
  }

  .test-drive-form input {
    font-size: 1.2rem;
    border-radius: 0.5rem;
    padding: 0.8rem 1.2rem;
    text-align: center;
    border: solid 2px #f5f5f5;
    letter-spacing: 1px;
    width: 100%;
  }

  .test-drive-form select {
    margin-right: 3rem;
    font-size: 1.2rem;
    border-radius: 0.5rem;
    padding: 0.8rem 1.4rem;
    letter-spacing: 1px;
    color: #888;
    text-align: center;
    width: 100%;
  }

  .submit-button {
    font-size: 1.2rem;
    border-radius: 0.5rem;
    padding: 0.8rem 1.4rem;
    letter-spacing: 1px;
    cursor: pointer;
    width: 100%;
    justify-self: center;
    margin-top: 2rem;
    color: #888;
    grid-column: 1 / 3;
  }
  /* Test-Drive Section End
    /********************/

  /* Support-Section */
  .Support-Section {
    padding: 5rem 1rem;
    background: linear-gradient(to bottom, #800020, #4a0010),
      radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    clip-path: polygon(0 0, 100% 1%, 100% 99%, 0 100%);
  }

  .support-section-grid {
    margin-left: 0rem;
    margin-right: 0rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
  }

  .support-title {
    font-size: 2rem;
    text-align: center;
    font-weight: 700;
    margin-bottom: 5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #f5f5f5;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6); /* Subtle shadow for depth */
  }

  .support-section-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: #f5f5f5;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
  }

  .contact-col-3 {
    grid-column: 1 / 2;
    justify-self: center;
    align-self: center;
    width: 100%;
  }

  .support-section-descriptive-text {
    font-size: 1.2rem;
    color: #f5f5f5;
    letter-spacing: 1.2px;
    margin-bottom: 1.5rem;
  }

  .support-section-grid > div {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* This ensures content is spaced evenly and pushes the link to the bottom */
  }

  .support-section-image {
    width: 100%;
    height: 33rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 3px 5px 10px rgba(0, 0, 0, 0.3);
    border: 1.5px solid #0a0a0a;
  }

  .support-section-link:link,
  .support-section-link:visited {
    text-decoration: none;
    border-radius: 0.5rem;
    border: solid 3px #0a0a0a;
    letter-spacing: 1px;
    padding: 1.2rem 1.4rem;
    background-color: #f5f5f5;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #0a0a0a;
    display: inline-block;
    margin-top: auto; /* Makes sure that the link stays at the bottom no matter the content above it */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
    width: 75%;
    align-self: center;
  }

  .support-section-link:hover,
  .support-section-link:focus {
    background-color: #0a0a0a; /* Dark background on hover/focus */
    color: #f5f5f5; /* Light text color on hover/focus */
    transform: scale(1.05); /* Slightly enlarge the link on hover */
    border: solid 4px #0a0a0a;
  }
  /* Support Section End 
      *****************/

  /* Support Complimentary Section */
  /********************/
  .support-section-complimentary {
    padding: 5rem 1rem;
    background-color: #0a0a0a;
  }

  .complimentary-header {
    font-size: 1.3rem;
    color: #f5f5f5;
    letter-spacing: 1.3px;
    margin-bottom: 0.3rem;
    margin-top: 0rem;
    font-weight: 600;
    text-transform: none;
    text-align: center;
  }

  .complimentary-header-first {
    margin-top: 0;
    font-size: 1.3rem;
  }

  .complimentary-text {
    font-size: 1.3rem;
    color: #f5f5f5;
    letter-spacing: 1px;
    text-align: justify;
    margin-bottom: 2.5rem;
  }
  /* Support Complimentary Section End */
  /********************/

  /* Footer-Section */
  /********************/
  .footer-section {
    padding: 7.5rem 1rem;
    background: linear-gradient(to bottom, #800020, #4a0010),
      radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    clip-path: polygon(0 0, 100% 3%, 100% 97%, 0 100%);
    border-top: 0px solid #f5f5f5;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 4rem;
    column-gap: 0;
    height: auto;
    align-items: normal;
    width: 100%;
  }

  .footer-header {
    font-size: 1rem;
    margin-bottom: 0rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    font-weight: 600;
    color: #f5f5f5;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
  }

  .footer-column-first {
    justify-self: start;
  }

  .footer-column-second {
    justify-self: end;
  }

  .footer-column-third {
    justify-self: start;
  }

  .social-links {
    margin-top: 2rem;
    width: 75%;
    display: flex;
    justify-self: start;
    border-radius: 1rem;
    justify-content: start;
  }

  .footer-icon {
    height: 2rem;
    width: 2rem;
    fill: #f5f5f5;
  }

  .footer-link:link,
  .footer-link:visited {
    text-decoration: none;
    color: #f5f5f5;
    letter-spacing: 1.7px;
    font-size: 1.2rem;
    font-weight: 400;
    transition: all 0.3s ease-in-out;
  }

  .footer-link:active,
  .footer-link:hover {
    background-color: #f5f5f5;
    color: #0a0a0a;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 1.4rem;
    transition: all ease-in-out 0.4s;
    font-family: "Orbitron";
    font-weight: 600;
    border: 2px solid #0a0a0a;
  }

  .footer-elements {
    margin-top: 0.5rem;
    color: #f5f5f5;
    font-size: 1.2rem;
    text-transform: none;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 1px;
  }
  /* Footer-Section End */
  /********************/
}

/*
// i start from here with the medium background images //
const mediumimages = [
  "Models-Section/medium-background-images/medium-background-image-1.webp",
  "Models-Section/medium-background-images/medium-background-image-2.webp",
  "Models-Section/medium-background-images/medium-background-image-3.webp",
  "Models-Section/medium-background-images/medium-background-image-4.webp",
]; */
