<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MHA Flow - Metaheuristic Optimization Framework</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
</head>
<body>
    <!-- Navigation -->
    <nav class="navbar navbar-dark bg-dark sticky-top">
        <div class="container-fluid">
            <span class="navbar-brand mb-0 h1">
                <i class="fas fa-brain"></i> MHA Flow
            </span>
            <ul class="nav navbar-nav ms-auto">
                <li class="nav-item"><a class="nav-link active" href="/">Home</a></li>
                <li class="nav-item"><a class="nav-link" href="/dashboard">Dashboard</a></li>
                <li class="nav-item"><a class="nav-link" href="/dataset-upload">Upload Data</a></li>
                <li class="nav-item"><a class="nav-link" href="/algorithm-recommend">Recommend</a></li>
                <li class="nav-item"><a class="nav-link" href="/optimization">Optimize</a></li>
                <li class="nav-item"><a class="nav-link" href="/results">Results</a></li>
            </ul>
        </div>
    </nav>

    <!-- Hero Section -->
    <section class="hero bg-gradient text-white py-5">
        <div class="container">
            <div class="row align-items-center">
                <div class="col-lg-8">
                    <h1 class="display-3 fw-bold mb-4">MHA Flow</h1>
                    <p class="lead mb-4">
                        Intelligent Metaheuristic Optimization Framework with Levify Technology
                    </p>
                    <p class="fs-5 mb-4">
                        Upload your dataset, let our AI understand it, and get intelligent algorithm recommendations
                        with adaptive exploration/exploitation balancing using Levify technology.
                    </p>
                    <div class="d-flex gap-3">
                        <a href="/dataset-upload" class="btn btn-primary btn-lg">
                            <i class="fas fa-upload"></i> Upload Dataset
                        </a>
                        <a href="/dashboard" class="btn btn-outline-light btn-lg">
                            <i class="fas fa-chart-line"></i> Dashboard
                        </a>
                    </div>
                </div>
                <div class="col-lg-4">
                    <div class="feature-card p-4 bg-light text-dark rounded-3">
                        <h3 class="mb-3"><i class="fas fa-sparkles text-warning"></i> Levify Technology</h3>
                        <p>
                            Dynamically transform algorithms between exploration and exploitation phases
                            to maximize performance across different problem types.
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Features Section -->
    <section class="features py-5 bg-light">
        <div class="container">
            <h2 class="text-center mb-5">Key Features</h2>
            <div class="row g-4">
                <div class="col-md-4">
                    <div class="card h-100 shadow-sm">
                        <div class="card-body text-center">
                            <i class="fas fa-brain fa-3x text-primary mb-3"></i>
                            <h5 class="card-title">Dataset Intelligence</h5>
                            <p class="card-text">
                                Automatic dataset analysis and characteristic profiling to understand your problem
                            </p>
                        </div>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="card h-100 shadow-sm">
                        <div class="card-body text-center">
                            <i class="fas fa-magic fa-3x text-success mb-3"></i>
                            <h5 class="card-title">Levify Transform</h5>
                            <p class="card-text">
                                Convert exploration algorithms to exploitation and vice versa on-the-fly
                            </p>
                        </div>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="card h-100 shadow-sm">
                        <div class="card-body text-center">
                            <i class="fas fa-robot fa-3x text-info mb-3"></i>
                            <h5 class="card-title">Smart Recommendations</h5>
                            <p class="card-text">
                                AI-powered algorithm recommendations tailored to your specific dataset
                            </p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Quick Start Section -->
    <section class="quickstart py-5">
        <div class="container">
            <h2 class="text-center mb-5">Quick Start</h2>
            <div class="row">
                <div class="col-lg-10 mx-auto">
                    <div class="steps">
                        <div class="step mb-4">
                            <div class="step-number">1</div>
                            <div class="step-content">
                                <h5>Upload Your Dataset</h5>
                                <p>Upload CSV, Excel, JSON, or NumPy files. The system will automatically analyze it.</p>
                            </div>
                        </div>
                        <div class="step mb-4">
                            <div class="step-number">2</div>
                            <div class="step-content">
                                <h5>Get Dataset Intelligence</h5>
                                <p>Our AI system understands your dataset characteristics and requirements.</p>
                            </div>
                        </div>
                        <div class="step mb-4">
                            <div class="step-number">3</div>
                            <div class="step-content">
                                <h5>Select Algorithm & Apply Levify</h5>
                                <p>Choose from intelligent recommendations or select your own. Apply Levify transformations.</p>
                            </div>
                        </div>
                        <div class="step">
                            <div class="step-number">4</div>
                            <div class="step-content">
                                <h5>Run & Analyze Results</h5>
                                <p>Execute optimization and analyze convergence curves, solutions, and performance metrics.</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Footer -->
    <footer class="bg-dark text-light py-4 mt-5">
        <div class="container text-center">
            <p class="mb-0">&copy; 2024 MHA Flow. Intelligent Optimization Framework with Levify Technology</p>
        </div>
    </footer>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
