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



export const metadata: Metadata = {
  title: 'Azoryn | AI-Powered Web Design in 48 Hours',
  description: 'Launch stunning, high-quality websites in 48 hours with Azoryn, the AI-powered design agency for Gen Z entrepreneurs and modern brands. Speed, innovation, and premium aesthetics.',
  openGraph: {
    "title": "Azoryn | AI-Powered Web Design in 48 Hours",
    "description": "Launch stunning, high-quality websites in 48 hours with Azoryn, the AI-powered design agency for Gen Z entrepreneurs and modern brands.",
    "url": "/",
    "siteName": "Azoryn",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/light-background-with-sunset-projector-lamp_53876-103790.jpg",
        "alt": "Futuristic web design studio with AI interfaces"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Azoryn | AI-Powered Web Design in 48 Hours",
    "description": "Launch stunning, high-quality websites in 48 hours with Azoryn, the AI-powered design agency for Gen Z entrepreneurs and modern brands.",
    "images": [
      "http://img.b2bpic.net/free-photo/light-background-with-sunset-projector-lamp_53876-103790.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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