"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FaqSplitText from '@/components/sections/faq/FaqSplitText';
import FeatureCardTwentyEight from '@/components/sections/feature/FeatureCardTwentyEight';
import FooterLogoReveal from '@/components/sections/footer/FooterLogoReveal';
import HeroSplit from '@/components/sections/hero/HeroSplit';
import MetricCardTwo from '@/components/sections/metrics/MetricCardTwo';
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import TeamCardOne from '@/components/sections/team/TeamCardOne';
import TestimonialCardTen from '@/components/sections/testimonial/TestimonialCardTen';
import { Award, DollarSign, Phone, Sparkles, Star } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="text-stagger"
        defaultTextAnimation="reveal-blur"
        borderRadius="soft"
        contentWidth="small"
        sizing="mediumLargeSizeLargeTitles"
        background="circleGradient"
        cardStyle="outline"
        primaryButtonStyle="gradient"
        secondaryButtonStyle="solid"
        headingFontWeight="light"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarLayoutFloatingOverlay
      navItems={[
        {
          name: "Home",          id: "#home"},
        {
          name: "Services",          id: "#services"},
        {
          name: "Why Us",          id: "#why-us"},
        {
          name: "Team",          id: "#team"},
        {
          name: "Reviews",          id: "#reviews"},
        {
          name: "Contact",          id: "#contact"}
      ]}
      logoSrc="http://img.b2bpic.net/free-photo/paper-style-isolation-assortment_23-2148998842.jpg"
      logoAlt="Constant Home Heating & Cooling Logo"
      brandName="Constant Home Heating & Cooling"
      button={{
        text: "Call Us Now",        href: "tel:+1519XXX-XXXX"
      }}
    />
  </div>

  <div id="home" data-section="home">
      <HeroSplit
      background={{
        variant: "downward-rays-animated"
      }}
      imagePosition="right"
      title="Your Home, Perfected. Unmatched Heating & Cooling."
      description="Experience superior comfort and efficiency with Constant Home Heating & Cooling. We deliver trusted solutions for every season, backed by 7+ years of dedicated service."
      buttons={[
        {
          text: "Get a Free Estimate",          href: "#contact"
        },
        {
          text: "24/7 Emergency Service",          href: "tel:+1519XXX-XXXX"
        }
      ]}
      imageSrc="http://img.b2bpic.net/free-photo/full-shot-couple-reading-near-heater_23-2149308942.jpg"
      imageAlt="Family enjoying home comfort with efficient HVAC system"
      mediaAnimation="slide-up"
      fixedMediaHeight={true}
      marqueeItems={[
        {
          type: "text-icon",          text: "Professional & Efficient",          icon: Sparkles
        },
        {
          type: "text-icon",          text: "Fair Price Guarantee",          icon: DollarSign
        },
        {
          type: "text-icon",          text: "24/7 Emergency Support",          icon: Phone
        },
        {
          type: "text-icon",          text: "5-Star Customer Satisfaction",          icon: Star
        },
        {
          type: "text-icon",          text: "7+ Years Expertise",          icon: Award
        }
      ]}
      marqueeSpeed={40}
      avatars={[
        {
          src: "http://img.b2bpic.net/free-photo/trans-couple-sharing-tender-moments_23-2149445736.jpg",          alt: "Trans couple sharing tender moments"
        },
        {
          src: "http://img.b2bpic.net/free-photo/full-shot-people-spending-time-indoors_23-2149535990.jpg",          alt: "Full shot people spending time indoors"
        },
        {
          src: "http://img.b2bpic.net/free-photo/man-woman-home-using-tablet-online-shopping_23-2149087127.jpg",          alt: "Man and woman at home using tablet for online shopping"
        },
        {
          src: "http://img.b2bpic.net/free-photo/full-shot-couple-reading-couch_23-2149308943.jpg",          alt: "Full shot couple reading on couch"
        },
        {
          src: "http://img.b2bpic.net/free-photo/portrait-handsome-man-cafe-sitting-with-laptop-working-remotely-freelancer-with-phone-hands-shows-okay-ok-gesture-approval-agree-with-something-like-product_1258-314217.jpg",          alt: "Portrait of handsome man in cafe sitting with laptop working remotely freelancer with phone in hands shows okay ok gesture in approval agree with something like product"
        }
      ]}
      avatarText="Join 80+ happy homeowners!"
    />
  </div>

  <div id="services" data-section="services">
      <FeatureCardTwentyEight
      animationType="scale-rotate"
      textboxLayout="default"
      useInvertedBackground={false}
      features={[
        {
          id: "furnace",          title: "Furnace Installation & Repair",          subtitle: "Stay warm all winter with reliable heating solutions.",          category: "Heating",          value: "http://img.b2bpic.net/free-photo/service-man-adjusting-house-heating-system_1303-26529.jpg"
        },
        {
          id: "ac",          title: "AC System Maintenance",          subtitle: "Keep cool with peak-performing air conditioning.",          category: "Cooling",          value: "http://img.b2bpic.net/free-photo/learning-map_1098-14838.jpg"
        },
        {
          id: "heat-pump",          title: "Heat Pump Solutions",          subtitle: "Energy-efficient heating and cooling for year-round comfort.",          category: "Efficiency",          value: "http://img.b2bpic.net/free-photo/close-up-heat-pump-outside-home_23-2149250260.jpg"
        },
        {
          id: "water-heater",          title: "Water Heater Services",          subtitle: "Enjoy endless hot water with our expert installations.",          category: "Plumbing",          value: "http://img.b2bpic.net/free-photo/medium-shot-nurse-giving-scan-patient_23-2149341551.jpg"
        }
      ]}
      title="Comprehensive Home Climate Solutions"
      description="From installation to emergency repairs, our certified technicians ensure your home is comfortable, efficient, and safe."
    />
  </div>

  <div id="why-us" data-section="why-us">
      <MetricCardTwo
      animationType="depth-3d"
      textboxLayout="default"
      gridVariant="uniform-all-items-equal"
      useInvertedBackground={true}
      metrics={[
        {
          id: "years",          value: "7+",          description: "Years of Dedicated Service"
        },
        {
          id: "reviews",          value: "80+",          description: "5-Star Customer Reviews"
        },
        {
          id: "emergency",          value: "24/7",          description: "Emergency Availability"
        },
        {
          id: "estimates",          value: "Free",          description: "Project Estimates"
        }
      ]}
      title="Why Constant Home Heating & Cooling?"
      description="We blend expertise, reliability, and unwavering commitment to customer satisfaction to deliver a truly exceptional service experience."
    />
  </div>

  <div id="team" data-section="team">
      <TeamCardOne
      animationType="slide-up"
      textboxLayout="default"
      gridVariant="four-items-2x2-equal-grid"
      useInvertedBackground={false}
      members={[
        {
          id: "member-1",          name: "David H.",          role: "Lead HVAC Technician",          imageSrc: "http://img.b2bpic.net/free-photo/repairmen-talking-phone-workshop_23-2147897948.jpg",          imageAlt: "David H., Lead HVAC Technician"
        },
        {
          id: "member-2",          name: "Sora Y.",          role: "Installation Specialist",          imageSrc: "http://img.b2bpic.net/free-photo/excited-attractive-girl-posing-pink-background-denim-overall-fashion-trend_285396-7167.jpg",          imageAlt: "Sora Y., Installation Specialist"
        },
        {
          id: "member-3",          name: "Joe K.",          role: "Senior Service Manager",          imageSrc: "http://img.b2bpic.net/free-photo/mechanic-working-car_52683-112395.jpg",          imageAlt: "Joe K., Senior Service Manager"
        },
        {
          id: "member-4",          name: "Veronica C.",          role: "Customer Comfort Advisor",          imageSrc: "http://img.b2bpic.net/free-photo/young-woman-warm-white-hoodie-home-kitchen-starts-her-day-with-cup-coffee_343596-7228.jpg",          imageAlt: "Veronica C., Customer Comfort Advisor"
        }
      ]}
      title="Meet Our Dedicated Team"
      description="Our friendly, skilled professionals are passionate about delivering top-tier service and ensuring your ultimate home comfort."
    />
  </div>

  <div id="social-proof" data-section="social-proof">
      <SocialProofOne
      textboxLayout="default"
      useInvertedBackground={true}
      names={[
        "http://img.b2bpic.net/free-vector/flat-winter-season-celebration-logo-template_23-2149822076.jpg",        "http://img.b2bpic.net/free-photo/save-world-ecology-environmental-conservation-perforated-paper-leaf_53876-16443.jpg",        "http://img.b2bpic.net/free-photo/fashionable-guy-posing-blue-suit_329181-18674.jpg",        "http://img.b2bpic.net/free-vector/flat-design-initials-logo-design_23-2150997452.jpg",        "http://img.b2bpic.net/free-photo/astronaut-monitoring-system-diagnostics-isolated-screen-tablet-chatting-with-colleague_482257-136495.jpg",        "http://img.b2bpic.net/free-photo/engineer-holding-blueprint-thumb-up_1357-334.jpg",        "http://img.b2bpic.net/free-photo/close-up-smiley-lawyer-holding-contract_23-2148230817.jpg"
      ]}
      title="Trusted by Homeowners Across London"
      description="We are proud to be recognized and certified by leading industry organizations and our valued community."
      speed={35}
    />
  </div>

  <div id="reviews" data-section="reviews">
      <TestimonialCardTen
      textboxLayout="split"
      useInvertedBackground={false}
      testimonials={[
        {
          id: "t-1",          title: "Exceptional Service and Value!",          quote: "Constant Home Heating & Cooling provided great service. They were professional, on time, efficient, and offered a fair price. I couldn't be happier!",          name: "Wanda Allen",          role: "Satisfied Homeowner",          imageSrc: "http://img.b2bpic.net/free-photo/full-shot-smiley-man-woman-home_23-2148899724.jpg",          imageAlt: "Wanda Allen"
        },
        {
          id: "t-2",          title: "Flawless Heat Pump Installation",          quote: "These guys are awesome! They got the heat pump dialled in, and it's been working flawlessly ever since. Highly recommend for any HVAC needs.",          name: "Black Blitz",          role: "Happy Customer",          imageSrc: "http://img.b2bpic.net/free-photo/happy-couple-embracing-sofa_23-2148363582.jpg",          imageAlt: "Black Blitz"
        },
        {
          id: "t-3",          title: "Detailed & Professional Work",          quote: "Great job on the installation! The technician paid attention to every detail, ensuring everything was perfect. Truly professional service.",          name: "COW CAT",          role: "Client",          imageSrc: "http://img.b2bpic.net/free-photo/pretty-student-girl-with-gathered-hair-make-up-relaxing-home-after-lectures-university-attractive-cheerful-young-woman-blue-dress-sitting-comfortable-couch-with-joyful-relaxed-smile_343059-2102.jpg",          imageAlt: "COW CAT"
        },
        {
          id: "t-4",          title: "Outstanding From Start to Finish",          quote: "The overall service from start to finish was excellent. Constant Home Heating & Cooling was prompt, courteous, and incredibly knowledgeable.",          name: "Paul Burgher",          role: "Homeowner, Waterloo",          imageSrc: "http://img.b2bpic.net/free-photo/indigenous-man-integrated-into-modern-life_23-2151128166.jpg",          imageAlt: "Paul Burgher"
        },
        {
          id: "t-5",          title: "Comfort & Savings!",          quote: "Constant Home Comfort installed my heat pump last September, and it's been amazing! My home's more comfortable, and my energy bills are lower. Highly recommend!",          name: "Veronica Che",          role: "London Resident",          imageSrc: "http://img.b2bpic.net/free-photo/african-woman-hugging-european-woman-they-stand-kitchen-laughing_8353-9992.jpg",          imageAlt: "Veronica Che"
        },
        {
          id: "t-6",          title: "Knowledgeable & Efficient Team",          quote: "The installation team was professional, efficient, and very knowledgeable. They took the time to answer all my questions and made sure everything was perfect.",          name: "Bing Wei",          role: "Furnace Replacement Client",          imageSrc: "http://img.b2bpic.net/free-photo/portrait-pretty-young-woman-home-sitting-kitchen-floor-looking-digital-tablet-using_1258-201720.jpg",          imageAlt: "Bing Wei"
        }
      ]}
      title="What Our Valued Customers Say"
      description="Hear directly from homeowners who've experienced the Constant Home Heating & Cooling difference."
    />
  </div>

  <div id="contact" data-section="contact">
      <FaqSplitText
      useInvertedBackground={true}
      faqs={[
        {
          id: "hours-mon-fri",          title: "Monday - Friday",          content: "8:00 AM - 5:00 PM (Regular Service & Consultations)"
        },
        {
          id: "hours-sat-sun",          title: "Saturday - Sunday",          content: "Closed (24/7 Emergency Service Available)"
        },
        {
          id: "emergency-service",          title: "24/7 Emergency Service",          content: "For urgent heating or cooling issues, our team is available around the clock. Call us anytime!"
        },
        {
          id: "free-estimate",          title: "Book Your Free Estimate",          content: "Ready for a new installation or upgrade? Contact us for a complimentary, no-obligation estimate today!"
        }
      ]}
      sideTitle="Visit Us or Schedule Service"
      sideDescription="We're here to help keep your home comfortable. Reach out via phone or visit our London location."
      buttons={[
        {
          text: "Call Now: +1 (519) XXX-XXXX",          href: "tel:+1519XXX-XXXX"
        },
        {
          text: "Get Directions",          href: "https://maps.app.goo.gl/YourBusinessAddress"
        }
      ]}
      faqsAnimation="blur-reveal"
      textPosition="left"
    />
  </div>

  <div id="cta-section" data-section="cta-section">
      <ContactSplitForm
      useInvertedBackground={false}
      title="Ready for Uninterrupted Comfort?"
      description="Don't wait for a breakdown. Secure your home's ideal climate with Constant Home Heating & Cooling's reliable services."
      inputs={[
        {
          name: "name",          type: "text",          placeholder: "Your Name",          required: true
        },
        {
          name: "phone",          type: "tel",          placeholder: "Phone Number",          required: true
        },
        {
          name: "email",          type: "email",          placeholder: "Email (Optional)"
        }
      ]}
      textarea={{
        name: "message",        placeholder: "How can we help you today?",        rows: 4
      }}
      imageSrc="http://img.b2bpic.net/free-photo/house-dark_1308-41406.jpg"
      imageAlt="Modern home exterior at dusk, warm and inviting"
      mediaAnimation="opacity"
      buttonText="Request Service Now"
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterLogoReveal
      logoSrc="http://img.b2bpic.net/free-photo/paper-style-isolation-assortment_23-2148998842.jpg"
      logoAlt="Constant Home Heating & Cooling Logo"
      logoText="Constant Home Heating & Cooling"
      leftLink={{
        text: "Call for Service: +1 (519) XXX-XXXX",        href: "tel:+1519XXX-XXXX"
      }}
      rightLink={{
        text: "Privacy Policy",        href: "/privacy"
      }}
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
