import Logo from "../Logo/Logo";

const Footer = () => {
  const scrollToHero = (e) => {
    e.preventDefault();
    document.getElementById("hero")?.scrollIntoView({ behavior: "smooth" });
  };

  return (
    <footer id="contact" className="bg-[#01172f] text-white relative border-t border-dark-900 overflow-hidden">
      {/* Cityscape Silhouette Background */}
      <div
        className="absolute bottom-0 left-0 w-full h-[300px] pointer-events-none bg-[length:100%_100%] bg-bottom bg-no-repeat opacity-90"
        style={{ backgroundImage: "url('https://ik.imagekit.io/fofu0hrhb/footerbgimage.png')" }}
      />

      <div className="relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pt-16 pb-8">
        {/* Middle Links Grid */}
        <div className="grid grid-cols-2 lg:grid-cols-5 gap-8 mb-16 relative z-10">
          <div>
            <h4 className="font-bold text-lg mb-6 text-white">Our Fleet</h4>
            <ul className="space-y-4">
              {["Sedan Cabs", "SUV Cabs", "Premium SUVs", "Luxury Rides"].map(item => (
                <li key={item}><a href="#" onClick={scrollToHero} className="text-[#93c5fd] hover:text-white text-sm transition-colors">{item}</a></li>
              ))}
            </ul>
          </div>

          <div>
            <h4 className="font-bold text-lg mb-6 text-white">Services</h4>
            <ul className="space-y-4">
              {["Corporate Travel", "Airport Transfers", "Family Trips", "City Tours", "Outstation Travel", "Wedding Cabs", "Holiday Packages"].map(item => (
                <li key={item}><a href="#" onClick={scrollToHero} className="text-[#93c5fd] hover:text-white text-sm transition-colors">{item}</a></li>
              ))}
            </ul>
          </div>

          <div>
            <h4 className="font-bold text-lg mb-6 text-white">Luxury Cabs</h4>
            <ul className="space-y-4">
              {["Luxury Sedan", "Luxury SUV", "Premium Executive Cabs"].map(item => (
                <li key={item}><a href="#" onClick={scrollToHero} className="text-[#93c5fd] hover:text-white text-sm transition-colors">{item}</a></li>
              ))}
            </ul>
          </div>

          <div>
            <h4 className="font-bold text-lg mb-6 text-white">Other Links</h4>
            <ul className="space-y-4">
              {["About Us", "Contact Us", "Blogs", "Cancellation Policy", "Terms & Conditions", "Privacy Policy", "Pricing Policy", "Partner With Us"].map(item => (
                <li key={item}><a href="#" onClick={scrollToHero} className="text-[#93c5fd] hover:text-white text-sm transition-colors">{item}</a></li>
              ))}
            </ul>
          </div>

          <div className="col-span-2 lg:col-span-1">
            <Logo lightText={true} className="mb-6" />
            <p className="text-[#93c5fd] text-sm leading-relaxed mb-6">
              We are a popular and leading Cab and Premium Tours company based out of Bangalore. road.rentals has been trusted by hundreds of happy travellers for several decades now as a renowned and acclaimed as the best travel service provider based out of Bangalore.
            </p>
            {/* Social Icons Placeholder */}
            <div className="flex gap-3">
              <a href="#" className="w-9 h-9 rounded-full bg-[#1e293b] flex items-center justify-center text-[#93c5fd] hover:bg-primary-500 hover:text-white transition-colors">
                <svg className="w-4 h-4 fill-current" viewBox="0 0 24 24"><path d="M21.582 6.186a2.684 2.684 0 0 0-1.884-1.889C18.035 3.8 12 3.8 12 3.8s-6.035 0-7.698.497a2.684 2.684 0 0 0-1.884 1.889C1.922 7.85 1.922 12 1.922 12s0 4.15.5 5.814a2.685 2.685 0 0 0 1.884 1.889c1.664.497 7.698.497 7.698.497s6.035 0 7.698-.497a2.685 2.685 0 0 0 1.884-1.889c.496-1.664.496-5.814.496-5.814s0-4.15-.496-5.814zm-14.28 9.38v-7.13L13.71 12l-6.408 3.566z" /></svg>
              </a>
              <a href="#" className="w-9 h-9 rounded-full bg-[#1e293b] flex items-center justify-center text-[#93c5fd] hover:bg-primary-500 hover:text-white transition-colors">
                <svg className="w-4 h-4 fill-current" viewBox="0 0 24 24"><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" /></svg>
              </a>
              <a href="#" className="w-9 h-9 rounded-full bg-[#1e293b] flex items-center justify-center text-[#93c5fd] hover:bg-primary-500 hover:text-white transition-colors">
                <svg className="w-4 h-4 fill-current" viewBox="0 0 24 24"><path d="M12 2C6.477 2 2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.879V14.89h-2.54V12h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.094 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.562V12h2.773l-.443 2.89h-2.33v6.989C18.343 21.129 22 16.99 22 12c0-5.523-4.477-10-10-10z" /></svg>
              </a>
              <a href="#" className="w-9 h-9 rounded-full bg-[#1e293b] flex items-center justify-center text-[#93c5fd] hover:bg-primary-500 hover:text-white transition-colors">
                <svg className="w-4 h-4 fill-current" viewBox="0 0 24 24"><path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 1 0 0 12.324 6.162 6.162 0 0 0 0-12.324zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm7.846-10.405a1.44 1.44 0 1 1-2.88 0 1.44 1.44 0 0 1 2.88 0z" /></svg>
              </a>
            </div>
          </div>
        </div>

        {/* Bottom Banner */}
        <div className="border-t border-dark-800 pt-8 flex flex-col md:flex-row justify-between items-center gap-4">
          <p className="text-gray-500 text-sm">
            Copyright © 2018-2025 road.rentals Tours & Travels. All Rights Reserved.
          </p>
        </div>
      </div>
    </footer>
  );
};

export default Footer;
