"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroBillboardRotatedCarousel from '@/components/sections/hero/HeroBillboardRotatedCarousel';
import MediaAbout from '@/components/sections/about/MediaAbout';
import FeatureBorderGlow from '@/components/sections/feature/featureBorderGlow/FeatureBorderGlow';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import PricingCardOne from '@/components/sections/pricing/PricingCardOne';
import FaqSplitMedia from '@/components/sections/faq/FaqSplitMedia';
import FooterMedia from '@/components/sections/footer/FooterMedia';
import { Sparkles, Award, Shield, Users, Zap, Heart, Palette, Leaf, Star, CheckCircle, HelpCircle } from 'lucide-react';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="bounce-effect"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="mediumLarge"
      sizing="mediumLargeSizeLargeTitles"
      background="fluid"
      cardStyle="outline"
      primaryButtonStyle="shadow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="Premium Floors"
          navItems={[
            { name: "Home", id: "hero" },
            { name: "Products", id: "products" },
            { name: "About", id: "about" },
            { name: "Contact", id: "contact" }
          ]}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardRotatedCarousel
          title="Transform Your Space with Premium Flooring"
          description="Discover elegant, durable flooring solutions designed to elevate every room in your home. From classic hardwood to modern luxury vinyl, we offer expert installation and exceptional quality."
          tag="Quality & Craftsmanship"
          tagIcon={Sparkles}
          tagAnimation="slide-up"
          buttons={[
            { text: "Explore Collections", href: "#products" },
            { text: "Schedule Consultation", href: "#contact" }
          ]}
          buttonAnimation="slide-up"
          background={{ variant: "plain" }}
          carouselItems={[
            {
              id: "carousel-1",              imageSrc: "http://img.b2bpic.net/free-photo/couch-armchair-seen-from-floor_1203-737.jpg?_wi=1",              imageAlt: "Premium hardwood flooring installation"
            },
            {
              id: "carousel-2",              imageSrc: "http://img.b2bpic.net/free-photo/young-people-watching-smartphone-office_23-2147668943.jpg",              imageAlt: "Modern laminate flooring in contemporary home"
            },
            {
              id: "carousel-3",              imageSrc: "http://img.b2bpic.net/free-photo/couch-armchair-seen-from-floor_1203-737.jpg?_wi=2",              imageAlt: "Elegant vinyl flooring in living room"
            },
            {
              id: "carousel-4",              imageSrc: "http://img.b2bpic.net/free-photo/bright-attic-kitchen-natural-wood-ceiling-large-skylights_169016-69254.jpg",              imageAlt: "Beautiful tile flooring in kitchen"
            },
            {
              id: "carousel-5",              imageSrc: "http://img.b2bpic.net/free-photo/group-friends-playing-beer-pong-together-party_23-2149431342.jpg",              imageAlt: "Sustainable bamboo flooring installation"
            },
            {
              id: "carousel-6",              imageSrc: "http://img.b2bpic.net/free-photo/photorealistic-stone-wall-surface-used-interior-design_23-2151214754.jpg",              imageAlt: "Luxury stone flooring in high-end home"
            }
          ]}
          autoPlay={true}
          autoPlayInterval={4000}
        />
      </div>

      <div id="about" data-section="about">
        <MediaAbout
          title="Excellence in Flooring Since 1995"
          description="With over 25 years of experience, Premium Floors has established itself as the trusted choice for homeowners and businesses seeking superior flooring solutions. Our commitment to quality craftsmanship, competitive pricing, and outstanding customer service has made us the region's leading flooring company."
          tag="Our Story"
          tagIcon={Award}
          tagAnimation="slide-up"
          buttons={[{ text: "Learn More", href: "#features" }]}
          imageSrc="http://img.b2bpic.net/free-photo/installing-ceramic-floor-tiles-construction-site-construction-workers-workers-laying-tiles-floor-with-cement-adhesive-renovating-floor_166373-2132.jpg"
          imageAlt="Professional flooring installation team at work"
          useInvertedBackground={false}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureBorderGlow
          title="Why Choose Premium Floors"
          description="Our comprehensive approach to flooring ensures you receive the best products, expert installation, and lasting satisfaction with every project."
          features={[
            {
              icon: Shield,
              title: "Premium Quality Materials",              description: "We source only the finest flooring materials from trusted manufacturers, ensuring durability and beauty that lasts for decades."
            },
            {
              icon: Users,
              title: "Expert Installation",              description: "Our certified installers bring years of experience and precision craftsmanship to every project, ensuring flawless results."
            },
            {
              icon: Zap,
              title: "Fast & Professional Service",              description: "From consultation to completion, we maintain efficient timelines without compromising on quality or attention to detail."
            },
            {
              icon: Heart,
              title: "Lifetime Support",              description: "We stand behind our work with comprehensive warranties and dedicated customer support for all your flooring needs."
            },
            {
              icon: Palette,
              title: "Unlimited Designs",              description: "Choose from hundreds of colors, textures, and styles to match your home's unique aesthetic and personal preferences."
            },
            {
              icon: Leaf,
              title: "Eco-Friendly Options",              description: "Sustainable flooring choices available for environmentally conscious homeowners seeking responsibly sourced materials."
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={true}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardTwo
          title="Our Flooring Collection"
          description="Explore our diverse range of premium flooring options, each selected for superior quality, durability, and stunning aesthetics."
          tag="Featured Products"
          tagIcon={Sparkles}
          tagAnimation="slide-up"
          buttons={[{ text: "View All Products", href: "#contact" }]}
          products={[
            {
              id: "1",              brand: "Premium Hardwoods",              name: "Classic Oak Collection",              price: "$8.99/sq ft",              rating: 5,
              reviewCount: "127",              imageSrc: "http://img.b2bpic.net/free-photo/wood-background_1339-2294.jpg",              imageAlt: "Classic oak hardwood flooring"
            },
            {
              id: "2",              brand: "Premium Hardwoods",              name: "Elegant Maple Series",              price: "$9.99/sq ft",              rating: 5,
              reviewCount: "98",              imageSrc: "http://img.b2bpic.net/free-photo/white-wood-textures_1203-2998.jpg",              imageAlt: "Elegant light maple flooring"
            },
            {
              id: "3",              brand: "Premium Hardwoods",              name: "Luxury Walnut Design",              price: "$12.99/sq ft",              rating: 5,
              reviewCount: "156",              imageSrc: "http://img.b2bpic.net/free-photo/empty-modern-room-with-furniture_23-2149178339.jpg",              imageAlt: "Luxury dark walnut flooring"
            }
          ]}
          textboxLayout="default"
          animationType="slide-up"
          gridVariant="three-columns-all-equal-width"
          useInvertedBackground={false}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardOne
          title="Customer Success Stories"
          description="Hear from our satisfied clients about their transformative flooring experiences and outstanding service quality."
          tag="Testimonials"
          tagIcon={Star}
          tagAnimation="slide-up"
          testimonials={[
            {
              id: "1",              name: "Sarah Mitchell",              role: "Homeowner",              company: "Chicago, IL",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/handsome-business-man-wearing-suit-looking-camera-smiling-broadly-with-happy-face-standing-white-background_141793-54115.jpg?_wi=1"
            },
            {
              id: "2",              name: "James Rodriguez",              role: "Business Owner",              company: "Downtown Retail",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/alone-specialist-handsome-daydreaming-collar_1262-870.jpg?_wi=1"
            },
            {
              id: "3",              name: "Emily Chang",              role: "Interior Designer",              company: "Modern Spaces Design",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/handsome-business-man-wearing-suit-looking-camera-smiling-broadly-with-happy-face-standing-white-background_141793-54115.jpg?_wi=2"
            },
            {
              id: "4",              name: "Michael Torres",              role: "Property Manager",              company: "Heritage Apartments",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/alone-specialist-handsome-daydreaming-collar_1262-870.jpg?_wi=2"
            },
            {
              id: "5",              name: "Jessica Williams",              role: "Homeowner",              company: "Suburban Estates",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg"
            },
            {
              id: "6",              name: "David Chen",              role: "Contractor",              company: "Premier Renovations",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/handsome-business-man-wearing-suit-looking-camera-smiling-broadly-with-happy-face-standing-white-background_141793-54115.jpg?_wi=3"
            }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={true}
        />
      </div>

      <div id="socialproof" data-section="socialproof">
        <SocialProofOne
          title="Trusted by Industry Leaders"
          description="Premium Floors is proudly recognized by leading review platforms and industry organizations for our commitment to excellence."
          tag="Partnerships"
          tagIcon={CheckCircle}
          tagAnimation="slide-up"
          names={["Houzz", "Angi", "Yelp", "Google Reviews", "Better Business Bureau", "Trusted Company", "Certified Professional"]}
          textboxLayout="default"
          useInvertedBackground={false}
          speed={40}
          showCard={true}
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardOne
          title="Flooring Investment Plans"
          description="Choose the perfect flooring package tailored to your budget and needs. All plans include professional installation and satisfaction guarantee."
          tag="Competitive Pricing"
          tagIcon={Sparkles}
          tagAnimation="slide-up"
          plans={[
            {
              id: "basic",              badge: "Essential",              price: "Starting at $4.99/sq ft",              subtitle: "Perfect for budget-conscious projects",              features: [
                "Laminate or vinyl flooring",                "Professional installation",                "1-year warranty coverage",                "Basic color selection",                "Free in-home consultation"
              ]
            },
            {
              id: "pro",              badge: "Most Popular",              price: "Starting at $8.99/sq ft",              subtitle: "Best value for quality and durability",              features: [
                "Engineered or solid hardwood",                "Expert installation included",                "5-year warranty protection",                "Premium design options",                "Professional subfloor repair",                "Free maintenance kit"
              ]
            },
            {
              id: "premium",              badge: "Luxury",              price: "Starting at $12.99/sq ft",              subtitle: "Ultimate quality and customization",              features: [
                "Exotic or solid hardwood",                "Master installation team",                "Lifetime warranty coverage",                "Custom design consultation",                "Complete floor restoration",                "Priority customer support",                "Annual maintenance visits"
              ]
            }
          ]}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={true}
        />
      </div>

      <div id="contact" data-section="contact">
        <FaqSplitMedia
          title="Flooring Questions Answered"
          description="Get answers to common questions about our flooring options, installation process, warranties, and more."
          tag="FAQ"
          tagIcon={HelpCircle}
          tagAnimation="slide-up"
          faqs={[
            {
              id: "1",              title: "What types of flooring do you offer?",              content: "We offer a comprehensive range including solid hardwood, engineered hardwood, luxury vinyl plank, laminate, tile, and eco-friendly bamboo flooring. Each option comes in multiple styles and finishes to match any home decor."
            },
            {
              id: "2",              title: "How long does installation typically take?",              content: "Most residential installations are completed within 2-5 days, depending on the project size and complexity. Our team works efficiently while maintaining exceptional quality standards to minimize disruption to your home."
            },
            {
              id: "3",              title: "What warranty coverage is included?",              content: "All our flooring products come with manufacturer warranties ranging from 1-30 years depending on the product type. Additionally, we provide our own labor warranty to ensure installation quality and customer satisfaction."
            },
            {
              id: "4",              title: "Do you handle subfloor preparation?",              content: "Yes, we assess and prepare all subfloors to ensure proper installation. If issues are found, we provide recommendations and can handle repairs to ensure your new flooring is installed correctly and will last for years."
            },
            {
              id: "5",              title: "Are your products eco-friendly?",              content: "We offer several sustainable options including FSC-certified hardwood, bamboo flooring, and low-VOC products. Our eco-friendly selections don't compromise on quality or beauty while supporting responsible forestry practices."
            },
            {
              id: "6",              title: "How do I maintain my new flooring?",              content: "Maintenance varies by flooring type. We provide a free maintenance kit with installation and detailed care instructions. We also offer optional professional maintenance and restoration services to keep your floors looking beautiful for decades."
            }
          ]}
          imageSrc="http://img.b2bpic.net/free-photo/young-couple-choosing-tiles-building-market_1303-26795.jpg"
          imageAlt="Flooring showroom with diverse material samples"
          mediaPosition="left"
          mediaAnimation="slide-up"
          faqsAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterMedia
          imageSrc="http://img.b2bpic.net/free-photo/neon-robot-vacuum-cleaner_23-2151349210.jpg"
          imageAlt="Premium flooring showcase"
          logoText="Premium Floors"
          copyrightText="© 2025 Premium Floors. All rights reserved."
          columns={[
            {
              title: "Products",              items: [
                { label: "Hardwood Flooring", href: "#products" },
                { label: "Vinyl & Laminate", href: "#products" },
                { label: "Eco-Friendly Options", href: "#products" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "#about" },
                { label: "Customer Reviews", href: "#testimonials" },
                { label: "Warranty Info", href: "#contact" }
              ]
            },
            {
              title: "Support",              items: [
                { label: "Contact Us", href: "#contact" },
                { label: "FAQ", href: "#contact" },
                { label: "Maintenance Guide", href: "#" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}
