@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Sora:wght@400;600;700&display=swap');

:root {
  --primary: #ff4e26;
  --secondary: #2d3436;
  --accent: #00d4ff;
  --text-primary: #f5f5f5;
  --text-secondary: rgba(255, 78, 38, 0.7);
  --bg-dark: #0f0f0f;
  --bg-light: #ffffff;
  --border-dark: #2a2a2a;
  --border-light: #e0e0e0;
}

html.light-mode {
  --primary: #e63946;
  --secondary: #457b9d;
  --accent: #f77f00;
  --text-primary: #1a1a1a;
  --text-secondary: rgba(230, 57, 70, 0.7);
  --bg-dark: #ffffff;
  --bg-light: #f9f9f9;
  --border-dark: #e0e0e0;
  --border-light: #2a2a2a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-dark);
  transition: all 0.3s ease;
}

html.light-mode .navbar {
  background: rgba(255, 255, 255, 0.95);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-icon {
  font-size: 32px;
  animation: spin 3s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.nav-menu {
  display: flex;
  gap: 50px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.theme-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--border-dark);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  transform: rotate(20deg) scale(1.1);
  background: var(--primary);
}

.cta-button {
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 78, 38, 0.3);
}

/* Hero Section */
.hero {
  margin-top: 80px;
  min-height: 85vh;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--secondary) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  opacity: 0;
  animation: videoFadeIn 1s ease-out 3s forwards;
}

@keyframes videoFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-gradient {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 78, 38, 0.15) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}



.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--text-primary);
  max-width: 900px;
  opacity: 0;
  animation: heroTextAppear 0.8s ease-out 0.5s forwards;
}

@keyframes heroTextAppear {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text.vanish,
.hero-stats.vanish {
  animation: heroTextVanish 1s ease-in forwards;
}

@keyframes heroTextVanish {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
  100% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    filter: blur(8px);
  }
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -2px;
  line-height: 1.2;
}

.hero-word {
  display: block;
  animation: slideInUp 0.8s ease backwards;
}

.hero-word:nth-child(1) { animation-delay: 0.1s; }
.hero-word:nth-child(2) { animation-delay: 0.2s; }
.hero-word:nth-child(3) { animation-delay: 0.3s; }

.hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 78, 38, 0.8);
  margin-bottom: 40px;
  animation: fadeIn 1s ease 0.4s backwards;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 80px;
  animation: fadeIn 1s ease 0.5s backwards;
}

.btn {
  padding: 16px 40px;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(255, 78, 38, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 78, 38, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--text-dark);
}

.btn-secondary:hover {
  background: var(--text-dark);
  color: var(--bg-dark);
}

.btn-large {
  padding: 18px 50px;
  font-size: 1.1rem;
}

.hero-stats {
  display: flex;
  gap: 60px;
  justify-content: center;
  animation: fadeIn 1s ease 0.6s backwards;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 5px;
}

.scroll-indicator {
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: fadeInScroll 0.8s ease forwards;
}

@keyframes fadeInScroll {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--text-dark);
  border-radius: 13px;
  margin: 10px auto;
  padding: 6px 0;
}

.wheel {
  width: 4px;
  height: 6px;
  background: var(--text-primary);
  border-radius: 2px;
  margin: 0 auto;
  animation: scrollSmooth 1.5s ease-out forwards;
}

