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



export const metadata: Metadata = {
  title: 'Fusion Techathon 4.0 | National AI/ML Hackathon',
  description: 'Join Fusion Techathon 4.0, a 24-hour national hackathon by Alva\'s Institute of Engineering and Technology. Innovate in AI/ML, Web3, Cybersecurity, and more to win ₹60,000+ in prizes.',
  keywords: ["hackathon, AI, ML, Fusion Techathon, Alva's Institute, engineering, technology, national, coding, innovation, competition, programming, cybersecurity, web3, IoT"],
  openGraph: {
    "title": "Fusion Techathon 4.0 | National AI/ML Hackathon",
    "description": "Join Fusion Techathon 4.0, a 24-hour national hackathon by Alva's Institute of Engineering and Technology. Innovate in AI/ML, Web3, Cybersecurity, and more to win ₹60,000+ in prizes.",
    "url": "https://www.fusiontechathon.com",
    "siteName": "Fusion Techathon 4.0",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/3d-render-modern-with-flowing-abstract-particle-design_1048-13801.jpg",
        "alt": "Fusion Techathon 4.0 event banner"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Fusion Techathon 4.0 | National AI/ML Hackathon",
    "description": "Join Fusion Techathon 4.0, a 24-hour national hackathon by Alva's Institute of Engineering and Technology. Innovate in AI/ML, Web3, Cybersecurity, and more to win ₹60,000+ in prizes.",
    "images": [
      "http://img.b2bpic.net/free-photo/3d-render-modern-with-flowing-abstract-particle-design_1048-13801.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const interTight = Inter_Tight({
  variable: "--font-inter-tight",
  subsets: ["latin"],
  weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"],
});
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={`${interTight.variable} ${inter.variable} antialiased`}>
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
