import SectionHeading from "./SectionHeading";
import Reveal from "./Reveal";
import {
  CarIcon,
  LightbulbIcon,
  CrashIcon,
  AlertIcon,
  SearchIcon,
  UsersIcon,
} from "./icons";

const CASES = [
  {
    icon: CarIcon,
    title: "Parking Issue",
    desc: "Blocked driveway or parking spot? Reach the owner before frustration builds.",
    tone: "text-brand",
  },
  {
    icon: LightbulbIcon,
    title: "Lights Left On",
    desc: "Notice headlights or interior lights left on? Notify the owner immediately.",
    tone: "text-warning",
  },
  {
    icon: CrashIcon,
    title: "Accident Notification",
    desc: "Contact the owner right after vehicle damage — no waiting, no guesswork.",
    tone: "text-danger",
  },
  {
    icon: AlertIcon,
    title: "Emergency Situation",
    desc: "Send urgent alerts instantly when every second matters.",
    tone: "text-danger",
  },
  {
    icon: SearchIcon,
    title: "Lost Vehicle Information",
    desc: "Connect with registered owners safely without exposing private data.",
    tone: "text-electric",
  },
  {
    icon: UsersIcon,
    title: "Community Safety",
    desc: "Improve neighborhood communication and look out for one another.",
    tone: "text-success",
  },
];

export default function UseCases() {
  return (
    <section id="use-cases" className="relative py-24 sm:py-28">
      <div className="mx-auto max-w-7xl px-5 sm:px-8">
        <SectionHeading
          eyebrow="Real Life Use Cases"
          title={
            <>
              Built for the moments that{" "}
              <span className="text-gradient">actually happen</span>
            </>
          }
          subtitle="From blocked driveways to emergencies, VehCall keeps people connected when it counts."
        />

        <div className="mt-16 grid grid-cols-1 gap-5 md:grid-cols-2">
          {CASES.map((c, i) => (
            <Reveal key={c.title} delay={(i % 2) * 100}>
              <div
                className={`glass card-hover flex items-start gap-5 rounded-3xl p-6 sm:p-7 ${
                  i % 2 === 1 ? "md:translate-y-6" : ""
                }`}
              >
                <span
                  className={`flex h-14 w-14 shrink-0 items-center justify-center rounded-2xl bg-white/5 ring-1 ring-white/10 ${c.tone}`}
                >
                  <c.icon width={26} height={26} />
                </span>
                <div>
                  <h3 className="text-lg font-bold text-white">{c.title}</h3>
                  <p className="mt-1.5 text-[15px] leading-relaxed text-white/60">
                    {c.desc}
                  </p>
                </div>
              </div>
            </Reveal>
          ))}
        </div>
      </div>
    </section>
  );
}
