@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #00ff7f;
  background-color: black;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
  background-color: black;
}

body {
  padding-top: 20px;
  background-color: black;
  line-height: 1.8;
}

.max-width {
  max-width: 1300px;
  padding: 0 80px;
  margin: auto;
}

.scroll-up-btn {
  position: fixed;
  right: 30px;
  bottom: 10px;
  height: 45px;
  width: 42px;
  background: #006400;
  color: #00ff7f;
  line-height: 45px;
  text-align: center;
  font-size: 30px;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 9999;
}
.scroll-up-btn.show {
  opacity: 1;
  pointer-events: auto;
  bottom: 30px;
}

.navbar {
  position: fixed;
  width: 100%;
  background-color: black;
  padding: 30px 0;
  z-index: 999;
  transition: background-color 0.3s ease, padding 0.3s ease;
  font-family: 'Ubuntu', sans-serif;
}
.navbar.sticky {
  background-color: black;
  padding: 20px 0;
}
.navbar .max-width {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar .logo a {
  font-size: 35px;
  font-weight: 600;
  color: #00ff7f;
}
.navbar .logo a span {
  color: #32cd32;
  transition: color 0.3s ease;
}
.navbar.sticky .logo a span {
  color: #00ff7f;
}

.menu {
  list-style: none;
  display: flex;
  align-items: center;
}
.menu li {
  margin-left: 35px;
}
.menu li a {
  font-size: 18px;
  font-weight: 500;
  color: #00ff7f;
  transition: color 0.3s ease;
}
.menu li a:hover {
  color: #32cd32;
}
.navbar.sticky .menu li a:hover {
  color: #00ff7f;
}

.menu-button {
  display: none;
  font-size: 23px;
  color: #00ff7f;
  cursor: pointer;
}

.home {
  height: 100vh;
  background: url('images/banner.png') no-repeat center center/cover;
  display: flex;
  align-items: center;
  color: #00ff7f;
  font-family: 'Ubuntu', sans-serif;
  min-height: 500px;
  padding-top: 180px;
  padding-bottom: 180px;
  margin-bottom: 120px;
}
.home .max-width {
  margin-left: 40px;
}
.home-content .text-1 {
  font-size: 32px;
  margin-bottom: 35px;
}
.home-content .text-2 {
  font-size: 78px;
  font-weight: 600;
  margin: 12px 0;
}
.home-content .text-3 {
  font-size: 48px;
  margin: 25px 0;
  color: #00ff7f;
}
.home-content .text-3 span {
  color: #32cd32;
  font-weight: 500;
}
.home-content a {
  display: inline-block;
  margin-top: 40px;
  padding: 16px 45px;
  font-size: 26px;
  color: #00ff7f;
  border: 2px solid #00ff7f;
  border-radius: 6px;
  background-color: #006400;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.home-content a:hover {
  background-color: #00ff7f;
  color: #006400;
}

section {
  padding: 180px 0;
  margin-bottom: 120px;
}

.title {
  font-family: 'Ubuntu', sans-serif;
  font-size: 48px;
  font-weight: 500;
  margin-bottom: 70px;
  text-align: center;
  position: relative;
}

/* Added margin-top for spacing below fixed navbar on category pages */
.categories .title {
  margin-top: 80px;  /* This is the fix */
}

.description,
.contact p {
  margin-top: 30px;
  margin-bottom: 50px;
  line-height: 1.9;
}

/* Categories Section */
.categories {
  padding-top: 140px; /* adjust this value as needed */
  padding: 80px 0;
  color: #00ff7f;
  background-color: black;
  position: relative;
}
.categories .title {
  font-family: 'Ubuntu', sans-serif;
  font-size: 48px;
  font-weight: 500;
  margin-bottom: 70px;
  margin-top: 140px; /* ADD THIS LINE */
  text-align: center;
  position: relative;
}

.categories .title::after {
  content: "Browse by Category";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: #32cd32;
  font-size: 20px;
  background-color: black;
  padding: 0 10px;
}
.category-bar {
  margin: 70px 0;
  gap: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.category-bar a {
  color: #00ff7f;
  background: #006400;
  padding: 16px 32px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 17px;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}
.category-bar a:hover {
  background-color: #00ff7f;
  color: #006400;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  color: #00ff7f;
  background-color: black;
}
.contact .title {
  font-family: 'Ubuntu', sans-serif;
  font-size: 40px;
  font-weight: 500;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}
.contact .title::after {
  content: "Get in touch";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: #32cd32;
  font-size: 20px;
  background-color: black;
  padding: 0 10px;
}
.contact-content {
  display: flex;
  gap: 70px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 60px;
}
.column.left {
  flex: 1 1 40%;
}
.column.left .text {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
}
.column.left p {
  color: #00ff7f;
  text-align: justify;
}
.icons .row {
  display: flex;
  align-items: center;
  margin: 25px 0;
}
.icons .row i {
  font-size: 25px;
  color: #00ff7f;
  margin-right: 20px;
}
.icons .info .head {
  font-weight: 500;
  font-size: 18px;
  color: #00ff7f;
}
.icons .info .sub-title {
  color: #00ff7f;
  font-size: 14px;
}
.column.right {
  flex: 1 1 50%;
}
.column.right .text {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Form */
form .fields {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}
form .field {
  flex: 1 1 100%;
  height: 45px;
}
form .field.name,
form .field.email {
  flex: 1 1 48%;
}
form .field.textarea {
  height: 120px;
  flex: 1 1 100%;
}
form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  height: 100%;
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #00ff7f;
  background-color: black;
  color: #00ff7f;
  outline: none;
  resize: none;
}
form button {
  background-color: #006400;
  border: 2px solid #00ff7f;
  color: #00ff7f;
  font-size: 20px;
  font-weight: 500;
  padding: 12px 30px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: 40px;
}
form button:hover {
  background-color: #00ff7f;
  color: #006400;
}

/* Footer */
footer {
  margin-top: 120px;
  padding: 50px 20px;
  font-size: 18px;
  text-align: center;
  color: #00ff7f;
  background-color: black;
}
footer a {
  color: #32cd32;
  text-decoration: none;
  transition: color 0.3s ease;
}
footer a:hover {
  text-decoration: underline;
  color: #00ff7f;
}

.brands {
  padding: 140px 0 100px;
  background-color: black;
  text-align: center;
  color: #00ff7f;
}

/* Brands Styling */
.brands .title {
  font-family: 'Ubuntu', sans-serif;
  font-size: 48px;
  font-weight: 500;
  margin-bottom: 70px;
  text-align: center;
  position: relative;
}

.brands .title::after {
  content: "Browse by Brand";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: #32cd32;
  font-size: 20px;
  background-color: black;
  padding: 0 10px;
}

.brand-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin-top: 60px;
}

.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #00ff7f;
  width: 100px; /* fixed width for all brand items */
  transition: transform 0.3s ease;
}

