"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from "@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen";
import ContactSplitForm from "@/components/sections/contact/ContactSplitForm";
import FooterLogoReveal from "@/components/sections/footer/FooterLogoReveal";
import Link from "next/link";

export default function ContactPage() {
  const navItems = [
    { name: "Home", id: "home" },
    { name: "Services", id: "services" },
    { name: "Work", id: "work" },
    { name: "Team", id: "team" },
    { name: "Pricing", id: "pricing" },
    { name: "Contact", id: "contact" },
  ];

  const handleSubmit = (data: Record<string, string>) => {
    console.log("Form submitted:", data);
  };

  return (
    <ThemeProvider
      defaultButtonVariant="text-shift"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="small"
      sizing="mediumLargeSizeLargeTitles"
      background="grid"
      cardStyle="layered-gradient"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={navItems}
          brandName="SocialVibe Agency"
          bottomLeftText="Premium Social Strategy"
          bottomRightText="hello@socialvibe.com"
        />
      </div>

      <div id="contact" data-section="contact" className="mx-auto px-4 md:px-6">
        <ContactSplitForm
          title="Let's Create Something Amazing"
          description="Ready to transform your social presence? Get in touch with our team."
          inputs={[
            {
              name: "fullName",
              type: "text",
              placeholder: "Your Full Name",
              required: true,
            },
            {
              name: "email",
              type: "email",
              placeholder: "your@email.com",
              required: true,
            },
            {
              name: "company",
              type: "text",
              placeholder: "Your Company",
              required: false,
            },
            {
              name: "budget",
              type: "text",
              placeholder: "Monthly Budget Range",
              required: false,
            },
          ]}
          textarea={{
            name: "message",
            placeholder: "Tell us about your goals and vision...",
            rows: 5,
            required: true,
          }}
          useInvertedBackground={false}
          imageSrc="http://img.b2bpic.net/free-photo/group-business-executives-interacting-with-each-other_1170-760.jpg"
          imageAlt="modern office team collaboration meeting"
          mediaAnimation="slide-up"
          mediaPosition="right"
          buttonText="Send Inquiry"
          onSubmit={handleSubmit}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoReveal
          logoText="SocialVibe"
          leftLink={{
            text: "Privacy Policy",
            href: "#",
          }}
          rightLink={{
            text: "© 2024 SocialVibe Agency",
            href: "/",
          }}
        />
      </div>
    </ThemeProvider>
  );
}