"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import ContactText from '@/components/sections/contact/ContactText';
import FaqSplitText from '@/components/sections/faq/FaqSplitText';
import FeatureCardSixteen from '@/components/sections/feature/FeatureCardSixteen';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
import HeroBillboard from '@/components/sections/hero/HeroBillboard';
import MetricCardFourteen from '@/components/sections/metrics/MetricCardFourteen';
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne';
import TextAbout from '@/components/sections/about/TextAbout';

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="hover-magnetic"
        defaultTextAnimation="entrance-slide"
        borderRadius="pill"
        contentWidth="small"
        sizing="mediumSizeLargeTitles"
        background="grid"
        cardStyle="gradient-mesh"
        primaryButtonStyle="primary-glow"
        secondaryButtonStyle="radial-glow"
        headingFontWeight="normal"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarLayoutFloatingInline
      navItems={[
        {
          name: "Home",
          id: "#hero",
        },
        {
          name: "Services",
          id: "#services",
        },
        {
          name: "About Us",
          id: "#about",
        },
        {
          name: "Testimonials",
          id: "#testimonials",
        },
        {
          name: "FAQ",
          id: "#faq",
        },
        {
          name: "Contact",
          id: "#contact",
        },
      ]}
      brandName="Bangalore HVAC Experts"
      button={{
        text: "Get a Free Quote",
        href: "#contact",
      }}
      animateOnLoad={true}
    />
  </div>

  <div id="hero" data-section="hero">
      <HeroBillboard
      background={{
        variant: "radial-gradient",
      }}
      title="Your Comfort, Our Priority in Bangalore"
      description="Expert HVAC services for homes and businesses in Bangalore. Fast, reliable, and energy-efficient solutions for optimal indoor climate."
      buttons={[
        {
          text: "Get a Free Quote",
          href: "#contact",
        },
        {
          text: "Explore Services",
          href: "#services",
        },
      ]}
      imageSrc="http://img.b2bpic.net/free-photo/medium-shot-woman-starting-heater_23-2149335103.jpg"
      imageAlt="HVAC technician fixing an outdoor unit in Bangalore"
      mediaAnimation="slide-up"
      avatars={[
        {
          src: "asset://hero-avatar-1",
          alt: "Smiling young woman",
        },
        {
          src: "asset://hero-avatar-2",
          alt: "Confident professional",
        },
        {
          src: "asset://hero-avatar-3",
          alt: "Happy couple",
        },
        {
          src: "asset://hero-avatar-4",
          alt: "Joyful family",
        },
        {
          src: "asset://hero-avatar-5",
          alt: "Satisfied client",
        },
      ]}
      avatarText="Trusted by over 1500+ happy clients in Bangalore!"
      marqueeItems={[
        {
          type: "text",
          text: "Reliable Service",
        },
        {
          type: "text",
          text: "24/7 Support",
        },
        {
          type: "text",
          text: "Energy Efficiency",
        },
        {
          type: "text",
          text: "Certified Technicians",
        },
        {
          type: "text",
          text: "Customer Satisfaction",
        },
      ]}
      marqueeSpeed={40}
    />
  </div>

  <div id="about" data-section="about">
      <TextAbout
      useInvertedBackground={false}
      tag="About Us"
      title="Leading HVAC Solutions Across Bangalore"
      description="With years of dedicated experience, we provide top-tier heating, ventilation, and air conditioning services to homes and businesses across Bangalore. Our team of certified and highly skilled technicians is committed to ensuring optimal comfort and superior air quality for every client, every time. We pride ourselves on reliability, efficiency, and unparalleled customer service."
    />
  </div>

  <div id="features" data-section="features">
      <FeatureCardSixteen
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={true}
      negativeCard={{
        items: [
          "Unexpected breakdowns",
          "High energy bills",
          "Poor indoor air quality",
          "Inefficient cooling/heating",
          "Frequent repairs",
          "Unreliable contractors",
        ],
      }}
      positiveCard={{
        items: [
          "New AC & HVAC Installation",
          "Prompt Emergency Repairs",
          "Preventative Maintenance Plans",
          "Duct Cleaning & Air Quality",
          "Commercial HVAC Solutions",
          "Smart Thermostat Integration",
        ],
      }}
      title="Comprehensive HVAC Services You Can Trust"
      description="From precise installations to emergency repairs and proactive maintenance, we cover all your heating and cooling needs with unmatched expertise and meticulous care. Our tailored solutions ensure your system runs efficiently, saving you money and providing consistent comfort."
      tag="Our Expertise"
    />
  </div>

  <div id="metrics" data-section="metrics">
      <MetricCardFourteen
      useInvertedBackground={false}
      title="Our Commitment to Excellence in Numbers"
      tag="Trusted Performance"
      metrics={[
        {
          id: "years",
          value: "15+",
          description: "Years of Dedicated Service in Bangalore",
        },
        {
          id: "customers",
          value: "1500+",
          description: "Satisfied Residential & Commercial Clients",
        },
        {
          id: "response",
          value: "24/7",
          description: "Emergency HVAC Service Availability",
        },
      ]}
      metricsAnimation="slide-up"
    />
  </div>

  <div id="services" data-section="services">
      <ProductCardOne
      animationType="slide-up"
      textboxLayout="default"
      gridVariant="three-columns-all-equal-width"
      useInvertedBackground={true}
      products={[
        {
          id: "ac-installation",
          name: "New AC Installation",
          price: "Starting ₹15,000",
          imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=wurd5f",
          imageAlt: "Icon for AC installation",
        },
        {
          id: "hvac-repair",
          name: "HVAC Repair & Diagnostics",
          price: "Call for Quote",
          imageSrc: "http://img.b2bpic.net/free-photo/defective-external-air-conditioner_482257-91071.jpg",
          imageAlt: "Icon for HVAC repair",
        },
        {
          id: "maintenance",
          name: "Preventative Maintenance",
          price: "Starting ₹2,500/yr",
          imageSrc: "http://img.b2bpic.net/free-photo/hvac-system-refrigerant-tank-check_482257-85115.jpg",
          imageAlt: "Icon for preventative maintenance",
        },
        {
          id: "commercial-hvac",
          name: "Commercial HVAC Solutions",
          price: "Custom Quote",
          imageSrc: "http://img.b2bpic.net/free-photo/investor-visiting-industry-40-solar-panels-plant-talking-with-engineers_482257-126172.jpg",
          imageAlt: "Icon for commercial HVAC",
        },
        {
          id: "smart-thermostat",
          name: "Smart Thermostat Integration",
          price: "Starting ₹5,000",
          imageSrc: "http://img.b2bpic.net/free-photo/front-view-abandoned-house-with-fence_23-2149454799.jpg",
          imageAlt: "Icon for smart thermostat",
        },
        {
          id: "air-purification",
          name: "Indoor Air Quality & Purification",
          price: "Starting ₹3,000",
          imageSrc: "http://img.b2bpic.net/free-photo/man-putting-up-decorative-vinyl_23-2149728640.jpg",
          imageAlt: "Icon for air purification",
        },
      ]}
      title="Tailored HVAC Solutions for Every Need"
      description="Explore our comprehensive range of services designed to keep your indoor environment perfectly conditioned and comfortable, all year round. We offer bespoke solutions for every scale and requirement."
      tag="Our Offerings"
    />
  </div>

  <div id="testimonials" data-section="testimonials">
      <TestimonialCardOne
      animationType="slide-up"
      textboxLayout="default"
      gridVariant="three-columns-all-equal-width"
      useInvertedBackground={false}
      testimonials={[
        {
          id: "1",
          name: "Priya Sharma",
          role: "Homeowner",
          company: "Whitefield",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/waitress-businessman_1098-13006.jpg",
          imageAlt: "Priya Sharma, satisfied customer",
        },
        {
          id: "2",
          name: "Rajesh Kumar",
          role: "Restaurant Owner",
          company: "Koramangala",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/thoughtful-designer-discussing-new-design-with-client-making-notes_74855-10428.jpg",
          imageAlt: "Rajesh Kumar, satisfied business owner",
        },
        {
          id: "3",
          name: "Anjali Singh",
          role: "Apartment Resident",
          company: "Indiranagar",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/happy-young-lady-listening-music_171337-14089.jpg",
          imageAlt: "Anjali Singh, satisfied resident",
        },
        {
          id: "4",
          name: "Sanjay Rao",
          role: "Office Manager",
          company: "Electronic City",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/full-shot-man-playing-guitar_23-2149223626.jpg",
          imageAlt: "Sanjay Rao, satisfied office manager",
        },
        {
          id: "5",
          name: "Deepa Menon",
          role: "Villa Owner",
          company: "Sarjapur Road",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/portrait-woman-with-cancer-having-drink-home_23-2151056034.jpg",
          imageAlt: "Deepa Menon, satisfied villa owner",
        },
        {
          id: "6",
          name: "Vivek Patel",
          role: "Retail Store Owner",
          company: "Jayanagar",
          rating: 5,
          imageSrc: "http://img.b2bpic.net/free-photo/pretty-young-woman-with-long-hair-sitting-cafe-with-phone-man_273609-6373.jpg",
          imageAlt: "Vivek Patel, satisfied store owner",
        },
      ]}
      title="What Our Bangalore Clients Say About Us"
      description="Hear directly from our many satisfied customers about their exceptional experience with our reliable, efficient, and professional HVAC services. Your comfort is our greatest reward."
      tag="Client Success"
    />
  </div>

  <div id="faq" data-section="faq">
      <FaqSplitText
      useInvertedBackground={true}
      faqs={[
        {
          id: "1",
          title: "How often should I get my AC serviced?",
          content: "We recommend getting your AC serviced at least once a year, ideally before the summer season starts, to ensure optimal performance and energy efficiency. For commercial units, bi-annual servicing might be beneficial.",
        },
        {
          id: "2",
          title: "What are the signs that my HVAC system needs repair?",
          content: "Common signs include unusual noises (grinding, squealing), weak airflow, inconsistent temperatures, strange odors, higher-than-normal energy bills, or water leaks around the unit. If you notice any of these, it's best to call for a professional inspection.",
        },
        {
          id: "3",
          title: "Do you offer emergency HVAC repair services in Bangalore?",
          content: "Yes, we provide 24/7 emergency HVAC repair services across Bangalore. Our rapid response team is always ready to address your urgent heating or cooling issues to restore your comfort swiftly.",
        },
        {
          id: "4",
          title: "What types of HVAC systems do you install?",
          content: "We install a wide range of HVAC systems, including central air conditioning, ductless mini-splits, heat pumps, furnaces, and ventilation systems for both residential and commercial properties. We help you choose the best system for your specific needs and budget.",
        },
      ]}
      sideTitle="Common Questions About HVAC Services"
      sideDescription="Find quick and comprehensive answers to frequently asked questions about our HVAC services, maintenance plans, and operational procedures in Bangalore."
      faqsAnimation="slide-up"
      textPosition="left"
      showCard={true}
    />
  </div>

  <div id="contact" data-section="contact">
      <ContactText
      useInvertedBackground={false}
      background={{
        variant: "sparkles-gradient",
      }}
      text="Ready for optimal comfort? Contact us today for a free consultation or emergency service in Bangalore!"
      buttons={[
        {
          text: "Call Us Now",
          href: "tel:+919876543210",
        },
        {
          text: "Schedule Service",
          href: "mailto:info@bangalorehvac.com",
        },
      ]}
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterBaseCard
      logoText="Bangalore HVAC Experts"
      columns={[
        {
          title: "Services",
          items: [
            {
              label: "AC Installation",
              href: "#services",
            },
            {
              label: "HVAC Repair",
              href: "#services",
            },
            {
              label: "Maintenance Plans",
              href: "#services",
            },
            {
              label: "Air Quality",
              href: "#services",
            },
          ],
        },
        {
          title: "Company",
          items: [
            {
              label: "About Us",
              href: "#about",
            },
            {
              label: "Our Team",
              href: "#team",
            },
            {
              label: "Careers",
              href: "#",
            },
            {
              label: "Contact",
              href: "#contact",
            },
          ],
        },
        {
          title: "Resources",
          items: [
            {
              label: "FAQ",
              href: "#faq",
            },
            {
              label: "Blog",
              href: "#blog",
            },
            {
              label: "Testimonials",
              href: "#testimonials",
            },
            {
              label: "Privacy Policy",
              href: "#",
            },
          ],
        },
      ]}
      copyrightText="© 2024 Bangalore HVAC Experts. All rights reserved."
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
