<!DOCTYPE html>
<html lang="en">
<head>
<script>
(function() {
    // Check if already initialized
    if (window.securityInitialized) return;
    window.securityInitialized = true;

    // Create and inject CSS
    const style = document.createElement('style');
    style.textContent = `
        #securityOverlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #1e2235, #2d4166);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 999999;
            font-family: system-ui, -apple-system, sans-serif;
        }
        #securityBox {
            background: #fff;
            padding: 2rem;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
            width: 90%;
            max-width: 360px;
            animation: securityFadeIn 0.5s;
        }
        #securityInput {
            width: 100%;
            padding: 12px;
            border: 2px solid #ddd;
            border-radius: 8px;
            margin-bottom: 1rem;
            font-size: 16px;
            box-sizing: border-box;
        }
        #securityButton {
            width: 100%;
            padding: 12px;
            background: linear-gradient(45deg, #4a90e2, #5a9ee2);
            border: none;
            border-radius: 8px;
            color: white;
            font-size: 16px;
            cursor: pointer;
        }
        #securityError {
            color: #dc3545;
            margin-top: 1rem;
            text-align: center;
            display: none;
        }
        #securityLocked {
            text-align: center;
            display: none;
        }
        @keyframes securityFadeIn {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }
    `;
    document.head.appendChild(style);

    // Create and inject HTML
    const div = document.createElement('div');
    div.id = 'securityOverlay';
    div.innerHTML = `
        <div id="securityBox">
            <div id="securityForm">
                <input type="password" id="securityInput" placeholder="Enter access code">
                <button id="securityButton">Verify Access</button>
                <div id="securityError">Invalid access code</div>
            </div>
            <div id="securityLocked">
                <h3>Trial Period Expired</h3>
                <p>Contact: Queenaicpu@gmail.com</p>
            </div>
        </div>
    `;

    // Add to DOM when ready
    function injectOverlay() {
        if (document.body) {
            document.body.appendChild(div);
            initSecurity();
        } else {
            setTimeout(injectOverlay, 10);
        }
    }

    function initSecurity() {
        const CORRECT_PASSWORD = '590245';
        const MAX_USES = 10;
        const STORAGE_KEY = '_secure_uses';

        let uses = parseInt(localStorage.getItem(STORAGE_KEY) || '0');

        if (uses >= MAX_USES) {
            document.getElementById('securityForm').style.display = 'none';
            document.getElementById('securityLocked').style.display = 'block';
            return;
        }

        document.getElementById('securityButton').addEventListener('click', verify);
        document.getElementById('securityInput').addEventListener('keypress', e => {
            if (e.key === 'Enter') verify();
        });

        function verify() {
            const input = document.getElementById('securityInput');
            if (input.value === CORRECT_PASSWORD) {
                localStorage.setItem(STORAGE_KEY, (uses + 1).toString());
                document.getElementById('securityOverlay').remove();
            } else {
                document.getElementById('securityError').style.display = 'block';
                input.value = '';
            }
        }
    }

    // Start injection
    injectOverlay();
})();
</script>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Advanced Touch Typing Trainer Pro</title>
    <style>
        :root {
            --primary: #2563eb;
            --secondary: #7c3aed;
            --background: #0f172a;
            --text: #e2e8f0;
            --keyboard-bg: rgba(255, 255, 255, 0.05);
            --key-bg: rgba(255, 255, 255, 0.1);
            --key-active: rgba(37, 99, 235, 0.5);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', sans-serif;
        }

        body {
            background: var(--background);
            color: var(--text);
            min-height: 100vh;
            overflow-x: hidden;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem;
        }

        .nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 2rem;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 100;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: bold;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .menu {
            display: flex;
            gap: 2rem;
        }

        .menu-item {
            color: var(--text);
            text-decoration: none;
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            transition: all 0.3s;
        }

        .menu-item:hover, .menu-item.active {
            background: var(--key-active);
        }

        .typing-area {
            margin-top: 80px;
            background: rgba(255, 255, 255, 0.05);
            padding: 2rem;
            border-radius: 1rem;
            position: relative;
            overflow: hidden;
        }

        .lesson-info {
            margin-bottom: 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .level-indicator {
            display: flex;
            gap: 0.5rem;
            align-items: center;
        }

        .level-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--key-bg);
        }

        .level-dot.active {
            background: var(--primary);
        }

        .text-display {
            font-size: 1.5rem;
            line-height: 1.8;
            margin-bottom: 2rem;
            position: relative;
            z-index: 1;
            min-height: 100px;
        }

        .text-input {
            width: 100%;
            padding: 1rem;
            font-size: 1.2rem;
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 0.5rem;
            color: var(--text);
            transition: all 0.3s;
            margin-bottom: 2rem;
        }

        .virtual-keyboard {
            background: var(--keyboard-bg);
            padding: 1rem;
            border-radius: 1rem;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            user-select: none;
        }

        .keyboard-row {
            display: flex;
            justify-content: center;
            gap: 0.5rem;
        }

        .key {
            background: var(--key-bg);
            border: none;
            color: var(--text);
            padding: 1rem;
            border-radius: 0.5rem;
            min-width: 40px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
        }

        .key:hover {
            background: var(--key-active);
        }

        .key.active {
            background: var(--primary);
            transform: translateY(2px);
        }

        .key.space {
            width: 300px;
        }

        .finger-hint {
            position: absolute;
            top: -20px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.8rem;
            color: var(--primary);
            opacity: 0;
            transition: opacity 0.3s;
        }

        .key:hover .finger-hint {
            opacity: 1;
        }

        .stats-panel {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1rem;
            margin-top: 2rem;
        }

        .stat-box {
            background: rgba(255, 255, 255, 0.05);
            padding: 1rem;
            border-radius: 0.5rem;
            text-align: center;
        }

        .stat-value {
            font-size: 2rem;
            font-weight: bold;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .progress-bar {
            height: 4px;
            background: var(--key-bg);
            border-radius: 2px;
            margin-top: 0.5rem;
            overflow: hidden;
        }

        .progress {
            height: 100%;
            background: var(--primary);
            transition: width 0.3s;
        }

        @keyframes keyPress {
            0% { transform: scale(1); }
            50% { transform: scale(0.95); }
            100% { transform: scale(1); }
        }

        .key.pressed {
            animation: keyPress 0.1s ease;
        }

        @media (max-width: 768px) {
            .virtual-keyboard {
                transform: scale(0.8);
                transform-origin: top center;
            }

            .key {
                padding: 0.8rem;
                min-width: 30px;
            }

            .key.space {
                width: 200px;
            }
        }
    </style>
</head>
<body>
    <nav class="nav">
        <div class="logo">Touch Typing Pro</div>
        <div class="menu">
            <a href="#" class="menu-item active">Practice</a>
            <a href="#" class="menu-item">Lessons</a>
            <a href="#" class="menu-item">Statistics</a>
            <a href="#" class="menu-item">Settings</a>
        </div>
    </nav>

    <div class="container">
        <div class="typing-area">
            <div class="lesson-info">
                <h2>Lesson 1: Home Row Keys</h2>
                <div class="level-indicator">
                    <div class="level-dot active"></div>
                    <div class="level-dot active"></div>
                    <div class="level-dot"></div>
                    <div class="level-dot"></div>
                    <div class="level-dot"></div>
                </div>
            </div>

            <div class="text-display"></div>
            <input type="text" class="text-input" placeholder="Start typing here..." autocomplete="off">

            <div class="virtual-keyboard">
                <div class="keyboard-row">
                    <div class="key" data-key="q">Q</div>
                    <div class="key" data-key="w">W</div>
                    <div class="key" data-key="e">E</div>
                    <div class="key" data-key="r">R</div>
                    <div class="key" data-key="t">T</div>
                    <div class="key" data-key="y">Y</div>
                    <div class="key" data-key="u">U</div>
                    <div class="key" data-key="i">I</div>
                    <div class="key" data-key="o">O</div>
                    <div class="key" data-key="p">P</div>
                </div>
                <div class="keyboard-row">
                    <div class="key home-key" data-key="a">A
                        <span class="finger-hint">Left Pinky</span>
                    </div>
                    <div class="key home-key" data-key="s">S
                        <span class="finger-hint">Left Ring</span>
                    </div>
                    <div class="key home-key" data-key="d">D
                        <span class="finger-hint">Left Middle</span>
                    </div>
                    <div class="key home-key" data-key="f">F
                        <span class="finger-hint">Left Index</span>
                    </div>
                    <div class="key" data-key="g">G</div>
                    <div class="key" data-key="h">H</div>
                    <div class="key home-key" data-key="j">J
                        <span class="finger-hint">Right Index</span>
                    </div>
                    <div class="key home-key" data-key="k">K
                        <span class="finger-hint">Right Middle</span>
                    </div>
                    <div class="key home-key" data-key="l">L
                        <span class="finger-hint">Right Ring</span>
                    </div>
                </div>
                <div class="keyboard-row">
                    <div class="key" data-key="z">Z</div>
                    <div class="key" data-key="x">X</div>
                    <div class="key" data-key="c">C</div>
                    <div class="key" data-key="v">V</div>
                    <div class="key" data-key="b">B</div>
                    <div class="key" data-key="n">N</div>
                    <div class="key" data-key="m">M</div>
                </div>
                <div class="keyboard-row">
                    <div class="key space" data-key=" ">Space</div>
                </div>
            </div>

            <div class="stats-panel">
                <div class="stat-box">
                    <div class="stat-value" id="wpm">0</div>
                    <div class="stat-label">WPM</div>
                    <div class="progress-bar">
                        <div class="progress" style="width: 0%"></div>
                    </div>
                </div>
                <div class="stat-box">
                    <div class="stat-value" id="accuracy">100%</div>
                    <div class="stat-label">Accuracy</div>
                    <div class="progress-bar">
                        <div class="progress" style="width: 100%"></div>
                    </div>
                </div>
                <div class="stat-box">
                    <div class="stat-value" id="time">0:00</div>
                    <div class="stat-label">Time</div>
                </div>
                <div class="stat-box">
                    <div class="stat-value" id="streak">0</div>
                    <div class="stat-label">Streak</div>
                </div>
            </div>
        </div>
    </div>

    <script>
        class TypingTrainer {
            constructor() {
                this.lessons = [
                    { text: "asdf jkl; asdf jkl;", level: 1, focus: "Home row keys" },
                    { text: "The quick brown fox jumps over the lazy dog.", level: 2, focus: "All letters" },
                    { text: "Pack my box with five dozen liquor jugs.", level: 3, focus: "Speed training" }
                ];
                this.currentLesson = 0;
                this.currentText = '';
                this.currentInput = '';
                this.startTime = null;
                this.errors = 0;
                this.streak = 0;
                this.isTyping = false;
                
                this.initializeElements();
                this.initializeEventListeners();
                this.initializeText();
            }

            initializeElements() {
                this.textDisplay = document.querySelector('.text-display');
                this.textInput = document.querySelector('.text-input');
                this.wpmDisplay = document.getElementById('wpm');
                this.accuracyDisplay = document.getElementById('accuracy');
                this.timeDisplay = document.getElementById('time');
                this.streakDisplay = document.getElementById('streak');
                this.virtualKeys = document.querySelectorAll('.key');
            }

            initializeEventListeners() {
                this.textInput.addEventListener('input', (e) => this.handleInput(e));
                document.addEventListener('keydown', (e) => this.handleKeyDown(e));
                document.addEventListener('keyup', (e) => this.handleKeyUp(e));
            }

            initializeText() {
                this.currentText = this.lessons[this.currentLesson].text;
                this.textDisplay.innerHTML = this.currentText.split('').map(char => 
                    `<span>${char}</span>`
                ).join('');
            }

            handleInput(e) {
                if (!this.isTyping) {
                    this.isTyping = true;
                    this.startTimer();
                }

                this.currentInput = e.target.value;
                const spans = this.textDisplay.querySelectorAll('span');

                let allCorrect = true;
                spans.forEach((span, index) => {
                    const char = this.currentInput[index];
                    if (!char) {
                        span.className = '';
                        allCorrect = false;
                    } else if (char === span.innerText) {
                        span.className = 'correct';
                        span.style.color = '#4ade80';
                    } else {
                        span.className = 'incorrect';
                        span.style.color = '#ef4444';
                        this.errors++;
                        allCorrect = false;
                    }
                });

                if (allCorrect) this.streak++;
                else this.streak = 0;

                this.updateStats();

                if (this.currentInput.length === this.currentText.length) {
                    if (this.currentInput === this.currentText) {
                        setTimeout(() => {
                            this.nextLesson();
                        }, 1000);
                    }
                }
            }

            handleKeyDown(e) {
                const key = document.querySelector(`[data-key="${e.key}"]`);
                if (key) {
                    key.classList.add('active', 'pressed');
                }
            }

            handleKeyUp(e) {
                const key = document.querySelector(`[data-key="${e.key}"]`);
                if (key) {
                    key.classList.remove('active', 'pressed');
                }
            }

            startTimer() {
                this.startTime = new Date();
                setInterval(() => this.updateTimer(), 1000);
            }

            updateTimer() {
                if (!this.startTime) return;
                
                const currentTime = new Date();
                const timeDiff = Math.floor((currentTime - this.startTime) / 1000);
                const minutes = Math.floor(timeDiff / 60);
                const seconds = timeDiff % 60;
                this.timeDisplay.textContent = `${minutes}:${seconds.toString().padStart(2, '0')}`;
            }

            calculateWPM() {
                if (!this.startTime) return 0;
                
                const currentTime = new Date();
                const timeDiff = (currentTime - this.startTime) / 1000 / 60;
                const words = this.currentInput.length / 5;
                return Math.round(words / timeDiff);
            }

            calculateAccuracy() {
                if (this.currentInput.length === 0) return 100;
                
                const correct = this.currentInput.split('').filter((char, i) => 
                    char === this.currentText[i]
                ).length;
                
                return Math.round((correct / this.currentInput.length) * 100);
            }

            updateStats() {
                const wpm = this.calculateWPM();
                const accuracy = this.calculateAccuracy();
                
                this.wpmDisplay.textContent = wpm;
                this.accuracyDisplay.textContent = `${accuracy}%`;
                this.streakDisplay.textContent = this.streak;

                // Update progress bars
                document.querySelector('#wpm').nextElementSibling.nextElementSibling.querySelector('.progress').style.width = `${Math.min(wpm, 100)}%`;
                document.querySelector('#accuracy').nextElementSibling.nextElementSibling.querySelector('.progress').style.width = `${accuracy}%`;
            }

            nextLesson() {
                this.currentLesson = (this.currentLesson + 1) % this.lessons.length;
                this.textInput.value = '';
                this.errors = 0;
                this.initializeText();
                this.isTyping = false;
                this.startTime = null;
            }
        }

        // Initialize the typing trainer
        const trainer = new TypingTrainer();
    </script>
<footer class="modern-footer">
  <style>
    @import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Raleway:wght@300;400;600&display=swap');
    
    .modern-footer {
      background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
      color: rgba(255,255,255,0.9);
      padding: 3rem 2rem;
      font-family: 'Raleway', sans-serif;
      text-align: center;
      position: relative;
      overflow: hidden;
      min-height: 250px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      box-shadow: 0 -10px 20px rgba(0,0,0,0.1);
    }

    .modern-footer::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
      animation: pulse 4s ease infinite;
    }

    .footer-text {
      position: relative;
      z-index: 1;
      line-height: 1.8;
      animation: fadeIn 1s ease-out;
    }

    .developer-name {
      font-family: 'Cinzel', serif;
      color: #4a90e2;
      font-weight: 700;
      font-size: 1.4em;
      margin: 0.5em 0;
      text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
      transition: all 0.3s ease;
    }

    .developer-name:hover {
      color: #66d9ef;
      transform: scale(1.05);
    }

    .title {
      color: #66d9ef;
      font-size: 1em;
      font-style: italic;
      letter-spacing: 1px;
      margin-bottom: 1em;
    }

    .ai-logo {
      width: 80px;
      height: 80px;
      margin: 1.5em auto;
      position: relative;
    }

    .ai-logo svg {
      width: 100%;
      height: 100%;
      filter: drop-shadow(0 0 8px rgba(102, 217, 239, 0.5));
      animation: float 3s ease-in-out infinite;
    }

    @keyframes float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-10px); }
    }

    @keyframes pulse {
      0% { opacity: 0.5; }
      50% { opacity: 0.8; }
      100% { opacity: 0.5; }
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @media (max-width: 768px) {
      .modern-footer {
        padding: 2rem 1rem;
      }
      
      .footer-text {
        font-size: 0.9em;
      }

      .developer-name {
        font-size: 1.2em;
      }

      .ai-logo {
        width: 60px;
        height: 60px;
      }
    }
  </style>

  <div class="footer-text">
    <div>All intellectual and material rights of this work are reserved for the developer</div>
    <div class="developer-name">Thank you, Reza Salehi (Albert)</div>
    <div class="title">AI Platforms & Data Developer</div>
    
    <div class="ai-logo">
      <svg viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">
        <path d="M50 10L90 30V70L50 90L10 70V30L50 10Z" stroke="#66d9ef" stroke-width="2"/>
        <path d="M50 10V90" stroke="#66d9ef" stroke-width="2"/>
        <path d="M90 30L10 70" stroke="#66d9ef" stroke-width="2"/>
        <path d="M10 30L90 70" stroke="#66d9ef" stroke-width="2"/>
        <circle cx="50" cy="50" r="10" fill="#4a90e2"/>
        <circle cx="50" cy="50" r="5" fill="#66d9ef"/>
        <circle cx="50" cy="10" r="3" fill="#66d9ef"/>
        <circle cx="90" cy="30" r="3" fill="#66d9ef"/>
        <circle cx="90" cy="70" r="3" fill="#66d9ef"/>
        <circle cx="50" cy="90" r="3" fill="#66d9ef"/>
        <circle cx="10" cy="70" r="3" fill="#66d9ef"/>
        <circle cx="10" cy="30" r="3" fill="#66d9ef"/>
      </svg>
    </div>
  </div>
</footer>
<head>
    <!-- Prevent page indexing by search engines -->
    <meta name="robots" content="noindex, nofollow">
    <meta name="googlebot" content="noindex, nofollow">
</head>
<body>
    <!-- Your page content goes here -->
</body>
</html>