/* Add a fixed-size box around images */
.brand-item img {
  width: 70px;       /* uniform width */
  height: 70px;      /* uniform height */
  object-fit: contain; /* preserve aspect ratio, fit inside box */
  background-color: #111; /* dark box background (adjust as needed) */
  padding: 10px;     /* padding inside the box */
  border-radius: 8px; /* optional rounded corners */
  box-sizing: border-box;
  margin-bottom: 10px;
}

.brand-item span {
  font-weight: 500;
  font-size: 15px;
  margin-top: 5px;
}

.brand-item:hover {
  transform: scale(1.1);
  color: #32cd32;
}

/* --- Car Search Section Wrapper --- */
.car-search-section {
  background-color: black;
  color: #00ff7f;
  padding: 40px 20px;
  font-family: 'Poppins', sans-serif;
  margin-top: 120px; 
}

/* --- Layout for Rows of Filters --- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

/* --- All Filter Inputs and Dropdowns --- */
.filter {
  padding: 12px 16px;
  background-color: transparent;
  border: 1px solid #00ff7f;
  color: #00ff7f;
  border-radius: 6px;
  font-size: 15px;
  min-width: 180px;
  font-family: 'Poppins', sans-serif;
  transition: border 0.3s ease;
}

.filter::placeholder {
  color: #32cd32;
}

.filter:focus {
  outline: none;
  border-color: #32cd32;
}

/* --- Wider Search Bar --- */
.search-bar {
  flex: 1;
  min-width: 300px;
}

