/* 
01 - Typography 

Spacing-System (px) 2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 /
      128

      Font-weights--
      default - 

      Line-height --
      default -  

Font-size system  (px) 10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 /
      52 / 62 / 74 / 86 / 98 

02 --- Colors

-Primary  #800020;
-Primary lighter #99334d; #a64d63; #cc99a6; // 20%, 30%, 60%
-Primary Darker #66001a;  #5a0016; // 20%, 30%

- Secondary Color -  Off-White #F5F5F5; 

-Greys: #333333; 
-Lighter Greys #5c5c5c;#707070; // 20%, 30%
-Darker Greys #292929; #242424; #141414; // 20%, 30%, 60%
      

05-A --- Shadows
linear - gradient (rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
box-shadow: 15px 15px 30px rgba(0, 0, 0, 1);


05-B --- Text Shadows
text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    text-shadow: 3px 3px 10px rgba(255, 255, 255, 0.3);
    text-shadow: 2px 2px 5px rgba(255, 255, 255, 0.3); 
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
    linear-gradient text-shadow: 0 0 2px rgba(255, 255, 255, 0.4),
    0 0 8px rgba(255, 255, 255, 0.3);


    06 --- Border- Radius
  -border-radius: 1rem;
  -border-radius: 15px;

07 --- White-Space
      
/*  Font-size 10px  
    10px / 16px = 0.625 = 62.5% 
    Percentage of user's browser font-size setting 
    */

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  overflow-x: hidden; /* Hides horizontal scroll-bars */
}

body {
  font-family: "Open-subs";
  color: #333333;
  height: 100%;
}

/* Hero Section */
/****************/

header {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url(Models-Section/Background-image-4.webp);
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  position: relative;

  /* for bouncing background */
  animation: bounceBackground 3s ease-out infinite;
  transition: background-image 0.4s ease-in-out;
}

/* Fade in / Fade out effect */
.hero-section {
  transition: opacity 1s ease-in-out;
  opacity: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: auto;
}

.hero-section.fade-out {
  opacity: 0;
}

/* Mobile Navigation 
  ******************/
.quantum-mobile-nav {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.open-nav-btn-icon {
  height: 3rem;
  width: 3rem;
  z-index: 9999;
  color: #888;
}

.close-nav-btn-icon {
  height: 3rem;
  width: 3rem;
  z-index: 9999;
  color: #888;
  display: none;
}

.small-screens-menu {
  display: none;
}
/* Mobile Navigation End 
  ******************/

@keyframes bounceBackground {
  0% {
    background-position: center;
  }
  25% {
    background-position: 60% 10%;
  }
  50% {
    background-position: 80% 20%;
  }
  75% {
    background-position: 40% 30%;
  }
  100% {
    background-position: center;
  }
}

h2 {
  margin-top: 1rem;
  margin-bottom: 9rem;
}

.Quantum-nav {
  display: flex;
  width: 100%;
  gap: 1rem;
  font-size: 1.8rem;
  padding: 2.5rem;
  background-color: #800020;
  justify-content: space-evenly;
  font-family: "Open-sans";
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  z-index: 1;
}

/* Sticky nav */
.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #0a0a0a;
  z-index: 1000;
}

.Quantum-Motors-logo {
  height: 8rem;
  width: 12.5rem;
  position: absolute;
  top: -0.2%;
  left: -1%;
}

.Quantum-Motors-logo-1 {
  display: none;
}

.Quantum-nav-link:link,
.Quantum-nav-link:visited {
  text-decoration: none;
  color: #f5f5f5;
  transition: 0.3s ease-in-out;
}

.Quantum-nav-link:active,
.Quantum-nav-link:hover {
  /*color: #a64d63; */
  background-color: #f5f5f5;
  color: #0a0a0a;
  padding: 1.5rem;
  transition: all ease-in-out 0.4s;
  border-radius: 2rem;
  font-family: "Orbitron";
  font-size: 1.6rem;
  border: 2px solid #0a0a0a;
}

.header-inner-container {
  position: absolute;
  font-size: 2.9rem;
  text-transform: uppercase;
  color: #f5f5f5;
  font-family: "Orbitron";
  top: 40%;
  left: 5%;
  font-weight: 900;
  letter-spacing: 2.5px;
  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: 3rem;
  border-radius: 1rem;
  padding: 2rem 3rem;
  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: 3.5rem 4.5rem;
  border-radius: 2rem;
  color: #800020;
}

/* Hero Section End */
/****************/

