import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Inter } from "next/font/google";
import "./globals.css";
import "@/lib/gsap-setup";
import { ServiceWrapper } from "@/components/ServiceWrapper";
import Tag from "@/tag/Tag";
import { getVisualEditScript } from "@/utils/visual-edit-script";



export const metadata: Metadata = {
  title: 'Motion3D Studio | Cinematic Animation & CGI',
  description: 'Premier studio specializing in high-end 3D animation, motion graphics, and CGI storytelling for forward-thinking brands.',
  keywords: ["3d animation, motion graphics, cgi studio, motion design, 3d branding, character animation"],
  openGraph: {
    "title": "Motion3D Studio | Cinematic Animation & CGI",
    "description": "Bring your ideas to life with world-class 3D animation services.",
    "siteName": "Motion3D Studio",
    "type": "website"
  },
};

const inter = Inter({
  variable: "--font-inter",
  subsets: ["latin"],
});

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en" suppressHydrationWarning>
      <ServiceWrapper>
        <body className={`${inter.variable} antialiased`}>
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
