import re

with open('hrpro_landing_v2.html', 'r', encoding='utf-8') as f:
    content = f.read()

# Update CSS
content = content.replace('font-family:system-ui,Arial,sans-serif;', "font-family:'Tajawal', 'Space Grotesk', system-ui, Arial, sans-serif;")

# Update Links
content = content.replace('<div class="nav-admin">', '<div class="nav-admin" onclick="window.location.href=\'admin.html\'" style="cursor:pointer">')
content = content.replace('<div class="cta-main">', '<div class="cta-main" onclick="window.location.href=\'login.html\'" style="cursor:pointer">')
content = content.replace('<div class="cta-btn-main">', '<div class="cta-btn-main" onclick="window.location.href=\'login.html\'" style="cursor:pointer">')

# Update Footer Copyright
content = content.replace('© 2025 OfficeTechnology Egypt', '© 2026 OfficeTech Solutions')

# Wrap in HTML
html_template = """<!DOCTYPE html>
<html lang="ar" dir="rtl">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>HR Pro — OfficeTech Solutions</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Tajawal:wght@300;400;500;700;800;900&display=swap" rel="stylesheet">
    <style>
        body { margin: 0; padding: 0; background-color: #03091a; }
    </style>
</head>
<body>
""" + content + """
</body>
</html>"""

with open('index.html', 'w', encoding='utf-8') as f:
    f.write(html_template)
print("Done!")
