"use client";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroBillboard from '@/components/sections/hero/HeroBillboard';
import FeatureCardSeven from '@/components/sections/feature/FeatureCardSeven';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import MediaAbout from '@/components/sections/about/MediaAbout';
import TestimonialCardFifteen from '@/components/sections/testimonial/TestimonialCardFifteen';
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';
import { Award, Calendar, CheckCircle, Star, Zap } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="directional-hover"
      defaultTextAnimation="reveal-blur"
      borderRadius="rounded"
      contentWidth="medium"
      sizing="largeSmallSizeMediumTitles"
      background="circleGradient"
      cardStyle="glass-elevated"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          brandName="RJ Library"
          navItems={[
            { name: "Amenities", id: "amenities" },
            { name: "About", id: "about" },
            { name: "Reviews", id: "testimonials" },
            { name: "Pricing", id: "pricing" },
            { name: "Contact", id: "contact" },
          ]}
          button={{ text: "Book Now", href: "contact" }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboard
          title="Muzaffarpur's #1 Rated Study Library"
          description="Join 100+ successful students at RJ Library. Peaceful environment, comfortable seating, and an in-house cafeteria. Open until 10 PM. Everything you need to focus, study, and succeed."
          tag="4.9★ Google | 120+ Reviews"
          tagIcon={Star}
          background={{ variant: "sparkles-gradient" }}
          buttons={[
            { text: "📞 Call Now: 082268 82288", href: "tel:+918226882288" },
            { text: "Book Free Demo Seat", href: "#contact" },
          ]}
          imageSrc="http://img.b2bpic.net/free-photo/young-man-library_23-2147678889.jpg?_wi=1"
          imageAlt="RJ Library study environment with comfortable seating"
          mediaAnimation="slide-up"
        />
      </div>

      <div id="amenities" data-section="amenities">
        <FeatureCardSeven
          title="Premium Amenities for Peak Performance"
          description="Every detail designed to help you study longer, focus better, and achieve more without distractions."
          tag="What Makes Us Different"
          tagIcon={Zap}
          textboxLayout="default"
          animationType="blur-reveal"
          useInvertedBackground={false}
          features={[
            {
              id: 1,
              title: "Ergonomic Seating",              description: "Premium chairs designed to keep you comfortable for 8+ hours. Focus longer without back pain or fatigue.",              imageSrc: "http://img.b2bpic.net/free-photo/still-life-office-chair-indoors_23-2151108727.jpg",              imageAlt: "Comfortable ergonomic study chairs"
            },
            {
              id: 2,
              title: "High-Speed Wi-Fi",              description: "Ultra-fast internet for seamless online classes, research, and video lectures. Stay connected 24/7.",              imageSrc: "http://img.b2bpic.net/free-photo/5g-text-mobile-phone_23-2148291165.jpg",              imageAlt: "High-speed wifi connectivity"
            },
            {
              id: 3,
              title: "In-House Cafeteria",              description: "Fresh food, tea, and coffee available without leaving the library. Stay nourished and focused all day.",              imageSrc: "http://img.b2bpic.net/free-photo/side-view-fresh-broccoli-salad-white-bowl-table_140725-12888.jpg",              imageAlt: "Modern cafeteria with food and beverages"
            },
            {
              id: 4,
              title: "Private Lockers",              description: "Secure storage for your books, laptops, and valuables. Study with complete peace of mind.",              imageSrc: "http://img.b2bpic.net/free-photo/director-listening-music-warehouse_482257-75326.jpg",              imageAlt: "Secure locker storage system"
            },
            {
              id: 5,
              title: "Power Backup",              description: "Uninterrupted power during outages. Your study sessions never stop, even during blackouts.",              imageSrc: "http://img.b2bpic.net/free-photo/electrician-builder-work-examines-cable-connection-electrical-line-fuselage-industrial-switchboard-professional-overalls-with-electrician-s-tool_169016-7335.jpg",              imageAlt: "Power backup system infrastructure"
            },
          ]}
        />
      </div>

      <div id="socialProof" data-section="socialProof">
        <SocialProofOne
          title="Trusted by Students Across North Bihar"
          description="Join hundreds of competitive exam aspirants and long-term students who have achieved their goals at RJ Library."
          tag="Social Proof"
          tagIcon={CheckCircle}
          textboxLayout="default"
          useInvertedBackground={false}
          names={[
            "500+ Students Served",            "15+ Competitive Exams Cracked",            "4.9★ Google Rating",            "120+ Verified Reviews",            "10+ Years Experience",            "24/7 Study Access",            "Open Until 10 PM"
          ]}
          speed={40}
          showCard={true}
        />
      </div>

      <div id="about" data-section="about">
        <MediaAbout
          title="Why RJ Library?"
          description="Located in Daudpur Kothi, Muzaffarpur, RJ Library is the best self-study environment in North Bihar. We combine premium amenities (cafeteria, lockers, AC, high-speed Wi-Fi) with 100% silent, distraction-free spaces. Perfect for UPSC, SSC, NEET, JEE, and other competitive exam aspirants."
          tag="About RJ Library"
          tagIcon={Award}
          buttons={[
            { text: "📍 Get Directions", href: "https://maps.google.com/?q=RJ+Library+Daudpur+Kothi+Muzaffarpur" },
            { text: "📞 Call Us Now", href: "tel:+918226882288" },
          ]}
          imageSrc="http://img.b2bpic.net/free-photo/young-man-library_23-2147678889.jpg?_wi=2"
          imageAlt="RJ Library premises Daudpur Kothi Muzaffarpur"
          useInvertedBackground={false}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFifteen
          testimonial="The canteen facility and comfortable seating have completely changed my study routine. I can now focus for 10+ hours without fatigue. Highly recommended for competitive exam prep!"
          rating={5}
          author="Ayush Jha, UPSC Aspirant"
          avatars={[
            { src: "http://img.b2bpic.net/free-photo/blonde-businesswoman_23-2147626494.jpg", alt: "Ayush Jha" },
            { src: "http://img.b2bpic.net/free-photo/young-handsome-man-grey-shirt-looking-aside-smiling-confident-with-arms-crossed-chest_141793-55366.jpg", alt: "Student 2" },
            { src: "http://img.b2bpic.net/free-photo/smiling-homosexual-man-official-suit-looking-camera-close-up-shot-happy-gay-getting-dressed-wedding-ceremony-standing-hotel-room-with-his-partner-background-love-emotion-concept_74855-22675.jpg", alt: "Student 3" },
            { src: "http://img.b2bpic.net/free-photo/portrait-professional-businesswoman-indoors_23-2148824826.jpg", alt: "Student 4" },
          ]}
          ratingAnimation="slide-up"
          avatarsAnimation="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCenter
          tag="Reserve Your Seat"
          tagIcon={Calendar}
          title="Book Your Free Demo Seat Today"
          description="Get instant access to our premium study environment. Reserve your seat and experience the difference."
          background={{ variant: "sparkles-gradient" }}
          useInvertedBackground={false}
          inputPlaceholder="Enter your phone number"
          buttonText="Book Now"
          termsText="We'll send you SMS details and WhatsApp confirmation. Your seat preference will be registered immediately."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoEmphasis
          logoText="RJ Library"
          columns={[
            {
              items: [
                { label: "About Us", href: "#about" },
                { label: "Amenities", href: "#amenities" },
                { label: "Reviews", href: "#testimonials" },
              ],
            },
            {
              items: [
                { label: "📍 Location: Daudpur Kothi, Muzaffarpur", href: "https://maps.google.com/?q=RJ+Library+Daudpur+Kothi+Muzaffarpur" },
                { label: "📞 Call: 082268 82288", href: "tel:+918226882288" },
                { label: "⏰ Open Until 10 PM", href: "#" },
              ],
            },
            {
              items: [
                { label: "Book a Seat", href: "#contact" },
                { label: "Contact Us", href: "#contact" },
                { label: "Privacy Policy", href: "#" },
              ],
            },
          ]}
        />
      </div>
    </ThemeProvider>
  );
}
