// Portfolio data

const PROJECTS = [
  {
    id: "index",
    cat: "web",
    title: "Index",
    sub: "A typographic search of open source",
    tagline: "Find what is quietly excellent and noisily popular, set in print. Browser-side GitHub search with editorial typography on a paper-grain canvas.",
    stack: ["HTML", "CSS", "JavaScript", "GitHub Search API"],
    metrics: [
      { k: "Type", v: "Static SPA" },
      { k: "Backend", v: "None" },
      { k: "API", v: "GitHub" },
    ],
    status: "LIVE",
    why: "No build step, no server, no dependencies — proof that a single HTML file can be a real product.",
    link: "https://index.yashahire.com",
    year: "2026"
  },
];

const CATEGORY_DEFS = [
  { id: "quant", label: "Trading & Quant" },
  { id: "apps",  label: "Apps" },
  { id: "ai",    label: "AI & ML" },
  { id: "web",   label: "Web" },
];

const CATEGORIES = [
  { id: "all", label: "All", count: PROJECTS.length },
  ...CATEGORY_DEFS
    .map(c => ({ ...c, count: PROJECTS.filter(p => p.cat === c.id).length }))
    .filter(c => c.count > 0),
];

const RESEARCH = [
  {
    title: "VAR Analysis: Financial Development & Macroeconomic Performance",
    scope: "US economy, 1980–2022",
    methods: ["VAR", "ADF unit root testing", "Granger causality", "Impulse response"],
    tool: "Stata",
    source: "World Bank"
  },
  {
    title: "Securities & Derivatives Analysis",
    scope: "Options strategy evaluation",
    methods: ["Butterfly spreads (ADBE, MCD)", "Structured product valuation", "Risk analysis"],
    tool: "Excel / BSM"
  },
  {
    title: "Alternative Investments Research",
    scope: "Hedge fund, PE, VC structures",
    methods: ["Merger Fund (MERFX) performance", "Blackstone Capital Partners IX", "VC fund structures"],
  },
  {
    title: "Behavioral Finance Review",
    scope: "Literature review",
    methods: ["Behavioral biases in financial decision-making"],
  },
];

const STACK = [
  { group: "Languages",  items: ["Python","Swift","JavaScript","TypeScript","Rust","SQL","PineScript"] },
  { group: "Frameworks", items: ["SwiftUI","UIKit","React","Flask","FastAPI","Tauri 2.0","TailwindCSS"] },
  { group: "AI / ML",    items: ["XGBoost","scikit-learn","ChromaDB","Whisper","Claude API","sentence-transformers"] },
  { group: "Finance",    items: ["Black-Scholes","Options strategies","VAR modeling","Monte Carlo","Walk-forward","Stata"] },
  { group: "iOS / macOS",items: ["AVFoundation","Metal GPU","AppKit","IOKit"] },
  { group: "APIs",       items: ["YouTube","Telegram","TopstepX","Upstox","Alpaca","OAuth 2.0"] },
  { group: "DevOps",     items: ["Git","GitHub Actions","Cloudflare Workers"] },
  { group: "Design",     items: ["Apple HIG","GSAP","Spline 3D"] },
];

const TIMELINE = [
  { year: "2022", title: "Creation",    body: "Started content creation. Built first digital tools just to scratch an itch." },
  { year: "2023", title: "Python",      body: "Self-taught Python. Shipped first trading bot. No CS background, just curiosity." },
  { year: "2024", title: "Ship Year",   body: "iOS apps (DualShot). macOS utilities. Live trading deployment on funded accounts." },
  { year: "2025", title: "Depth",       body: "TotalRecall. Prediction Engine. Full-stack with Tauri / React / Rust." },
  { year: "2026", title: "Next",        body: "14+ projects shipped. Finishing Master's. Building what's next." },
];

const STATS = [
  { k: "projects shipped",           v: "14+" },
  { k: "strategies validated",       v: "5+"  },
  { k: "simulated P&L",              v: "$187K+" },
  { k: "academic research papers",   v: "3" },
  { k: "CS degrees",                 v: "0" },
];

Object.assign(window, { PROJECTS, CATEGORIES, RESEARCH, STACK, TIMELINE, STATS });
