"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import HeroBillboardScroll from '@/components/sections/hero/HeroBillboardScroll';
import TestimonialAboutCard from '@/components/sections/about/TestimonialAboutCard';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FooterMedia from '@/components/sections/footer/FooterMedia';
import { Zap, Linkedin, Globe } from "lucide-react";

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="background-highlight"
      borderRadius="rounded"
      contentWidth="smallMedium"
      sizing="mediumSizeLargeTitles"
      background="circleGradient"
      cardStyle="elevated"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="layered"
      headingFontWeight="medium"
    >
      {/* Navigation */}
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          brandName="Porsche"
          navItems={[
            { name: "Models", id: "products" },
            { name: "Performance", id: "features" },
            { name: "Heritage", id: "about" },
            { name: "Innovation", id: "team" },
            { name: "Contact", id: "contact" }
          ]}
          bottomLeftText="Engineering Excellence"
          bottomRightText="hello@porsche.com"
        />
      </div>

      {/* Hero Section */}
      <div id="hero" data-section="hero">
        <HeroBillboardScroll
          title="The Art of Performance"
          description="Experience the pinnacle of automotive engineering with Porsche's legendary craftsmanship and cutting-edge innovation."
          tag="Luxury Performance"
          background={{ variant: "plain" }}
          imageSrc="https://img.b2bpic.net/free-photo/high-speed-silver-sport-car-driving-highway-sunny-weather_114579-4031.jpg"
          imageAlt="Porsche sports car in motion"
          buttons={[
            { text: "Explore Models", href: "products" },
            { text: "Schedule Test Drive", href: "contact" }
          ]}
        />
      </div>

      {/* About Section */}
      <div id="about" data-section="about">
        <TestimonialAboutCard
          tag="Heritage"
          title="Over 75 Years of Automotive Excellence"
          description="Founded in Stuttgart in 1948"
          subdescription="Porsche AG - Pioneering Performance Since 1948"
          icon={Zap}
          imageSrc="https://img.b2bpic.net/free-photo/mini-coupe-driving-highway-accross-mountains_114579-4015.jpg"
          imageAlt="Porsche manufacturing facility"
          useInvertedBackground="invertDefault"
        />
      </div>

      {/* Product Section */}
      <div id="products" data-section="products">
        <ProductCardOne
          title="Iconic Models"
          description="Discover our legendary lineup of high-performance vehicles engineered for those who demand excellence."
          products={[
            {
              id: "1",
              name: "911",
              price: "From $110,000",
              imageSrc: "https://img.b2bpic.net/free-photo/metallic-color-mini-coupe-driving-accross-forest_114579-4013.jpg",
              imageAlt: "Porsche 911 sports car"
            },
            {
              id: "2",
              name: "Cayenne",
              price: "From $80,000",
              imageSrc: "https://img.b2bpic.net/free-photo/mini-coupe-high-speed-drive-road-with-front-lights_114579-5040.jpg",
              imageAlt: "Porsche Cayenne luxury SUV"
            },
            {
              id: "3",
              name: "Panamera",
              price: "From $95,000",
              imageSrc: "https://img.b2bpic.net/free-photo/white-mini-coupe-road_114579-5082.jpg",
              imageAlt: "Porsche Panamera luxury sedan"
            }
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      {/* Testimonials Section */}
      <div id="testimonials" data-section="testimonials">
        <TestimonialCardOne
          title="Owner Experiences"
          description="Hear from Porsche owners who have experienced unparalleled performance and luxury."
          testimonials={[
            {
              id: "1",
              name: "James Morrison",
              role: "Entrepreneur",
              company: "Tech Innovators Inc",
              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/smiling-businessman-listening-senior-man_1262-1970.jpg",
              imageAlt: "James Morrison"
            },
            {
              id: "2",
              name: "Victoria Chen",
              role: "Executive Director",
              company: "Global Ventures",
              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/crazy-businessman-worried-expression_1194-3826.jpg",
              imageAlt: "Victoria Chen"
            },
            {
              id: "3",
              name: "Marcus Rodriguez",
              role: "CEO",
              company: "Motorsport Dynamics",
              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/young-businessman-happy-expression_1194-1654.jpg",
              imageAlt: "Marcus Rodriguez"
            },
            {
              id: "4",
              name: "Elena Bergström",
              role: "Founder",
              company: "Nordic Luxury Group",
              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/man-with-thumb-up_1368-6368.jpg",
              imageAlt: "Elena Bergström"
            }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>

      {/* Contact Section */}
      <div id="contact" data-section="contact">
        <ContactSplitForm
          title="Get in Touch"
          description="Connect with our Porsche specialists to explore your perfect vehicle and schedule an exclusive test drive experience."
          inputs={[
            { name: "fullName", type: "text", placeholder: "Your Name", required: true },
            { name: "email", type: "email", placeholder: "Email Address", required: true },
            { name: "phone", type: "tel", placeholder: "Phone Number", required: false },
            { name: "model", type: "text", placeholder: "Model of Interest", required: false }
          ]}
          textarea={{
            name: "message",
            placeholder: "Tell us about your automotive dreams...",
            rows: 5,
            required: true
          }}
          imageSrc="https://img.b2bpic.net/free-photo/high-speed-silver-sport-car-driving-highway-sunny-weather_114579-4031.jpg"
          imageAlt="Porsche luxury vehicle"
          mediaPosition="right"
          useInvertedBackground="noInvert"
          buttonText="Request Information"
        />
      </div>

      {/* Footer */}
      <div id="footer" data-section="footer">
        <FooterMedia
          imageSrc="https://img.b2bpic.net/free-photo/sport-cars-parade-race-highway_114579-4052.jpg"
          imageAlt="Porsche racing legacy"
          logoText="Porsche"
          copyrightText="© 2025 Porsche AG. All rights reserved."
          columns={[
            {
              title: "Models",
              items: [
                { label: "911", href: "products" },
                { label: "Cayenne", href: "products" },
                { label: "Panamera", href: "products" },
                { label: "Taycan", href: "products" }
              ]
            },
            {
              title: "Company",
              items: [
                { label: "About Us", href: "about" },
                { label: "Careers", href: "about" },
                { label: "Heritage", href: "about" },
                { label: "Innovation", href: "team" }
              ]
            },
            {
              title: "Support",
              items: [
                { label: "Customer Service", href: "contact" },
                { label: "Warranty", href: "contact" },
                { label: "Service Centers", href: "contact" },
                { label: "Contact Us", href: "contact" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}