/* Reset and base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans', sans-serif;
  scroll-behavior: smooth;
}

body {
  background: #F9FAFB;
  color: #111827;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.car {
  animation: drive 2s linear infinite;
  &__body {
    animation: shake 0.2s ease-in-out infinite alternate;
  }
  
  &__line {
    transform-origin: center right;
    stroke-dasharray: 22;
    animation: line 0.8s ease-in-out infinite;
    animation-fill-mode: both;
    
    &--top {
      animation-delay: 0s;
    }
    
    &--middle {
      animation-delay: 0.2s;
    }
    
    &--bottom {
      animation-delay: 0.4s;
    }
  }
}

@keyframes drive {
  0% {
    transform: translateX(-20px);
  }
  100% {
    transform: translateX(20px);
  }
}

@keyframes shake {
  0% {
    transform: translateY(-1%);
  }
  100% {
    transform: translateY(3%);
  }
}

@keyframes line {
  0% {
    stroke-dashoffset: 22;
  }
  
  25% {
    stroke-dashoffset: 22;
  }
  
  50% {
    stroke-dashoffset: 0;
  }
  
  51% {
    stroke-dashoffset: 0;
  }
  
  80% {
    stroke-dashoffset: -22;
  }
  
  100% {
    stroke-dashoffset: -22;
  }
}
/* Navigation */
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1000;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
  width: 100%;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  position: relative;
}

.logo {
  user-select: none;
  cursor: pointer;
}

.logo-img {
  height: 3.5rem; /* Adjust height to match approximate text size */
  width: 200px;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  text-decoration: none;
  color: #111827;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  user-select: none;
  transition: color 0.3s ease;
}

.nav-links li a.active,
.nav-links li a:hover {
  color: #1E3A8A;
  background-color: transparent;
}

/* Hamburger */
#menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  user-select: none;
}

#menu-toggle .bar {
  width: 28px;
  height: 3px;
  background-color: #1E3A8A;
  border-radius: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

#menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

#menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}
/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1E3A8A, #3B82F6);
  padding: 5rem 0 7rem;
  border-bottom-left-radius: 60% 30%;
  border-bottom-right-radius: 60% 30%;
  color: white;
  user-select: none;
}

.hero-flex {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}

.hero-text {
  flex: 1;
  max-width: 600px;
  text-align: left;
}

.hero-text h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

.btn {
  cursor: pointer;
  border-radius: 40px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  border: none;
  box-shadow: 0 5px 15px rgba(30, 58, 138, 0.4);
  user-select: none;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.3s ease;
  color: white;
  background-color: #1E3A8A;
  text-decoration: none;
}

.btn:hover {
  background-color: #152c6e;
  transform: translateY(-2px);
}

.hero-image-wrapper {
  position: relative;
  flex: 1;
  max-width: 600px;
  height: 400px;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: translateX(50%);
  transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
  pointer-events: none;
  display: block; /* Ensure images are block */
}

