/* ========================================
   BASE STYLES AND RESET
   ======================================== */
* {
  scroll-behavior: smooth;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: #dc2626;
  width: 0%;
  z-index: 1000;
  transition: width 0.1s ease;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #fff;
  background-color: #111827;
  position: relative;
}

/* ========================================
   NAVBAR STYLES
   ======================================== */
.navbar {
  position: fixed;
  width: 100%;
  z-index: 50;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.nav-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* General container class for consistent spacing */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
}

.logo-container h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-container h1 .red-text {
  color: #dc2626;
}

.logo-container p {
  font-size: 0.75rem;
  color: #9ca3af;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: white;
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.nav-link:hover {
  color: #dc2626;
}

.call-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #dc2626;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background 0.2s ease;
  border: none;
  cursor: pointer;
}

.call-button:hover {
  background: #b91c1c;
}

.menu-toggle {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 0.25rem;
  transition: background-color 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle:focus {
  background: rgba(255, 255, 255, 0.1);
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

.mobile-menu {
  display: none;
  background: rgba(17, 24, 39, 0.98);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-content {
  padding: 0.5rem 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  color: white;
  background: none;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
  background: #dc2626;
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

.mobile-call-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0.75rem 0;
  background: #dc2626;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background 0.2s ease;
  border: none;
  cursor: pointer;
  justify-content: center;
}

.mobile-call-button:hover {
  background: #b91c1c;
}

/* ========================================
   HERO SECTION STYLES
   ======================================== */
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  transition: opacity 1s ease;
  opacity: 0;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6), transparent);
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.hero-text {
  max-width: 36rem;
  animation: fadeIn 0.5s ease-in;
}

.insurance-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.shield-icon {
  color: #dc2626;
}

.pulse-badge {
  background: #dc2626;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #e5e7eb;
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.25rem;
  color: #d1d5db;
  margin-bottom: 2rem;
}

.hero-services {
  font-size: 1.125rem;
  color: #9ca3af;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-btn {
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.explore-btn {
  background: #dc2626;
  color: white;
}

.explore-btn:hover {
  background: #b91c1c;
  transform: scale(1.05);
}

.rent-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.rent-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.contact-btn {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.contact-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.75rem;
  border-radius: 9999px;
  transition: background 0.2s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.slider-btn:hover,
.slider-btn:focus {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

.prev-btn {
  left: 1rem;
}

.next-btn {
  right: 1rem;
}

.dots-container {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.dot:hover,
.dot:focus {
  background: rgba(255, 255, 255, 0.8);
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

.dot.active {
  background: #dc2626;
  width: 2rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ========================================
   ABOUT SECTION STYLES
   ======================================== */
.about-section {
  padding: 5rem 0;
  background-color: #1f2937;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.red-text {
  color: #dc2626;
}

.title-underline {
  width: 5rem;
  height: 0.25rem;
  background-color: #dc2626;
  margin: 0 auto 2rem;
  border-radius: 0.125rem;
}

.section-description {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 3rem;
  color: #d1d5db;
  font-size: 1.125rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  color: #dc2626;
  margin-bottom: 1rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #9ca3af;
}

.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.about-image {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  height: 200px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

/* ========================================
   SERVICES SECTION STYLES
   ======================================== */
.services-section {
  padding: 5rem 0;
  background-color: #111827;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}

.service-icon {
  color: #dc2626;
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-description {
  color: #d1d5db;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-link {
  display: inline-flex;
  align-items: center;
  color: #dc2626;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.service-link:hover {
  color: #b91c1c;
}

/* ========================================
   FEATURED VEHICLES SECTION STYLES
   ======================================== */
.vehicles-section {
  padding: 5rem 0;
  background-color: #1f2937;
}

.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.vehicle-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.vehicle-card:hover {
  transform: translateY(-5px);
}

.vehicle-image-container {
  height: 200px;
  overflow: hidden;
}

.vehicle-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.vehicle-card:hover .vehicle-image {
  transform: scale(1.05);
}

.vehicle-content {
  padding: 1.5rem;
}

.vehicle-badge {
  display: inline-block;
  background: #dc2626;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.vehicle-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.vehicle-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 1rem;
}

.vehicle-details {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

.vehicle-detail {
  text-align: center;
}

.vehicle-detail-value {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.vehicle-detail-label {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* ========================================
   INSURANCE HIGHLIGHT SECTION STYLES
   ======================================== */
.insurance-section {
  position: relative;
  padding: 5rem 0;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://images.pexels.com/photos/3764984/pexels-photo-3764984.jpeg?auto=compress&cs=tinysrgb&w=1920');
  background-size: cover;
  background-position: center;
  text-align: center;
}

.insurance-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.insurance-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
  margin: 0 auto;
}

.insurance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(220, 38, 38, 0.2);
  color: #dc2626;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  margin-bottom: 2rem;
}

.insurance-icon {
  width: 24px;
  height: 24px;
}

.insurance-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.insurance-description {
  color: #d1d5db;
  font-size: 1.125rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.insurance-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  text-align: left;
}

.insurance-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  color: #dc2626;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.feature-text {
  color: #d1d5db;
}

/* ========================================
   GALLERY SECTION STYLES
   ======================================== */
.gallery-section {
  padding: 5rem 0;
  background-color: #111827;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-image {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  height: 250px;
  cursor: pointer;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-image:hover img {
  transform: scale(1.05);
}

.gallery-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-image:hover .gallery-image-overlay {
  opacity: 1;
}

.gallery-icon {
  color: white;
  opacity: 0.8;
}

/* ========================================
   CONTACT SECTION STYLES
   ======================================== */
.contact-section {
  padding: 5rem 0;
  background-color: #1f2937;
}

.contact-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.contact-info {
  display: grid;
  gap: 1.5rem;
}

.info-card {
  display: flex;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.info-icon {
  color: #dc2626;
  flex-shrink: 0;
}

.info-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.info-content p {
  color: #d1d5db;
}

.info-content a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.2s ease;
}

.info-content a:hover {
  color: #dc2626;
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 0.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  color: white;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #dc2626;
}

.form-input.error,
.form-textarea.error {
  border-color: #dc2626;
  background-color: rgba(220, 38, 38, 0.1);
}

.error-message {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

.form-message {
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 500;
}

.form-message.success {
  background-color: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid #22c55e;
}

.form-message.error {
  background-color: rgba(220, 38, 38, 0.2);
  color: #dc2626;
  border: 1px solid #dc2626;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  background: #dc2626;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  width: 100%;
}

.submit-btn:hover {
  background: #b91c1c;
}

/* ========================================
   FOOTER STYLES
   ======================================== */
.footer {
  background: rgba(17, 24, 39, 0.95);
  padding: 3rem 0 1.5rem;
}

.footer-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-logo p {
  color: #9ca3af;
  font-size: 0.875rem;
}

.footer-description {
  color: #d1d5db;
  margin: 1rem 0 1.5rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-link:hover {
  background: #dc2626;
  transform: translateY(-3px);
}

.footer-heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-link {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #dc2626;
}

.contact-info {
  list-style: none;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-icon {
  color: #dc2626;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.contact-text {
  color: #d1d5db;
}

.copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 0.875rem;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  
  .menu-toggle {
    display: none;
  }
  
  .logo-container h1 {
    font-size: 1.875rem;
  }
  
  .logo-container p {
    font-size: 0.75rem;
  }
  
  .hero-title {
    font-size: 3.75rem;
  }
  
  .hero-subtitle {
    font-size: 2.25rem;
  }
  
  .hero-description {
    font-size: 1.25rem;
  }
}

/* ========================================
  ANIMATION CLASSES
  ======================================== */
.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-card:not(.visible),
.service-card:not(.visible),
.vehicle-card:not(.visible),
.about-image:not(.visible),
.gallery-image:not(.visible) {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stat-card.visible,
.service-card.visible,
.vehicle-card.visible,
.about-image.visible,
.gallery-image.visible {
  opacity: 1;
  transform: translateY(0);
}

.loaded {
  opacity: 1;
}