/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: radial-gradient(circle at top, #160007, #000);
  color: #e6e6e6;
}

/* ================= NAVBAR ================= */
.navbar {
  background: #000;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar h2 {
  color: #fff;
  letter-spacing: 1px;
}

.navbar a {
  color: #fff;
  margin-left: 20px;
  text-decoration: none;
  font-size: 0.95rem;
}

.navbar a:hover {
  color: #d4af37;
}

/* ================= HERO ================= */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 70px;
  padding-bottom: 140px; /* prevent overlap with bottom controls */
  background-image:
    linear-gradient(rgba(128,0,32,0.85), rgba(0,0,0,0.85)),
    url("https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  max-width: 600px;
  animation: heroFade 1.2s ease forwards;
}

.hero-content h1 {
  font-size: 3.8rem;
  margin-bottom: 15px;
  background: linear-gradient(to right, #fff, #d4af37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #eee;
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-block;
  background: linear-gradient(to right, #800020, #4d0012);
  color: white;
  padding: 14px 32px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(128,0,32,0.6);
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(212,175,55,0.5);
}
/* ================= FILTER BAR ================= */
.filter-bar {
  display: flex;
  gap: 15px;
  background: linear-gradient(135deg, #1a000d, #000);
  padding: 18px 25px;
  margin: 30px;
  border-radius: 16px;
  align-items: center;
  box-shadow: 0 10px 25px rgba(128,0,32,0.6);
  transition: all 0.3s ease;
}

.filter-bar:hover {
  box-shadow: 0 15px 35px rgba(212,175,55,0.5);
}

/* Input + Select styling */
.filter-bar input,
.filter-bar select {
  background: #111;
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  flex: 1;                /* makes input stretch nicely */
  transition: all 0.3s ease;
}

.filter-bar input:focus,
.filter-bar select:focus {
  outline: none;
  box-shadow: 0 0 10px #800020;
  background: #1c000f;
}

/* Apply button styling */
.filter-bar button {
  background: linear-gradient(to right, #800020, #4d0012);
  border: none;
  color: white;
  padding: 12px 25px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(128,0,32,0.6);
}

.filter-bar button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 30px rgba(212,175,55,0.5);
  background: linear-gradient(to right, #a00028, #6a000f);
}


/* ================= CAR GRID ================= */
#carContainer,
#wishlistContainer {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  padding: 30px;
}

/* ================= CAR CARD ================= */
.car-card {
  background: linear-gradient(180deg, #0f0f12, #050507);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  transition: all 0.35s ease;
  position: relative;
}

.car-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(128,0,32,0.6);
}

.car-card h3 {
  margin-top: 10px;
  color: #fff;
}

.car-card p {
  color: #cfcfcf;
  font-size: 0.9rem;
}

/* ================= IMAGE BOX ================= */
.car-image-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}

.car-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================= WISHLIST ================= */
.wishlist-title {
  font-size: 28px;
  font-weight: 600;
  padding: 20px 30px;
}

/* ================= ABOUT PAGE ================= */
.about-container {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}

.about-card {
  display: flex;
  gap: 40px;
  background: linear-gradient(135deg, #800020, #24000a);
  border-radius: 20px;
  padding: 30px;
  max-width: 1000px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.about-image img {
  width: 320px;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
}

.about-info h1 {
  margin-bottom: 10px;
}

.about-price {
  font-size: 20px;
  font-weight: bold;
  color: #d4af37;
  margin-bottom: 15px;
}

.about-desc {
  line-height: 1.6;
  margin-bottom: 20px;
}

.feature-list li {
  margin-bottom: 6px;
}

/* ================= FOOTER ================= */
.footer {
  background: linear-gradient(to top, #000, #120006);
  padding: 40px 20px;
  margin-top: 60px;
  text-align: center;
}

.footer-content {
  max-width: 900px;
  margin: auto;
}

.footer-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
}

.footer-content p {
  font-size: 0.95rem;
  color: #bbbbbb;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #d4af37;
}

.footer span {
  font-size: 0.8rem;
  color: #777;
  margin-top: 10px;
}

/* ================= BOTTOM CONTROLS ================= */
.bottom-controls {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 18px;
  background: rgba(0,0,0,0.85);
  padding: 14px 22px;
  border-radius: 40px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  z-index: 999;
}

.control-btn {
  background: linear-gradient(to right, #800020, #4d0012);
  border: none;
  color: white;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(128,0,32,0.6);
}

.control-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 14px 35px rgba(212,175,55,0.5);
}

/* ================= BACK BUTTON ================= */
.back-btn {
  position: fixed;
  top: 90px;
  right: 25px;
  background: linear-gradient(to right, #800020, #4d0012);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 1200;
  box-shadow: 0 10px 25px rgba(128, 0, 32, 0.6);
  transition: all 0.3s ease;
}

.back-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 15px 35px rgba(212,175,55,0.5);
}

/* ================= HEADINGS ================= */
h1,h2,h3,h4 {
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.2rem; color: #d4af37; }

/* ================= ANIMATIONS ================= */
.car-card, .feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-card:hover, .feature-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 45px rgba(128,0,32,0.6);
}
/* ================= EXPLORE PAGE HEADINGS ================= */
.explore-heading {
  font-family: "Segoe UI", "Arial", sans-serif;
  font-size: 2.5rem;       /* bigger for emphasis */
  color: #d4af37;          /* golden text for main heading */
  margin-bottom: 8px;
  text-align: left;        /* aligns nicely with content, not edge */
  padding-left: 20px;      /* spacing from the left */
  letter-spacing: 1px;
}

.explore-subheading {
  font-family: "Segoe UI", "Arial", sans-serif;
  font-size: 1.1rem;
  color: #ccc;             /* subtle grey */
  margin-bottom: 20px;
  text-align: left;        /* same alignment as main heading */
  padding-left: 22px;      /* slightly more to match design */
  font-weight: 400;
}/* ================= WISHLIST HEADER ================= */
.wishlist-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 30px;
}

/* BACK BUTTON STYLING */
.back-btn {
  background: linear-gradient(to right, #800020, #4d0012); /* burgundy gradient */
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(128,0,32,0.6);
  transition: all 0.3s ease;
}

.back-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 30px rgba(212,175,55,0.5);
  background: linear-gradient(to right, #a00028, #6a000f);
}

/* WISHLIST TITLE */
.wishlist-title {
  font-size: 28px;
  font-weight: 600;
  color: #d4af37; /* gold */
}

