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: 'Marvixa: AI-Powered Project Management & Workflow Automation',
  description: 'Eliminate project delays with Marvixa, the intelligent platform that automates scheduling, predicts risks, and optimizes team productivity for tech startups and enterprises.',
  keywords: ["AI project management, workflow automation, bottleneck prediction, SaaS, project scheduling, team collaboration, Marvixa, productivity, artificial intelligence"],
  openGraph: {
    "title": "Marvixa: AI-Powered Project Management & Workflow Automation",
    "description": "Eliminate project delays with Marvixa, the intelligent platform that automates scheduling, predicts risks, and optimizes team productivity for tech startups and enterprises.",
    "url": "https://www.marvixa.com",
    "siteName": "Marvixa",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/woman-watching-business-conference-computer-screen-looking-statistics_482257-125563.jpg",
        "alt": "Marvixa AI Project Management Dashboard"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Marvixa: AI-Powered Project Management & Workflow Automation",
    "description": "Eliminate project delays with Marvixa, the intelligent platform that automates scheduling, predicts risks, and optimizes team productivity for tech startups and enterprises.",
    "images": [
      "http://img.b2bpic.net/free-photo/woman-watching-business-conference-computer-screen-looking-statistics_482257-125563.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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>
  );
}
