/*Media-Queries */
/* For Screens Below 1024px */
@media (max-width: 64rem) {
  h2 {
    margin-top: 1rem;
    margin-bottom: 6rem;
  }

  .hero-section {
    height: 100vh;
  }

  html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    overflow-x: hidden; /* Hides horizontal scroll-bars */
  }

  body {
    font-family: "Open-subs";
    color: #333333;
    height: 100%;
    overflow-x: hidden;
  }

  header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
      url(Models-Section/64rem-header-background-images/64rem-header-background-image-1.jpg);
    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-Motors-logo {
    height: 6.5rem;
    width: 10.5rem;
    position: absolute;
    top: 0%;
    left: 1.2%;
  }

  .header-inner-container {
    position: absolute;
    font-size: 2rem;
    text-transform: uppercase;
    color: #f5f5f5;
    font-family: "Orbitron";
    top: 50%;
    left: 5%;
    font-weight: 900;
    letter-spacing: 2.5px;
    line-height: 1.8;
    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.8rem;
    border-radius: 0.8rem;
    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.5rem 3.2rem;
    border-radius: 1rem;
    color: #800020;
  }
  /* Hero Section End */
  /****************/

  /* About Section */
  /****************/
  .About-Section {
    padding: 3rem 5rem;
    background: linear-gradient(to bottom, #800020, #4a0010);
  }

  .h2-about {
    font-size: 2.4rem;
    color: #f5f5f5;
    margin-bottom: 2rem;
  }

  .about-descriptive-text {
    font-size: 1.8rem;
    color: #f5f5f5;
    margin-bottom: 2rem;
    width: 100%;
    line-height: 1.5;
  }
  /* About Section End */
  /****************/

  /* Search Models Section  */
  /****************/
  .Search-Models {
    padding: 7.5rem 5rem;
    background-color: #0a0a0a;
  }

  .Search-Models-title {
    text-align: start;
    font-size: 3rem;
    letter-spacing: 1.5px;
    font-weight: bolder;
    font-family: "Orbitron";
    color: #f5f5f5;
  }

  .optional-text {
    font-size: 1.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;
  }

  .models-description-text {
    font-size: 1.6rem;
    letter-spacing: 1.2px;
  }

  .car-card {
    background: #141414;
    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;
  }

  .card-content {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    min-height: 40.4rem;
    justify-content: space-around;
  }

  .car-card-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
    width: 100%;
    margin-top: 10rem;
    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 */
  }
  /* 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/64rem-card-background-images/64rem-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/64rem-card-background-images/64rem-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/64rem-card-background-images/64rem-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/64rem-card-background-images/64rem-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% 3%,
      100% 97%,
      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 ? */
  }

  .How-it-works-header {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #f5f5f5;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6); /* Subtle shadow for depth */
  }

  .optional-text {
    font-size: 1.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;
    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: 2.4rem;
    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: 7.5rem 5rem;
    background-color: #0a0a0a;
  }

  .test-drive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 7.5rem;
  }

  .Test-drive-Header {
    color: #f5f5f5;
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 10rem;
    letter-spacing: 2.5px;
    text-shadow: 2px 3px 5px rgba(121, 114, 114, 0.25); /* Stronger text-shadow for a more intense look */
    font-weight: 700;
  }

  .form-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .test-drive-form {
    /*
    display: flex;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;  // this one is flex option //
    gap: 0.5rem;
    row-gap: 0rem;
    width: 75%; */
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 2rem;
  }

  .test-text {
    font-size: 1.8rem;
    color: #f5f5f5;
    line-height: 1.4;
    letter-spacing: 1.5px;
    font-weight: 700;
  }

  .test-drive-text {
    color: #f5f5f5;
    font-size: 1.6rem;
    margin-bottom: 5rem;
    letter-spacing: 1px;
    font-weight: 400;
    text-align: justify;
  }

  .test-drive-form label {
    font-size: 1.6rem;
    color: #f5f5f5;
    letter-spacing: 1px;
    color: #f5f5f5;
    justify-self: start;
  }

  .test-drive-form input {
    font-size: 1.4rem;
    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.4rem;
    border-radius: 0.5rem;
    padding: 1rem 1.6rem;
    letter-spacing: 1px;
    color: #888;
    text-align: center;
  }

  .horizontal-line {
    height: 0.1rem;
  }

  .submit-button {
    font-size: 1.4rem;
    border-radius: 0.5rem;
    padding: 1rem 1.6rem;
    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 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    text-align: center;
  }

  .support-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10rem;
    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.8rem;
    font-weight: 500;
    color: #f5f5f5;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
  }

  .support-section-descriptive-text {
    font-size: 1.6rem;
    color: #f5f5f5;
    letter-spacing: 1.2px;
    margin-bottom: 3rem;
  }

  .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: 2rem;
    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.4rem 1.8rem;
    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;
  }

  .contact-col-3 {
    grid-column: 1 / 3;
    justify-self: center;
    width: 50%;
  }
  /* Support Section End/*

  /* Care Free business plan  Section End
  *********************************/

  /* Care-Free Business-Plan Complimentary  Section */
  /********************/
  .support-section-complimentary {
    padding: 5rem;
    background-color: #0a0a0a;
  }

  .complimentary-header {
    font-size: 1.3rem;
    color: #f5f5f5;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    margin-top: 3rem;
    font-weight: bolder;
    text-transform: uppercase;
  }

  .complimentary-text {
    font-size: 1.4rem;
    color: #f5f5f5;
    letter-spacing: 1px;
    text-align: justify;
  }
  /* Care-Free Business-Plan 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% 6%, 100% 94%, 0 100%);
    border-top: 4px solid #f5f5f5;
  }

  .footer-header {
    font-size: 1.4rem;
    margin-bottom: 0rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: bolder;
    color: #f5f5f5;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
  }

  .footer-elements {
    margin-top: 4rem;
    color: #f5f5f5;
    font-size: 1.3rem;
    text-transform: none;
    line-height: 1.75;
    font-weight: 800;
    letter-spacing: 1px;
  }

  .column-text {
    text-transform: none;
    font-size: 1.3rem;
  }

  .social-links {
    margin-top: 10rem;
    display: flex;
    border-radius: 1rem;
    justify-content: space-evenly;
  }

  .footer-icon {
    height: 2.2rem;
    width: 2.2rem;
    fill: #f5f5f5;
  }

  .footer-link:link,
  .footer-link:visited {
    text-decoration: none;
    color: #f5f5f5;
    letter-spacing: 1.7px;
    font-size: 1.3rem;
    font-weight: bold;
    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.6rem;
    transition: all ease-in-out 0.4s;
    font-family: "Orbitron";
    font-weight: bold;
    border: 2px solid #0a0a0a;
  }

  .footer-elements-links-grid {
    display: flex;
    gap: 3rem;
  }
  /* Footer-Section End */
  /********************/
}

@media (max-width: 59rem) {
  /* Hidind the Quantum-logo */

  /* Hero Section */
  /***************/
  .Quantum-Motors-logo {
    height: 6.5rem;
    width: 10.5rem;
    position: absolute;
    top: 0%;
    left: -0.5%;
    display: none;
  }

  .Quantum-nav {
    display: flex;
    font-size: 1.6rem;
    padding: 2rem;
    background-color: #800020;
    justify-content: space-around;
    font-family: "Open-sans";
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
    text-transform: capitalize;
    z-index: 1000;
  }

  .Quantum-nav > div {
    flex-grow: 1;
    text-align: justify;
  }

  .Z-pattern-1 {
    display: grid;
    grid-template-columns: 50fr 50fr;
    gap: 0rem;
  }

  /* setting the links in grid */
  .footer-elements-links-grid {
    display: flex;
    gap: 4rem;
  }
  /* media query 59rem finish here */
}
