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";
import { Montserrat } from "next/font/google";



export const metadata: Metadata = {
  title: 'My Creative Hub - Portfolio & Services',
  description: 'Explore the creative portfolio of [Bestfriend\'s Name], showcasing unique designs, motion graphics, and brand strategies. Let\'s bring your vision to life.',
  keywords: ["creative portfolio, graphic design, motion graphics, brand strategy, web design, digital art, freelance designer, personal website"],
  openGraph: {
    "title": "My Creative Hub - Portfolio & Services",
    "description": "Explore the creative portfolio of [Bestfriend's Name], showcasing unique designs, motion graphics, and brand strategies. Let's bring your vision to life.",
    "url": "https://www.yourcreativehub.com",
    "siteName": "My Creative Hub",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/high-end-home-office-trendy-loft-apartment-with-empty-desk_482257-122616.jpg",
        "alt": "Creative workspace"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "My Creative Hub - Portfolio & Services",
    "description": "Explore the creative portfolio of [Bestfriend's Name], showcasing unique designs, motion graphics, and brand strategies. Let's bring your vision to life.",
    "images": [
      "http://img.b2bpic.net/free-photo/high-end-home-office-trendy-loft-apartment-with-empty-desk_482257-122616.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const montserrat = Montserrat({
  variable: "--font-montserrat",
  subsets: ["latin"],
});
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={`${montserrat.variable} ${inter.variable} antialiased`}>
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
