// app/under-construction/page.tsx (App Router)
// or pages/under-construction.tsx (Pages Router)

"use client";

import Link from "next/link";
import { useRouter } from "next/navigation";
import { useEffect } from "react";

export default function Home() {
  const router = useRouter();

  useEffect(() => {
    router.replace("/clients"); // instantly redirect
  }, [router]);
  
  return (
    <main className="flex flex-col items-center justify-center min-h-screen bg-black text-white px-6">
      <h1 className="text-6xl font-extrabold bg-gradient-to-r from-purple-400 via-pink-500 to-red-500 bg-clip-text text-transparent">
        🚧 Under Construction
      </h1>
      <p className="mt-6 text-lg text-gray-400 max-w-xl text-center">
        We’re working hard to bring you something amazing. This dashboard is
        still in progress — check back soon!
      </p>

      <div className="mt-8 flex gap-4">
        <Link
          href="/"
          className="px-6 py-3 bg-white text-black rounded-lg font-semibold hover:bg-gray-200 transition"
        >
          Go to Homepage
        </Link>
        <Link
          href="/contact"
          className="px-6 py-3 border border-white text-white rounded-lg font-semibold hover:bg-gray-900 transition"
        >
          Contact Us
        </Link>
      </div>

      <footer className="mt-12 text-sm text-gray-500">
        © {new Date().getFullYear()} Samastha Finance. All rights reserved.
      </footer>
    </main>
  );
}
