<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MHA Flow v3.0 - Professional Meta-Heuristic Algorithm Framework</title>
    <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">
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', sans-serif;
        }
        
        body {
            background: #f8f9fa;
            overflow-x: hidden;
        }
        
        /* Navigation Bar */
        .navbar-custom {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 1rem 0;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            animation: slideDown 0.6s ease-out;
        }
        
        @keyframes slideDown {
            from {
                transform: translateY(-100%);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }
        
        .navbar-brand {
            color: white !important;
            font-size: 1.5rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 12px;
            transition: all 0.3s ease;
        }
        
        .navbar-brand:hover {
            transform: scale(1.05);
        }
        
        .navbar-brand i {
            font-size: 2rem;
        }
        
        .nav-menu {
            display: flex;
            gap: 0.5rem;
            list-style: none;
            margin: 0;
            padding: 0;
            align-items: center;
        }
        
        .nav-link-custom {
            color: rgba(255,255,255,0.95) !important;
            padding: 10px 20px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            text-decoration: none;
            display: block;
        }
        
        .nav-link-custom:hover {
            background: rgba(255,255,255,0.15);
            transform: translateY(-2px);
        }
        
        .nav-link-custom.btn-login-nav {
            background: white;
            color: #667eea !important;
            padding: 10px 24px;
            margin-left: 10px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }
        
        .nav-link-custom.btn-login-nav:hover {
            background: #f8f9fa;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.2);
        }
        
        /* Hero Section */
        .hero-section {
            margin-top: 80px;
            padding: 100px 0 80px 0;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            position: relative;
            overflow: hidden;
        }
        
        .hero-section::before {
            content: '';
            position: absolute;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
            border-radius: 50%;
            top: -200px;
            right: -200px;
            animation: float 8s ease-in-out infinite;
        }
        
        .hero-section::after {
            content: '';
            position: absolute;
            width: 500px;
            height: 500px;
            background: radial-gradient(circle, rgba(118, 75, 162, 0.08) 0%, transparent 70%);
            border-radius: 50%;
            bottom: -150px;
            left: -150px;
            animation: float 10s ease-in-out infinite reverse;
        }
        
        @keyframes float {
            0%, 100% {
                transform: translateY(0) rotate(0deg);
            }
            50% {
                transform: translateY(-30px) rotate(5deg);
            }
        }
        
        .hero-content {
            position: relative;
            z-index: 1;
        }
        
        .hero-tag {
            display: inline-block;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 8px 20px;
            border-radius: 30px;
            font-size: 0.85rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 25px;
            animation: fadeInUp 0.8s ease-out 0.2s both;
        }
        
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .hero-title {
            font-size: 4rem;
            font-weight: 900;
            color: #2d3748;
            margin-bottom: 25px;
            line-height: 1.2;
            animation: fadeInUp 0.8s ease-out 0.4s both;
        }
        
        .hero-title-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .hero-description {
            font-size: 1.35rem;
            color: #4a5568;
            line-height: 1.8;
            margin-bottom: 40px;
            max-width: 650px;
            animation: fadeInUp 0.8s ease-out 0.6s both;
        }
        
        .hero-buttons {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            animation: fadeInUp 0.8s ease-out 0.8s both;
        }
        
        .btn-hero {
            padding: 16px 40px;
            border-radius: 12px;
            font-size: 1.1rem;
            font-weight: 700;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
        }
        
        .btn-primary-hero {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
        }
        
        .btn-primary-hero:hover {
            transform: translateY(-4px);
            box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
            color: white;
        }
        
        .btn-secondary-hero {
            background: white;
            color: #667eea;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        .btn-secondary-hero:hover {
            transform: translateY(-4px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.15);
            color: #667eea;
        }
        
        .hero-image {
            position: relative;
            z-index: 1;
            animation: fadeInRight 1s ease-out 0.5s both;
        }
        
        @keyframes fadeInRight {
            from {
                opacity: 0;
                transform: translateX(50px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }
        
        .hero-illustration {
            width: 100%;
            max-width: 550px;
            height: auto;
            filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
        }
        
        /* Technology Card */
        .technology-card {
            background: white;
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.1);
            margin-top: 30px;
            transition: all 0.4s ease;
            border: 2px solid #e9ecef;
        }
        
        .technology-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
            border-color: #667eea;
        }
        
        .technology-card h3 {
            font-size: 1.8rem;
            font-weight: 800;
            color: #2d3748;
            margin-bottom: 15px;
        }
        
        .technology-card p {
            font-size: 1.05rem;
            color: #4a5568;
            line-height: 1.7;
            margin: 0;
        }
        
        /* Features Section */
        .features-section {
            padding: 100px 0;
            background: white;
        }
        
        .section-header {
            text-align: center;
            margin-bottom: 70px;
            animation: fadeInUp 0.8s ease-out;
        }
        
        .section-tag {
            display: inline-block;
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
            color: #667eea;
            padding: 8px 20px;
            border-radius: 30px;
            font-size: 0.85rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 20px;
        }
        
        .section-title {
            font-size: 3rem;
            font-weight: 900;
            color: #2d3748;
            margin-bottom: 20px;
        }
        
        .section-description {
            font-size: 1.15rem;
            color: #718096;
            max-width: 600px;
            margin: 0 auto;
        }
        
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 35px;
            margin-top: 50px;
        }
        
        .feature-card {
            background: white;
            border: 2px solid #e9ecef;
            border-radius: 20px;
            padding: 40px 35px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }
        
        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(90deg, #667eea, #764ba2);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }
        
        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
            border-color: #667eea;
        }
        
        .feature-card:hover::before {
            transform: scaleX(1);
        }
        
        .feature-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 25px;
            font-size: 2.5rem;
            color: white;
            box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
            transition: all 0.3s ease;
        }
        
        .feature-card:hover .feature-icon {
            transform: scale(1.1) rotate(5deg);
            box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
        }
        
        .feature-title {
            font-size: 1.5rem;
            font-weight: 800;
            color: #2d3748;
            margin-bottom: 15px;
        }
        
        .feature-description {
            font-size: 1.05rem;
            color: #4a5568;
            line-height: 1.7;
            margin: 0;
        }
        
        /* Statistics Section */
        .stats-section {
            padding: 80px 0;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 40px;
            text-align: center;
        }
        
        .stat-item {
            animation: fadeInUp 0.8s ease-out;
        }
        
        .stat-number {
            font-size: 3.5rem;
            font-weight: 900;
            margin-bottom: 10px;
            display: block;
        }
        
        .stat-label {
            font-size: 1.1rem;
            opacity: 0.95;
            font-weight: 500;
        }
        
        /* Footer */
        .footer {
            background: #2d3748;
            color: white;
            padding: 60px 0 30px 0;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }
        
        .footer-section h4 {
            font-size: 1.2rem;
            font-weight: 800;
            margin-bottom: 20px;
        }
        
        .footer-section ul {
            list-style: none;
            padding: 0;
        }
        
        .footer-section ul li {
            margin-bottom: 12px;
        }
        
        .footer-section a {
            color: rgba(255,255,255,0.8);
            text-decoration: none;
            transition: all 0.3s ease;
            font-size: 0.95rem;
        }
        
        .footer-section a:hover {
            color: white;
            transform: translateX(5px);
            display: inline-block;
        }
        
        .footer-bottom {
            border-top: 1px solid rgba(255,255,255,0.1);
            padding-top: 30px;
            text-align: center;
            color: rgba(255,255,255,0.7);
            font-size: 0.9rem;
        }
        
        /* Responsive Design */
        @media (max-width: 992px) {
            .hero-title {
                font-size: 3rem;
            }
            
            .section-title {
                font-size: 2.5rem;
            }
        }
        
        @media (max-width: 768px) {
            .hero-section {
                padding: 60px 0 40px 0;
            }
            
            .hero-title {
                font-size: 2.5rem;
            }
            
            .hero-description {
                font-size: 1.1rem;
            }
            
            .hero-buttons {
                flex-direction: column;
            }
            
            .btn-hero {
                width: 100%;
                justify-content: center;
            }
            
            .nav-menu {
                flex-direction: column;
                width: 100%;
            }
            
            .section-title {
                font-size: 2rem;
            }
            
            .features-grid {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <!-- Navigation -->
    <nav class="navbar-custom">
        <div class="container">
            <div class="d-flex justify-content-between align-items-center w-100">
                <a href="/" class="navbar-brand">
                    <i class="fas fa-brain"></i>
                    <span>MHA Flow</span>
                </a>
                
                <ul class="nav-menu">
                    <li><a href="#home" class="nav-link-custom">Home</a></li>
                    <li><a href="#features" class="nav-link-custom">Features</a></li>
                    <li><a href="#about" class="nav-link-custom">About</a></li>
                    <li><a href="{{ url_for('login') }}" class="nav-link-custom btn-login-nav">
                        <i class="fas fa-sign-in-alt"></i> Login
                    </a></li>
                </ul>
            </div>
        </div>
    </nav>
    
    <!-- Hero Section -->
    <section id="home" class="hero-section">
        <div class="container">
            <div class="row align-items-center">
                <div class="col-lg-7 hero-content">
                    
                    <h1 class="hero-title">
                        Optimize with <br>
                        <span class="hero-title-gradient">Levify Technology</span>
                    </h1>
                    
                    <p class="hero-description">
                        Dynamically transform algorithms between exploration and exploitation phases 
                        to maximize performance across different problem types with advanced 
                        meta-heuristic optimization.
                    </p>
                    
                    <div class="hero-buttons">
                        <a href="{{ url_for('login') }}" class="btn-hero btn-primary-hero">
                            <i class="fas fa-play-circle"></i> Get Started
                        </a>
                        <a href="#features" class="btn-hero btn-secondary-hero">
                            <i class="fas fa-info-circle"></i> Learn More
                        </a>
                    </div>
                    
                    <div class="technology-card">
                        <h3>Levify Technology</h3>
                        <p>
                            Dynamically transform algorithms between exploration and exploitation phases 
                            to maximize performance across different problem types.
                        </p>
                    </div>
                </div>
                
                <div class="col-lg-5 hero-image text-center">
                    <div style="background: white; border-radius: 20px; padding: 60px 40px; box-shadow: 0 20px 60px rgba(0,0,0,0.1);">
                        <div style="font-size: 8rem; margin-bottom: 20px;">🧠</div>
                        <h3 style="font-weight: 800; color: #2d3748; margin-bottom: 15px;">145+ Algorithms</h3>
                        <p style="color: #718096; font-size: 1.1rem;">Advanced optimization framework with real-time analytics</p>
                    </div>
                </div>
            </div>
        </div>
    </section>
    
    <!-- Features Section -->
    <section id="features" class="features-section">
        <div class="container">
            <div class="section-header">
                <span class="section-tag">
                    <i class="fas fa-star"></i> Core Capabilities
                </span>
                <h2 class="section-title">Key Features</h2>
                <p class="section-description">
                    Powerful tools designed to revolutionize your optimization workflow
                </p>
            </div>
            
            <div class="features-grid">
                <div class="feature-card">
                    <div class="feature-icon">
                        🧠
                    </div>
                    <h3 class="feature-title">Dataset Intelligence</h3>
                    <p class="feature-description">
                        Automatic dataset analysis and characteristic profiling using advanced 
                        AI to understand your data's unique patterns and requirements.
                    </p>
                </div>
                
                <div class="feature-card">
                    <div class="feature-icon">
                        🔄
                    </div>
                    <h3 class="feature-title">Levify Transform</h3>
                    <p class="feature-description">
                        Convert exploration algorithms to exploitation and vice versa dynamically 
                        to adapt to different optimization phases automatically.
                    </p>
                </div>
                
                <div class="feature-card">
                    <div class="feature-icon">
                        🤖
                    </div>
                    <h3 class="feature-title">Smart Recommendations</h3>
                    <p class="feature-description">
                        AI-powered algorithm recommendations tailored to your specific dataset 
                        characteristics and optimization objectives.
                    </p>
                </div>
                
                <div class="feature-card">
                    <div class="feature-icon">
                        📊
                    </div>
                    <h3 class="feature-title">Real-time Visualization</h3>
                    <p class="feature-description">
                        Comprehensive convergence analysis, performance metrics, and interactive 
                        charts to monitor optimization progress in real-time.
                    </p>
                </div>
                
                <div class="feature-card">
                    <div class="feature-icon">
                        💾
                    </div>
                    <h3 class="feature-title">History Management</h3>
                    <p class="feature-description">
                        Complete experiment tracking with ability to view, compare, rerun, or 
                        delete previous optimization runs effortlessly.
                    </p>
                </div>
                
                <div class="feature-card">
                    <div class="feature-icon">
                        📤
                    </div>
                    <h3 class="feature-title">Export & Analysis</h3>
                    <p class="feature-description">
                        Export results in multiple formats (CSV, JSON) with detailed statistical 
                        analysis and performance comparisons.
                    </p>
                </div>
            </div>
        </div>
    </section>
    
    <!-- Statistics Section -->
    <section class="stats-section">
        <div class="container">
            <div class="stats-grid">
                <div class="stat-item">
                    <span class="stat-number">145+</span>
                    <span class="stat-label">Algorithms</span>
                </div>
                <div class="stat-item">
                    <span class="stat-number">50+</span>
                    <span class="stat-label">Benchmark Functions</span>
                </div>
                <div class="stat-item">
                    <span class="stat-number">99.9%</span>
                    <span class="stat-label">Success Rate</span>
                </div>
                <div class="stat-item">
                    <span class="stat-number">1000+</span>
                    <span class="stat-label">Optimizations</span>
                </div>
            </div>
        </div>
    </section>
    
    <!-- Footer -->
    <footer id="about" class="footer">
        <div class="container">
            <div class="footer-content">
                <div class="footer-section">
                    <h4><i class="fas fa-brain"></i> MHA Flow v3.0</h4>
                    <p style="color: rgba(255,255,255,0.8); font-size: 0.95rem; line-height: 1.7;">
                        Professional meta-heuristic algorithm optimization framework with 
                        advanced visualization and analytics capabilities.
                    </p>
                </div>
                
                <div class="footer-section">
                    <h4>Quick Links</h4>
                    <ul>
                        <li><a href="#home"><i class="fas fa-home"></i> Home</a></li>
                        <li><a href="#features"><i class="fas fa-star"></i> Features</a></li>
                        <li><a href="{{ url_for('login') }}"><i class="fas fa-sign-in-alt"></i> Login</a></li>
                    </ul>
                </div>
                
                <div class="footer-section">
                    <h4>Features</h4>
                    <ul>
                        <li><a href="#"><i class="fas fa-brain"></i> Dataset Intelligence</a></li>
                        <li><a href="#"><i class="fas fa-sync"></i> Levify Transform</a></li>
                        <li><a href="#"><i class="fas fa-robot"></i> Smart Recommendations</a></li>
                        <li><a href="#"><i class="fas fa-chart-line"></i> Real-time Analytics</a></li>
                    </ul>
                </div>
                
                <div class="footer-section">
                    <h4>Connect</h4>
                    <ul>
                        <li><a href="#"><i class="fab fa-github"></i> GitHub</a></li>
                        <li><a href="#"><i class="fas fa-book"></i> Documentation</a></li>
                        <li><a href="#"><i class="fas fa-envelope"></i> Contact</a></li>
                    </ul>
                </div>
            </div>
            
            <div class="footer-bottom">
                <p>&copy; 2025 MHA Flow v3.0 - Professional Meta-Heuristic Algorithm Framework. All rights reserved.</p>
            </div>
        </div>
    </footer>
    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        // Smooth scrolling for anchor links
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();
                const target = document.querySelector(this.getAttribute('href'));
                if (target) {
                    target.scrollIntoView({
                        behavior: 'smooth',
                        block: 'start'
                    });
                }
            });
        });
        
        // Animate elements on scroll
        const observerOptions = {
            threshold: 0.1,
            rootMargin: '0px 0px -50px 0px'
        };
        
        const observer = new IntersectionObserver((entries) => {
            entries.forEach(entry => {
                if (entry.isIntersecting) {
                    entry.target.style.opacity = '1';
                    entry.target.style.transform = 'translateY(0)';
                }
            });
        }, observerOptions);
        
        document.querySelectorAll('.feature-card, .stat-item').forEach(el => {
            el.style.opacity = '0';
            el.style.transform = 'translateY(30px)';
            el.style.transition = 'all 0.6s ease-out';
            observer.observe(el);
        });
    </script>
</body>
</html>
