/* ==========================================================================
   KISS CSS — Minimal, High Legibility, Single Font Family
   ========================================================================== */
:root {
    --bg: #fafafa;
    --card-bg: #ffffff;
    --text: #111827;
    --text-muted: #4b5563;
    --border: #e5e7eb;
    --border-dark: #111827;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --max-width: 860px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Navbar */
.navbar {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-brand {
    font-weight: 700;
    font-size: 1rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text);
}

/* Hero Section */
.hero {
    padding: 5rem 0 3.5rem 0;
    border-bottom: 1px solid var(--border);
}

.tagline {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.15s ease;
}

.btn-primary {
    background-color: var(--text);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #374151;
}

.btn-secondary {
    background-color: var(--card-bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--border-dark);
}

/* Sections */
.section {
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

/* About Layout */
.grid-2col {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2.5rem;
}

.body-lead {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.grid-2col p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.info-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    padding: 1.25rem;
    border-radius: 8px;
}

.info-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.simple-list {
    list-style-type: square;
    padding-left: 1.2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.simple-list li {
    margin-bottom: 0.4rem;
}

/* Qualifications Layout */
.qual-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.qual-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    padding: 1.25rem;
    border-radius: 8px;
}

.qual-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.25rem;
}

.qual-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

.qual-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.qual-sub {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.qual-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.badge {
    background-color: var(--bg);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    color: var(--text);
}

/* Project Layout */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.project-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 8px;
}

.project-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
}

.project-item h3 {
    font-size: 1.15rem;
    margin: 0.25rem 0 0.5rem 0;
}

.project-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.link {
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: underline;
}

.muted-item {
    background-color: transparent;
    border-style: dashed;
}

/* Contact */
.contact-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    padding: 2.5rem 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.contact-box h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-box p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-btn {
    border: 1px solid var(--border);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    background-color: var(--bg);
}

.contact-btn:hover {
    border-color: var(--border-dark);
}

/* Footer */
.footer {
    padding: 2rem 0;
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
}

/* Mobile responsive */
@media (max-width: 650px) {
    .grid-2col {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .qual-header {
        flex-direction: column;
    }
}
/* ==========================================================================
   Base64 Image Utilities & Formatting
   ========================================================================== */

/* Profile Headshot in Hero */
.hero-avatar-wrapper {
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    display: block;
}

/* General Content & About Images */
.img-container {
    width: 100%;
    margin-bottom: 1.25rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.section-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Project Card Images */
.project-img-wrapper {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    background-color: var(--bg);
}

.project-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}