"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroLogo from '@/components/sections/hero/HeroLogo';
import SplitAbout from '@/components/sections/about/SplitAbout';
import FeatureCardTwentyFive from '@/components/sections/feature/FeatureCardTwentyFive';
import MetricCardThree from '@/components/sections/metrics/MetricCardThree';
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';
import ContactText from '@/components/sections/contact/ContactText';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { Shield, CheckCircle, MapPin, Clock, Wrench, Hammer, Eye, Zap, Star, Users, Calendar } from 'lucide-react';

const navItems = [
  { name: "Services", id: "services" },
  { name: "About", id: "about" },
  { name: "Testimonials", id: "testimonials" },
  { name: "Contact", id: "contact" },
];

const heroButtons = [
  { text: "Call Now: (863) 777-1027", href: "tel:+18637771027" },
  { text: "Request Service", href: "#contact" },
];

const aboutBulletPoints = [
  {
    title: "State Certified",    description: "Florida State Certified Roofing Contractor with full licensing and insurance",    icon: Shield,
  },
  {
    title: "Quality Craftsmanship",    description: "Expert installation, repair, and maintenance of all roofing types",    icon: CheckCircle,
  },
  {
    title: "Local Service",    description: "Serving Socrum, Lakeland, and surrounding Polk County areas",    icon: MapPin,
  },
  {
    title: "Fast Response",    description: "24-hour availability for emergency roof repairs and assessments",    icon: Clock,
  },
];

const serviceFeatures = [
  {
    title: "Roof Repair",    description: "Professional repair of damaged, leaking, or aging roofs with quality materials",    icon: Wrench,
    mediaItems: [
      {
        imageSrc: "http://img.b2bpic.net/free-photo/man-walking-roof_1321-1041.jpg?_wi=1",        imageAlt: "Roof repair work"},
      {
        imageSrc: "http://img.b2bpic.net/free-photo/man-walking-roof_1321-1041.jpg?_wi=2",        imageAlt: "Professional roofing repair"},
    ],
  },
  {
    title: "Roof Installation",    description: "New roof installation with premium materials and expert craftsmanship",    icon: Hammer,
    mediaItems: [
      {
        imageSrc: "http://img.b2bpic.net/free-photo/man-walking-roof_1321-1041.jpg?_wi=3",        imageAlt: "Roof installation"},
      {
        imageSrc: "http://img.b2bpic.net/free-photo/man-walking-roof_1321-1041.jpg?_wi=4",        imageAlt: "Professional installation"},
    ],
  },
  {
    title: "Roof Inspection",    description: "Thorough roof inspections to identify issues early and prevent costly damage",    icon: Eye,
    mediaItems: [
      {
        imageSrc: "http://img.b2bpic.net/free-photo/specialist-technician-professional-engineer-with-laptop-tablet-maintenance-checking-installing-solar-roof-panel-factory-rooftop-sunlight-engineers-team-survey-check-solar-panel-roof_609648-2202.jpg?_wi=1",        imageAlt: "Roof inspection"},
      {
        imageSrc: "http://img.b2bpic.net/free-photo/specialist-technician-professional-engineer-with-laptop-tablet-maintenance-checking-installing-solar-roof-panel-factory-rooftop-sunlight-engineers-team-survey-check-solar-panel-roof_609648-2202.jpg?_wi=2",        imageAlt: "Property assessment"},
    ],
  },
  {
    title: "Maintenance Plans",    description: "Preventative maintenance programs to extend roof life and protect your investment",    icon: Zap,
    mediaItems: [
      {
        imageSrc: "http://img.b2bpic.net/free-photo/man-walking-roof_1321-1041.jpg?_wi=5",        imageAlt: "Roof maintenance"},
      {
        imageSrc: "http://img.b2bpic.net/free-photo/man-walking-roof_1321-1041.jpg?_wi=6",        imageAlt: "Maintenance work"},
    ],
  },
];

const metrics = [
  { id: "1", icon: Star, title: "Rating", value: "5.0★" },
  { id: "2", icon: Users, title: "Reviews", value: "10+" },
  { id: "3", icon: Calendar, title: "Years", value: "20+" },
  { id: "4", icon: MapPin, title: "Service Area", value: "Polk County" },
];

