import Link from "next/link";
import { Facebook, Twitter, Linkedin, Phone, Mail, MapPin } from "lucide-react";

const navigation = {
  main: [
    { name: "Home", href: "/" },
    { name: "Services", href: "/services" },
    { name: "Solutions", href: "/solutions" },
    { name: "About", href: "/about" },
    { name: "Contact", href: "/contact" },
  ],
  social: [
    {
      name: "Facebook",
      href: "https://www.facebook.com/quickbooks.easybutton",
      icon: Facebook,
    },
    {
      name: "X",
      href: "https://x.com/Nicky_QB_Expert/",
      icon: Twitter,
    },
    {
      name: "LinkedIn",
      href: "https://www.linkedin.com/in/nicollealcazar/",
      icon: Linkedin,
    },
  ],
};

export default function Footer() {
  return (
    <footer className="relative bg-zinc-900 text-white overflow-hidden">
      {/* Animated gradient overlay */}
      <div className="absolute inset-0 opacity-30">
        <div className="absolute top-0 -left-1/4 w-1/2 h-1/2 bg-red-600/20 rounded-full blur-3xl animate-pulse-slow" />
        <div className="absolute bottom-0 -right-1/4 w-1/2 h-1/2 bg-red-600/20 rounded-full blur-3xl animate-pulse-slow animation-delay-200" />
      </div>

      <div className="relative mx-auto max-w-7xl px-4 py-12 sm:px-6 lg:px-8 lg:py-16">
        <div className="grid grid-cols-1 gap-8 lg:grid-cols-3">
          {/* Brand & Description */}
          <div className="space-y-4">
            <Link href="/" className="flex items-center gap-2 group w-fit">
              <div className="w-10 h-10 bg-gradient-to-br from-red-500 to-red-700 rounded-lg flex items-center justify-center shadow-lg shadow-red-500/20 group-hover:shadow-red-500/40 transition-all duration-300 group-hover:scale-105">
                <span className="text-white font-bold text-lg">AB</span>
              </div>
              <span className="text-xl font-bold text-white group-hover:text-red-400 transition-colors duration-300">
                AB Group
              </span>
            </Link>
            <p className="text-zinc-400 text-sm max-w-xs">
              Your trusted QuickBooks experts. Providing prompt, professional,
              and courteous service since 2000.
            </p>
            <p className="text-transparent bg-gradient-to-r from-red-400 to-red-600 bg-clip-text font-semibold text-sm">
              Se Habla Espanol
            </p>
          </div>

          {/* Quick Links */}
          <div>
            <h3 className="text-sm font-semibold text-white mb-4">
              Quick Links
            </h3>
            <ul className="space-y-3">
              {navigation.main.map((item) => (
                <li key={item.name}>
                  <Link
                    href={item.href}
                    className="text-sm text-zinc-400 hover:text-white transition-colors duration-300 inline-block relative group"
                  >
                    {item.name}
                    <span className="absolute bottom-0 left-0 w-0 h-px bg-gradient-to-r from-red-500 to-red-600 group-hover:w-full transition-all duration-300" />
                  </Link>
                </li>
              ))}
            </ul>
          </div>

          {/* Contact Info */}
          <div>
            <h3 className="text-sm font-semibold text-white mb-4">
              Contact Us
            </h3>
            <ul className="space-y-3">
              <li className="flex items-start gap-3 group">
                <div className="w-8 h-8 bg-zinc-800 rounded-lg flex items-center justify-center group-hover:bg-red-600/20 transition-colors duration-300">
                  <Phone className="h-4 w-4 text-red-500" />
                </div>
                <div className="text-sm text-zinc-400">
                  <p className="hover:text-white transition-colors duration-300 cursor-pointer">(866) 218-3322</p>
                  <p className="hover:text-white transition-colors duration-300 cursor-pointer">(305) 387-8582</p>
                </div>
              </li>
              <li className="flex items-center gap-3 group">
                <div className="w-8 h-8 bg-zinc-800 rounded-lg flex items-center justify-center group-hover:bg-red-600/20 transition-colors duration-300">
                  <Mail className="h-4 w-4 text-red-500" />
                </div>
                <a
                  href="mailto:info@ab-groupllc.com"
                  className="text-sm text-zinc-400 hover:text-white transition-colors duration-300"
                >
                  info@ab-groupllc.com
                </a>
              </li>
              <li className="flex items-center gap-3 group">
                <div className="w-8 h-8 bg-zinc-800 rounded-lg flex items-center justify-center group-hover:bg-red-600/20 transition-colors duration-300">
                  <MapPin className="h-4 w-4 text-red-500" />
                </div>
                <span className="text-sm text-zinc-400">
                  Florida, United States
                </span>
              </li>
            </ul>

            {/* Social Links */}
            <div className="flex gap-3 mt-6">
              {navigation.social.map((item) => (
                <a
                  key={item.name}
                  href={item.href}
                  target="_blank"
                  rel="noopener noreferrer"
                  className="w-10 h-10 bg-zinc-800 rounded-lg flex items-center justify-center text-zinc-400 hover:bg-gradient-to-br hover:from-red-500 hover:to-red-700 hover:text-white transition-all duration-300 hover:scale-110 hover:shadow-lg hover:shadow-red-500/20"
                >
                  <span className="sr-only">{item.name}</span>
                  <item.icon className="h-5 w-5" />
                </a>
              ))}
            </div>
          </div>
        </div>

        {/* Bottom Bar */}
        <div className="mt-12 pt-8 border-t border-zinc-800">
          <p className="text-center text-xs text-zinc-500">
            &copy; {new Date().getFullYear()} AB Group LLC. All rights reserved.
          </p>
        </div>
      </div>
    </footer>
  );
}
