<!DOCTYPE html>
<html lang="en">
<head>
    {% load static %}
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Resume Builder | Home</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">

    <style>
        body {
            background: #f9f9f9;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        /* Navbar */
        .navbar {
            background: linear-gradient(90deg, #1e1e2f, #121212);
        }
        .navbar-brand {
            font-size: 1.8rem;
            letter-spacing: 1px;
        }
        .nav-link {
            transition: 0.3s ease;
        }
        .nav-link:hover {
            color: #ffc107 !important;
            transform: translateY(-2px);
        }

        /* Heading */
        .demo-heading {
            font-size: 2rem;
            font-weight: 700;
            margin: 40px 0 20px;
            text-align: center;
        }

        /* Resume Cards */
        .resume-card {
            border: 2px solid #eee;
            border-radius: 12px;
            background: white;
            padding: 15px;
            transition: transform 0.3s, box-shadow 0.3s;
            text-align: center;
        }
        .resume-card img {
            width: 100%;
            border-radius: 8px;
            margin-bottom: 15px;
            height: 350px;
            object-fit: cover;
        }
        .resume-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.2);
        }
        .btn-preview {
            background: #ffca2c;
            border: none;
            font-weight: 600;
            padding: 8px 20px;
            border-radius: 30px;
        }

        /* CTA Button */
        .view-all-btn {
            display: block;
            margin: 30px auto;
            padding: 14px 40px;
            font-size: 1.2rem;
            font-weight: bold;
            border-radius: 30px;
        }

        /* Create Resume Section */
        .create-section {
            background: #fff;
            padding: 60px 20px;
            text-align: center;
        }
        .create-section h2 {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 15px;
        }
        .btn-create {
            background: #007bff;
            color: white;
            padding: 14px 40px;
            border-radius: 30px;
            font-size: 1.2rem;
            font-weight: 600;
        }
        .btn-create:hover {
            background: #0056b3;
        }

        /* Footer */
        footer {
            background: #121212;
            color: #bbb;
            padding: 15px 0;
            font-size: 0.95rem;
        }
    </style>
</head>
<body>

<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark sticky-top shadow">
    <div class="container">
        <a class="navbar-brand fw-bold text-warning" href="{% url 'demo' %}">ResumeBuilder</a>
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarNav">
            <ul class="navbar-nav ms-auto">
                <li class="nav-item">
                    <a class="nav-link {% if request.path == '/' %}active{% endif %}" href="{% url 'demo' %}">Home</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link {% if request.path == '/resume/create/' %}active{% endif %}" href="{% url 'resume_create' %}">Create Resume</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link {% if request.path == '/resume/list/' %}active{% endif %}" href="{% url 'resume_list' %}">Templates</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link text-danger fw-bold" href="{% url 'logout' %}">Logout</a>
                </li>
            </ul>
        </div>
    </div>
</nav>


<!-- Heading -->
<h2 class="demo-heading">Recruiter-approved resume templates</h2>

<!-- Resume Templates Grid -->
<!-- <section class="container pb-4">
    <div class="row g-4">
        <div class="col-md-6 col-lg-3">
            <div class="resume-card">
                <img src="https://via.placeholder.com/300x400?text=Resume+1" alt="Resume 1">
                <button class="btn btn-preview">Preview</button>
            </div>
        </div>
        <div class="col-md-6 col-lg-3">
            <div class="resume-card">
                <img src="https://via.placeholder.com/300x400?text=Resume+2" alt="Resume 2">
                <button class="btn btn-preview">Preview</button>
            </div>
        </div>
        <div class="col-md-6 col-lg-3">
            <div class="resume-card">
                <img src="https://via.placeholder.com/300x400?text=Resume+3" alt="Resume 3">
                <button class="btn btn-preview">Preview</button>
            </div>
        </div>
        <div class="col-md-6 col-lg-3">
            <div class="resume-card">
                <img src="https://via.placeholder.com/300x400?text=Resume+4" alt="Resume 4">
                <button class="btn btn-preview">Preview</button>
            </div>
        </div>
    </div>
</section> -->

<!-- CTA -->
<div class="container text-center">
    <a href="{% url 'resume_list' %}" class="btn btn-primary view-all-btn">View all templates</a>
</div>

<!-- Create Resume Section -->
<section class="create-section">
    <h2>Create a resume</h2>
    <p class="lead">Build your professional resume in just a few clicks.</p>
    <a href="{% url 'resume_create' %}" class="btn btn-create">Create My Resume</a>
</section>

<!-- Footer -->
<footer class="text-center">
    <p>&copy; 2025 ResumeBuilder | More Resume Demos Coming Soon 🚀</p>
</footer>

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