"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import ContactCTA from '@/components/sections/contact/ContactCTA';
import FeatureCardTwentyFive from '@/components/sections/feature/FeatureCardTwentyFive';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
import HeroCarouselLogo from '@/components/sections/hero/heroCarouselLogo/HeroCarouselLogo';
import MetricSplitMediaAbout from '@/components/sections/about/MetricSplitMediaAbout';
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import TestimonialCardTwo from '@/components/sections/testimonial/TestimonialCardTwo';
import { Award, Facebook, Instagram, Shield, Twitter, Zap } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="expand-hover"
        defaultTextAnimation="reveal-blur"
        borderRadius="rounded"
        contentWidth="mediumSmall"
        sizing="large"
        background="circleGradient"
        cardStyle="solid"
        primaryButtonStyle="flat"
        secondaryButtonStyle="glass"
        headingFontWeight="extrabold"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarLayoutFloatingOverlay
      navItems={[
        { name: "Home", id: "hero" },
        { name: "About", id: "about" },
        { name: "Services", id: "features" },
        { name: "Reviews", id: "testimonials" },
        { name: "Contact", id: "contact" },
      ]}
      brandName="Avalanche"
    />
  </div>

  <div id="hero" data-section="hero">
      <HeroCarouselLogo
      logoText="Avalanche Roofing"
      description="Avalanche Roofing Service combines premium craftsmanship with customer-first service. Every roof is built to protect what matters most."
      buttons={[{ text: "Schedule Your Inspection", href: "#contact" }]}
      slides={[
        { imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-men-working-roof-together_23-2149343670.jpg?_wi=1", imageAlt: "Luxury home roof" },
        { imageSrc: "http://img.b2bpic.net/free-photo/construction-worker-using-hammer-job-site_23-2150530724.jpg?_wi=1", imageAlt: "Roofing crew at work" },
        { imageSrc: "http://img.b2bpic.net/free-photo/photo-wood-texture-pattern_58702-13174.jpg?_wi=1", imageAlt: "Shingle texture" },
      ]}
    />
  </div>

  <div id="about" data-section="about">
      <MetricSplitMediaAbout
      useInvertedBackground={false}
      title="Generations of Excellence"
      description="We treat your home like our own. With old-fashioned values like hard work, honesty, and integrity, we provide roofing solutions that stand the test of time."
      metrics={[
        { value: "100%", title: "Satisfaction Guaranteed" },
        { value: "24h", title: "Rapid Quote Response" },
        { value: "24+", title: "Years Experience" },
      ]}
      imageSrc="http://img.b2bpic.net/free-photo/confident-architect-smiling_107420-74348.jpg"
      imageAlt="Our professional team"
      mediaAnimation="slide-up"
      metricsAnimation="slide-up"
    />
  </div>

  <div id="features" data-section="features">
      <FeatureCardTwentyFive
      animationType="slide-up"
      textboxLayout="split"
      useInvertedBackground={true}
      features={[
        { title: "Full Roof Replacement", description: "Complete removal and installation of durable, high-end roofing systems.", icon: Shield, mediaItems: [{ imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-men-working-roof-together_23-2149343670.jpg?_wi=2" }, { imageSrc: "http://img.b2bpic.net/free-photo/construction-worker-using-hammer-job-site_23-2150530724.jpg?_wi=2" }] },
        { title: "Expert Repair Services", description: "Fast, honest evaluation and repair of leaks and storm damage.", icon: Zap, mediaItems: [{ imageSrc: "http://img.b2bpic.net/free-photo/photo-wood-texture-pattern_58702-13174.jpg?_wi=2" }, { imageSrc: "http://img.b2bpic.net/free-photo/roof-pattern_1203-2594.jpg?_wi=2" }] },
      ]}
      title="Our Professional Services"
      description="Providing high-end residential roofing solutions tailored to your unique property needs."
    />
  </div>

  <div id="testimonials" data-section="testimonials">
      <TestimonialCardTwo
      title="Voices of Trust"
      description="Trusted by hundreds of homeowners for our craftsmanship."
      textboxLayout="default"
      animationType="slide-up"
      testimonials={[
        { id: "1", name: "Alex R.", role: "Homeowner", testimonial: "Alex and his team were great to work with. Quick, fair, and professional.", imageSrc: "http://img.b2bpic.net/free-photo/stylish-woman-wearing-yellow-bandana_273609-13337.jpg" },
        { id: "2", name: "Ken P.", role: "Homeowner", testimonial: "Hard work, honesty and integrity. Exceptional experience.", imageSrc: "http://img.b2bpic.net/free-photo/front-view-portrait-beautiful-woman_23-2148317338.jpg" }
      ]}
    />
  </div>

  <div id="contact" data-section="contact">
      <ContactCTA
      tag="Get In Touch"
      title="Ready to Protect Your Investment?"
      description="Get a fair, honest estimate from the roofing experts at Avalanche today."
      buttons={[{ text: "Request Inspection", href: "#" }]}
      background={{ variant: "sparkles-gradient" }}
      useInvertedBackground={true}
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterBaseCard
      logoText="Avalanche Roofing"
      columns={[
        { title: "Company", items: [{ label: "About Us", href: "#about" }, { label: "Contact", href: "#contact" }] },
        { title: "Services", items: [{ label: "Roofing", href: "#features" }, { label: "Repairs", href: "#features" }] }
      ]}
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}