// "use client";

// import Image from "next/image";
// import type { VehicleType } from "@/app/page";

// interface HeroProps {
//   vehicle: VehicleType;
// }

// export default function HeroSection({ vehicle }: HeroProps) {

 
//   const isBike = vehicle === "bike";

//   return (
//     <section className="bg-white pt-16 sm:pt-20 pb-16 sm:pb-24 lg:pb-28 relative overflow-hidden">
//       <div className="max-w-7xl mx-auto px-4 sm:px-6 md:px-10 flex flex-col lg:flex-row items-center gap-8 lg:gap-16">

//         {/* LEFT CONTENT */}
//         <div className="flex-1 text-center lg:text-left mr-5">

//           <h1 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-extrabold text-[#2D2D2D] leading-tight">
//             Find, book and <br className="hidden sm:block" />
//             rent a{" "}
//             <span>
//               {isBike ? "Bike" : "Car"}
//             </span>{" "}
//             <span className="relative text-primary inline-block">
//               Easily
//               <svg
//                 className="absolute left-0 -bottom-2 sm:-bottom-3 w-full"
//                 height="12"
//                 viewBox="0 0 168 12"
//                 fill="none"
//               >
//                 <path
//                   d="M2 10C50 2 120 2 166 10"
//                   stroke="#FFCB20"
//                   strokeWidth="4"
//                   strokeLinecap="round"
//                 />
//               </svg>
//             </span>
//           </h1>

//           <p className="mt-5 sm:mt-6 text-gray-500 text-base sm:text-lg max-w-md mx-auto lg:mx-0">
//             Ride freely, rent easily! Affordable{" "}
//             {isBike ? "bikes" : "cars"} anytime, anywhere.
//           </p>

//           {/* Store Buttons */}
//           <div className="flex flex-col sm:flex-row items-center lg:items-start justify-center lg:justify-start gap-4 mt-8">
  
//   {/* Google Play */}
//   <a
//     href="https://onelink.to/jsnmnq"
//     target="_blank"
//     rel="noopener noreferrer"
//   >
//     <img
//       src="https://upload.wikimedia.org/wikipedia/commons/7/78/Google_Play_Store_badge_EN.svg"
//       alt="Google Play"
//       className="h-11 sm:h-12 cursor-pointer hover:scale-105 transition"
//     />
//   </a>

//   {/* App Store */}
//   <a
//     href="https://onelink.to/jsnmnq"
//     target="_blank"
//     rel="noopener noreferrer"
//   >
//     <img
//       src="https://upload.wikimedia.org/wikipedia/commons/3/3c/Download_on_the_App_Store_Badge.svg"
//       alt="App Store"
//       className="h-11 sm:h-12 cursor-pointer hover:scale-105 transition"
//     />
//   </a>

// </div>
//         </div>

//         {/* RIGHT IMAGE */}
// <div className="flex-1 mt-10 lg:mt-0 relative flex justify-center lg:justify-end">
//   <Image
//     src={isBike ? "/Bike.png" : "/Car.png"}
//     alt="Vehicle"
//     width={1200}
//     height={800}
//     priority
//     className="
//       w-full 
//       max-w-sm 
//       sm:max-w-md 
//       md:max-w-lg
//       lg:max-w-none
//       lg:w-[140%]
//       xl:w-[160%]
//       object-contain
//       lg:translate-x-16
//     "
//   />
// </div>
//       </div>
//     </section>
//   );
// }


"use client";

import Image from "next/image";
import type { VehicleType } from "@/types/booking";

interface HeroProps {
  vehicle: VehicleType;
}

export default function HeroSection({ vehicle }: HeroProps) {
  const isBike = vehicle === "bike";

  return (
    <section className="bg-white pt-16 sm:pt-20 pb-16 sm:pb-24 lg:pb-28 relative overflow-hidden">
      <div className="max-w-7xl mx-auto px-4 sm:px-6 md:px-10 flex flex-col lg:flex-row items-center">

        {/* LEFT CONTENT */}
        <div className="flex-1 text-center lg:text-left">

          <h1 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-extrabold text-[#2D2D2D] leading-tight">
            Find, book and <br className="hidden sm:block" />
            rent a{" "}
            <span>
              {isBike ? "Bike" : "Car"}
            </span>{" "}
            <span className="relative text-primary inline-block">
              Easily
              <svg
                className="absolute left-0 -bottom-2 sm:-bottom-3 w-full"
                height="12"
                viewBox="0 0 168 12"
                fill="none"
              >
                <path
                  d="M2 10C50 2 120 2 166 10"
                  stroke="#FFCB20"
                  strokeWidth="4"
                  strokeLinecap="round"
                />
              </svg>
            </span>
          </h1>

          <p className="mt-5 sm:mt-6 text-gray-500 text-base sm:text-lg max-w-md mx-auto lg:mx-0">
            Ride freely, rent easily! Affordable{" "}
            {isBike ? "bikes" : "cars"} anytime, anywhere.
          </p>

          {/* Store Buttons */}
          <div className="flex flex-col sm:flex-row items-center lg:items-start justify-center lg:justify-start gap-4 mt-8">
  
  {/* Google Play */}
{/* Google Play */}
<a
  href="https://app.ridoo.co.in"
  target="_self"
  rel="noopener noreferrer"
>
  <Image
    src="https://upload.wikimedia.org/wikipedia/commons/7/78/Google_Play_Store_badge_EN.svg"
    alt="Google Play"
     width={180}
  height={54}
    className="h-11 sm:h-12 cursor-pointer hover:scale-105 transition"
  />
</a>

{/* App Store */}
<a
  href="https://app.ridoo.co.in"
  target="_self"
  rel="noopener noreferrer"
>
  <Image
    src="https://upload.wikimedia.org/wikipedia/commons/3/3c/Download_on_the_App_Store_Badge.svg"
    alt="App Store"
     width={180}
  height={54}
    className="h-11 sm:h-12 cursor-pointer hover:scale-105 transition"
  />
</a>

</div>
        </div>

        {/* RIGHT IMAGE */}
        <div className="flex-1 mt-10 lg:mt-0 relative flex justify-center lg:justify-end">
          <Image
  src={isBike ? "/Bike.webp" : "/Car.webp"}
  alt="Vehicle"
  width={1000}
  height={700}
  priority
  className="
    w-full 
    max-w-xs 
    sm:max-w-sm 
    md:max-w-md 
    lg:max-w-2xl 
    xl:max-w-3xl
    object-contain
    lg:translate-x-10
  "
/>
        </div>
      </div>
    </section>
  );
}