/* --- Search Button --- */
.search-btn {
  padding: 14px 40px;
  font-size: 16px;
  background-color: #00ff7f;
  color: black;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.search-btn:hover {
  background-color: #32cd32;
}

/* --- More Filters Toggle --- */
.more-filters {
  width: 100%;
  text-align: center;
}

.more-filters summary {
  cursor: pointer;
  font-weight: 500;
  padding: 12px;
  border: 1px solid #00ff7f;
  border-radius: 6px;
  width: fit-content;
  margin: 0 auto;
  user-select: none;
}

.more-options {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

/* Optional: hide marker on summary */
.more-filters summary::-webkit-details-marker {
  display: none;
}

/* Listings */
.listings {
  background-color: black;
  color: #00ff7f;
  padding: 120px 20px 80px;
  min-height: 80vh;
  font-family: 'Poppins', sans-serif;
}

.listings .max-width {
  max-width: 1300px;
  margin: 0 auto;
}

.listings .title {
  font-family: 'Ubuntu', sans-serif;
  font-size: 48px;
  font-weight: 600;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 5px;
  position: relative;
  color: #00ff7f;
}

.listings .title::after {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  color: #32cd32;
  background-color: black;
  padding: 0 10px;
}

.listings .description {
  max-width: 700px;
  margin: 10px auto 50px auto;
  font-size: 16px;
  color: #00ff7f;
  text-align: center;
  line-height: 1.6;
}

/* Car List Container */
#car-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-items: center;
}

.car-card-link {
  display: block;
  height: 100%;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

/* Individual Car Card */
.car-card {
  background: #000;
  height: 100%;
  border: 1px solid #00ff7f;
  border-radius: 12px;
  box-shadow: 0 0 10px #00ff7f88;
  color: #00ff7f;
  width: 100%;
  max-width: 350px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

#car-list > a {
  height: 100%;
  display: flex;        
}

.car-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #32cd32;
}

.car-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.car-card h3 {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 12px;
  text-align: center;
}

.car-card p {
  font-size: 14px;
  margin: 5px 0;
  text-align: center;
  line-height: 1.4;
}



.main-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 40px;
}

.sidebar-filters {
  flex: 0 0 300px;
  background: #111;
  padding: 20px;
  border-radius: 8px;
  color: #00ff7f;
  position: sticky;
  margin-top: 60px;
  top: 100px;
  height: fit-content;
}

.listings {
  flex: 1;
  background-color: black;
  color:00ff7f ;
  font-family: 'Poppins', sans-serif;
  padding: 0;
}

.btn-search {
  background-color: #00ff7f;
  color: black;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: block;
  margin: 20px auto 0 auto; /* Center it horizontally */
}

.btn-search:hover {
  background-color: #32cd32;
}

/* Electric Car Filter Section */
.car-search-section {
  background-color: #000;
  color: #00ff7f;
  padding: 40px 20px 20px;
  font-family: 'Poppins', sans-serif;
  border-bottom: 1px solid #00ff7f33;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 20px;
}

