* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  /* color: rgb(152, 9, 9); */
  /* color: #f0a500; */
    overflow-x: hidden;
  width: 100%;
}
/* Make sure images / media are not overflowing */
img, video, iframe {
  max-width: 100%;
  height: auto;
}


/*=== topbar ===*/
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;  
  width: 100%;
}


/*... header ...*/
/*=== topbar header's logo ===*/
.header {
  display: flex;
  justify-content:space-between;
  align-items: center;
  padding: 12px 200px 15px 70px;
  background-color: #f0a500;
}
.header .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header .logo img {
  height: 40px;
  width: auto;
}
.header .logo button{
  border: none;
}
.header .logo h2 {
  margin: 0;
  font-size: 1.8rem;
  color:rgb(152, 9, 9);
  background:#f0a500 ;
}
/*== topbar contact's contact ==*/
.header .contact {
  display: flex;
  align-items: center;
  gap:25px; /* space between items */
  list-style: none; /* if you are using li directly, remove bullets */
  margin: 0;
  padding: 0;
}
.header .contact li a {
  text-decoration: none;
  padding: 6px 12px;
}
.header .contact .signin{
    display: flex;
    flex-direction: row;
    gap:5px;
    width: 150px;
}
.header .contact .signin img{
    margin-top: 15px;
    width: 30px;
    height: 30px;
}
.header .contact .signin a{
    color: rgb(152, 9, 9);
    font-weight: bold;
}
.header .contact li a:hover {
    color: black;
}
/* "Contact Us" button */
.header .contact li.sign button {
  background:rgb(152, 9, 9);
  color:#f0a500;
  border: none;
  padding: 8px 16px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.header .contact li.sign button:hover {
  transform: scale(1.2);
}


/* Hamburger button styling */
.hamburger {
  display: none;
  font-size:2.5rem;
  color:rgb(152, 9, 9);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s;
}

/* ... header's media query ... */
@media (max-width:768px) {
    html, body {
        overflow-x: hidden;
    }
    .header .logo{
        display: flex;
        flex-direction: column;
        margin-left:-10px;
    }
    .header .logo h2{
        font-size: 1.5rem;
    }
    .header .contact {
        flex-direction: column;
        gap: 20px;
        margin-left: 40px;
    }
    .header .contact .signin img{
        margin-top: 10px;
    }
    .header .contact li a,
    .header .contact li.sign button {
        font-size: 0.8rem;
    }
    .header .contact li.sign button {
        padding: 6px 12px;
        margin-left: -42px;
    }
    /* Optional: adjust any padding / margin that might push things out */
    .header {
        padding-left: 20px;
        padding-right: 20px;
    }
    .navBar .navLinks {
        padding-left: 0;  /* instead of 220px */
    }
    .hamburger{
        display: block;
        margin-left:-12px;
    }
}



/*=== navbar ===*/
.navBar {
  display: block;
  background-color:rgb(152, 9, 9) ;
  /* background-color: orangered; */
  height: 80px;
  border-top: 1px solid white;
  padding: 10px;
}
.navBar .navLinks {
  margin: 0 auto;
  padding-left: 220px;
}
.navBar .linkRight {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.5rem;
  gap: 1.5rem;
}

/*=== topbar navbar's Dropdown menu ===*/
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  min-width: 180px;
  padding: 0.5rem 0;
  list-style: none;
}
.dropdown:hover .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(-5);
}
.dropdown-menu li a {
  display: block;
  color:black;
  margin-top:-22px;
  font-size:1rem;
}

.linkRight li {
  position: relative;
}
.linkRight li a {
  text-decoration: none;
  font-size: 1.03rem;
  color: white;
  font-weight: bold;
  padding: 0.5rem 0.75rem;
  transition: background 0.3s, color 0.3s;
}
.linkRight li a:hover {
  /* color:#555; */
  color: #f0a500;
}
.linkRight li.sign button {
  background: red;
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  font-weight: bold;
  box-sizing: border-box;
    /* Pulse animation */
  animation: pulse-btn 2s ease-in-out infinite;
}
/* @keyframes for pulse */
@keyframes pulse-btn {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}


