import Navbar from './components/Navbar';
import Hero from './components/Hero';
import Works from './components/Works';
import Services from './components/Services';
import Clients from './components/Clients';
import Process from './components/Process';
import About from './components/About';
import Contact from './components/Contact';
import Footer from './components/Footer';
import DynamicBackground from './components/DynamicBackground';
import Admin from './components/Admin';
import SEO from './components/SEO';

export default function App() {
  const isSysop = window.location.pathname === '/sysop';

  if (isSysop) {
    return (
      <div className="min-h-screen bg-[#050505]">
        <Admin forceOpen={true} />
      </div>
    );
  }

  return (
    <div className="min-h-screen relative bg-[#050505]">
      <SEO />
      <DynamicBackground />
      <div className="relative z-10">
        <Navbar />
        <main>
          <Hero />
          <Works />
          <Services />
          <Clients />
          <Process />
          <About />
          <Contact />
        </main>
        <Footer />
      </div>
    </div>
  );
}
