"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroLogo from '@/components/sections/hero/HeroLogo';
import MediaAbout from '@/components/sections/about/MediaAbout';
import FeatureCardNine from '@/components/sections/feature/FeatureCardNine';
import ProductCardThree from '@/components/sections/product/ProductCardThree';
import MetricCardTwo from '@/components/sections/metrics/MetricCardTwo';
import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCardFive';
import FooterCard from '@/components/sections/footer/FooterCard';
import { Instagram, Facebook, Twitter, Linkedin } from 'lucide-react';
import Link from 'next/link';

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="smallMedium"
      sizing="mediumSizeLargeTitles"
      background="none"
      cardStyle="elevated"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="glass"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="Sarancha"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Shop", id: "/shop" },
            { name: "About", id: "/about" },
            { name: "Collections", id: "/collections" },
            { name: "Contact", id: "/contact" }
          ]}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogo
          logoText="Sarancha"
          description="Discover the art of fresh, premium florals crafted with passion and delivered with care."
          imageSrc="https://img.b2bpic.net/free-photo/beautiful-bunch-flowers-wooden-background-horizontal-view-from_1220-1133.jpg"
          imageAlt="Beautiful fresh flower arrangement with vibrant blooms"
          showDimOverlay={true}
          buttons={[
            { text: "Shop Now", href: "/shop" },
            { text: "Learn More", href: "/about" }
          ]}
          logoLineHeight={1.1}
        />
      </div>

      <div id="collections" data-section="collections">
        <MediaAbout
          title="Curated Collections"
          description="Explore our handpicked seasonal collections, each arrangement thoughtfully designed to celebrate life's special moments with natural beauty and elegance."
          tag="Featured Collections"
          imageSrc="https://img.b2bpic.net/free-photo/flowers-floral-shop-different-types_1303-15615.jpg"
          imageAlt="Seasonal floral collection display"
          buttons={[
            { text: "Explore Collections", href: "/collections" }
          ]}
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardNine
          title="Why Choose Sarancha"
          description="Experience the difference of authentic floral craftsmanship"
          tag="Our Advantages"
          textboxLayout="default"
          showStepNumbers={true}
          features={[
            {
              id: 1,
              title: "Premium Quality Flowers",
              description: "Hand-selected blooms sourced from the finest growers, ensuring freshness and vibrancy in every arrangement.",
              phoneOne: { imageSrc: "https://img.b2bpic.net/free-photo/view-natural-blurry-flower_23-2149454600.jpg" },
              phoneTwo: { imageSrc: "https://img.b2bpic.net/free-photo/man-apron-holds-vase-flowers-closeup_169016-34913.jpg" }
            },
            {
              id: 2,
              title: "Expert Floral Design",
              description: "Our experienced florists create stunning arrangements that combine artistry, color theory, and lasting beauty.",
              phoneOne: { imageSrc: "https://img.b2bpic.net/free-photo/medium-shot-blonde-woman-arranging-bouquet_23-2148377319.jpg" },
              phoneTwo: { imageSrc: "https://img.b2bpic.net/free-photo/vase-with-fresh-summer-flowers-female-hands-white-background_169016-36190.jpg" }
            },
            {
              id: 3,
              title: "Fresh & Fast Delivery",
              description: "Guaranteed freshness with same-day or next-day delivery options to keep your flowers beautiful longer.",
              phoneOne: { imageSrc: "https://img.b2bpic.net/free-photo/female-florist-promoting-mixed-flower-basket_114579-2775.jpg" },
              phoneTwo: { imageSrc: "https://img.b2bpic.net/free-photo/flower-shop-exposing-selling-different-kinds-roses_114579-1887.jpg" }
            }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardThree
          title="Bestselling Arrangements"
          description="Discover our most loved floral creations, perfect for any occasion."
          tag="Shop Popular"
          textboxLayout="default"
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          useInvertedBackground="invertDefault"
          products={[
            {
              id: "1",
              name: "Romantic Rose Garden",
              price: "$89.99",
              imageSrc: "https://img.b2bpic.net/free-photo/close-up-beautiful-blooming-flowers_23-2149316652.jpg",
              imageAlt: "Red and pink rose arrangement",
              initialQuantity: 1
            },
            {
              id: "2",
              name: "Sunflower Delight",
              price: "$79.99",
              imageSrc: "https://img.b2bpic.net/free-photo/view-flowers-transparent-glass-with-water-drops_23-2149478600.jpg",
              imageAlt: "Bright sunflower bouquet",
              initialQuantity: 1
            },
            {
              id: "3",
              name: "Lavender Dreams",
              price: "$84.99",
              imageSrc: "https://img.b2bpic.net/free-photo/closeup-blooming-pink-gerbera-daisy_53876-138114.jpg",
              imageAlt: "Lavender and white flower mix",
              initialQuantity: 1
            }
          ]}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardTwo
          title="Sarancha by Numbers"
          description="Our commitment to excellence reflected in real results"
          tag="Impact & Growth"
          textboxLayout="default"
          gridVariant="uniform-all-items-equal"
          animationType="scale-rotate"
          useInvertedBackground="noInvert"
          metrics={[
            {
              id: "1",
              value: "10K+",
              description: "Happy Customers"
            },
            {
              id: "2",
              value: "500+",
              description: "Weekly Deliveries"
            },
            {
              id: "3",
              value: "98%",
              description: "Satisfaction Rate"
            },
            {
              id: "4",
              value: "7 Days",
              description: "Freshness Guarantee"
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFive
          title="What Our Customers Say"
          description="Real stories from people who love Sarancha flowers"
          tag="Customer Love"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          testimonials={[
            {
              id: "1",
              name: "Sarah Mitchell, Wedding Planner",
              date: "Date: 15 January 2025",
              title: "Simply Stunning Arrangements",
              quote: "Sarancha created the most beautiful floral installations for my client's wedding. The attention to detail and freshness of the flowers was absolutely exceptional. Highly recommend!",
              tag: "Wedding Service",
              avatarSrc: "https://img.b2bpic.net/free-photo/front-view-business-woman-suit_23-2148603018.jpg",
              avatarAlt: "Sarah Mitchell",
              imageSrc: "https://img.b2bpic.net/free-photo/vertical-closeup-shot-beautiful-wedding-bouquet-with-gorgeous-white-roses_181624-15923.jpg",
              imageAlt: "Wedding floral arrangement"
            },
            {
              id: "2",
              name: "Marcus Chen, Corporate Events",
              date: "Date: 8 January 2025",
              title: "Perfect for Corporate Gifts",
              quote: "We've been ordering from Sarancha for our corporate clients for months. Their professionalism and consistent quality make them our go-to flower provider. Delivery is always on time!",
              tag: "Corporate",
              avatarSrc: "https://img.b2bpic.net/free-photo/closeup-young-female-professional-making-eye-contact-against-colored-background_662251-651.jpg",
              avatarAlt: "Marcus Chen",
              imageSrc: "https://img.b2bpic.net/free-photo/i-bought-this-bouquet-just-you-my-love_637285-9557.jpg",
              imageAlt: "Corporate gift flowers"
            },
            {
              id: "3",
              name: "Elena Rodriguez, Frequent Shopper",
              date: "Date: 2 January 2025",
              title: "Fresh and Beautiful Every Time",
              quote: "I've been a loyal Sarancha customer for over a year. Every bouquet arrives fresh, vibrant, and beautifully arranged. Customer service is wonderful and responsive.",
              tag: "Retail Customer",
              avatarSrc: "https://img.b2bpic.net/free-photo/front-view-professional-business-woman-suit_23-2148603020.jpg",
              avatarAlt: "Elena Rodriguez",
              imageSrc: "https://img.b2bpic.net/free-photo/medium-shot-smiley-woman-holding-flowers_23-2149591592.jpg",
              imageAlt: "Fresh flower delivery"
            },
            {
              id: "4",
              name: "David Thompson, Florist",
              date: "Date: 28 December 2024",
              title: "Professional Quality Partner",
              quote: "As a fellow florist, I'm impressed by Sarancha's sourcing and arrangement quality. They're a trusted partner for wholesale orders and special projects.",
              tag: "Professional",
              avatarSrc: "https://img.b2bpic.net/free-photo/portrait-young-smiling-pretty-girl-plaid-shirt-posing_114579-70643.jpg",
              avatarAlt: "David Thompson",
              imageSrc: "https://img.b2bpic.net/free-photo/medium-shot-blonde-woman-arranging-bouquet_23-2148377319.jpg",
              imageAlt: "Professional floral arrangement"
            },
            {
              id: "5",
              name: "Jessica Wong, Event Coordinator",
              date: "Date: 20 December 2024",
              title: "Exceeded All Expectations",
              quote: "Sarancha designed custom arrangements that perfectly matched our event theme. The creativity, execution, and freshness were beyond expectations. Will definitely work with them again!",
              tag: "Events",
              avatarSrc: "https://img.b2bpic.net/free-photo/portrait-young-entrepreneur-woman_23-2148898746.jpg",
              avatarAlt: "Jessica Wong",
              imageSrc: "https://img.b2bpic.net/free-photo/closeup-shot-beautiful-wedding-bouquet-with-gorgeous-white-roses_181624-27325.jpg",
              imageAlt: "Event floral design"
            },
            {
              id: "6",
              name: "Robert Chang, Regular Customer",
              date: "Date: 10 December 2024",
              title: "Thoughtful Gifts That Impress",
              quote: "I send Sarancha flowers to colleagues and friends regularly. They always arrive in perfect condition and generate genuine appreciation. It's a wonderful way to show you care.",
              tag: "Gifting",
              avatarSrc: "https://img.b2bpic.net/free-photo/close-up-confident-corporate-woman-professional-entrepreneur-smiling-cross-arms-chest-smiling-enthusiastic-standing-white-background_1258-85600.jpg",
              avatarAlt: "Robert Chang",
              imageSrc: "https://img.b2bpic.net/free-photo/top-view-flowers-bouquet-with-gift_23-2149024526.jpg",
              imageAlt: "Gift flower arrangement"
            }
          ]}
        />
      </div>

      <FooterCard
        logoText="Sarancha"
        copyrightText="© 2025 Sarancha. All rights reserved. Crafting beauty, one bloom at a time."
        socialLinks={[
          { icon: Instagram, href: "https://instagram.com/sarancha", ariaLabel: "Instagram" },
          { icon: Facebook, href: "https://facebook.com/sarancha", ariaLabel: "Facebook" },
          { icon: Twitter, href: "https://twitter.com/sarancha", ariaLabel: "Twitter" },
          { icon: Linkedin, href: "https://linkedin.com/company/sarancha", ariaLabel: "LinkedIn" }
        ]}
      />
    </ThemeProvider>
  );
}