"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroLogo from '@/components/sections/hero/HeroLogo';
import MetricSplitMediaAbout from '@/components/sections/about/MetricSplitMediaAbout';
import ProductCardThree from '@/components/sections/product/ProductCardThree';
import TestimonialCardTwo from '@/components/sections/testimonial/TestimonialCardTwo';
import ContactText from '@/components/sections/contact/ContactText';
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';
import { Heart } from 'lucide-react';
import Link from 'next/link';

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-stagger"
      defaultTextAnimation="reveal-blur"
      borderRadius="rounded"
      contentWidth="compact"
      sizing="mediumLargeSizeMediumTitles"
      background="aurora"
      cardStyle="inset"
      primaryButtonStyle="flat"
      secondaryButtonStyle="glass"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="Burenka"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Products", id: "/products" },
            { name: "About", id: "/about" },
            { name: "Contact", id: "/contact" }
          ]}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogo
          logoText="Burenka"
          description="Premium fresh milk and dairy products delivered straight from our family farm to your table"
          buttons={[
            { text: "Shop Now", href: "/products" },
            { text: "Learn More", href: "/about" }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/close-up-man-with-bottle-goats-milk_23-2148673055.jpg"
          imageAlt="Fresh dairy farm with healthy cows grazing"
          showDimOverlay={true}
          logoLineHeight={1.2}
        />
      </div>

      <div id="about" data-section="about">
        <MetricSplitMediaAbout
          tag="Our Story"
          tagIcon={Heart}
          title="Family Tradition of Excellence"
          description="Since 1995, Burenka has been committed to providing the finest quality dairy products. Our family farm spans 50 hectares of lush pastureland where our cows graze on natural, pesticide-free grass. We believe in sustainable farming practices and the health of our community, delivering fresh, unpasteurized milk daily to doorsteps across the region."
          metrics={[
            { value: "30+", title: "Years of Tradition" },
            { value: "500+", title: "Happy Families Daily" }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/close-up-man-holding-bottle-goats-milk_23-2148673056.jpg"
          imageAlt="Healthy cows grazing on organic pasture"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardThree
          title="Our Premium Selection"
          description="Handpicked dairy products crafted with care from our farm"
          products={[
            {
              id: "1",
              name: "Whole Fresh Milk",
              price: "$4.99",
              imageSrc: "https://img.b2bpic.net/free-photo/female-hand-holds-blank-bottle-dairy-product_185193-109770.jpg",
              imageAlt: "Premium whole milk bottle",
              initialQuantity: 1
            },
            {
              id: "2",
              name: "Creamy Yogurt",
              price: "$3.49",
              imageSrc: "https://img.b2bpic.net/free-photo/bottles-milk-arrangement-still-life_23-2150642888.jpg",
              imageAlt: "Fresh creamy yogurt",
              initialQuantity: 1
            },
            {
              id: "3",
              name: "Artisan Cheese",
              price: "$7.99",
              imageSrc: "https://img.b2bpic.net/free-photo/bottles-with-milk-copy-space-card_23-2148239835.jpg",
              imageAlt: "Fresh artisan cheese block",
              initialQuantity: 1
            },
            {
              id: "4",
              name: "Premium Butter",
              price: "$5.99",
              imageSrc: "https://img.b2bpic.net/free-photo/wooden-frame-with-bottles-milk_23-2148239946.jpg",
              imageAlt: "Premium butter block",
              initialQuantity: 1
            }
          ]}
          gridVariant="two-columns-alternating-heights"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTwo
          title="What Our Customers Say"
          description="Real stories from families who trust Burenka for their daily dairy needs"
          testimonials={[
            {
              id: "1",
              name: "Maria Petrova",
              role: "Mother of Two",
              testimonial: "The quality of Burenka milk has transformed our breakfast routine. My kids absolutely love it, and I love knowing exactly where it comes from. Best investment for our family's health!",
              imageSrc: "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",
              imageAlt: "Maria Petrova"
            },
            {
              id: "2",
              name: "Viktor Sokolov",
              role: "Café Owner",
              testimonial: "I've been sourcing Burenka dairy for my café for five years. The consistency and freshness are unmatched. My customers specifically request our lattes because they taste the difference. Highly recommend!",
              imageSrc: "https://img.b2bpic.net/free-photo/front-view-smiley-woman-work_23-2149622870.jpg",
              imageAlt: "Viktor Sokolov"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactText
          text="Ready to experience the freshness of Burenka? Start your subscription today and taste the difference quality makes. Our team is ready to help you find the perfect dairy plan for your family."
          animationType="reveal-blur"
          buttons={[
            { text: "Subscribe Now", href: "/products" },
            { text: "Visit Our Farm", href: "https://maps.google.com" }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>

      <FooterLogoEmphasis
        logoText="Burenka"
        columns={[
          {
            items: [
              { label: "Home", href: "/" },
              { label: "Products", href: "/products" },
              { label: "About", href: "/about" },
              { label: "Contact", href: "/contact" }
            ]
          },
          {
            items: [
              { label: "Farm Shop Hours", href: "#" },
              { label: "Tue-Sun 8AM-6PM", href: "#" },
              { label: "Closed Mondays", href: "#" }
            ]
          },
          {
            items: [
              { label: "Delivery Info", href: "#" },
              { label: "Subscriptions", href: "#" },
              { label: "Pricing", href: "#" }
            ]
          },
          {
            items: [
              { label: "Email", href: "mailto:info@burenka.local" },
              { label: "Phone", href: "tel:+1234567890" },
              { label: "Farm Location", href: "#" }
            ]
          }
        ]}
      />
    </ThemeProvider>
  );
}