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



export const metadata: Metadata = {
  title: 'Vivid Digisolution | Top Digital Marketing Agency in Vadodara',
  description: 'Vivid Digisolution offers one-stop digital marketing solutions in Vadodara, Gujarat. Specializing in SEO, graphic design, brand creation, and social media management, we drive growth and build credibility.',
  keywords: ["digital marketing, marketing agency, Vadodara, Gujarat, SEO, graphic design, brand creation, social media marketing, online marketing, web development"],
  openGraph: {
    "title": "Vivid Digisolution | Digital Marketing Experts",
    "description": "Comprehensive digital marketing solutions for businesses in Vadodara, Gujarat. Elevate your brand with our expert strategies.",
    "url": "https://www.vividdigisolution.com",
    "siteName": "Vivid Digisolution",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/group-graphic-designers-working-computer_1170-2927.jpg",
        "alt": "Digital Marketing Agency Team"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Vivid Digisolution | Digital Marketing Experts",
    "description": "Comprehensive digital marketing solutions for businesses in Vadodara, Gujarat. Elevate your brand with our expert strategies.",
    "images": [
      "http://img.b2bpic.net/free-photo/group-graphic-designers-working-computer_1170-2927.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const poppins = Poppins({
  variable: "--font-poppins",
  subsets: ["latin"],
  weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"],
});

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