const testimonials = [
  {
    id: "1",    name: "Will McHardy",    handle: "Local Homeowner",    testimonial: "Exceptional job and a fair and reasonable cost. Between the two of us, we identified other roof issues and his crew did an exceptional job.",    imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg?_wi=1",    imageAlt: "Will McHardy"},
  {
    id: "2",    name: "Marchello Jace",    handle: "Satisfied Customer",    testimonial: "Great work great prices highly recommend them. FSC Roofing provided outstanding service and quality craftsmanship.",    imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg?_wi=2",    imageAlt: "Marchello Jace"},
  {
    id: "3",    name: "Sarah Johnson",    handle: "Homeowner",    testimonial: "Professional, courteous, and thorough. They fixed our roof leak quickly and the workmanship is excellent. Highly recommended!",    imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg?_wi=3",    imageAlt: "Sarah Johnson"},
  {
    id: "4",    name: "Michael Chen",    handle: "Property Manager",    testimonial: "FSC Roofing handled our commercial roof repair efficiently. Great communication and completed on schedule. Will use again.",    imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg?_wi=4",    imageAlt: "Michael Chen"},
  {
    id: "5",    name: "Emily Rodriguez",    handle: "Home Owner",    testimonial: "Best roofing company in the area. They inspected our roof, found issues we didn't know about, and fixed them all professionally.",    imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg?_wi=5",    imageAlt: "Emily Rodriguez"},
  {
    id: "6",    name: "David Kim",    handle: "Business Owner",    testimonial: "After storm damage, FSC Roofing quickly assessed and repaired our roof. Insurance-friendly process and fair pricing. Excellent service!",    imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg?_wi=6",    imageAlt: "David Kim"},
];

const contactButtons = [
  { text: "Call: (863) 777-1027", href: "tel:+18637771027" },
  { text: "Get Free Estimate", href: "mailto:info@fscroofing.com" },
];

const footerColumns = [
  {
    title: "Services",    items: [
      { label: "Roof Repair", href: "#services" },
      { label: "Roof Installation", href: "#services" },
      { label: "Inspections", href: "#services" },
      { label: "Maintenance", href: "#services" },
    ],
  },
  {
    title: "Company",    items: [
      { label: "About Us", href: "#about" },
      { label: "Testimonials", href: "#testimonials" },
      { label: "Contact", href: "#contact" },
      { label: "Service Areas", href: "#" },
    ],
  },
  {
    title: "Contact",    items: [
      { label: "Phone: (863) 777-1027", href: "tel:+18637771027" },
      { label: "1215 N Galloway Rd, Lakeland, FL", href: "https://maps.google.com/?q=1215+N+Galloway+Rd+Lakeland+FL+33810" },
      { label: "Open 24 Hours", href: "#" },
      { label: "Licensed & Insured", href: "#" },
    ],
  },
];

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="reveal-blur"
      borderRadius="rounded"
      contentWidth="compact"
      sizing="largeSmallSizeLargeTitles"
      background="circleGradient"
      cardStyle="subtle-shadow"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="glass"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple brandName="FSC Roofing" navItems={navItems} />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogo
          logoText="FSC Roofing"
          description="Florida State Certified Roofing Contractor. Expert roof repairs, installations, and maintenance for Polk County."
          buttons={heroButtons}
          imageSrc="http://img.b2bpic.net/free-photo/man-sitting-roof_23-2148748778.jpg"
          imageAlt="Professional roofing contractor at work"
          showDimOverlay={true}
        />
      </div>

      <div id="about" data-section="about">
        <SplitAbout
          tag="About Us"
          title="Trusted Roofing Expertise in Polk County"
          description="With years of experience and Florida State Certification, we deliver exceptional roofing solutions for residential and commercial properties. Our team is committed to quality workmanship and customer satisfaction."
          textboxLayout="default"
          useInvertedBackground={false}
          bulletPoints={aboutBulletPoints}
          imageSrc="http://img.b2bpic.net/free-photo/three-men-looking-aside-construction-site_259150-57679.jpg"
          imageAlt="Professional roofing team"
          imagePosition="right"
          mediaAnimation="slide-up"
        />
      </div>

      <div id="services" data-section="services">
        <FeatureCardTwentyFive
          title="Our Roofing Services"
          description="Complete roofing solutions for every need"
          tag="Services"
          textboxLayout="default"
          useInvertedBackground={true}
          animationType="slide-up"
          features={serviceFeatures}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardThree
          title="Why Choose FSC Roofing"
          description="Proven results and customer satisfaction"
          tag="Our Track Record"
          textboxLayout="default"
          useInvertedBackground={false}
          animationType="slide-up"
          metrics={metrics}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardSix
          title="What Our Customers Say"
          description="Real feedback from satisfied clients"
          tag="Testimonials"
          textboxLayout="default"
          useInvertedBackground={true}
          animationType="slide-up"
          speed={40}
          testimonials={testimonials}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactText
          text="Ready to protect your roof? Contact FSC Roofing today for a free inspection and estimate. We're available 24/7 for emergencies."
          animationType="entrance-slide"
          buttons={contactButtons}
          background={{ variant: "plain" }}
          useInvertedBackground={false}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal
          columns={footerColumns}
          copyrightText="© 2025 FSC Roofing. Florida State Certified Contractor. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}
