"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FeatureCardSix from '@/components/sections/feature/FeatureCardSix';
import FooterCard from '@/components/sections/footer/FooterCard';
import HeroSplitKpi from '@/components/sections/hero/HeroSplitKpi';
import MetricCardSeven from '@/components/sections/metrics/MetricCardSeven';
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import ProductCardThree from '@/components/sections/product/ProductCardThree';
import SplitAbout from '@/components/sections/about/SplitAbout';
import TestimonialCardThirteen from '@/components/sections/testimonial/TestimonialCardThirteen';
import { Facebook, Instagram, ShieldCheck, Wine } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="shift-hover"
        defaultTextAnimation="reveal-blur"
        borderRadius="soft"
        contentWidth="mediumSmall"
        sizing="mediumLargeSizeMediumTitles"
        background="fluid"
        cardStyle="soft-shadow"
        primaryButtonStyle="flat"
        secondaryButtonStyle="solid"
        headingFontWeight="bold"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarStyleFullscreen
      navItems={[
        {
          name: "Inicio",          id: "#hero"},
        {
          name: "Bodega",          id: "#about"},
        {
          name: "Vinos",          id: "#products"},
        {
          name: "Visitas",          id: "#contact"},
      ]}
      brandName="Barón d'Alba"
    />
  </div>

  <div id="hero" data-section="hero">
      <HeroSplitKpi
      background={{
        variant: "radial-gradient"}}
      title="El tiempo embotellado"
      description="Una bodega que vende tiempo, paciencia y un trozo de Castellón. Aquí la tierra es vieja."
      kpis={[
        {
          value: "1923",          label: "Fundación"},
        {
          value: "12",          label: "Hectáreas"},
        {
          value: "480m",          label: "Altitud"},
      ]}
      enableKpiAnimation={true}
      buttons={[
        {
          text: "Explorar Vinos",          href: "#products"},
      ]}
      imageSrc="http://img.b2bpic.net/free-photo/cinematic-style-view-red-grapes-vineyard_23-2151570061.jpg?_wi=1"
      imageAlt="Viñedos al amanecer"
      mediaAnimation="blur-reveal"
      avatars={[
        {
          src: "http://img.b2bpic.net/free-photo/green-red-vineyard-rows-sunset-moldova-glowing-orange-sun_1268-15926.jpg",          alt: "Usuario 1"},
        {
          src: "http://img.b2bpic.net/free-photo/high-angle-shot-landscape-with-green-grass-range-mountains_181624-13737.jpg",          alt: "Usuario 2"},
        {
          src: "http://img.b2bpic.net/free-photo/hill-slope-with-rare-trees-grazing-goats-moldova_1268-15989.jpg",          alt: "Usuario 3"},
        {
          src: "http://img.b2bpic.net/free-photo/high-angle-view-beautiful-green-landscape-with-pathway-cloudy-sky_181624-17759.jpg",          alt: "Usuario 4"},
        {
          src: "http://img.b2bpic.net/free-photo/wine-cellar_181624-1264.jpg",          alt: "Usuario 5"},
      ]}
      avatarText="Más de 500 expertos nos avalan"
      marqueeItems={[
        {
          type: "text",          text: "Tradición desde 1923"},
        {
          type: "text",          text: "Terroir de Castellón"},
        {
          type: "text-icon",          text: "Artesanía total",          icon: ShieldCheck,
        },
        {
          type: "text",          text: "Paciencia como ingrediente"},
        {
          type: "text-icon",          text: "Calidad certificada",          icon: Wine,
        },
      ]}
    />
  </div>

  <div id="about" data-section="about">
      <SplitAbout
      textboxLayout="split"
      useInvertedBackground={false}
      title="La esencia de Barón d'Alba"
      description="No es una bodega que vende vino. Es un espacio de silencio, piedra fría y luz oblicua. Escuchamos lo que la tierra tiene que decir."
      bulletPoints={[
        {
          title: "Tradición desde 1923",          description: "Paciencia como ingrediente principal."},
        {
          title: "Terroir Único",          description: "Un trozo de tierra de Castellón."},
        {
          title: "Artesanía total",          description: "Respeto absoluto al ciclo natural."},
      ]}
      imageSrc="http://img.b2bpic.net/free-photo/stone-natural-room-interior-design_23-2151890391.jpg?_wi=1"
      imageAlt="Bodega Barón d'Alba"
      mediaAnimation="slide-up"
    />
  </div>

  <div id="features" data-section="features">
      <FeatureCardSix
      textboxLayout="split"
      useInvertedBackground={false}
      features={[
        {
          title: "Cultivo Consciente",          description: "Respeto total por el suelo.",          imageSrc: "http://img.b2bpic.net/free-photo/bottles-wine-laid-wooden-table_23-2148243113.jpg?_wi=1",          imageAlt: "Viñedos"},
        {
          title: "Crianza en Silencio",          description: "El vino necesita tiempo.",          imageSrc: "http://img.b2bpic.net/free-photo/liquor-bottle-with-candle-scarf-plant-pot_176474-6084.jpg?_wi=1",          imageAlt: "Barricas"},
        {
          title: "Selección Manual",          description: "Calidad en cada uva.",          imageSrc: "http://img.b2bpic.net/free-photo/top-view-wine-bottle-sackcloth-with-copy-space-dark-wooden-horizontal_176474-4367.jpg",          imageAlt: "Vendimia"},
      ]}
      title="Nuestro compromiso"
      description="La espera es parte del sabor."
    />
  </div>

  <div id="products" data-section="products">
      <ProductCardThree
      animationType="slide-up"
      textboxLayout="default"
      gridVariant="three-columns-all-equal-width"
      useInvertedBackground={false}
      products={[
        {
          id: "5",          name: "Colección Privada",          price: "60€",          imageSrc: "http://img.b2bpic.net/free-photo/front-view-pomegranate-wine-dark-wall-drinks-fruit-alcohol-sour-color-bar-restaurant-wine_179666-17553.jpg", priceButtonProps: { text: "Añadir al carrito" }},
        {
          id: "4",          name: "Edición Limitada",          price: "45€",          imageSrc: "http://img.b2bpic.net/free-photo/front-view-glass-wine-with-bottle-light-background-alcohol-drink-bar-lemonade-dinner-photo-grape-juice-holiday_140725-160625.jpg", priceButtonProps: { text: "Añadir al carrito" }},
        {
          id: "1",          name: "Barón d'Alba Reserva",          price: "24€",          imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-romantic-arrangement-with-wine_23-2148243734.jpg", priceButtonProps: { text: "Añadir al carrito" }},
        {
          id: "2",          name: "Barón d'Alba Crianza",          price: "18€",          imageSrc: "http://img.b2bpic.net/free-photo/view-delicious-green-grapes_23-2151566083.jpg", priceButtonProps: { text: "Añadir al carrito" }},
        {
          id: "3",          name: "Barón d'Alba Blanco",          price: "16€",          imageSrc: "http://img.b2bpic.net/free-photo/ripe-grape-bunches-rustic-winery-table-generated-by-ai_188544-47619.jpg", priceButtonProps: { text: "Añadir al carrito" }},
        {
          id: "6",          name: "Tinto Joven",          price: "12€",          imageSrc: "http://img.b2bpic.net/free-photo/top-view-new-year-party-arrangement_23-2149181115.jpg", priceButtonProps: { text: "Añadir al carrito" }},
      ]}
      title="Nuestra Selección"
      description="Botellas que cuentan historias."
    />
  </div>

  <div id="metrics" data-section="metrics">
      <MetricCardSeven
      animationType="slide-up"
      textboxLayout="split"
      useInvertedBackground={false}
      metrics={[
        {
          id: "m1",          value: "100",          title: "Años de historia",          items: [
            "Tradición familiar",            "Legado"],
        },
        {
          id: "m2",          value: "12",          title: "Superficie de cultivo",          items: [
            "Tierras fértiles",            "Terroir"],
        },
        {
          id: "m3",          value: "480",          title: "Altitud sobre el nivel",          items: [
            "Uva seleccionada",            "Clima óptimo"],
        },
      ]}
      title="Nuestros Números"
      description="La realidad detrás de la paciencia."
    />
  </div>

  <div id="testimonials" data-section="testimonials">
      <TestimonialCardThirteen
      animationType="slide-up"
      textboxLayout="split"
      useInvertedBackground={false}
      testimonials={[
        {
          id: "1",          name: "Juan García",          handle: "@juang",          testimonial: "Un vino con historia real.",          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/brick-wall-background-texture_1048-16944.jpg",          imageAlt: "Brick wall background texture"},
        {
          id: "2",          name: "Ana López",          handle: "@analp",          testimonial: "El sabor de la paciencia.",          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/cinematic-style-view-red-grapes-vineyard_23-2151570061.jpg?_wi=2",          imageAlt: "Brick wall background texture"},
        {
          id: "3",          name: "Carlos Ruiz",          handle: "@carlosr",          testimonial: "Castellón en una botella.",          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/stone-natural-room-interior-design_23-2151890391.jpg?_wi=2",          imageAlt: "Brick wall background texture"},
        {
          id: "4",          name: "Marta Soler",          handle: "@msoler",          testimonial: "Inolvidable experiencia en bodega.",          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/bottles-wine-laid-wooden-table_23-2148243113.jpg?_wi=2",          imageAlt: "Brick wall background texture"},
        {
          id: "5",          name: "Luis Ferrán",          handle: "@lferran",          testimonial: "Calidad artesana superior.",          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/liquor-bottle-with-candle-scarf-plant-pot_176474-6084.jpg?_wi=2",          imageAlt: "Brick wall background texture"},
      ]}
      showRating={true}
      title="Palabras sobre nosotros"
      description="Lo que dicen los que valoran el tiempo."
    />
  </div>

  <div id="contact" data-section="contact">
      <ContactSplit
      useInvertedBackground={false}
      background={{
        variant: "gradient-bars"}}
      tag="Visitas"
      title="Reserva Tu Experiencia en la Bodega"
      description="Jueves a domingo · 11:00 y 17:00 · 35€"
      imageSrc="http://img.b2bpic.net/free-photo/vineyards-plantation_1398-5202.jpg"
      imageAlt="Bodega exterior"
      mediaAnimation="slide-up"
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterCard
      logoText="Barón d'Alba"
      copyrightText="© 2024 Barón d'Alba"
      socialLinks={[
        {
          icon: Instagram,
          href: "#",          ariaLabel: "Instagram"},
        {
          icon: Facebook,
          href: "#",          ariaLabel: "Facebook"},
      ]}
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}