/* Mobile / small-screen styles */
@media (max-width:768px) {
  .header{
    height: 150px;
  }
  .navBar {
    display: none;
    width: 100%;
  }
  .navBar.active {
    display: block;
    background:rgb(152, 9, 9);
    height: 60vh;
  }
  .navBar .navLinks {
    padding: 1rem;
  }
  .navBar .linkRight {
    flex-direction: column;
    gap: 0;
  }
  .linkRight li {
    width: 100%;
    margin: 0;
    padding: 0.5rem 0;
  }
  .linkRight li a {
    display: block;
    width: 100%;
    color: #f0a500;
    padding: 0.75rem 1rem;
    background: transparent;
  }
  
  /* Allow scrolling if list is long */
  .navBar.active .linkRight {
    overflow-y: auto;
    max-height: 80vh;
    padding-bottom: 100px; /* space for button visibility */
  }

  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: transparent;
  }
  .dropdown-menu li a {
    color:white;
    padding-left: 2rem;
  }

}











/* ---------- Test Drive Hero (section-scoped) ---------- */

.td-hero {
  padding: 3.5rem 1.5rem;
  /* background: linear-gradient(180deg,#081224 0%, #06182a 100%); */
  color: orangered;
  overflow: hidden;
  height: 80vh;
  position: relative;
  background-color: rgb(247, 247, 247);
  /* font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; */
}


/* inner layout: two columns */
.td-inner{
  max-width:1200px;
  margin:0 auto;
  display:grid;
  grid-template-columns: 1fr 540px;
  gap: 2.25rem;
  align-items: center;
  position: relative;
}

/* COPY */
.td-copy h1{
  /* margin:0 0 0.6rem 0; */
  font-size: 2.5rem;
  line-height: 1.03;
  /* letter-spacing: -0.02em; */
  margin-bottom: 30px;
  color: orangered;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUp 700ms cubic-bezier(.2,.9,.2,1) forwards;
}
.td-copy .td-sub{
  /* margin: 0 0 1.25rem 0; */
  color:#555;
  font-size: 1.03rem;
  max-width: 46ch;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 700ms cubic-bezier(.2,.9,.2,1) forwards;
  animation-delay: 0.12s;
  margin-bottom: 30px;
}

/* CTA buttons */
.td-cta { display:flex; gap: 0.75rem; margin-bottom: 1.25rem; }
.btn-primary,
.btn-outline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 0.78rem 1.05rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight:bold;
  font-size: 0.98rem;
  margin-bottom: 35px;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 6px 18px rgba(2,6,23,0.35);
}
.btn-primary{
  background: orangered;
  color: white;
}
.btn-primary:focus,
.btn-primary:hover{ transform: translateY(-4px); box-shadow: 0 18px 40px rgba(6,21,36,0.5); outline: none; }

.btn-outline{
  background: transparent;
  border: 1px solid rgba(255,255,255,0.14);
  color: orangered;
}
.btn-outline:focus,
.btn-outline:hover{ transform: translateY(-3px); box-shadow: 0 10px 26px rgba(2,6,23,0.35); outline: none; }

/* Feature list under CTA */
.td-features{
  display:flex;
  gap:1rem;
  list-style:none;
  padding:0;
  margin:0;
  margin-top:0.5rem;
}
.td-features li{
  font-size:0.95rem;
  color: #555;
  font-weight: bold;
  padding: 0.35rem 0.5rem;
  background: orangered;
  color: white;
  border-radius: 8px;

  /* Animation properties */
  animation: pulse 2s infinite ease-in-out;
  /* Optional: helps browser optimize animation */
  will-change: transform, opacity;
}

/* Define the pulse keyframes */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* MEDIA (car image) */
.td-media { display:flex; justify-content:center; align-items:center; }

/* simple card for car image with slide-in animation */
.car-card{
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  overflow: visible;
  position: relative;
  transform: translateX(30px) scale(.98);
  opacity: 0;
  animation: carSlideIn 850ms cubic-bezier(.2,.9,.2,1) forwards;
  animation-delay: 0.18s;
}

/* image inside the card */
.car-card img{
  display:block;
  width:100%;
  height:auto;
  /* border-radius: 16px; */
  /* box-shadow: 0 30px 60px rgba(2,6,23,0.6); */
  transform: translateY(6px);
}

