<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>resume | Software Engineer Portfolio</title>

    <meta name="description" content="Software Engineer specializing in Java and Spring Boot">
    <meta name="author" content="Kiyan Mckop">

    <link th:href="@{/assets/css/bootstrap.min.css}" rel="stylesheet">
    <link th:href="@{https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css}" rel="stylesheet">
    <link rel="stylesheet" th:href="@{/assets/css/resume.css}">
</head>

<body>

    <nav th:fragment="navbar" class="navbar navbar-expand-md sticky-top bg-body border-bottom">
        <div class="container">
            <a class="navbar-brand fw-bold" th:href="@{/}">Kiyan Mckop</a>

            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navMain">
                <span class="navbar-toggler-icon"></span>
            </button>

            <div class="collapse navbar-collapse" id="navMain">
                <ul class="navbar-nav ms-auto align-items-md-center gap-md-2">
                    <li class="nav-item">
                        <a class="btn" onclick="window.print()"><i class="bi bi-download"></i></a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>

    <header>
        <h1 th:text="|${resume.firstName} ${resume.lastName}|">Kiyan Mckop</h1>
        <div class="subtitle" th:text="${resume.jobTitle}">SOFTWARE ENGINEER</div>

        <div class="contact-info">
            <span th:if="${resume.phone}">
                <a th:href="'tel:' + ${resume.phone}" th:text="${resume.phone}"></a>
            </span>
            <span class="separator" th:if="${resume.phone}">•</span>

            <span th:if="${resume.email}">
                <a th:href="'mailto:' + ${resume.email}" th:text="${resume.email}"></a>
            </span>
            <span class="separator" th:if="${resume.email}">•</span>

            <span th:if="${resume.linkedinUrl}">
                <a th:href="${resume.linkedinUrl}">LinkedIn</a>
            </span>
            <span class="separator" th:if="${resume.linkedinUrl}">•</span>

            <span th:text="${resume.address}">Address</span>
        </div>
    </header>

    <div class="section">
        <h2 class="section-title">Professional Overview</h2>
        <p th:text="${resume.summary}">Summary text...</p>
    </div>

    <div class="section">
        <h2 class="section-title">Skills</h2>
        <ul class="list-unstyled skills-list">
            <li th:each="skillGroup : ${resume.skills}">
                <span class="skill-category" th:text="|${skillGroup.category}:|">Category:</span>
                <span th:text="${skillGroup.items}">Skill items...</span>
            </li>
        </ul>
    </div>

    <div class="section">
        <h2 class="section-title">Work Experience</h2>
        <div class="entry" th:each="job : ${resume.experiences}">
            <div class="entry-header">
                <div>
                    <span class="entry-title" th:text="${job.title}">Title</span>
                    <span style="margin: 0 4px; color: #ccc;">|</span>
                    <span class="company-name" th:text="|${job.company}, ${job.location}|">Company</span>
                </div>
                <div class="entry-date" th:text="${job.dateRange}">Date</div>
            </div>
            <ul>
                <li th:each="point : ${job.achievements}" th:text="${point}">Point</li>
            </ul>
        </div>
    </div>

    <div class="section">
        <h2 class="section-title">Key Projects</h2>
        <div class="entry" th:each="project : ${resume.projects}">
            <div class="entry-header">
                <div>
                    <span class="entry-title" th:text="${project.name}">Project Name</span>
                    <span style="font-size: 0.85em; color: #666;" th:if="${project.techStack}"
                        th:text="|(${project.techStack})|"></span>
                    <a style="font-size: 0.8em; margin-left: 5px; color: #0d6efd;" th:if="${project.link}"
                        th:href="${project.link}">[View]</a>
                </div>
                <div class="entry-date" th:if="${project.date}" th:text="${project.date}">Date</div>
            </div>
        </div>
    </div>

    <div class="section">
        <h2 class="section-title">Education</h2>
        <div class="entry" th:each="edu : ${resume.education}">
            <div class="entry-header">
                <div>
                    <span class="entry-title" th:text="${edu.degree}">Degree</span>
                    <span style="margin: 0 4px; color: #ccc;">|</span>
                    <span class="company-name" th:text="${edu.university} + ' - ' + ${edu.location}">Institution</span>
                </div>
                <div class="entry-date" th:text="${edu.year}">Year</div>
            </div>
            <div style="font-size: 12px; color: #555;" th:if="${edu.relevantCoursework}">
                <strong>Relevant Coursework:</strong> <span th:text="${edu.relevantCoursework}">Courses</span>
            </div>
        </div>
    </div>

    <script th:src="@{/assets/js/bootstrap.bundle.min.js}"></script>
</body>

</html>