/* Featured-In-Section */
/****************/
.Featured-in-section {
  padding: 5rem 7.5rem;
  background: linear-gradient(to bottom, #800020, #4a0010);
}

.Featured-in-text {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 4rem;
  color: #f5f5f5;
}

.h-3 {
  font-size: 3.6rem;
  font-weight: 950;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 3rem;
  color: #f5f5f5;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.Featured-in-text-1 {
  font-size: 1.8rem;
  letter-spacing: 0.8px;
  font-weight: 700;
  color: #f5f5f5;
  margin-bottom: 4rem;
}

.Featured-in-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4rem;
  width: 100%;
}

.featured-in-btn {
  text-decoration: none;
  font-size: 1.8rem;
  color: #f5f5f5;
  border-bottom: 2px solid #cc99a6;
  text-transform: uppercase;
}

.featured-in-btn:hover {
  color: #f5f5f5;
  border-bottom: 2px solid #f5f5f5;
}

.featured-in-icon {
  height: 2.6rem;
  fill: #f5f5f5;
  transition: transform 0.3s ease-in-out;
}

.featured-in-icon:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.span-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Featured-In-Section End */
/****************/

/* Search Models Section */
/****************/
.Search-Models {
  padding-top: 20rem;
  padding-bottom: 20rem;
  padding-left: 7.5rem;
  padding-right: 7.5rem;
  background-color: #0a0a0a;
}

.Search-Models-title {
  text-align: center;
  font-size: 6.2rem;
  letter-spacing: 1.5px;
  font-weight: 900;
  font-family: "Orbitron";
  color: #f5f5f5;
}

/*Styling the cards here */
.car-card-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7rem;
  width: 100%;
  margin-top: 10rem;
}

.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: 15px;
  overflow: hidden;
  height: 47rem;
}

.car-card:hover {
  transform: translateY(-10px); /* Lift effect on hover */
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 15px 15px 30px rgba(0, 0, 0, 1);
}

.card-title {
  font-size: 3rem;
  font-weight: 950;
  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);
}

.car-fuel {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 15rem;
  text-transform: uppercase;
  color: #f5f5f5;
  text-align: center;
  text-shadow: 2px 2px 5px rgba(255, 255, 255, 0.3);
}

.car-slogan {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  color: #f5f5f5;
}

.car-price {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 4rem;
  color: #cc99a6; /* Red color to stand out */
}

.SearchModelsbtn {
  text-decoration: none;
  font-size: 2.6rem;
  font-weight: 900;
  color: #f5f5f5;
  width: 100%;
  display: block;
  background-color: #800020;
  padding: 1rem 2rem;
  text-align: center;
}

.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.2); /* Makes the button pops up when hovered over */
}

/*Styling the cards ends here */

/********************
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/quantum-motors-1.jpeg);
  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/quantum-motors-2.jpeg);
  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/quantum-motors-5.webp);
  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/quantum-motors-6.jpeg);
  background-size: cover; /* Ensures full coverage */
  background-position: left; /* Centers the image */
}

.card-background-5 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url(Models-Section/quantum-motors-4.jpeg);
  background-size: cover;
  background-position: center;
}

.card-background-6 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url(Models-Section/Background-image-1.webp);
  background-size: cover;
  background-position: center;
}

/********************
Styling the card background end*/

/********************
How it works section */

.How-it-works-section {
  position: relative;
  padding: 20rem 7.5rem 20rem 7.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% 8%,
    100% 92%,
    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. */
}

.How-it-works-header {
  font-size: 5.2rem;
  font-weight: 950;
  margin-bottom: 17.5rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #f5f5f5;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6); /* Subtle shadow for depth */
}

.z-pattern-image,
.z-pattern-image-1,
.z-pattern-image-2 {
  width: 100%;
  height: 100%;
  object-fit: cover; /* /* this property makes the images fit into the grid-auto-rows */
  border-radius: 2rem;
  transition: transform 0.3s ease; /*This effect compliments the transition in the transform scale property with hover */
}

.z-pattern-image:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5);
}
.z-pattern-image-1:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5);
}
.z-pattern-image-2:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5);
}

.Z-pattern-1 {
  display: grid;
  grid-template-columns: 42.5fr 57.5fr;
  column-gap: 4rem;
  row-gap: 10rem;
  grid-auto-rows: 50rem; /* 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-link:link,
.Z-Pattern-link:visited {
  position: relative; /* this one supplements the Z-pattern-link::after */
  font-size: 3.6rem;
  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);
}

/* this one creates a flat line beneath the link */
.Z-Pattern-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #f5f5f5;
  transform: scaleX(0);
  transition: transform 0.3s ease-in-out;
}

/* this one draws a flat line beneath the link when hovered over */
.Z-Pattern-link:hover::after {
  transform: scaleX(1);
}