/* small floating badge */
.car-card .badge{
  position:absolute;
  left: 16px;
  top: 16px;
  background: black;
  color: white;
  font-weight: 800;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  /* box-shadow: 0 6px 20px rgba(2,6,23,0.4); */
  transform-origin: center;
  animation: badgePop 1400ms ease-in-out infinite;
  opacity: 0.98;
}

/* make badge subtle pulse */
@keyframes badgePop {
  0%   { transform: scale(0.96); box-shadow: 0 6px 20px rgba(2,6,23,0.25); }
  50%  { transform: scale(1.03); box-shadow: 0 18px 40px rgba(2,6,23,0.35); }
  100% { transform: scale(0.96); box-shadow: 0 6px 20px rgba(2,6,23,0.25); }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes carSlideIn {
  from { opacity: 0; transform: translateX(36px) scale(.98); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* Accessibility focus */
.btn-primary:focus, .btn-outline:focus {
  outline: 3px solid rgba(96,165,250,0.16);
  outline-offset: 4px;
}

@media (max-width: 768px) {
  .td-hero {
    padding: 2rem 1rem;
    height: auto; /* maybe make height auto on smaller devices */
  }

  /* Adjust inner layout to stack instead of two columns */
  .td-inner {
    display: block;
  }

  /* Make feature list wrap or stack */
  .td-features {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .td-features li {
    font-size: 0.85rem;
    padding: 0.5rem;
    animation-duration: 3s; /* slower pulse on small screen */
  }

  /* Adjust CTA buttons on smaller screens */
  .td-cta {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }

  /* Maybe make the car image smaller or center it differently */
  .car-card {
    transform: translateX(0) scale(0.9);
    margin-top: 1rem;
  }
}


/* small mobile-specific car animation */
@keyframes carSlideInMobile {
  from { opacity: 0; transform: translateY(20px) scale(.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}













/* ===== Available Models (Test Drive) Section ===== */
.testdrive-models {
  padding: 4rem 2rem;
  font-family: Arial, sans-serif;
  background-color: rgb(247, 247, 247);
  color: #333;
}

.testdrive-models .container {
  max-width: 1200px;
  margin: 0 auto;
}

.testdrive-models h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: orangered;
}

/* Filter Buttons */
.filters {
  text-align: center;
  margin-bottom: 2rem;
}

.filter-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  border: 2px solid #333;
  background: white;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background:orangered;
  color: white;
  border: none;
}

/* Models Grid */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.model-item {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px orangered;
  text-align: center;
  transition: transform 0.3s;
}

.testdrive-models .container .models-grid .model-item:nth-child(3) h3{
  margin-top: 58px;
}
.testdrive-models .container .models-grid .model-item:nth-child(4) h3{
  margin-top: 70px;
}

.model-item:hover {
  transform: translateY(-5px);
  box-shadow: none;
  background-color: orangered;
}

.model-item img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.model-item h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.btn-book {
  padding: 0.5rem 1rem;
  background: orangered;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.btn-book:hover {
  background: #0056b3;
}

/* Responsive */
@media (max-width: 768px) {
  .testdrive-models h2 {
    font-size: 2rem;
  }
  .testdrive-models .container .filters button{
    /* gap: 5px; */
    margin-bottom: 20px;
  }
  .filter-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .btn-book {
    font-size: 0.9rem;
  }
}












/* ===== How Test Drive Works Section ===== */
.how-testdrive-works {
  padding: 4rem 2rem;
  background-color: orangered;
  font-family: Arial, sans-serif;
  color: #333;
}

.how-testdrive-works .container {
  /* max-width: 900px; */
  margin: 0 auto;
  text-align: center;
}

.how-testdrive-works h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: white;
}

/* Steps layout */
.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
}

.step {
  flex: 1 1 200px;
  /* background: white; */
  padding: 2rem;
  border-radius: 8px;
  /* box-shadow: 0 4px 12px rgba(0,0,0,0.1); */
  position: relative;
  transition: transform 0.3s;
}

.step:hover {
  transform: translateY(-5px);
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.step-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: black;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;

  /* Add jump animation */
  animation: jump 1.6s ease-in-out infinite;
  will-change: transform;
}
/* Jump animation */
@keyframes jump {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-8px); }
  50%  { transform: translateY(0); }
  70%  { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}


.step-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 1.5px ;
  color: white;
}

.step-content p {
  font-size: 1rem;
  line-height: 1.5;
  color: white;
}

/* Responsive for small screens */
@media (max-width: 768px) {
  .steps {
    flex-direction: column;
    gap: 1.5rem;
  }

  .how-testdrive-works h2 {
    font-size: 2rem;
  }
}













/* ===== Booking Form Styles ===== */
.booking-form-section {
  padding: 4rem 2rem;
  background-color: rgb(247, 247, 247);
  font-family: Arial, sans-serif;
  color: #333;
}

.booking-form-section .container {
  max-width: 600px;
  margin: 0 auto;
}

.booking-form-section h2 {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 2rem;
  color: orangered;
}

.booking-form .form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.booking-form .form-group {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.booking-form .form-group label {
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: orangered;
}

.booking-form .form-group input,
.booking-form .form-group select,
.booking-form .form-group textarea {
  padding: 0.75rem;
  border: 1px solid #555;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.booking-form .form-group textarea {
  resize: vertical;
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background-color: black;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-submit:hover {
  background-color: orangered;
}

/* Responsive */
@media (max-width: 600px) {
  .booking-form .form-row {
    flex-direction: column;
  }

  .booking-form .form-group {
    flex: 1 1 100%;
  }
}








/* Base reset for footer */
.auto-footer {
  position: relative;
  background:rgb(152, 9, 9);
  /* background: orangered; */
  color: #eee;
  padding-top: 30px; 
  font-family: sans-serif;
  overflow: hidden;
}

.auto-footer .logo{
  display: flex;
  flex-direction: row;
  margin-left: 550px;
  margin-bottom: 30px;
}
.auto-footer .logo button{
  border: none;
  background-color: rgb(152, 9, 9);
}
.auto-footer .logo button h2{
  font-size: 2.5rem;
  color: white;
}

/* Footer content */
.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 20px;
  max-width: 1500px;
  margin: auto;
}


.footer-col {
  flex: 1 1 200px;
  margin: 10px;
}
.footer-col h4 {
  margin-bottom: 10px;
  color: #f0a500;
  /* color: #555; */
  text-shadow: 2px 2px 2px;
  font-size: 1.5rem;

  /* Pulse animation */
  animation: pulse 2s infinite ease-in-out;
  transform-origin: center center;
}
/* Define the pulse keyframes */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}


.footer-content .services{
    padding-left: 100px;
}


.footer-col p,
.footer-col ul {
  font-size: 14px;
  line-height: 1.6;
}
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-col ul li a:hover {
  color: #f0a500;
  text-decoration: underline;
}


.social-links {
    margin-top: 30px;
}
.social-links a {
  display: inline-block;
  transition: transform 0.3s, color 0.3s;
  margin: 0 10px;
  color: #ddd;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}
/* Social-links hover animation */
.social-links a {
  display: inline-block;
  transition: transform 0.3s, color 0.3s;
  /* Animation */
  animation: pulse 2s infinite ease-in-out;
  display: inline-block; /* ensures transform works correctly */
  will-change: transform, opacity; /* helps performance */
}
/* Pulse keyframes */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes content-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Footer bottom */
.footer-bottom {
  padding: 15px 100px;
  margin-left: 550px;
  margin-bottom: 20px;
}
.footer-bottom p {
  margin: 0;
  font-size: 13px;
}




/* Responsive for small screens (<= 450px) */
@media (max-width:768px) {
  .auto-footer .logo {
    /* For smaller screens, you probably don't want huge left margin */
    margin-left: 0;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px; /* adjust as needed */
  }

  .auto-footer .logo button {
    width: 100%; /* make button full width or adjust */
    padding: 10px; /* optional padding */
    /* you can change background, border or other styles if needed */
  }

  .auto-footer .logo button h2 {
    font-size: 1.8rem; /* smaller font for smaller screen */
    text-align: center;
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }
  .footer-col {
    margin: 5px 0;
    text-align: center;
  }
  .footer-content .services{
    padding-left: 2px;
    /* margin-bottom: 30px; */
    /* padding-top: -40px; */
    padding-bottom: 40px;
  }
  .footer-col p, .footer-col ul li a {
    font-size: 12px;
  }
  .footer-bottom {
    margin-left: 2px;
  }
  .social-links{
    margin-left:-1px;
  }
  .social-links img{
    /* width: 25px; */
    margin-top: 25px;
    margin-bottom: 15px;
  }
}
