export interface Project {
  id: number;
  slug: string;
  title: string;
  description: string;
  fullDescription: string;
  category: string;
  image: string;
  gallery: string[];
  technologies: string[];
  client: string;
  year: string;
  duration: string;
  team: string;
  liveUrl: string;
  githubUrl: string;
  features: string[];
  challenges: string[];
  results: { label: string; value: string }[];
}

export const projects: Project[] = [
  {
    id: 1,
    slug: 'financeflow-dashboard',
    title: 'FinanceFlow Dashboard',
    description: 'A comprehensive financial analytics platform with real-time data visualization, predictive analytics, and automated reporting for enterprise clients.',
    fullDescription: `FinanceFlow Dashboard is a cutting-edge financial analytics platform designed to transform how enterprises manage and visualize their financial data. Built with scalability and performance in mind, it handles millions of transactions while providing real-time insights.

The platform features an intuitive drag-and-drop interface for creating custom dashboards, advanced machine learning models for predictive analytics, and automated reporting that saves hours of manual work each week.`,
    category: 'web',
    image: 'https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=1200&h=800&fit=crop',
    gallery: [
      'https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=800&h=600&fit=crop',
      'https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=800&h=600&fit=crop',
      'https://images.unsplash.com/photo-1504868584819-f8e8b4b6d7e3?w=800&h=600&fit=crop',
    ],
    technologies: ['React', 'TypeScript', 'D3.js', 'Node.js', 'PostgreSQL', 'Redis', 'AWS'],
    client: 'FinanceFlow Inc.',
    year: '2024',
    duration: '8 months',
    team: '6 developers',
    liveUrl: '#',
    githubUrl: '#',
    features: [
      'Real-time data streaming and visualization',
      'Custom dashboard builder with drag-and-drop',
      'AI-powered predictive analytics',
      'Automated PDF and Excel report generation',
      'Role-based access control',
      'Multi-currency support',
      'API integration with major banking systems',
    ],
    challenges: [
      'Handling real-time updates for millions of concurrent transactions',
      'Ensuring sub-second query performance on large datasets',
      'Building a flexible yet intuitive dashboard customization system',
    ],
    results: [
      { label: 'Processing Speed', value: '10x faster' },
      { label: 'Report Generation', value: '95% automated' },
      { label: 'User Adoption', value: '98%' },
      { label: 'Cost Savings', value: '$2M/year' },
    ],
  },
  {
    id: 2,
    slug: 'healthtrack-mobile',
    title: 'HealthTrack Mobile',
    description: 'Cross-platform health monitoring app with wearable integration, personalized insights, and telehealth features for millions of users.',
    fullDescription: `HealthTrack Mobile is a comprehensive health and wellness application that connects users with their health data, healthcare providers, and personalized wellness recommendations.

The app integrates with popular wearables and medical devices to provide a holistic view of the user's health, while AI-powered insights help users make informed decisions about their lifestyle and treatment plans.`,
    category: 'mobile',
    image: 'https://images.unsplash.com/photo-1576091160399-112ba8d25d1f?w=1200&h=800&fit=crop',
    gallery: [
      'https://images.unsplash.com/photo-1576091160399-112ba8d25d1f?w=800&h=600&fit=crop',
      'https://images.unsplash.com/photo-1559526324-593bc073d938?w=800&h=600&fit=crop',
      'https://images.unsplash.com/photo-1505751172876-fa1923c5c528?w=800&h=600&fit=crop',
    ],
    technologies: ['React Native', 'Firebase', 'HealthKit', 'Google Fit', 'TensorFlow Lite', 'Node.js'],
    client: 'HealthTrack',
    year: '2024',
    duration: '12 months',
    team: '8 developers',
    liveUrl: '#',
    githubUrl: '#',
    features: [
      'Integration with 50+ wearable devices',
      'Real-time health metrics tracking',
      'AI-powered health insights and recommendations',
      'Telehealth video consultations',
      'Medication reminders and tracking',
      'Emergency SOS with location sharing',
      'HIPAA-compliant data storage',
    ],
    challenges: [
      'Ensuring HIPAA compliance across all data handling',
      'Building reliable real-time sync with diverse wearable APIs',
      'Optimizing battery usage while maintaining continuous monitoring',
    ],
    results: [
      { label: 'Active Users', value: '2M+' },
      { label: 'App Store Rating', value: '4.8★' },
      { label: 'Health Goals Met', value: '73%' },
      { label: 'Doctor Consultations', value: '500K+' },
    ],
  },
  {
    id: 3,
    slug: 'smartassist-ai',
    title: 'SmartAssist AI',
    description: 'Enterprise AI assistant powered by advanced NLP for customer service automation, reducing response time by 80% and improving satisfaction.',
    fullDescription: `SmartAssist AI is an enterprise-grade conversational AI platform that transforms customer service operations. Powered by state-of-the-art large language models and custom-trained on client-specific data, it provides human-like support at scale.

The system seamlessly integrates with existing CRM and helpdesk systems, learns from every interaction, and gracefully escalates to human agents when needed.`,
    category: 'ai',
    image: 'https://images.unsplash.com/photo-1677442136019-21780ecad995?w=1200&h=800&fit=crop',
    gallery: [
      'https://images.unsplash.com/photo-1677442136019-21780ecad995?w=800&h=600&fit=crop',
      'https://images.unsplash.com/photo-1676299081847-824916de030a?w=800&h=600&fit=crop',
      'https://images.unsplash.com/photo-1535378917042-10a22c95931a?w=800&h=600&fit=crop',
    ],
    technologies: ['Python', 'GPT-4', 'LangChain', 'FastAPI', 'PostgreSQL', 'Redis', 'Kubernetes'],
    client: 'SmartAssist Corp',
    year: '2024',
    duration: '6 months',
    team: '5 developers',
    liveUrl: '#',
    githubUrl: '#',
    features: [
      'Multi-language support (40+ languages)',
      'Context-aware conversation handling',
      'Custom knowledge base integration',
      'Sentiment analysis and escalation',
      'Real-time analytics dashboard',
      'CRM and helpdesk integrations',
      'Continuous learning from interactions',
    ],
    challenges: [
      'Minimizing hallucinations in customer-facing responses',
      'Handling complex multi-turn conversations with context',
      'Ensuring consistent brand voice across all interactions',
    ],
    results: [
      { label: 'Response Time', value: '80% faster' },
      { label: 'Resolution Rate', value: '85%' },
      { label: 'Customer Satisfaction', value: '+40%' },
      { label: 'Cost Reduction', value: '60%' },
    ],
  },
  {
    id: 4,
    slug: 'cloudscale-infrastructure',
    title: 'CloudScale Infrastructure',
    description: 'Multi-region cloud infrastructure with auto-scaling, disaster recovery, and cost optimization for a global e-commerce platform.',
    fullDescription: `CloudScale Infrastructure is a comprehensive cloud migration and modernization project that transformed a legacy e-commerce platform into a globally distributed, highly available system.

The new architecture handles Black Friday traffic spikes seamlessly, automatically scales based on demand, and reduced infrastructure costs by 35% while improving performance.`,
    category: 'cloud',
    image: 'https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1200&h=800&fit=crop',
    gallery: [
      'https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=800&h=600&fit=crop',
      'https://images.unsplash.com/photo-1558494949-ef010cbdcc31?w=800&h=600&fit=crop',
      'https://images.unsplash.com/photo-1544197150-b99a580bb7a8?w=800&h=600&fit=crop',
    ],
    technologies: ['AWS', 'Terraform', 'Kubernetes', 'Docker', 'Prometheus', 'Grafana', 'ArgoCD'],
    client: 'GlobalShop',
    year: '2023',
    duration: '10 months',
    team: '7 developers',
    liveUrl: '#',
    githubUrl: '#',
    features: [
      'Multi-region active-active deployment',
      'Automated scaling based on traffic patterns',
      'Zero-downtime deployments',
      'Comprehensive disaster recovery',
      'Real-time monitoring and alerting',
      'Infrastructure as Code with Terraform',
      'GitOps-based deployment pipeline',
    ],
    challenges: [
      'Migrating live production traffic with zero downtime',
      'Handling data consistency across regions',
      'Optimizing costs while maintaining performance SLAs',
    ],
    results: [
      { label: 'Uptime', value: '99.99%' },
      { label: 'Cost Savings', value: '35%' },
      { label: 'Deploy Time', value: '5 min' },
      { label: 'Scale Capacity', value: '100x' },
    ],
  },
  {
    id: 5,
    slug: 'edulearn-platform',
    title: 'EduLearn Platform',
    description: 'Interactive e-learning platform with live streaming, AI-powered tutoring, and gamification elements serving 500K+ students.',
    fullDescription: `EduLearn Platform is a next-generation e-learning solution that combines live instruction with AI-powered personalization to create engaging educational experiences.

The platform supports live classes with thousands of concurrent students, provides personalized learning paths, and uses gamification to keep students motivated and engaged.`,
    category: 'web',
    image: 'https://images.unsplash.com/photo-1501504905252-473c47e087f8?w=1200&h=800&fit=crop',
    gallery: [
      'https://images.unsplash.com/photo-1501504905252-473c47e087f8?w=800&h=600&fit=crop',
      'https://images.unsplash.com/photo-1516321318423-f06f85e504b3?w=800&h=600&fit=crop',
      'https://images.unsplash.com/photo-1434030216411-0b793f4b4173?w=800&h=600&fit=crop',
    ],
    technologies: ['Next.js', 'WebRTC', 'PostgreSQL', 'Redis', 'AWS MediaLive', 'OpenAI'],
    client: 'EduLearn',
    year: '2023',
    duration: '9 months',
    team: '10 developers',
    liveUrl: '#',
    githubUrl: '#',
    features: [
      'Live streaming with 10K+ concurrent viewers',
      'AI-powered personalized learning paths',
      'Interactive quizzes and assessments',
      'Gamification with badges and leaderboards',
      'Progress tracking and analytics',
      'Parent dashboard for monitoring',
      'Mobile-friendly responsive design',
    ],
    challenges: [
      'Scaling live video to thousands of concurrent students',
      'Building an effective AI tutoring system',
      'Creating engaging gamification without distraction',
    ],
    results: [
      { label: 'Active Students', value: '500K+' },
      { label: 'Course Completion', value: '78%' },
      { label: 'Learning Improvement', value: '+35%' },
      { label: 'Student Satisfaction', value: '4.9★' },
    ],
  },
  {
    id: 6,
    slug: 'foodiego-delivery',
    title: 'FoodieGo Delivery',
    description: 'On-demand food delivery app with real-time tracking, AI route optimization, and seamless payment integration.',
    fullDescription: `FoodieGo Delivery is a feature-rich food delivery platform that connects hungry customers with local restaurants through an intuitive mobile experience.

The app features real-time order tracking, AI-powered delivery route optimization, and a seamless payment experience that has made it one of the top-rated delivery apps in its market.`,
    category: 'mobile',
    image: 'https://images.unsplash.com/photo-1565299624946-b28f40a0ae38?w=1200&h=800&fit=crop',
    gallery: [
      'https://images.unsplash.com/photo-1565299624946-b28f40a0ae38?w=800&h=600&fit=crop',
      'https://images.unsplash.com/photo-1476224203421-9ac39bcb3327?w=800&h=600&fit=crop',
      'https://images.unsplash.com/photo-1504674900247-0877df9cc836?w=800&h=600&fit=crop',
    ],
    technologies: ['Flutter', 'Firebase', 'Google Maps', 'Stripe', 'Node.js', 'MongoDB'],
    client: 'FoodieGo',
    year: '2023',
    duration: '7 months',
    team: '6 developers',
    liveUrl: '#',
    githubUrl: '#',
    features: [
      'Real-time GPS order tracking',
      'AI-optimized delivery routing',
      'In-app payment with multiple options',
      'Restaurant management dashboard',
      'Driver app with navigation',
      'Push notifications for order updates',
      'Ratings and reviews system',
    ],
    challenges: [
      'Building accurate real-time tracking across different GPS conditions',
      'Optimizing delivery routes with multiple concurrent orders',
      'Handling peak hour traffic at scale',
    ],
    results: [
      { label: 'Daily Orders', value: '50K+' },
      { label: 'Delivery Time', value: '25 min avg' },
      { label: 'Customer Rating', value: '4.7★' },
      { label: 'Driver Earnings', value: '+30%' },
    ],
  },
  {
    id: 7,
    slug: 'visionai-analytics',
    title: 'VisionAI Analytics',
    description: 'Computer vision platform for retail analytics, providing foot traffic analysis, heatmaps, and customer behavior insights.',
    fullDescription: `VisionAI Analytics is a sophisticated computer vision platform that helps retailers understand customer behavior through advanced video analysis.

Using state-of-the-art AI models, the platform provides actionable insights on foot traffic patterns, dwell times, and customer journeys without compromising privacy.`,
    category: 'ai',
    image: 'https://images.unsplash.com/photo-1555949963-aa79dcee981c?w=1200&h=800&fit=crop',
    gallery: [
      'https://images.unsplash.com/photo-1555949963-aa79dcee981c?w=800&h=600&fit=crop',
      'https://images.unsplash.com/photo-1553877522-43269d4ea984?w=800&h=600&fit=crop',
      'https://images.unsplash.com/photo-1441986300917-64674bd600d8?w=800&h=600&fit=crop',
    ],
    technologies: ['PyTorch', 'OpenCV', 'TensorFlow', 'AWS SageMaker', 'FastAPI', 'React'],
    client: 'RetailVision',
    year: '2023',
    duration: '8 months',
    team: '5 developers',
    liveUrl: '#',
    githubUrl: '#',
    features: [
      'Real-time foot traffic counting',
      'Customer journey heatmaps',
      'Dwell time analysis',
      'Queue management insights',
      'Privacy-preserving analytics',
      'Multi-store comparison',
      'Custom alert configuration',
    ],
    challenges: [
      'Achieving high accuracy in crowded environments',
      'Processing video streams in real-time at scale',
      'Ensuring complete privacy compliance',
    ],
    results: [
      { label: 'Accuracy', value: '98.5%' },
      { label: 'Stores Deployed', value: '200+' },
      { label: 'Sales Increase', value: '+15%' },
      { label: 'Staff Efficiency', value: '+25%' },
    ],
  },
  {
    id: 8,
    slug: 'securecloud-vault',
    title: 'SecureCloud Vault',
    description: 'Enterprise-grade secure file storage with end-to-end encryption, compliance tools, and advanced access controls.',
    fullDescription: `SecureCloud Vault is a zero-trust file storage solution designed for enterprises with the most stringent security requirements.

Built with security-first principles, the platform provides end-to-end encryption, granular access controls, and comprehensive audit logging while maintaining the ease of use that modern teams expect.`,
    category: 'cloud',
    image: 'https://images.unsplash.com/photo-1558494949-ef010cbdcc31?w=1200&h=800&fit=crop',
    gallery: [
      'https://images.unsplash.com/photo-1558494949-ef010cbdcc31?w=800&h=600&fit=crop',
      'https://images.unsplash.com/photo-1563986768609-322da13575f3?w=800&h=600&fit=crop',
      'https://images.unsplash.com/photo-1550751827-4bd374c3f58b?w=800&h=600&fit=crop',
    ],
    technologies: ['Azure', 'Go', 'gRPC', 'HashiCorp Vault', 'PostgreSQL', 'React'],
    client: 'SecureCloud',
    year: '2023',
    duration: '11 months',
    team: '8 developers',
    liveUrl: '#',
    githubUrl: '#',
    features: [
      'End-to-end encryption (AES-256)',
      'Zero-knowledge architecture',
      'Granular access controls',
      'Comprehensive audit logging',
      'GDPR and HIPAA compliance',
      'Secure file sharing with expiry',
      'Integration with enterprise SSO',
    ],
    challenges: [
      'Implementing zero-knowledge encryption without sacrificing usability',
      'Meeting compliance requirements across multiple jurisdictions',
      'Building a performant system with encryption overhead',
    ],
    results: [
      { label: 'Security Audits', value: '100% passed' },
      { label: 'Enterprise Clients', value: '150+' },
      { label: 'Data Protected', value: '50+ PB' },
      { label: 'Uptime', value: '99.999%' },
    ],
  },
];

export const getProjectBySlug = (slug: string): Project | undefined => {
  return projects.find(project => project.slug === slug);
};

export const getRelatedProjects = (currentProject: Project, limit: number = 3): Project[] => {
  return projects
    .filter(project => project.id !== currentProject.id && project.category === currentProject.category)
    .slice(0, limit);
};
