"use client"

import { useState } from "react"
import { Navigation } from "@/components/navigation"
import { HeroSection } from "@/components/hero-section"
import { AboutSection } from "@/components/about-section"
import { ServicesSection } from "@/components/services-section"
import { ProjectsSection } from "@/components/projects-section"
import { QualitySafetySection } from "@/components/quality-safety-section"
import { ContactSection } from "@/components/contact-section"
import { Footer } from "@/components/footer"
import { QuoteModal } from "@/components/quote-modal"
import { LoadingScreen } from "@/components/loading-screen"

export default function HomePage() {
  const [isQuoteModalOpen, setIsQuoteModalOpen] = useState(false)

  return (
    <>
      <LoadingScreen />
      
      <Navigation onQuoteClick={() => setIsQuoteModalOpen(true)} />
      
      <main>
        <HeroSection onQuoteClick={() => setIsQuoteModalOpen(true)} />
        <AboutSection />
        <ServicesSection />
        <ProjectsSection />
        <QualitySafetySection />
        <ContactSection />
      </main>
      
      <Footer onQuoteClick={() => setIsQuoteModalOpen(true)} />
      
      <QuoteModal 
        isOpen={isQuoteModalOpen} 
        onClose={() => setIsQuoteModalOpen(false)} 
      />
    </>
  )
}
