"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import HeroCarouselLogo from '@/components/sections/hero/heroCarouselLogo/HeroCarouselLogo';
import TextSplitAbout from '@/components/sections/about/TextSplitAbout';
import FeatureCardOne from '@/components/sections/feature/FeatureCardOne';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import MetricCardFourteen from '@/components/sections/metrics/MetricCardFourteen';
import TestimonialCardTen from '@/components/sections/testimonial/TestimonialCardTen';
import ContactFaq from '@/components/sections/contact/ContactFaq';
import FooterBase from '@/components/sections/footer/FooterBase';
import { Phone } from 'lucide-react';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="mediumSmall"
      sizing="mediumLargeSizeLargeTitles"
      background="none"
      cardStyle="subtle-shadow"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="solid"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={[
            { name: "Home", id: "home" },
            { name: "About", id: "about" },
            { name: "Services", id: "services" },
            { name: "Contact", id: "contact" }
          ]}
          brandName="Trident Law"
          bottomLeftText="Trusted Legal Counsel"
          bottomRightText="contact@tridentlaw.com"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroCarouselLogo
          logoText="TRIDENT LAW"
          description="Dedicated personal injury attorneys fighting for your rights. Proven track record of securing maximum compensation for our clients."
          buttons={[
            { text: "Free Consultation", href: "contact" },
            { text: "Learn More", href: "about" }
          ]}
          slides={[
            { imageSrc: "http://img.b2bpic.net/free-photo/mature-man-using-laptop-while-checking-document-paper-courtroom_23-2147898547.jpg", imageAlt: "Law office professional environment" }
          ]}
          autoplayDelay={5000}
          showDimOverlay={true}
          ariaLabel="Hero section with Trident Law branding"
        />
      </div>

      <div id="about" data-section="about">
        <TextSplitAbout
          title="About Trident Law"
          description={[
            "Trident Law is a leading personal injury law firm dedicated to representing clients injured through no fault of their own. With over two decades of combined experience, our team of skilled attorneys has successfully recovered millions of dollars for our clients.",            "We believe that every client deserves personalized attention and aggressive representation. Our approach is simple: listen to your story, investigate thoroughly, and fight relentlessly for the compensation you deserve. We work on contingency, meaning you pay nothing unless we win.",            "From car accidents to workplace injuries, medical malpractice to product liability, we have the expertise and resources to handle complex personal injury cases."
          ]}
          buttons={[
            { text: "Our Team", href: "services" }
          ]}
          showBorder={true}
          useInvertedBackground={false}
          ariaLabel="About Trident Law section"
        />
      </div>

      <div id="services" data-section="services">
        <FeatureCardOne
          title="Our Legal Services"
          description="Comprehensive personal injury representation tailored to your specific case. We handle every aspect of your claim with professionalism and dedication."
          tag="Services"
          features={[
            {
              title: "Case Evaluation",              description: "We provide thorough case assessments to determine the strength of your claim and potential compensation.",              imageSrc: "http://img.b2bpic.net/free-photo/member-human-resource-team-talking-with-candidate-while-reviewing-his-resume-job-interview-office_637285-6535.jpg?_wi=1",              imageAlt: "Legal consultation services"
            },
            {
              title: "Investigation",              description: "Our team conducts detailed investigations, gathering evidence, expert testimony, and documentation to build a strong case.",              imageSrc: "http://img.b2bpic.net/free-photo/background-blank-paper-medicine-desk_1232-4182.jpg?_wi=1",              imageAlt: "Case investigation and documentation"
            },
            {
              title: "Negotiation & Litigation",              description: "We negotiate aggressively with insurance companies and are prepared to take your case to trial if necessary.",              imageSrc: "http://img.b2bpic.net/free-photo/business-people-discussing-cafe_53876-15158.jpg?_wi=1",              imageAlt: "Legal representation and court proceedings"
            }
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={true}
          ariaLabel="Legal services section"
        />
      </div>

      <div id="practice-areas" data-section="practice-areas">
        <ProductCardTwo
          title="Practice Areas"
          description="We specialize in a wide range of personal injury cases, providing expert legal representation across multiple practice areas."
          tag="Expertise"
          products={[
            {
              id: "1",              brand: "Trident Law",              name: "Motor Vehicle Accidents",              price: "No Upfront Fees",              rating: 5,
              reviewCount: "450+",              imageSrc: "http://img.b2bpic.net/free-photo/member-human-resource-team-talking-with-candidate-while-reviewing-his-resume-job-interview-office_637285-6535.jpg?_wi=2",              imageAlt: "Car accident representation"
            },
            {
              id: "2",              brand: "Trident Law",              name: "Medical Malpractice",              price: "Contingency Basis",              rating: 5,
              reviewCount: "320+",              imageSrc: "http://img.b2bpic.net/free-photo/background-blank-paper-medicine-desk_1232-4182.jpg?_wi=2",              imageAlt: "Medical malpractice cases"
            },
            {
              id: "3",              brand: "Trident Law",              name: "Workplace Injuries",              price: "Free Consultation",              rating: 5,
              reviewCount: "380+",              imageSrc: "http://img.b2bpic.net/free-photo/business-people-discussing-cafe_53876-15158.jpg?_wi=2",              imageAlt: "Workers compensation cases"
            },
            {
              id: "4",              brand: "Trident Law",              name: "Product Liability",              price: "No Recovery, No Fee",              rating: 5,
              reviewCount: "210+",              imageSrc: "http://img.b2bpic.net/free-photo/member-human-resource-team-talking-with-candidate-while-reviewing-his-resume-job-interview-office_637285-6535.jpg?_wi=3",              imageAlt: "Product liability claims"
            },
            {
              id: "5",              brand: "Trident Law",              name: "Slip & Fall",              price: "Contingency Basis",              rating: 5,
              reviewCount: "290+",              imageSrc: "http://img.b2bpic.net/free-photo/background-blank-paper-medicine-desk_1232-4182.jpg?_wi=3",              imageAlt: "Premises liability cases"
            }
          ]}
          gridVariant="two-columns-alternating-heights"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          ariaLabel="Practice areas section"
        />
      </div>

      <div id="why-choose" data-section="why-choose">
        <MetricCardFourteen
          title="Why choose Trident Law for your personal injury claim? Our proven results speak for themselves."
          tag="Our Track Record"
          metrics={[
            { id: "1", value: "$150M+", description: "Total compensation recovered for our clients over the past 20 years." },
            { id: "2", value: "98%", description: "Client satisfaction rate. We measure success by your recovery and peace of mind." },
            { id: "3", value: "5000+", description: "Cases successfully resolved. Each one represents our commitment to justice." },
            { id: "4", value: "24/7", description: "Available support. We're here for you whenever you need us." }
          ]}
          metricsAnimation="slide-up"
          useInvertedBackground={true}
          ariaLabel="Why choose us metrics section"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTen
          title="Client Success Stories"
          description="Real clients, real results. Hear from those we've helped recover their lives and secure the compensation they deserved."
          tag="Testimonials"
          testimonials={[
            {
              id: "1",              title: "Life-Changing Settlement",              quote: "After my car accident, I didn't know what to do. Trident Law took care of everything and secured a settlement that changed my life. Their team was compassionate and professional throughout the entire process.",              name: "Sarah Martinez",              role: "Accident Victim",              imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg?_wi=1",              imageAlt: "Sarah Martinez testimonial"
            },
            {
              id: "2",              title: "Expert Medical Malpractice Representation",              quote: "When I was injured due to medical negligence, I turned to Trident Law. They fought tirelessly and won me a substantial settlement. I'm grateful for their expertise and dedication.",              name: "James Wilson",              role: "Medical Malpractice Victim",              imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg?_wi=2",              imageAlt: "James Wilson testimonial"
            },
            {
              id: "3",              title: "Workers' Compensation Victory",              quote: "My workplace injury left me unable to work. Trident Law's team was knowledgeable and supportive every step of the way. They secured the compensation I needed to recover.",              name: "Michael Thompson",              role: "Injured Worker",              imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg?_wi=3",              imageAlt: "Michael Thompson testimonial"
            },
            {
              id: "4",              title: "Exceptional Support and Results",              quote: "From start to finish, Trident Law provided exceptional support. They kept me informed, answered all my questions, and delivered results that exceeded my expectations.",              name: "Jennifer Lee",              role: "Product Liability Claimant",              imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg?_wi=4",              imageAlt: "Jennifer Lee testimonial"
            },
            {
              id: "5",              title: "Compassionate Legal Advocacy",              quote: "Trident Law treated me with compassion during a difficult time. Their compassionate approach combined with aggressive legal strategy resulted in a favorable outcome.",              name: "David Rodriguez",              role: "Slip and Fall Victim",              imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg?_wi=5",              imageAlt: "David Rodriguez testimonial"
            },
            {
              id: "6",              title: "Dedicated to Client Success",              quote: "The attorneys at Trident Law are dedicated to their clients. They fought hard for me and secured a settlement that allowed me to move forward with my life.",              name: "Amanda Foster",              role: "Accident Victim",              imageSrc: "http://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg?_wi=6",              imageAlt: "Amanda Foster testimonial"
            }
          ]}
          textboxLayout="default"
          useInvertedBackground={false}
          ariaLabel="Client testimonials section"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactFaq
          ctaTitle="Schedule Your Free Consultation"
          ctaDescription="Contact us today to discuss your case with a skilled personal injury attorney. We're here to help."
          ctaButton={{ text: "Schedule Now", href: "#contact" }}
          ctaIcon={Phone}
          faqs={[
            {
              id: "1",              title: "How long do I have to file a personal injury claim?",              content: "The statute of limitations varies by state and claim type, but typically ranges from 1-3 years. It's crucial to act quickly to preserve evidence and protect your rights. Contact us immediately for guidance."
            },
            {
              id: "2",              title: "What does your contingency fee arrangement mean?",              content: "We work on contingency, meaning you pay us nothing upfront. We only collect a fee if we successfully recover compensation for you. This aligns our interests with yours."
            },
            {
              id: "3",              title: "How much is my case worth?",              content: "Case value depends on factors including medical expenses, lost wages, pain and suffering, and liability. During your free consultation, we'll evaluate your specific situation."
            },
            {
              id: "4",              title: "Will my case go to trial?",              content: "Most cases settle, but we're fully prepared to take your case to trial if necessary. We'll discuss strategy and options during our consultation."
            }
          ]}
          useInvertedBackground={true}
          animationType="slide-up"
          ariaLabel="Contact and FAQ section"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBase
          logoText="Trident Law"
          copyrightText="© 2025 Trident Law. All rights reserved."
          columns={[
            {
              title: "Practice Areas",              items: [
                { label: "Motor Vehicle Accidents", href: "practice-areas" },
                { label: "Medical Malpractice", href: "practice-areas" },
                { label: "Workplace Injuries", href: "practice-areas" },
                { label: "Product Liability", href: "practice-areas" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "about" },
                { label: "Our Team", href: "about" },
                { label: "Testimonials", href: "testimonials" },
                { label: "Contact", href: "contact" }
              ]
            },
            {
              title: "Legal",              items: [
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" },
                { label: "Disclaimer", href: "#" }
              ]
            }
          ]}
          ariaLabel="Site footer"
        />
      </div>
    </ThemeProvider>
  );
}