@keyframes scrollSmooth {
  0% {
    opacity: 1;
    transform: translateY(-8px);
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Section Styling */
.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
  animation: slideInUp 0.8s ease;
}

.section-header p {
  font-size: 1.2rem;
  color: rgba(255, 78, 38, 0.8);
  animation: slideInUp 0.8s ease 0.1s backwards;
}

/* Showcase Section */
.showcase {
  padding: 120px 0;
  background: var(--bg-dark);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.showcase-card {
  background: var(--border-dark);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: fadeInUp 0.8s ease backwards;
  animation-delay: calc(var(--index) * 0.1s);
  cursor: pointer;
}

.showcase-card:hover {
  transform: translateY(-20px);
  box-shadow: 0 30px 60px rgba(255, 78, 38, 0.3);
}

.showcase-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.showcase-card:hover .showcase-image img {
  transform: scale(1.1);
}

.showcase-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  animation: slideInRight 0.5s ease;
}

.showcase-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.showcase-card:hover .showcase-overlay {
  opacity: 1;
}

.view-btn {
  padding: 12px 30px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-btn:hover {
  transform: scale(1.05);
}

.showcase-info {
  padding: 30px;
}

.showcase-info h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.model-year {
  font-size: 0.9rem;
  color: rgba(255, 78, 38, 0.7);
  margin-bottom: 15px;
}

.price-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.specs {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.spec {
  padding: 6px 12px;
  background: var(--border-dark);
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Features Section */
.features {
  padding: 120px 0;
  background: #000000;
}

html.light-mode .features {
  background: var(--bg-dark);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-card {
  padding: 40px;
  background: var(--bg-dark);
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s ease;
  animation: fadeInUp 0.8s ease backwards;
  animation-delay: calc(var(--index) * 0.1s);
  border: 1px solid var(--border-dark);
}

html.light-mode .feature-card {
  background: var(--bg-light);
  border-color: var(--border-light);
}

.feature-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 50px rgba(255, 78, 38, 0.2);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.feature-card p {
  color: rgba(255, 78, 38, 0.7);
  font-size: 0.95rem;
}

.feature-line {
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 20px auto 0;
  transition: width 0.3s ease;
}

.feature-card:hover .feature-line {
  width: 50px;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

/* Stats Section */
.stats-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  text-align: center;
}

.counter-card {
  color: white;
}

.counter-value {
  font-size: 3.5rem;
  font-weight: 800;
  display: block;
  margin-bottom: 10px;
}

.counter-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* CTA Section */
.cta-section {
  padding: 100px 40px;
  text-align: center;
  background: var(--bg-dark);
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 800;
}

.cta-content p {
  font-size: 1.2rem;
  color: rgba(255, 78, 38, 0.7);
  margin-bottom: 40px;
}

/* Page Hero */
.page-hero {
  margin-top: 80px;
  padding: 100px 40px;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--secondary) 100%);
}

.page-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.page-hero p {
  font-size: 1.2rem;
  color: rgba(255, 78, 38, 0.7);
}

/* Inventory Section */
.inventory-section {
  padding: 80px 0;
}

.filter-controls {
  display: flex;
  gap: 20px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.filter-input,
.filter-select {
  padding: 12px 20px;
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  background: var(--bg-light);
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

html.light-mode .filter-input,
html.light-mode .filter-select {
  background: var(--bg-dark);
  color: var(--text-primary);
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(255, 78, 38, 0.2);
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.vehicle-card {
  background: var(--border-dark);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s ease;
  animation: fadeInUp 0.6s ease backwards;
  animation-delay: calc(var(--index) * 0.08s);
}

.vehicle-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 78, 38, 0.2);
}

.vehicle-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.vehicle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.vehicle-card:hover .vehicle-image img {
  transform: scale(1.1);
}

.vehicle-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 600;
}

.vehicle-details {
  padding: 20px;
}

.vehicle-details h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  font-weight: 700;
}

.year {
  font-size: 0.8rem;
  color: rgba(255, 78, 38, 0.6);
  margin-bottom: 12px;
}

.specs-row {
  display: flex;
  gap: 10px;
  font-size: 0.75rem;
  margin-bottom: 15px;
}

.specs-row span {
  background: var(--primary);
  color: white;
  padding: 4px 8px;
  border-radius: 10px;
}

.vehicle-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-small {
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.btn-small:hover {
  transform: scale(1.05);
}

/* About Section */
.about-section {
  padding: 100px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 25px;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 78, 38, 0.7);
  margin-bottom: 20px;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-box {
  background: var(--border-dark);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-text {
  font-size: 0.95rem;
  color: rgba(255, 78, 38, 0.7);
  margin-top: 10px;
}

.values-section {
  text-align: center;
}

.values-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 60px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.value-item {
  padding: 40px;
  background: var(--border-dark);
  border-radius: 15px;
  transition: all 0.4s ease;
}

.value-item:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(255, 78, 38, 0.2);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.value-item h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.value-item p {
  color: rgba(255, 78, 38, 0.6);
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 40px;
}

.info-box {
  margin-bottom: 40px;
}

.info-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.info-box p {
  font-size: 0.95rem;
  color: rgba(255, 78, 38, 0.7);
  line-height: 1.8;
}

.contact-form {
  background: var(--border-dark);
  padding: 50px;
  border-radius: 20px;
}

.contact-form h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  background: var(--bg-light);
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

html.light-mode .form-group input,
html.light-mode .form-group select,
html.light-mode .form-group textarea {
  background: var(--bg-dark);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(255, 78, 38, 0.2);
}

/* Footer */
.footer {
  background: var(--secondary);
  color: white;
  padding: 80px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-col p {
  opacity: 0.8;
  line-height: 1.8;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-col a:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

/* Animations */
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ============================================
   CAR SEARCH SECTION (API-Powered)
   ============================================ */
.car-search-section {
  padding: 80px 0 40px;
  background: var(--bg-dark);
}

.car-search-form {
  background: var(--border-dark);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 78, 38, 0.15);
  transition: all 0.3s ease;
}

.car-search-form:hover {
  border-color: rgba(255, 78, 38, 0.3);
  box-shadow: 0 10px 40px rgba(255, 78, 38, 0.1);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 20px;
  align-items: end;
}

.search-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.search-field select,
.search-field input[type="text"] {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.search-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ff4e26' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

html.light-mode .search-field select,
html.light-mode .search-field input[type="text"] {
  background-color: var(--bg-light);
  border-color: var(--border-light);
}

html.light-mode .search-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23e63946' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-color: var(--bg-light);
}

.search-field select:focus,
.search-field input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(255, 78, 38, 0.2);
}

.search-field select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.search-btn-field {
  display: flex;
  align-items: flex-end;
}

.search-btn {
  padding: 14px 36px;
  font-size: 1rem;
  border-radius: 12px;
  min-width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin-search 0.6s linear infinite;
}

@keyframes spin-search {
  to { transform: rotate(360deg); }
}

/* Search Results */
.search-results {
  margin-top: 10px;
  animation: fadeInUp 0.5s ease;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-dark);
}

.results-header h3 {
  font-size: 1.8rem;
  font-weight: 800;
}

.results-header h3 span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.results-meta {
  font-size: 0.9rem;
  color: rgba(255, 78, 38, 0.7);
}

.results-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 8px;
}

.badge-verified {
  background: rgba(74, 222, 128, 0.2);
  color: #4ade80;
}

.badge-unverified {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

/* Trim Cards */
.trims-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.trim-card {
  background: var(--border-dark);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(255, 78, 38, 0.1);
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease backwards;
}

.trim-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(255, 78, 38, 0.15);
  border-color: rgba(255, 78, 38, 0.3);
}

.trim-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trim-card-header h4 {
  font-size: 1.2rem;
  font-weight: 700;
}

.trim-card-header .trim-number {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  font-weight: 600;
}

/* Price Section inside Trim Cards */
.trim-price-section {
  background: linear-gradient(135deg, rgba(255, 78, 38, 0.08), rgba(0, 212, 255, 0.06));
  border: 1px solid rgba(255, 78, 38, 0.15);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
  text-align: center;
}

.estimated-price {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.estimated-price-inr {
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255, 78, 38, 0.7);
  margin-top: 2px;
}

.price-details {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.msrp-label {
  font-size: 0.8rem;
  color: rgba(255, 78, 38, 0.6);
  font-weight: 500;
}

.depreciation-badge {
  font-size: 0.75rem;
  color: #fbbf24;
  font-weight: 600;
  background: rgba(251, 191, 36, 0.15);
  padding: 2px 10px;
  border-radius: 10px;
}

.trim-price-section .results-badge {
  margin-top: 8px;
  font-size: 0.7rem;
}

/* Trim Description */
.trim-description {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: rgba(255, 78, 38, 0.5);
  font-style: italic;
  line-height: 1.5;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-item .spec-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 78, 38, 0.6);
  font-weight: 600;
}

.spec-item .spec-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.spec-item .spec-value.highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Search Error */
.search-error {
  margin-top: 10px;
  padding: 24px 30px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 16px;
  animation: fadeInUp 0.4s ease;
}

.search-error .error-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #ef4444;
  margin-bottom: 8px;
}

.search-error .error-message {
  color: rgba(255, 78, 38, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
}

.search-error .error-suggestion {
  margin-top: 12px;
  font-size: 0.85rem;
  color: rgba(255, 78, 38, 0.6);
  font-style: italic;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 60px 20px;
}

.no-results .no-results-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.no-results h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.no-results p {
  color: rgba(255, 78, 38, 0.6);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets (768px and below) */
@media (max-width: 768px) {
  .navbar-container {
    padding: 0 15px;
    height: 70px;
  }

  .container {
    padding: 0 15px;
  }

  .logo {
    font-size: 24px;
    gap: 8px;
  }

  .logo-icon {
    font-size: 28px;
  }

  .nav-menu {
    gap: 20px;
    font-size: 0.85rem;
  }

  .cta-button {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stats {
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .stat-item {
    min-width: 100px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-header p {
    font-size: 0.95rem;
  }

  .showcase-grid,
  .inventory-grid,
  .features-grid,
  .about-content,
  .contact-grid,
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .showcase-card,
  .inventory-card,
  .feature-card {
    padding: 20px;
  }

  .compare-card {
    padding: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .search-field input,
  .search-field select {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }

  .spec-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .trims-grid {
    grid-template-columns: 1fr;
  }

  .car-search-form {
    padding: 18px;
    border-radius: 12px;
  }
}

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {
  :root {
    font-size: 14px;
  }

  body {
    overflow-x: hidden;
  }

  .navbar-container {
    padding: 0 12px;
    height: 65px;
  }

  .container {
    padding: 0 12px;
  }

  .logo {
    font-size: 20px;
    gap: 6px;
  }

  .logo-icon {
    font-size: 24px;
  }

  .nav-menu {
    gap: 12px;
    font-size: 0.75rem;
  }

  .nav-link {
    padding: 6px 10px !important;
  }

  .cta-button {
    padding: 8px 14px;
    font-size: 0.75rem;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  /* Hero Section */
  .hero {
    min-height: 60vh;
    padding-top: 70px;
  }

  .hero-content {
    padding: 20px;
  }

  .hero-word {
    display: block;
  }

  .hero-title {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 15px;
  }

  .stat-item {
    min-width: auto;
    width: 100%;
    text-align: center;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  /* Section Headers */
  .section-header {
    padding: 30px 0;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .section-header p {
    font-size: 0.85rem;
  }

  /* Cards */
  .showcase-grid,
  .inventory-grid,
  .features-grid,
  .about-content,
  .contact-grid,
  .compare-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .showcase-card,
  .inventory-card,
  .feature-card,
  .compare-card {
    padding: 15px;
    border-radius: 10px;
  }

  .showcase-badge {
    padding: 4px 8px;
    font-size: 0.7rem;
  }

  .price-badge {
    font-size: 1.1rem;
    padding: 8px 12px;
  }

  /* Search Form */
  .car-search-form {
    padding: 15px;
    border-radius: 10px;
  }

  .search-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .search-field {
    margin-bottom: 8px;
  }

  .search-field label {
    font-size: 0.85rem;
    margin-bottom: 4px;
  }

  .search-field input,
  .search-field select {
    padding: 8px 10px;
    font-size: 0.85rem;
    width: 100%;
  }

  /* Specs Grid */
  .spec-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .spec-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
  }

  .spec-label {
    font-size: 0.75rem;
    font-weight: 600;
  }

  .spec-value {
    font-size: 0.85rem;
  }

  /* Compare Section */
  .compare-selectors {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .compare-card {
    width: 100%;
  }

  .compare-field {
    margin-bottom: 12px;
  }

  .compare-field label {
    font-size: 0.8rem;
  }

  .compare-field select,
  .compare-field input {
    font-size: 0.85rem;
    padding: 8px 10px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .footer-section h4 {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .footer-section ul li {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }

  .footer-bottom {
    padding: 15px 0;
    font-size: 0.8rem;
  }

  /* Buttons */
  button {
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
  }

  .view-btn,
  .search-btn {
    padding: 8px 16px !important;
    font-size: 0.8rem !important;
  }

  /* Text Sizing */
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
  p { font-size: 0.9rem; }

  /* Scroll Indicator */
  .scroll-indicator {
    bottom: 15px;
  }

  .wheel {
    width: 18px;
    height: 24px;
  }
}

/* Extra Small Devices (under 360px) */
@media (max-width: 360px) {
  :root {
    font-size: 12px;
  }

  .logo {
    font-size: 18px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .section-header h2 {
    font-size: 1.3rem;
  }

  .nav-menu {
    gap: 8px;
    font-size: 0.7rem;
  }

  .stat-number {
    font-size: 1.2rem;
  }
}
