"use client";
import Link from "next/link";
import { Shield, Zap, Eye, CheckCircle, Clock } from "lucide-react";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import HeroBillboardRotatedCarousel from '@/components/sections/hero/HeroBillboardRotatedCarousel';
import FeatureHoverPattern from '@/components/sections/feature/featureHoverPattern/FeatureHoverPattern';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import TestimonialCardFifteen from '@/components/sections/testimonial/TestimonialCardFifteen';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="shift-hover"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="smallMedium"
      sizing="largeSmall"
      background="noiseDiagonalGradient"
      cardStyle="inset"
      primaryButtonStyle="inset-glow"
      secondaryButtonStyle="glass"
      headingFontWeight="semibold"
    >
      {/* Navbar */}
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={[
            { name: "Home", id: "/" },
            { name: "Services", id: "/services" },
            { name: "Storm Damage", id: "/storm-damage" },
            { name: "Projects", id: "/projects" },
            { name: "Contact", id: "/contact" }
          ]}
          brandName="Viking Construction"
          bottomLeftText="Licensed & Insured"
          bottomRightText="Fast Response • Insurance Support"
        />
      </div>

      {/* Hero Section */}
      <div id="hero" data-section="hero">
        <HeroBillboardRotatedCarousel
          title="Roofing done fast, clean, and covered the right way."
          description="When leaks, hail, or storm damage hits, I respond quickly, explain everything clearly, and deliver repairs or replacements with precision—often the same day."
          tag="Trusted for Responsiveness"
          tagIcon={Shield}
          tagAnimation="slide-up"
          background={{ variant: "gradient-bars" }}
          buttons={[
            { text: "Get Free Estimate", href: "/contact" },
            { text: "Call Now", href: "tel:1-800-ROOFING" }
          ]}
          buttonAnimation="slide-up"
          carouselItems={[
            {
              id: "1",
              imageSrc: "http://img.b2bpic.net/free-photo/back-view-male-musician-roof-top-holding-electric-guitar_23-2148680355.jpg",
              imageAlt: "roof roofline residential craftsmanship clean"
            },
            {
              id: "2",
              imageSrc: "http://img.b2bpic.net/free-photo/auto-mechanic-inflating-tire-with-air-compressor-street_651396-3561.jpg?_wi=1",
              imageAlt: "roof repair leak fix maintenance professional"
            },
            {
              id: "3",
              imageSrc: "http://img.b2bpic.net/free-photo/man-walking-roof_1321-1041.jpg?_wi=1",
              imageAlt: "roof replacement new roof installation roofing shingles"
            },
            {
              id: "4",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=iakob3&_wi=1",
              imageAlt: "storm damage hail wind damage weather inspection"
            },
            {
              id: "5",
              imageSrc: "http://img.b2bpic.net/free-photo/close-up-engineer-architect-looking-clipboard_23-2148233774.jpg?_wi=1",
              imageAlt: "roof inspection assessment evaluation checklist professional"
            },
            {
              id: "6",
              imageSrc: "http://img.b2bpic.net/free-photo/asian-man-with-cancer-full-shot_23-2149870340.jpg?_wi=1",
              imageAlt: "satellite mounting installation technology roof"
            }
          ]}
          autoPlay={true}
          autoPlayInterval={4000}
          ariaLabel="Hero section with roofing expertise showcase"
        />
      </div>

      {/* Value Proposition */}
      <div id="value-proposition" data-section="value-proposition">
        <FeatureHoverPattern
          features={[
            {
              icon: Zap,
              title: "Fast Response",
              description: "I return calls quickly and show up when it matters most. Same-day inspections available for urgent roof needs."
            },
            {
              icon: Eye,
              title: "Transparent Process",
              description: "I explain what I find, what it means, and what it costs—no pressure, no surprises, no hidden fees."
            },
            {
              icon: Shield,
              title: "Insurance Support",
              description: "I document damage professionally and work with your insurance so you're not stuck guessing or fighting claims."
            },
            {
              icon: CheckCircle,
              title: "Detail-First Craftsmanship",
              description: "From flashing to sealing, I treat the small things like they're everything. Clean installs, quality materials, lasting results."
            }
          ]}
          title="Why Viking Construction Stands Out"
          description="Built on the foundation of responsiveness, transparency, and expert craftsmanship."
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          ariaLabel="Core value proposition section"
        />
      </div>

      {/* Services Overview */}
      <div id="services" data-section="services">
        <ProductCardFour
          products={[
            {
              id: "repair",
              name: "Roof Repair",
              price: "Starting at $400",
              variant: "Leaks • Flashing • Wind Damage",
              imageSrc: "http://img.b2bpic.net/free-photo/auto-mechanic-inflating-tire-with-air-compressor-street_651396-3561.jpg?_wi=2",
              imageAlt: "Professional roof repair work"
            },
            {
              id: "replacement",
              name: "Roof Replacement",
              price: "Starting at $5,000",
              variant: "Complete Install • Quality Materials",
              imageSrc: "http://img.b2bpic.net/free-photo/man-walking-roof_1321-1041.jpg?_wi=2",
              imageAlt: "New roof installation"
            },
            {
              id: "storm",
              name: "Storm & Hail Damage",
              price: "Free Inspection",
              variant: "Assessment • Insurance Coordination",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=iakob3&_wi=2",
              imageAlt: "Storm damage evaluation"
            },
            {
              id: "inspection",
              name: "Roof Inspections",
              price: "$150-300",
              variant: "Pre-Sale • Preventative • Photo Report",
              imageSrc: "http://img.b2bpic.net/free-photo/close-up-engineer-architect-looking-clipboard_23-2148233774.jpg?_wi=2",
              imageAlt: "Professional roof inspection"
            }
          ]}
          title="Roofing Services"
          description="From emergency leak stops to complete replacements, we handle it all with precision and care."
          gridVariant="uniform-all-items-equal"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          ariaLabel="Service offerings showcase"
        />
      </div>

      {/* Testimonials */}
      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFifteen
          testimonial="Super responsive, came out the same day with the leak, and was transparent throughout. Professional work from start to finish."
          rating={5}
          author="Sarah Johnson, Homeowner"
          avatars={[
            {
              src: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",
              alt: "Customer testimonial avatar 1"
            },
            {
              src: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",
              alt: "Customer testimonial avatar 2"
            },
            {
              src: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",
              alt: "Customer testimonial avatar 3"
            },
            {
              src: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",
              alt: "Customer testimonial avatar 4"
            },
            {
              src: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",
              alt: "Customer testimonial avatar 5"
            },
            {
              src: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",
              alt: "Customer testimonial avatar 6"
            }
          ]}
          ratingAnimation="slide-up"
          avatarsAnimation="slide-up"
          useInvertedBackground={false}
          ariaLabel="Customer testimonial with social proof"
        />
      </div>

      {/* Contact Section */}
      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Get Started"
          title="Get a Same-Day Roof Check When You Need Answers Fast"
          description="If you're dealing with a leak, hail damage, or a roof you're unsure about, I'll inspect it and give you a clear plan. Submit your info and I'll respond quickly."
          tagIcon={Clock}
          tagAnimation="slide-up"
          background={{ variant: "gradient-bars" }}
          useInvertedBackground={false}
          imageSrc="http://img.b2bpic.net/free-vector/male-hand-holding-gadget-messages-notification_81522-4433.jpg?_wi=1"
          imageAlt="Contact and estimate form"
          mediaAnimation="slide-up"
          mediaPosition="right"
          inputPlaceholder="Enter your email address"
          buttonText="Request Estimate"
          termsText="We respect your privacy. Quick response to all inquiries."
          ariaLabel="Contact form and call-to-action section"
        />
      </div>

      {/* Footer */}
      <div id="footer" data-section="footer">
        <FooterLogoEmphasis
          columns={[
            {
              items: [
                { label: "Home", href: "/" },
                { label: "Services", href: "/services" },
                { label: "Storm Damage", href: "/storm-damage" },
                { label: "Projects", href: "/projects" }
              ]
            },
            {
              items: [
                { label: "About Us", href: "/about" },
                { label: "Inspections", href: "/services" },
                { label: "Starlink Mounting", href: "/services" },
                { label: "Contact", href: "/contact" }
              ]
            },
            {
              items: [
                { label: "Privacy Policy", href: "/privacy" },
                { label: "Terms of Service", href: "/terms" },
                { label: "Warranty Info", href: "/warranty" },
                { label: "Insurance FAQ", href: "/faq" }
              ]
            },
            {
              items: [
                { label: "Call Us", href: "tel:1-800-ROOFING" },
                { label: "Text Us", href: "sms:1-800-ROOFING" },
                { label: "Email Support", href: "mailto:support@vikingconstruction.com" },
                { label: "24/7 Emergency", href: "tel:1-800-ROOFING" }
              ]
            }
          ]}
          logoText="Viking Construction"
          ariaLabel="Site footer with navigation and contact links"
        />
      </div>
    </ThemeProvider>
  );
}