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



export const metadata: Metadata = {
  title: 'AI Health 3D: Personalized Nutrition & Facial Bone Analysis',
  description: 'Harness the power of AI and 3D technology for personalized healthy eating plans and advanced facial bone system development analysis. Transform your health journey with AI Health 3D.',
  keywords: ["AI health, 3D technology, healthy eating, facial bone development, personalized nutrition, AI platform, digital health, wellness, anatomical analysis"],
  openGraph: {
    "title": "AI Health 3D: Personalized Nutrition & Facial Bone Analysis",
    "description": "Harness the power of AI and 3D technology for personalized healthy eating plans and advanced facial bone system development analysis. Transform your health journey with AI Health 3D.",
    "url": "/",
    "siteName": "AI Health 3D",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/images-that-simulate-x-rays-with-neon-colors_23-2151521324.jpg",
        "alt": "AI Health 3D platform interface"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "AI Health 3D: Personalized Nutrition & Facial Bone Analysis",
    "description": "Harness the power of AI and 3D technology for personalized healthy eating plans and advanced facial bone system development analysis. Transform your health journey with AI Health 3D.",
    "images": [
      "http://img.b2bpic.net/free-photo/images-that-simulate-x-rays-with-neon-colors_23-2151521324.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const dmSans = DM_Sans({
  variable: "--font-dm-sans",
  subsets: ["latin"],
});

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