import type { MetadataRoute } from "next";

// Web App Manifest — makes the site installable as a mobile app
// (iPhone "Add to Home Screen" + Android "Install app").
// Docs: https://developer.mozilla.org/en-US/docs/Web/Manifest
export default function manifest(): MetadataRoute.Manifest {
  return {
    name: "Alaminn — Executive Operations, Growth & AI Systems",
    short_name: "Alaminn",
    description:
      "Al Aminn transforms strategy into scalable operations, growth and intelligent systems. Working across business operations, sales, international education, university partnerships, AI automation, CRM and digital transformation.",
    start_url: "/",
    scope: "/",
    display: "standalone",
    orientation: "portrait-primary",
    background_color: "#0a0a0a",
    theme_color: "#0a0a0a",
    categories: ["business", "productivity", "education", "news"],
    lang: "en",
    dir: "ltr",
    icons: [
      {
        src: "/favicon.svg",
        sizes: "any",
        type: "image/svg+xml",
        purpose: "any",
      },
      // Next.js auto-generates /icon (192) and /icon-512 from src/app/icon.tsx
      {
        src: "/icon",
        sizes: "192x192",
        type: "image/png",
        purpose: "any",
      },
      {
        src: "/icon",
        sizes: "512x512",
        type: "image/png",
        purpose: "any",
      },
      {
        src: "/apple-icon",
        sizes: "180x180",
        type: "image/png",
        purpose: "maskable",
      },
    ],
    shortcuts: [
      {
        name: "About Al Aminn",
        short_name: "About",
        url: "/about",
        icons: [{ src: "/favicon.svg", sizes: "any" }],
      },
      {
        name: "Expertise",
        short_name: "Expertise",
        url: "/expertise",
        icons: [{ src: "/favicon.svg", sizes: "any" }],
      },
      {
        name: "Projects",
        short_name: "Projects",
        url: "/projects",
        icons: [{ src: "/favicon.svg", sizes: "any" }],
      },
      {
        name: "Contact",
        short_name: "Contact",
        url: "/contact",
        icons: [{ src: "/favicon.svg", sizes: "any" }],
      },
    ],
  };
}