.filter-row select,
.filter-row input[type="number"],
.filter-row input[type="text"] {
  background-color: #111;
  color: #00ff7f;
  border: 1px solid #00ff7f88;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 14px;
  width: 200px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.filter-row select:focus,
.filter-row input:focus {
  outline: none;
  border-color: #32cd32;
  box-shadow: 0 0 5px #32cd32;
}

.more-filters summary {
  cursor: pointer;
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 10px;
  color: #32cd32;
}

.more-filters[open] summary::after {
  content: "▲";
  margin-left: 8px;
}

.more-filters summary::after {
  content: "▼";
  margin-left: 8px;
}

.more-options {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.search-button-row {
  text-align: center;
}





/* Responsive Adjustments */
@media (max-width: 1300px) {
  .home .max-width {
    margin-left: 0;
  }
  .listings {
    padding: 60px 20px;
    width: 100%;
  }

  .filter,
  .search-bar {
    min-width: 250px;
  }

  .main-content {
    flex-direction: column;
    gap: 50px;
    padding: 40px 20px;
  }

  .sidebar-filters {
    width: 100%;
    position: relative;
    top: unset;
  }
}

@media (max-width: 1104px) {
  .home-content .text-2 {
    font-size: 60px;
  }
  .home-content .text-3 {
    font-size: 40px;
  }
  .listings .title {
    font-size: 40px;
  }
  .listings .description {
    font-size: 15px;
  }

  .filter,
  .search-bar {
    min-width: 220px;
  }

  .search-btn {
    padding: 12px 30px;
    font-size: 15px;
  }
}

@media (max-width: 940px) {
  .menu-button {
    display: block;
    z-index: 999;
  }
  .navbar .menu {
    position: fixed;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100vh;
    background: black;
    text-align: center;
    padding-top: 100px;
    transition: left 0.3s ease;
    flex-direction: column;
  }
  .navbar .menu.active {
    left: 0;
  }
  .navbar .menu li {
    display: block;
    margin: 30px 0;
  }
  .home-content .text-2 {
    font-size: 55px;
  }
  .home-content .text-3 {
    font-size: 35px;
  }
  .home-content a {
    font-size: 22px;
    padding: 14px 35px;
  }
  .max-width {
    padding: 0 40px;
  }
  .contact-content {
    flex-direction: column;
    gap: 50px;
  }

  /* Brands */
  .brands .title {
    font-size: 36px;
    margin-bottom: 50px;
  }
  .brands .title::after {
    font-size: 16px;
    bottom: -24px;
  }
  .brand-grid {
    gap: 30px;
    margin-top: 40px;
  }
  .brand-item {
    width: 80px;
  }
  .brand-item img {
    width: 60px;
    height: 60px;
    padding: 8px;
  }
  .brand-item span {
    font-size: 13px;
  }

  /* Listings */
  .listings .title {
    font-size: 36px;
  }
  .listings .description {
    font-size: 14px;
  }
  #car-list {
    max-width: 100%;
    padding: 0 15px;
  }

  /* Filters */
  .filter,
  .search-bar {
    min-width: 200px;
  }

  .search-btn {
    padding: 12px 24px;
    font-size: 14px;
  }
}

@media (max-width: 690px) {
  .home-content .text-2 {
    font-size: 45px;
  }
  .home-content .text-3 {
    font-size: 30px;
  }

  .categories {
    padding-bottom: 60px;
  }

  .categories .title {
    margin-bottom: 70px;
    padding-bottom: 40px;
  }

  .categories .title::after {
    transform: translateX(-50%) translateY(40px);
    font-size: 18px;
  }

  .category-bar a {
    font-size: 14px;
    padding: 12px 22px;
  }

  /* Brands */
  .brands .title {
    font-size: 30px;
    margin-bottom: 45px;
  }
  .brands .title::after {
    font-size: 14px;
    bottom: -22px;
  }
  .brand-grid {
    gap: 25px;
    margin-top: 35px;
  }
  .brand-item {
    width: 70px;
  }
  .brand-item img {
    width: 55px;
    height: 55px;
    padding: 7px;
  }
  .brand-item span {
    font-size: 12px;
  }

  /* Filters */
  .filter,
  .search-bar {
    min-width: 100%;
    max-width: 100%;
  }

  .more-options {
    flex-direction: column;
    align-items: center;
  }

  .search-btn {
    width: 100%;
    max-width: 300px;
  }

  .more-filters summary {
    font-size: 14px;
  }

  /* Listings */
  .listings {
    padding: 50px 15px;
  }

  .listings .title {
    font-size: 32px;
  }

  .listings .description {
    font-size: 13px;
    max-width: 90%;
    margin-bottom: 30px;
  }

  #car-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
  }

  .car-card {
    height: auto;
  }

  .card-body {
    flex-direction: column;
    gap: 15px;
  }

  .car-image {
    flex-basis: 100%;
    height: 180px;
  }
}

@media (max-width: 500px) {
  .home-content .text-2 {
    font-size: 38px;
  }
  .home-content .text-3 {
    font-size: 25px;
  }
  .home-content a {
    padding: 10px 25px;
    font-size: 18px;
  }

  /* Category Bar vertical */
  .category-bar {
    flex-direction: column;
    gap: 15px;
  }

  .category-bar a {
    width: 100%;
    text-align: center;
    padding: 14px 0;
    font-size: 16px;
    border-radius: 4px;
  }

  /* Brands */
  .brands .title {
    font-size: 26px;
    margin-bottom: 40px;
  }
  .brands .title::after {
    font-size: 12px;
    bottom: -18px;
  }
  .brand-grid {
    gap: 20px;
    margin-top: 30px;
  }
  .brand-item {
    width: 60px;
  }
  .brand-item img {
    width: 50px;
    height: 50px;
    padding: 6px;
  }
  .brand-item span {
    font-size: 11px;
  }

  /* Listings */
  .listings {
    padding: 40px 10px;
  }
  .listings .title {
    font-size: 28px;
  }
  .listings .description {
    font-size: 12px;
    max-width: 100%;
  }

  #car-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .car-card {
    padding: 15px;
  }

  .car-title {
    font-size: 18px;
  }

  .car-info {
    font-size: 13px;
  }

  .car-image {
    height: 150px;
  }

  /* Filters */
  .filter,
  .search-bar {
    min-width: 100%;
    max-width: 100%;
  }

  .search-btn {
    width: 100%;
    font-size: 14px;
    padding: 12px;
  }

  .more-options {
    gap: 12px;
    flex-direction: column;
  }

  .more-filters summary {
    font-size: 13px;
  }
}