.hero-image.active {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive */

@media (max-width: 900px) {
  .hero-flex {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .hero-text {
    text-align: center;
  }

  .hero-text h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-text p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .btn {
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
  }

  .hero-image-wrapper {
  max-width: 100%;
  height: auto;           /* let image adjust */
  margin-top: 1rem;
  display: flex;          /* center properly */
  justify-content: center;
  align-items: center;
}

.hero-image {
  position: relative;     /* instead of absolute */
  width: 100%;
  height: auto;
  max-height: 300px;      /* optional limit */
  object-fit: contain;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  display: none;          /* hide by default */
}

.hero-image.active {
  opacity: 1;
  display: block;         /* show only active */
}


/* Mobile Navigation */
@media (max-width: 768px) {
  #menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background-color: white;
    position: absolute;
    top: 75px; /* Below navigation bar */
    left: 0;   /* start from left */
    right: 0;  /* stretch to right */
    width: 100%; /* full width */
    padding: 1rem 1.5rem;
    border-radius: 0 0 15px 15px; /* even curve both sides */
    z-index: 999; /* keep above content */
    text-align: center;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li a {
    font-size: 1.2rem;
    padding: 0.5rem 0;
    transition: background-color 0.3s ease;
  }

  .nav-links li a:hover {
    background-color: #f0f0f0;
  }
}
}









  @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;600;800&display=swap');
 .preview-about {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 95vh;
    padding: 4rem 6rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    gap: 4rem;
    flex-wrap: wrap;
  }
  /* Advanced layered shape container for image with multi-layer SVG clip and shadows */
  .preview-image-wrapper {
    position: relative;
    flex: 1 1 520px;
    max-width: 600px;
    perspective: 1500px;
  }
  .preview-image-bg1,
  .preview-image-bg2,
  .preview-image-bg3 {
    position: absolute;
    inset: 0;
    border-radius: 60px;
    transition: all 0.5s ease;
    box-shadow: 0 20px 35px rgba(25, 118, 210, 0.3);
    background: linear-gradient(135deg, #0c3c91 0%, #1e6ede 90%);
    will-change: transform;
  }
  .preview-image-bg1 {
    clip-path: polygon(40% 0%, 100% 15%, 90% 80%, 50% 100%, 0% 90%, 10% 10%);
    z-index: 1;
    filter: drop-shadow(0 0 10px #1976d2);
    transform: translateZ(40px) rotateZ(3deg);
  }
  .preview-image-bg2 {
    clip-path: polygon(30% 10%, 100% 0%, 95% 85%, 55% 95%, 10% 80%, 0% 20%);
    z-index: 2;
    filter: drop-shadow(0 0 8px #1565c0);
    transform: translateZ(20px) rotateZ(-2deg);
    opacity: 0.85;
  }
  .preview-image-bg3 {
    clip-path: polygon(35% 5%, 95% 12%, 85% 75%, 60% 95%, 5% 85%, 10% 15%);
    z-index: 3;
    filter: drop-shadow(0 0 6px #0d47a1);
    transform: translateZ(0) rotateZ(0);
    opacity: 1;
  }
  /* Image itself with smooth 3D hover */
  .preview-image {
    position: relative;
    border-radius: 55px;
    overflow: hidden;
    z-index: 5;
    transition: transform 0.7s cubic-bezier(0.2, 1, 0.22, 1);
    will-change: transform;
  }
  .preview-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.2));
  }
  .preview-image-wrapper:hover .preview-image {
    transform: rotateY(8deg) rotateX(6deg) scale(1.05);
  }
  .preview-image-wrapper:hover .preview-image-bg1 {
    transform: translateZ(50px) rotateZ(5deg);
    filter: drop-shadow(0 0 25px #2196f3);
  }
  .preview-image-wrapper:hover .preview-image-bg2 {
    transform: translateZ(30px) rotateZ(-3deg);
    filter: drop-shadow(0 0 18px #1e88e5);
  }
  .preview-image-wrapper:hover .preview-image-bg3 {
    transform: translateZ(10px) rotateZ(2deg);
    filter: drop-shadow(0 0 12px #1565c0);
  }

  /* Right content */
  .preview-content {
    flex: 1 1 450px;
    max-width: 600px;
    padding: 0 1.5rem;
  }
  .preview-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #0d47a1;
    margin-bottom: 1.25rem;
    line-height: 1.1;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.05);
  }
  .preview-content p {
    font-size: 1.2rem;
    color: #222;
    line-height: 1.75;
    margin-bottom: 3rem;
  }
  .core-values {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  .core-value {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-weight: 600;
    font-size: 1.25rem;
    color: #1565c0;
    cursor: default;
    position: relative;
    padding-left: 48px;
    transition: color 0.3s ease;
  }
  .core-value svg {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    fill: #2196f3;
    transition: fill 0.3s ease;
  }
  .core-value:hover {
    color: #0d47a1;
  }
  .core-value:hover svg {
    fill: #0d47a1;
  }

  /* Subtle underline decoration on core-values for style */
  .core-value::after {
    content: "";
    position: absolute;
    left: 48px;
    bottom: -6px;
    height: 3px;
    width: 40px;
    background: linear-gradient(90deg, #0d47a1, #2196f3);
    border-radius: 8px;
    opacity: 0.3;
    transition: opacity 0.3s ease;
  }
  .core-value:hover::after {
    opacity: 0.7;
  }

  /* Responsive */
  @media (max-width: 900px) {
    .preview-about {
      flex-direction: column;
      padding: 2rem 1.5rem;
      min-height: auto;
      gap: 3rem;
    }
    .preview-content {
      max-width: 100%;
      padding: 0;
      text-align: left;
    }
    .preview-content h1 {
      font-size: 2.8rem;
    }
    .core-values {
      gap: 1.5rem;
    }
    .core-value {
      font-size: 1.15rem;
      padding-left: 44px;
    }
    .core-value svg {
      width: 30px;
      height: 30px;
      left: 0;
    }
    .preview-image-wrapper {
      flex: 1 1 100%;
      max-width: 100vw;
      perspective: none;
    }
    .preview-image-wrapper:hover .preview-image,
    .preview-image-wrapper:hover .preview-image-bg1,
    .preview-image-wrapper:hover .preview-image-bg2,
    .preview-image-wrapper:hover .preview-image-bg3 {
      transform: none;
      filter: none;
      box-shadow: none;
    }
  }
  @media (max-width: 480px) {
    .preview-about {
      padding: 1.5rem 1rem;
    }
    .preview-content h1 {
      font-size: 2.4rem;
    }
    .preview-content p {
      font-size: 1rem;
      margin-bottom: 2rem;
    }
    .core-value {
      font-size: 1rem;
      padding-left: 40px;
    }
    .core-value svg {
      width: 24px;
      height: 24px;
    }
  }







   @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

   
    .section-header {
      text-align: center;
      padding: 3rem 1rem 1rem;
      color: #0d47a1;
      font-weight: 700;
      font-size: 2.8rem;
      letter-spacing: 0.04em;
      user-select: none;
    }

    /* Grid */
    .car-grid {
      max-width: 1200px;
      margin: 1rem auto 5rem;
      padding: 0 1rem;
      display: grid;
      gap: 2.5rem 1.6rem;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    /* Card */
    .car-card {
      background: white;
      border-radius: 20px;
      box-shadow: 0 6px 22px rgba(13,71,161,0.14);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      position: relative;
      transition: box-shadow 0.3s ease, transform 0.3s ease;
    }
    .car-card:hover {
      box-shadow: 0 18px 50px rgba(13,71,161,0.3);
      transform: translateY(-8px);
    }
    .car-image-wrapper {
      flex-shrink: 0;
      overflow: hidden;
      position: relative;
      clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
      transition: clip-path 0.4s ease;
    }
    .car-image-wrapper:hover {
      clip-path: polygon(0 0, 100% 0, 100% 92%, 0% 100%);
    }
    .car-image {
      width: 100%;
      height: auto;
      object-fit: cover;
      transition: transform 0.3s ease;
    }
    .car-image-wrapper:hover .car-image {
      transform: scale(1.1);
    }

    /* Info section */
    .car-info {
      padding: 1rem 2rem 2rem;
      display: flex;
      flex-direction: column;
      gap: 0.6rem;
      user-select: none;
      position: relative;
      z-index: 2;
    }
    .car-name {
      font-size: 1.45rem;
      font-weight: 700;
      margin-bottom: 0.2rem;
      color: #0d47a1;
      letter-spacing: 0.02em;
    }
    .car-capacity,
    .car-fuel {
      font-size: 1rem;
      color: #555;
    }
    .car-features {
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
      margin: 0.7rem 0 0.6rem;
    }
    .feature-badge {
      font-size: 0.85rem;
      color: #0d47a1;
      background-color: #e3f2fd;
      padding: 0.3rem 0.75rem;
      border-radius: 14px;
      font-weight: 600;
      transition: background-color 0.3s ease;
    }
    .feature-badge:hover {
      background-color: #1976d2;
      color: white;
    }

    /* Buttons container */
    .buttons {
      margin-top: auto;
      display: flex;
      gap: 1rem;
      justify-content: flex-start;
      flex-wrap: wrap;
    }
    button {
      cursor: pointer;
      font-weight: 600;
      border-radius: 12px;
      border: none;
      padding: 0.7rem 1.3rem;
      font-size: 1rem;
      user-select: none;
      transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }
    .know-more-btn {
      color: #0d47a1;
      background: transparent;
      border: 2px solid #0d47a1;
    }
    .know-more-btn:hover {
      background-color: #0d47a1;
      color: white;
      box-shadow: 0 9px 20px rgba(13,71,161,0.25);
    }
    .book-now-btn {
      background-color: #1976d2;
      color: white;
      box-shadow: 0 9px 20px rgba(13,71,161,0.3);
    }
    .book-now-btn:hover {
      background-color: #0d47a1;
      box-shadow: 0 12px 28px rgba(13,71,161,0.5);
    }

    /* Details toggle panel */
    .car-details {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.45s ease, padding 0.4s ease;
      font-size: 0.9rem;
      color: #444;
      background: #f4f9ff;
      padding: 0 2rem;
      border-radius: 0 0 20px 20px;
      user-select: none;
      margin-top: -0.25rem;
    }
    .car-details.open {
      max-height: 550px; /* large enough */
      padding: 1rem 2rem 1.25rem;
      box-shadow: 0 8px 25px rgba(13,71,161,0.06);
    }
    .detail-row {
      margin-bottom: 0.65rem;
      line-height: 1.35;
    }
    .detail-label {
      font-weight: 600;
      color: #0d47a1;
      margin-right: 0.4rem;
    }

    /* Modal styles */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(13,71,161,0.8);
      backdrop-filter: blur(4px);
      z-index: 9999;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 1rem;
    }
    .modal-overlay.active {
      opacity: 1;
      pointer-events: all;
    }
    .modal {
      background: white;
      border-radius: 18px;
      max-width: 480px;
      width: 100%;
      padding: 2rem 2.5rem;
      box-shadow: 0 12px 40px rgba(13,71,161,0.35);
      position: relative;
      overflow-y: auto;
      max-height: 90vh;
    }
    .modal h3 {
      margin: 0 0 1.5rem 0;
      font-weight: 700;
      color: #0d47a1;
      font-size: 1.9rem;
      user-select: none;
    }
    .close-btn {
      position: absolute;
      top: 18px;
      right: 18px;
      background: transparent;
      border: none;
      font-size: 1.6rem;
      cursor: pointer;
      color: #1976d2;
      font-weight: 700;
      transition: color 0.3s ease;
      user-select: none;
    }
    .close-btn:hover {
      color: #0d47a1;
    }
    form {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      user-select: none;
    }
    label {
      font-size: 0.9rem;
      font-weight: 600;
      color: #0d47a1;
      margin-bottom: 4px;
      user-select: text;
    }
    input, select {
      padding: 0.6rem 1rem;
      font-size: 1rem;
      border-radius: 10px;
      border: 2px solid #ccc;
      transition: border-color 0.3s ease;
      font-family: 'Poppins', sans-serif;
    }
    input:focus, select:focus {
      outline: none;
      border-color: #1976d2;
      box-shadow: 0 0 7px rgba(25,118,210,0.5);
    }
    input[readonly] {
      background: #e3f2fd;
      color: #0d47a1;
      cursor: not-allowed;
    }
    .submit-btn {
      margin-top: 1.4rem;
      background-color: #0d47a1;
      color: white;
      font-weight: 700;
      font-size: 1.1rem;
      padding: 0.8rem 1rem;
      border-radius: 15px;
      border: none;
      cursor: pointer;
      box-shadow: 0 12px 32px rgba(13,71,161,0.5);
      user-select: none;
      transition: background-color 0.35s ease, box-shadow 0.35s ease;
    }
    .submit-btn:hover {
      background-color: #1976d2;
      box-shadow: 0 16px 38px rgba(13,71,161,0.7);
    }
    .status-message {
      margin-top: 0.8rem;
      font-weight: 600;
      font-size: 0.9rem;
      color: #0d47a1;
      user-select: text;
      min-height: 1.4em;
    }

    /* Responsive */
    @media (max-width: 600px) {
      .car-grid {
        grid-template-columns: 1fr;
        margin: 1rem auto 3rem;
      }
      .modal {
        padding: 1.5rem 1.8rem;
      }
      .modal h3 {
        font-size: 1.6rem;
      }
      input, select {
        font-size: 0.95rem;
      }
    }
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&display=swap');

.review-section {
  width: 90vw;
  max-width: 1100px;
  border-radius: 30px;
  padding: 2.5rem 2rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible; /* Ensure no clipping from review-section */
}

.review-heading {
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin: 0 0 2rem 0;
  text-align: center;
  color: #1976d2;
}

.reviews-container {
  display: flex;
  gap: 2rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: visible; /* Allow vertical overflow to prevent clipping */
  scroll-snap-type: x mandatory;
  width: 100%;
  padding: 2rem 0; /* Increased top padding to accommodate hover movement */
  background-color: white;
}

.reviews-container::-webkit-scrollbar {
  height: 10px;
}

.reviews-container::-webkit-scrollbar-track {
  border-radius: 10px;
}

.reviews-container::-webkit-scrollbar-thumb {
  background: #1976d2;
  border-radius: 10px;
}

.review-card {
  scroll-snap-align: center;
  flex: 0 0 320px;
  background: linear-gradient(135deg, #1976d2 10%, #00bcd4 90%);
  border-radius: 24px;
  box-shadow: 0 15px 45px rgba(25, 118, 210, 0.6);
  color: white;
  padding: 2rem 1.75rem 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  cursor: default;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  margin-top: 1rem; /* Add margin to prevent clipping at top */
}

.review-card:hover,
.review-card:focus-within {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 25px 70px rgba(25, 118, 210, 0.85);
  z-index: 10;
  outline: none;
}

.avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.8);
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.5);
}

.reviewer-name {
  font-weight: 700;
  font-size: 1.2rem;
}

.reviewer-title {
  opacity: 0.85;
  font-size: 0.95rem;
  user-select: text;
}

.stars {
  color: #ffeb3b;
  font-size: 1.3rem;
}

.testimonial {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.4;
  flex-grow: 1;
  user-select: text;
}

@media (max-width: 700px) {
  .review-section {
    width: 95vw;
    padding: 2rem 1rem;
  }

  .review-heading {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 1.5rem;
  }

  .review-card {
    flex: 0 0 280px;
    padding: 1.6rem 1.25rem 2rem 1.25rem;
    margin-top: 0.8rem; /* Slightly smaller margin for mobile */
  }

  .reviews-container {
    padding: 1.5rem 0; /* Adjust padding for mobile */
  }
}