"use client";

import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import HeroSplit from '@/components/sections/hero/HeroSplit';
import ProductCardThree from '@/components/sections/product/ProductCardThree';
import FeatureCardEight from '@/components/sections/feature/FeatureCardEight';
import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCardFive';
import PricingCardNine from '@/components/sections/pricing/PricingCardNine';
import FaqDouble from '@/components/sections/faq/FaqDouble';
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import { Award, Sparkles, Zap, Heart, DollarSign, HelpCircle, Bell } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="reveal-blur"
      borderRadius="sharp"
      contentWidth="medium"
      sizing="mediumLargeSizeMediumTitles"
      background="floatingGradient"
      cardStyle="gradient-mesh"
      primaryButtonStyle="flat"
      secondaryButtonStyle="glass"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="SmileCraft"
          navItems={[
            { name: "Shop", id: "products" },
            { name: "About", id: "about" },
            { name: "Features", id: "features" },
            { name: "Reviews", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
          button={{ text: "Shop Now", href: "products" }}
          className="rounded-lg"
          buttonClassName="bg-accent text-white hover:bg-accent/90"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplit
          title="Experience Premium Oral Care"
          description="Discover our revolutionary line of luxury toothbrushes engineered for superior cleaning, whitening, and gum health. Each brush is crafted with precision and innovation."
          tag="Premium Dental Care"
          tagIcon={Sparkles}
          imageSrc="https://img.b2bpic.net/free-photo/eco-cleaning-products-skincare_23-2148811646.jpg"
          imageAlt="Premium luxury toothbrush collection"
          imagePosition="right"
          buttons={[
            { text: "Shop Collection", href: "products" },
            { text: "Learn More", href: "about" }
          ]}
          className="py-20"
          titleClassName="text-5xl font-bold"
          descriptionClassName="text-lg"
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardThree
          title="Shop Our Collection"
          description="Browse our premium toothbrush collection featuring cutting-edge technology and sustainable materials."
          tag="4.9★ Rated by 5,000+ Customers"
          tagIcon={Award}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          gridVariant="four-items-2x2-equal-grid"
          animationType="slide-up"
          products={[
            {
              id: "1",              name: "SmileCraft Elite Sonic",              price: "$89.99",              imageSrc: "https://img.b2bpic.net/free-photo/jar-with-tooth-brushes_23-2148889817.jpg",              imageAlt: "SmileCraft Elite Sonic Toothbrush",              initialQuantity: 1
            },
            {
              id: "2",              name: "SmileCraft Whitening Pro",              price: "$79.99",              imageSrc: "https://img.b2bpic.net/free-photo/composition-bathroom-spa-objects_23-2147999832.jpg",              imageAlt: "SmileCraft Whitening Pro Toothbrush",              initialQuantity: 1
            },
            {
              id: "3",              name: "SmileCraft EcoGreen",              price: "$34.99",              imageSrc: "https://img.b2bpic.net/free-photo/bamboo-toothbrushes-sustainable-product_53876-134401.jpg",              imageAlt: "SmileCraft EcoGreen Bamboo Toothbrush",              initialQuantity: 1
            },
            {
              id: "4",              name: "SmileCraft Smart Connected",              price: "$119.99",              imageSrc: "https://img.b2bpic.net/free-photo/bamboo-toothbrush-table-with-copy-space-marble-background-styled-composition-flat-lay-with-monstera-leaves_1182-2705.jpg",              imageAlt: "SmileCraft Smart Connected Toothbrush",              initialQuantity: 1
            }
          ]}
          className="py-20"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardEight
          title="Why Choose SmileCraft"
          description="Our toothbrushes combine advanced technology with superior design for the ultimate oral care experience."
          tag="Advanced Features"
          tagIcon={Zap}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          features={[
            {
              id: 1,
              title: "Advanced Whitening",              description: "Proprietary whitening technology removes surface stains in just 2 weeks for a brighter, whiter smile.",              imageSrc: "https://img.b2bpic.net/free-photo/close-up-view-beautiful-woman-concept_23-2148734938.jpg",              imageAlt: "Advanced whitening technology demonstration"
            },
            {
              id: 2,
              title: "Superior Gum Health",              description: "Gentle micro-vibrations protect gums while removing 99.9% of plaque for healthier gums.",              imageSrc: "https://img.b2bpic.net/free-photo/female-patient-receiving-dental-treatment_107420-65420.jpg",              imageAlt: "Gum health protection feature"
            },
            {
              id: 3,
              title: "Smart Technology",              description: "AI-powered brushing guidance and real-time feedback through our mobile app for optimal results.",              imageSrc: "https://img.b2bpic.net/free-photo/young-pretty-woman-outdoor_624325-782.jpg",              imageAlt: "Smart technology integration"
            }
          ]}
          className="py-20"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFive
          title="Loved by Thousands"
          description="Real customers share their experiences with SmileCraft premium toothbrushes."
          tag="Customer Reviews"
          tagIcon={Heart}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          testimonials={[
            {
              id: "1",              name: "Sarah Mitchell, Dental Hygienist",              date: "Date: 15 January 2025",              title: "Professional Grade Results",              quote: "I recommend SmileCraft to all my patients. The whitening results are incredible and my clients consistently report healthier gums. This is the best toothbrush I've ever used professionally.",              tag: "Professional User",              avatarSrc: "https://img.b2bpic.net/free-photo/casual-smile-street-style-background-spring_1139-777.jpg",              avatarAlt: "Sarah Mitchell",              imageSrc: "https://img.b2bpic.net/free-photo/casual-smile-street-style-background-spring_1139-777.jpg",              imageAlt: "Sarah Mitchell professional testimonial"
            },
            {
              id: "2",              name: "James Chen, Business Executive",              date: "Date: 10 January 2025",              title: "Worth Every Penny",              quote: "Switched to SmileCraft Elite Sonic three months ago and my dentist was amazed at the improvement. The smart app keeps me accountable and my teeth have never looked better. Highly recommended.",              tag: "Elite User",              avatarSrc: "https://img.b2bpic.net/free-photo/young-businesswoman-portrait-office_1262-1506.jpg",              avatarAlt: "James Chen",              imageSrc: "https://img.b2bpic.net/free-photo/young-businesswoman-portrait-office_1262-1506.jpg",              imageAlt: "James Chen testimonial"
            },
            {
              id: "3",              name: "Emma Rodriguez, Sustainability Advocate",              date: "Date: 5 January 2025",              title: "Eco-Friendly & Effective",              quote: "Love that SmileCraft offers sustainable options without compromising on quality. The EcoGreen brush is my go-to for maintaining my smile while protecting the planet.",              tag: "EcoGreen User",              avatarSrc: "https://img.b2bpic.net/free-photo/portrait-beautiful-business-office-business-center_1303-20365.jpg",              avatarAlt: "Emma Rodriguez",              imageSrc: "https://img.b2bpic.net/free-photo/portrait-beautiful-business-office-business-center_1303-20365.jpg",              imageAlt: "Emma Rodriguez eco-friendly testimonial"
            },
            {
              id: "4",              name: "David Thompson, Tech Enthusiast",              date: "Date: 28 December 2024",              title: "Best Smart Device Purchase",              quote: "The SmileCraft Smart Connected is incredible. Real-time brushing feedback and the app integration makes oral care fun. My whole family uses one now.",              tag: "Smart User",              avatarSrc: "https://img.b2bpic.net/free-photo/indoor-shot-attractive-caucasian-teenage-woman-with-long-dark-hair-sitting-desk-with-lots-textbooks_273609-1136.jpg",              avatarAlt: "David Thompson",              imageSrc: "https://img.b2bpic.net/free-photo/indoor-shot-attractive-caucasian-teenage-woman-with-long-dark-hair-sitting-desk-with-lots-textbooks_273609-1136.jpg",              imageAlt: "David Thompson smart toothbrush testimonial"
            },
            {
              id: "5",              name: "Lisa Anderson, Cosmetic Conscious",              date: "Date: 22 December 2024",              title: "Visible Results in Weeks",              quote: "I've tried many whitening products but SmileCraft Elite Sonic delivered visible results faster than anything else. My smile is noticeably whiter and brighter.",              tag: "Whitening Pro",              avatarSrc: "https://img.b2bpic.net/free-photo/happy-business-woman-white-shirt_23-2148095748.jpg",              avatarAlt: "Lisa Anderson",              imageSrc: "https://img.b2bpic.net/free-photo/happy-business-woman-white-shirt_23-2148095748.jpg",              imageAlt: "Lisa Anderson whitening results"
            },
            {
              id: "6",              name: "Michael Wong, Health Conscious",              date: "Date: 18 December 2024",              title: "Superior Gum Care",              quote: "My dentist specifically praised how well SmileCraft maintains my gum health. No more sensitivity, healthier gums, and my breath is noticeably fresher.",              tag: "Gum Health",              avatarSrc: "https://img.b2bpic.net/free-photo/joyful-business-woman-with-coffee-cup_23-2148095746.jpg",              avatarAlt: "Michael Wong",              imageSrc: "https://img.b2bpic.net/free-photo/joyful-business-woman-with-coffee-cup_23-2148095746.jpg",              imageAlt: "Michael Wong gum health testimonial"
            }
          ]}
          className="py-20"
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardNine
          title="Pricing Plans for Every Smile"
          description="Choose the perfect SmileCraft toothbrush that fits your lifestyle and budget."
          tag="Transparent Pricing"
          tagIcon={DollarSign}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          plans={[
            {
              id: "basic",              title: "Essential",              price: "$34.99",              period: "/one-time",              imageSrc: "https://img.b2bpic.net/free-photo/beautiful-composition-spa-bath-concept_23-2148094275.jpg",              imageAlt: "SmileCraft Essential Manual Toothbrush",              features: [
                "Eco-friendly bamboo handle",                "Soft nylon bristles",                "Ergonomic design",                "Sustainable packaging"
              ],
              button: { text: "Add to Cart", href: "products" }
            },
            {
              id: "pro",              title: "Professional",              price: "$79.99",              period: "/one-time",              imageSrc: "https://img.b2bpic.net/free-photo/brush-towels-nail-varnish-moisturizing-cream-marble-surface_23-2147926897.jpg",              imageAlt: "SmileCraft Professional Electric Toothbrush",              features: [
                "3-mode sonic vibration",                "Whitening technology",                "30-day battery life",                "Premium brush heads included",                "2-year warranty"
              ],
              button: { text: "Add to Cart", href: "products" }
            },
            {
              id: "ultra",              title: "Ultra Premium",              price: "$119.99",              period: "/one-time",              imageSrc: "https://img.b2bpic.net/free-photo/different-natural-self-care-products-composition_23-2148989971.jpg",              imageAlt: "SmileCraft Ultra Premium Smart Toothbrush",              features: [
                "AI-powered brushing guidance",                "Mobile app integration",                "6 brushing modes",                "Advanced whitening system",                "Smart travel case",                "Lifetime premium support",                "5-year warranty"
              ],
              button: { text: "Add to Cart", href: "products" }
            }
          ]}
          className="py-20"
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqDouble
          title="Frequently Asked Questions"
          description="Find answers to common questions about SmileCraft toothbrushes and our products."
          tag="Help & Support"
          tagIcon={HelpCircle}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="smooth"
          faqs={[
            {
              id: "1",              title: "What makes SmileCraft toothbrushes different?",              content: "SmileCraft toothbrushes combine cutting-edge sonic vibration technology with premium materials and sustainable practices. Our brushes are engineered for superior whitening, gum health, and cleaning power while maintaining environmentally friendly manufacturing."
            },
            {
              id: "2",              title: "How long does the battery last?",              content: "Our Professional model offers 30 days of battery life on a single charge. The Ultra Premium model provides up to 45 days. Both models include smart low-battery notifications to ensure you never miss a brushing session."
            },
            {
              id: "3",              title: "Are SmileCraft toothbrushes waterproof?",              content: "Yes, all SmileCraft models are IPX7 waterproof certified. They're safe to use in the shower and can be rinsed directly under running water. We recommend avoiding submerging the charging dock."
            },
            {
              id: "4",              title: "What warranty do you offer?",              content: "We offer a 2-year warranty on all Professional models and a 5-year warranty on Ultra Premium models. The Essential bamboo brush comes with a 1-year warranty covering manufacturing defects."
            },
            {
              id: "5",              title: "How often should I replace the brush head?",              content: "We recommend replacing brush heads every 3 months for optimal performance. Subscription-based head replacements are available at 30% discount when you sign up for our brush head delivery service."
            },
            {
              id: "6",              title: "Is the mobile app compatible with my phone?",              content: "Our SmileCraft app is compatible with iOS 12+ and Android 9+. It provides real-time brushing feedback, tracks your oral health progress, and offers personalized recommendations based on your brushing habits."
            },
            {
              id: "7",              title: "Do you offer international shipping?",              content: "Yes, we ship to over 150 countries worldwide. Shipping costs and delivery times vary by location. International orders include all applicable taxes and duties calculated at checkout."
            },
            {
              id: "8",              title: "What is your return policy?",              content: "We offer a 60-day money-back guarantee on all purchases. If you're not completely satisfied with your SmileCraft toothbrush, simply return it in original condition for a full refund, no questions asked."
            }
          ]}
          className="py-20"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCenter
          tag="Stay Updated"
          title="Join the SmileCraft Community"
          description="Subscribe to our newsletter for exclusive offers, oral care tips, and early access to new products."
          tagIcon={Bell}
          useInvertedBackground="noInvert"
          inputPlaceholder="Enter your email address"
          buttonText="Subscribe"
          termsText="By subscribing, you agree to receive marketing emails. We respect your privacy and you can unsubscribe anytime."
          className="py-20"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseCard
          logoText="SmileCraft"
          columns={[
            {
              title: "Products",              items: [
                { label: "Premium Toothbrushes", href: "products" },
                { label: "Brush Heads", href: "products" },
                { label: "Accessories", href: "products" },
                { label: "Travel Cases", href: "products" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "about" },
                { label: "Blog", href: "#" },
                { label: "Careers", href: "#" },
                { label: "Press", href: "#" }
              ]
            },
            {
              title: "Support",              items: [
                { label: "Help Center", href: "#" },
                { label: "Contact Us", href: "contact" },
                { label: "Shipping Info", href: "#" },
                { label: "Returns", href: "#" }
              ]
            },
            {
              title: "Legal",              items: [
                { label: "Terms of Service", href: "#" },
                { label: "Privacy Policy", href: "#" },
                { label: "Cookie Policy", href: "#" },
                { label: "Accessibility", href: "#" }
              ]
            },
            {
              title: "Follow",              items: [
                { label: "Facebook", href: "https://facebook.com" },
                { label: "Instagram", href: "https://instagram.com" },
                { label: "Twitter", href: "https://twitter.com" },
                { label: "LinkedIn", href: "https://linkedin.com" }
              ]
            }
          ]}
          copyrightText="© 2025 SmileCraft. All rights reserved."
          className="bg-gradient-to-b from-background to-background-accent"
          logoTextClassName="text-3xl font-bold"
        />
      </div>
    </ThemeProvider>
  );
}