/* Color Variables, very nice :)*/
:root {
    --bg-lower: #0D1117;
    /* Back back             */
    --bg-low: #161B22;
    /* Back     */
    --bg-mid: #21262D;
    /* Mid          */
    --bg-up: #30363D;
    /*         */
    --bg-upper: #484F58;
    /*          */
    --nav-bg: #010409;
    /* nav        */
    --nav-txt: #F0F6FC;
    /*        */
    --txt: #C9D1D9;
    /*        */
    --other: #58A6FF;
    /*       */
    --border: #30363D;
    /*   */
    --border-shadow: grey;
    /* Skill Stuff */
    --skill-hover-border: #58A6FF;
    /*  */
    --main-shadow: rgba(0, 0, 0, 0.4);
    /*  */
    --accent-shadow: rgba(88, 166, 255, 0.3);
    /* */
}

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

/* Basics */

html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--txt);
    background-color: var(--bg-lower);
    min-height: 100vh;
    padding-bottom: 3.5rem;
}



/*Nav Stuff*/

.nav-bar {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

.nav-links {
    display: flex;
    gap: 30px;
    background-color: var(--bg-low);
    padding: 15px 40px;
    border-radius: 50px;
    border: 2px solid var(--border);
    box-shadow: 0 10px 30px var(--main-shadow);
    max-width: 100%;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--nav-txt);
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--other);
    text-shadow: 0 0 10px var(--accent-shadow);
}

@media (max-width: 600px) {
    .nav-bar {
        padding: 1.25rem 0.5rem;
    }

    .nav-links {
        gap: 12px;
        padding: 10px 18px;
        border-radius: 30px;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.88rem;
    }
}

@media (max-width: 380px) {
    .nav-links {
        gap: 8px;
        padding: 8px 12px;
    }

    .nav-links a {
        font-size: 0.8rem;
    }
}

/* Stealth link that blends seamlessly with surrounding text */
a.stealth-link,
a.stealth-link:link,
a.stealth-link:visited,
a.stealth-link:hover,
a.stealth-link:active,
a.stealth-link:focus {
    color: inherit !important;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}

/* Skill area */
.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 1rem;
}

.skill-card {
    background-color: var(--bg-low);
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--main-shadow);
    border-color: var(--skill-hover-border);
}

/* Enhanced Skill Card Header */
.skill-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.25rem;
}

.skill-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: var(--bg-mid);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--other);
}

.skill-icon-box svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.skill-icon-box img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.skill-header-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.skill-name {
    margin: 0;
    font-size: 1.25rem;
    color: var(--nav-txt);
    font-weight: 700;
}

.skill-type {
    font-size: 0.78rem;
    color: var(--other);
    font-weight: 600;
}

/* Side-by-Side Experience Stat Boxes with Integrated Progress Meters */
.skill-exp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin: 0.5rem 0;
}

.exp-box {
    background-color: var(--bg-mid);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exp-box-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
}

.exp-box-label {
    font-size: 0.72rem;
    color: var(--txt);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.exp-box-years {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--other);
}

.exp-box-years small {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--txt);
    margin-left: 2px;
}

.exp-box.work .exp-box-years {
    color: #3fb950;
}

.exp-box-meter {
    width: 100%;
    height: 5px;
    background-color: var(--bg-up);
    border-radius: 3px;
    overflow: hidden;
}

.exp-box-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #1f6feb, #58A6FF);
    box-shadow: 0 0 6px rgba(88, 166, 255, 0.4);
}

.exp-box-fill.work {
    background: linear-gradient(90deg, #238636, #3fb950);
    box-shadow: 0 0 6px rgba(63, 185, 80, 0.35);
}

/* Skill Tags / Chips */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.25rem 0;
}

.skill-tag {
    font-size: 0.75rem;
    color: var(--txt);
    background-color: var(--bg-up);
    border: 1px solid var(--border);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

/* Coursework (Completed) */
.skill-tag.tag-course {
    color: #58A6FF;
    background-color: rgba(88, 166, 255, 0.12);
    border-color: rgba(88, 166, 255, 0.35);
}

/* Coursework (In Progress) */
.skill-tag.tag-course-wip {
    color: #e3b341;
    background-color: rgba(227, 179, 65, 0.12);
    border-color: rgba(227, 179, 65, 0.35);
}

/* Hands-on Job Experience */
.skill-tag.tag-work {
    color: #3fb950;
    background-color: rgba(63, 185, 80, 0.12);
    border-color: rgba(63, 185, 80, 0.35);
}

/* Projects */
.skill-tag.tag-project {
    color: #bc8cff;
    background-color: rgba(188, 140, 255, 0.12);
    border-color: rgba(188, 140, 255, 0.35);
}

/* Skills Page Minimal Legend */
.skills-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem 1.25rem;
    margin: 0.5rem auto 1rem;
    padding: 0 1rem;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--txt);
    opacity: 0.85;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.course {
    background-color: #58A6FF;
    box-shadow: 0 0 6px rgba(88, 166, 255, 0.5);
}

.legend-dot.course-wip {
    background-color: #e3b341;
    box-shadow: 0 0 6px rgba(227, 179, 65, 0.5);
}

.legend-dot.work {
    background-color: #3fb950;
    box-shadow: 0 0 6px rgba(63, 185, 80, 0.5);
}

.legend-dot.project {
    background-color: #bc8cff;
    box-shadow: 0 0 6px rgba(188, 140, 255, 0.5);
}

.skill-description {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--txt);
    margin-top: auto;
    padding-top: 0.5rem;
}

/* Job area */
.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.job-card {
    background-color: var(--bg-low);
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--main-shadow);
    border-color: var(--skill-hover-border);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.job-title {
    margin: 0;
    font-size: 1.25rem;
    color: var(--nav-txt);
}

.job-dates {
    font-size: 0.85rem;
    color: var(--txt);
    background-color: var(--bg-up);
    padding: 0.25rem 0.55rem;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.job-tenure {
    color: var(--other);
    font-weight: 500;
}

.job-company {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: var(--bg-mid);
    border-radius: 5px;
    font-size: 0.85rem;
    color: var(--other);
    margin-bottom: 1rem;
    align-self: flex-start;
}

.job-subheader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.job-subheader .job-company {
    margin-bottom: 0;
}

.job-card-interactive {
    cursor: pointer;
    user-select: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.job-card-interactive:focus-visible {
    outline: 2px solid var(--other);
    outline-offset: 2px;
}

.progression-hint {
    font-size: 0.8rem;
    color: var(--other);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(88, 166, 255, 0.08);
    transition: background 0.2s ease;
}

.job-card-interactive:hover .progression-hint {
    background: rgba(88, 166, 255, 0.16);
}

.progression-hint .hint-arrow {
    display: inline-block;
    transition: transform 0.25s ease;
    font-weight: bold;
    font-size: 0.95rem;
}

.job-card-interactive[aria-expanded="true"] .progression-hint .hint-arrow {
    transform: rotate(45deg);
}

/* Progression Timeline */
.job-progression {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    animation: fadeIn 0.25s ease;
}

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

.progression-title {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--nav-txt);
}

.progression-timeline {
    position: relative;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progression-timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background-color: var(--border);
}

.progression-item {
    position: relative;
}

.progression-dot {
    position: absolute;
    left: -1.25rem;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--bg-up);
    border: 2px solid var(--border);
}

.progression-item.current .progression-dot {
    background-color: var(--other);
    border-color: var(--other);
    box-shadow: 0 0 8px rgba(88, 166, 255, 0.4);
}

.progression-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.progression-dates {
    font-size: 0.78rem;
    color: var(--txt);
    background-color: var(--bg-up);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.progression-dates .job-tenure {
    color: var(--other);
    font-weight: 500;
}

.progression-role {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--nav-txt);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.progression-desc {
    font-size: 0.85rem;
    color: var(--txt);
    margin-top: 0.2rem;
    line-height: 1.4;
}

.current-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    background-color: rgba(88, 166, 255, 0.15);
    color: var(--other);
    border-radius: 4px;
}

.job-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--txt);
    margin: 0;
}

/* Job Stats Bar */
.job-stats-row {
    display: flex;
    gap: 0.6rem;
    margin: 0.75rem 0 0.5rem 0;
    flex-wrap: wrap;
}

.job-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    background-color: var(--bg-mid);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--txt);
}

.job-stat-chip strong {
    color: var(--other);
    font-size: 0.95rem;
    font-weight: 700;
}

.job-stat-chip.live::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #3fb950;
    box-shadow: 0 0 5px rgba(63, 185, 80, 0.7);
    margin-left: 2px;
}

/* Education area */
.education-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.education-card {
    background-color: var(--bg-low);
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--main-shadow);
    border-color: var(--skill-hover-border);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.education-title {
    margin: 0;
    font-size: 1.25rem;
    color: var(--nav-txt);
}

.education-dates {
    font-size: 0.85rem;
    color: var(--txt);
    background-color: var(--bg-up);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
}

.education-degree {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: var(--bg-mid);
    border-radius: 5px;
    font-size: 0.85rem;
    color: var(--other);
    margin-bottom: 1rem;
    align-self: flex-start;
}

.education-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
}

.education-badges .education-degree {
    margin-bottom: 0;
}

.education-gpa {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: var(--bg-mid);
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--other);
}

.education-saving {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: var(--bg-up);
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 0.85rem;
    color: var(--txt);
}

/* Site Footer (Bottom-left text) */
.site-footer {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background-color: rgba(22, 27, 34, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.78rem;
    color: var(--txt);
    box-shadow: 0 4px 12px var(--main-shadow);
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s ease, color 0.2s ease;
    cursor: default;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
}

.site-footer.is-at-bottom {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.site-footer p {
    margin: 0;
    line-height: 1.3;
}

.site-footer:hover {
    border-color: var(--other);
    color: var(--nav-txt);
}

/* Bottom-right Homelab Indicator */
.homelab-badge {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background-color: rgba(22, 27, 34, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.78rem;
    color: var(--txt);
    box-shadow: 0 4px 12px var(--main-shadow);
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s ease, color 0.2s ease;
    cursor: default;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
}

.homelab-badge.is-at-bottom {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.homelab-badge:hover {
    border-color: var(--other);
    color: var(--nav-txt);
    transform: translateY(-2px);
}

.homelab-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #3fb950;
    box-shadow: 0 0 6px rgba(63, 185, 80, 0.7);
    display: inline-block;
    animation: homelabPulse 2s infinite ease-in-out;
}

@keyframes homelabPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

.education-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--txt);
    margin: 0;
}

/* Certifications area */
.certifications-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

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

.certification-card {
    background-color: var(--bg-low);
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--main-shadow);
    border-color: #E51937;
}

.certification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.certification-title-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.cert-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(229, 25, 55, 0.1);
    border: 1px solid rgba(229, 25, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 4px;
}

.cert-icon-box img,
.cert-icon-box svg {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.certification-title {
    margin: 0;
    font-size: 1.25rem;
    color: var(--nav-txt);
    font-weight: 700;
}

.certification-issuer {
    font-size: 0.85rem;
    color: var(--other);
    font-weight: 500;
    display: block;
    margin-top: 2px;
}

.cert-dates-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cert-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #3fb950;
    background-color: rgba(63, 185, 80, 0.12);
    border: 1px solid rgba(63, 185, 80, 0.35);
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
}

.cert-status-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #3fb950;
    box-shadow: 0 0 6px rgba(63, 185, 80, 0.8);
}

.certification-dates {
    font-size: 0.85rem;
    color: var(--txt);
    background-color: var(--bg-up);
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
    border: 1px solid var(--border);
}

.certification-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
    align-items: center;
}

.cert-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    background-color: var(--bg-mid);
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 0.8rem;
    color: var(--txt);
    font-weight: 500;
}

.cert-badge.cert-highlight {
    background-color: rgba(88, 166, 255, 0.12);
    border-color: rgba(88, 166, 255, 0.35);
    color: var(--other);
    font-weight: 600;
}

.certification-description {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--txt);
    margin: 0;
}

.certification-card-interactive {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.certification-card-interactive:focus-visible {
    outline: 2px solid #E51937;
    outline-offset: 3px;
}

.cert-view-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--other);
    background-color: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.certification-card-interactive:hover .cert-view-hint {
    background-color: rgba(229, 25, 55, 0.15);
    border-color: rgba(229, 25, 55, 0.45);
    color: #ff5c72;
}

/* Certificate Modal */
.cert-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.cert-modal-overlay[hidden] {
    display: none;
}

.cert-modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(1, 4, 9, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cert-modal-dialog {
    position: relative;
    z-index: 1;
    background-color: var(--bg-low);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.cert-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background-color: var(--bg-mid);
    gap: 1rem;
}

.cert-modal-heading-group h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--nav-txt);
    font-weight: 700;
}

.cert-modal-subtitle {
    font-size: 0.82rem;
    color: var(--txt);
    opacity: 0.85;
    display: inline-block;
}

.cert-modal-code-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.35rem;
}

.cert-code-divider {
    color: var(--border);
    font-size: 0.75rem;
}

.cert-code-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--bg-lower);
    border: 1px solid var(--border);
    padding: 0.2rem 0.45rem 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cert-code-chip:hover {
    border-color: var(--other);
    background-color: rgba(88, 166, 255, 0.08);
}

.cert-code-label {
    color: var(--txt);
    opacity: 0.8;
    font-size: 0.75rem;
}

.cert-code-val {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    color: #58A6FF;
    background: transparent;
    padding: 0;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.cert-copy-btn {
    background: var(--bg-mid);
    border: 1px solid var(--border);
    color: var(--txt);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    line-height: 1.2;
    transition: all 0.2s ease;
}

.cert-code-chip:hover .cert-copy-btn {
    border-color: var(--other);
    color: var(--nav-txt);
}

.cert-copy-btn.copied {
    background-color: rgba(63, 185, 80, 0.15);
    border-color: #3fb950;
    color: #3fb950;
}

.cert-modal-close {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--txt);
    font-size: 1.6rem;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cert-modal-close:hover {
    background-color: rgba(229, 25, 55, 0.15);
    border-color: #E51937;
    color: #ff5c72;
}

.cert-modal-body {
    padding: 1.25rem;
    background-color: #0b0e14;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cert-modal-image {
    max-width: 100%;
    height: auto;
    max-height: 60vh;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    display: block;
}

.cert-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    background-color: var(--bg-mid);
    gap: 1rem;
    flex-wrap: wrap;
}

.cert-modal-meta {
    font-size: 0.85rem;
    color: var(--txt);
}

.cert-modal-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cert-modal-btn {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.cert-modal-btn:hover {
    transform: translateY(-1px);
}

.cert-modal-btn-download {
    background-color: var(--bg-up);
    color: var(--nav-txt);
    border: 1px solid var(--border);
}

.cert-modal-btn-download:hover {
    border-color: var(--other);
    color: var(--other);
}

.cert-modal-btn-verify {
    background-color: #E51937;
    color: #ffffff;
    border: 1px solid #E51937;
}

.cert-modal-btn-verify:hover {
    background-color: #c9142e;
    border-color: #c9142e;
    color: #ffffff;
}

@media (max-width: 600px) {
    .cert-modal-overlay {
        padding: 0.5rem;
    }

    .cert-modal-dialog {
        max-height: 94vh;
        border-radius: 12px;
    }

    .cert-modal-header {
        padding: 0.85rem 1rem;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .cert-modal-heading-group h3 {
        font-size: 1.05rem;
        line-height: 1.3;
    }

    .cert-modal-code-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        margin-top: 0.4rem;
    }

    .cert-code-divider {
        display: none;
    }

    .cert-code-chip {
        width: 100%;
        box-sizing: border-box;
        justify-content: space-between;
        padding: 0.3rem 0.6rem;
    }

    .cert-code-val {
        font-size: 0.72rem;
        word-break: break-all;
    }

    .cert-modal-close {
        width: 32px;
        height: 32px;
        font-size: 1.4rem;
        flex-shrink: 0;
    }

    .cert-modal-body {
        padding: 0.75rem;
    }

    .cert-modal-image {
        max-height: 48vh;
        object-fit: contain;
    }

    .cert-modal-footer {
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .cert-modal-details {
        text-align: center;
    }

    .cert-modal-meta {
        font-size: 0.78rem;
    }

    .cert-modal-actions {
        width: 100%;
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
    }

    .cert-modal-btn {
        flex: 1;
        justify-content: center;
        padding: 0.45rem 0.6rem;
        font-size: 0.78rem;
        text-align: center;
    }
}


/* Retro Full-Screen Site View */
#retro-site-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 900;
    background-color: #0c1a2e;
}

#retro-site-view[hidden] {
    display: none;
}

#retro-fullscreen-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background-color: #0c1a2e;
}

/* Light-Switch Era Switcher (Floats on both 2026 and 2019 views) */
.site-version-switcher {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(6px) translateZ(0);
    will-change: transform, opacity;
    isolation: isolate;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: inline-flex;
    align-items: center;
    background-color: #0d1117 !important;
    border: 1px solid #30363d !important;
    border-radius: 30px;
    padding: 3px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
    z-index: 1001;
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s ease;
    opacity: 0;
    pointer-events: none;
    gap: 3px;
    user-select: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

body.in-retro-mode .site-version-switcher {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) translateZ(0) !important;
    border-color: #e3b341 !important;
    box-shadow: 0 0 16px rgba(227, 179, 65, 0.4) !important;
    background-color: #0d1117 !important;
    transition: none !important;
}

body.in-retro-mode .site-version-switcher * {
    transition: none !important;
}

body.in-retro-mode .site-footer,
body.in-retro-mode .homelab-badge {
    display: none !important;
}

.site-version-switcher.is-at-bottom {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) translateZ(0);
}

.site-version-switcher:hover {
    border-color: rgba(88, 166, 255, 0.5) !important;
}

.version-toggle-btn {
    position: relative;
    z-index: 2;
    transform: translateZ(0);
    isolation: isolate;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: transparent !important;
    border: 1px solid transparent !important;
    color: #8b949e !important;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.version-toggle-btn:focus {
    outline: none !important;
}

.version-toggle-btn:focus-visible {
    outline: 2px solid #58a6ff !important;
    outline-offset: 1px;
}

body.in-retro-mode .version-toggle-btn:focus-visible {
    outline-color: #e3b341 !important;
}

.version-toggle-btn .version-name {
    position: relative;
    z-index: 3;
    color: inherit !important;
}

.version-toggle-btn small {
    position: relative;
    z-index: 3;
    font-size: 0.72rem;
    opacity: 0.85;
    color: inherit !important;
}

.version-dot {
    position: relative;
    z-index: 3;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.version-dot.current {
    background-color: #58A6FF;
}

.version-dot.retro {
    background-color: #e3b341;
}

/* Active State for Modern Button */
#btn-ver-modern.active {
    background-color: #1f2937 !important;
    border-color: #388bfd !important;
    color: #58a6ff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(56, 139, 253, 0.2) !important;
}

#btn-ver-modern.active .version-dot.current {
    opacity: 1 !important;
    box-shadow: 0 0 8px rgba(88, 166, 255, 0.9);
    transform: scale(1.1);
}

/* Inactive Modern Button */
#btn-ver-modern:not(.active) {
    background-color: transparent !important;
    border-color: transparent !important;
    color: #8b949e !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

#btn-ver-modern:not(.active) .version-dot.current {
    opacity: 0.4 !important;
    box-shadow: none !important;
    transform: scale(0.9);
}

/* Active State for 2019 Retro Button */
#btn-ver-retro.active {
    background-color: #2e2614 !important;
    border-color: #e3b341 !important;
    color: #e3b341 !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(227, 179, 65, 0.25) !important;
}

#btn-ver-retro.active .version-dot.retro {
    opacity: 1 !important;
    box-shadow: 0 0 8px rgba(227, 179, 65, 0.9);
    transform: scale(1.1);
}

/* Inactive Retro Button */
#btn-ver-retro:not(.active) {
    background-color: transparent !important;
    border-color: transparent !important;
    color: #8b949e !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

#btn-ver-retro:not(.active) .version-dot.retro {
    opacity: 0.4 !important;
    box-shadow: none !important;
    transform: scale(0.9);
}

body.in-retro-mode #btn-ver-modern:not(.active) {
    color: #8b949e !important;
}

body.in-retro-mode #btn-ver-retro.active {
    color: #e3b341 !important;
}

@media (max-width: 820px) {
    /* Give plenty of bottom breathing room on mobile so fixed bottom elements never cut into education */
    .education-section {
        padding-bottom: 7.5rem;
    }

    /* Keep switcher nicely nestled above the corner badges without being too high */
    .site-version-switcher {
        bottom: 3.2rem !important;
        padding: 3px;
    }

    .site-version-switcher.is-at-bottom {
        bottom: 3.2rem !important;
    }

    /* Keep toggle right at the very bottom when viewing the 2019 retro site */
    body.in-retro-mode .site-version-switcher {
        bottom: 1rem !important;
    }

    .version-toggle-btn {
        padding: 0.28rem 0.6rem;
        font-size: 0.72rem;
    }

    .site-footer {
        left: 0.5rem !important;
        bottom: 0.6rem !important;
        padding: 0.25rem 0.55rem;
        font-size: 0.7rem;
    }

    .homelab-badge {
        right: 0.5rem !important;
        bottom: 0.6rem !important;
        padding: 0.25rem 0.55rem;
        font-size: 0.7rem;
        gap: 0.35rem;
    }
}

/* About Card Section */
.about-card {
    background-color: var(--bg-low);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    box-shadow: 0 8px 24px var(--main-shadow);
    margin-bottom: 2rem;
}

.about-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid var(--other);
    box-shadow: 0 0 15px var(--accent-shadow);
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-content h2 {
    margin-top: 0;
    color: var(--nav-txt);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.about-content .highlight {
    color: var(--other);
    font-weight: 600;
}

/* Projects Section */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 2rem;
}

.project-card {
    background-color: var(--bg-low);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    /* Can stack */
    gap: 2rem;
    align-items: center;
    box-shadow: 0 8px 24px var(--main-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.project-card.backbone-card {
    border-color: rgba(88, 166, 255, 0.45);
    background: linear-gradient(180deg, rgba(22, 27, 34, 0.95) 0%, rgba(33, 38, 45, 0.8) 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(88, 166, 255, 0.1);
}

.backbone-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: rgba(88, 166, 255, 0.15);
    border: 1px solid var(--other);
    color: var(--other);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    margin-bottom: 0.65rem;
}

/* Architecture Diagram Card */
.architecture-card {
    background-color: var(--bg-low);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 16px var(--main-shadow);
    margin-bottom: 2.5rem;
    transition: border-color 0.3s ease;
}

.architecture-card.compact-arch {
    max-width: 820px;
    margin: 0 auto 2.75rem auto;
    padding: 1.25rem 1.5rem 1rem;
    text-align: center;
}

.architecture-card.compact-arch .arch-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(48, 54, 61, 0.6);
}

.architecture-card.compact-arch .arch-header h2 {
    font-size: 1.25rem;
    color: var(--nav-txt);
    margin: 0.25rem 0 0 0;
    text-align: center;
}

.arch-diagram-wrap {
    width: 100%;
    overflow-x: auto;
    padding: 0.25rem 0;
}

.arch-svg {
    width: 100%;
    min-width: 600px;
    max-width: 760px;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .architecture-card {
        padding: 1.25rem 1rem;
    }

    .arch-header-left h2 {
        font-size: 1.3rem;
    }
}

/* Backbone Duo Integration */
.backbone-section-label {
    margin-bottom: 1rem;
    text-align: left;
}

.backbone-section-label h3 {
    margin: 0.25rem 0 0 0;
    font-size: 1.15rem;
    color: var(--nav-txt);
    font-weight: 600;
}

.project-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0.4rem;
}

.backbone-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    margin-bottom: 0;
}

.card-top-link {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 0.8rem;
    color: var(--txt);
    opacity: 0.75;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 3;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.card-top-link:hover {
    opacity: 1;
    color: var(--other);
    text-decoration: underline;
}

.backbone-tag.onprem-tag {
    color: #3fb950;
    background: rgba(63, 185, 80, 0.1);
    border: 1px solid rgba(63, 185, 80, 0.3);
}

.backbone-tag.cloud-tag {
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.3);
}

.project-card.backbone-card-top {
    margin-bottom: 0;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    border-color: rgba(63, 185, 80, 0.35);
}

.project-card.backbone-card-bottom {
    margin-top: 0;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border-color: rgba(88, 166, 255, 0.35);
}

.backbone-bridge {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: -1px 0;
    z-index: 2;
    padding: 0.35rem 0;
}

.backbone-bridge .bridge-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(63, 185, 80, 0.4), rgba(88, 166, 255, 0.4));
}

.backbone-bridge .bridge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #0d1117;
    border: 1px solid rgba(88, 166, 255, 0.4);
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #58a6ff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.backbone-bridge .bridge-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3fb950;
    box-shadow: 0 0 6px #3fb950;
}

.projects-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 3.5rem 0 2rem;
    color: var(--txt);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.projects-divider::before,
.projects-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.projects-divider span {
    padding: 0 1rem;
    color: var(--txt);
    opacity: 0.85;
}

@media (min-width: 769px) {
    .project-card.reverse-layout {
        flex-direction: row-reverse;
    }
}

@media (max-width: 768px) {
    .project-card {
        flex-direction: column !important;
        align-items: stretch;
        padding: 1.5rem;
    }

    .project-card .project-image {
        order: 1;
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: 180px;
        padding: 1.25rem;
    }

    .project-card .project-content {
        order: 2;
        width: 100%;
        min-width: 0;
    }
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: var(--other);
}

.project-image {
    flex: 1;
    min-width: 250px;
    height: 200px;
    background-color: var(--bg-mid);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border);
    overflow: hidden;
    padding: 1rem;
}

.project-image span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.project-image img {
    max-width: 100%;
    max-height: 170px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.project-content {
    flex: 2;
    min-width: 300px;
}

.project-title {
    font-size: 1.8rem;
    color: var(--nav-txt);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.project-tech {
    color: var(--other);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
    background-color: var(--bg-mid);
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
}

.project-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--txt);
    margin-bottom: 1.5rem;
}

/* Homelab Spec Chips */
.cluster-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.6rem;
    margin: 1rem 0 1.25rem 0;
}

.spec-chip {
    background-color: var(--bg-mid);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.spec-chip:hover {
    border-color: var(--other);
    transform: translateY(-1px);
}

.spec-chip-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--other);
}

.spec-chip-val {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--nav-txt);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-link {
    text-decoration: none;
    color: var(--other);
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--nav-txt);
}


/* Index Page Stuff */

.index-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hero-header {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem;
    background-color: var(--bg-low);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 15px 40px var(--main-shadow);
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--nav-txt);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.hero-content h2 {
    font-size: 1.8rem;
    color: var(--other);
    margin-top: 0;
    margin-bottom: 0.85rem;
}

.hero-cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background-color: var(--bg-low);
    border: 1px solid var(--border);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--nav-txt);
    margin-bottom: 1.35rem;
    box-shadow: 0 4px 12px var(--main-shadow);
    transition: border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

.hero-cert-badge:hover {
    border-color: #E51937;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(229, 25, 55, 0.25);
}

.hero-cert-badge .cert-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #3fb950;
    box-shadow: 0 0 6px rgba(63, 185, 80, 0.9);
}

.hero-cert-badge img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.hero-cert-dates {
    color: var(--txt);
    font-weight: 400;
    font-size: 0.8rem;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--txt);
    margin-bottom: 0;
}

.hero-image img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 4px solid var(--other);
    box-shadow: 0 0 25px var(--accent-shadow);
}

@media (max-width: 768px) {
    .hero-header {
        padding: 1rem 0.75rem;
        width: 100%;
        max-width: 100vw;
    }

    .hero {
        padding: 1.75rem 1.25rem;
        gap: 1.75rem;
        width: 100%;
        max-width: 100%;
        flex-direction: column-reverse;
        text-align: center;
        border-radius: 16px;
    }

    .hero-content {
        min-width: 0;
        width: 100%;
    }

    .hero-content h1 {
        font-size: 2.3rem;
        word-break: break-word;
    }

    .hero-content h2 {
        font-size: 1.25rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-image img {
        width: 190px;
        height: 190px;
        max-width: 100%;
    }

    .hero-cert-badge {
        font-size: 0.8rem;
        padding: 0.35rem 0.75rem;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 380px) {
    .hero-header {
        padding: 0.75rem 0.5rem;
    }

    .hero {
        padding: 1.25rem 0.85rem;
        gap: 1.25rem;
    }

    .hero-content h1 {
        font-size: 1.9rem;
    }

    .hero-content h2 {
        font-size: 1.1rem;
    }

    .hero-image img {
        width: 160px;
        height: 160px;
    }
}

/* Contact Form Styling */

main {
    background-color: var(--bg-lower);
    margin: 1em 4em 1em 4em;
    padding: 1em;
}

#contact-main-area {
    border: 2px solid var(--other);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--accent-shadow);
}

section {
    margin-bottom: 1em;
    padding: 0;
    width: 100%;
}

legend {
    font-size: 1.35rem;

    background-color: var(--bg-up);
    height: 1.70rem;
    color: var(--nav-txt);
    text-transform: uppercase;
    width: 100%;
    margin: 0;
    padding: 5px 0;
}

fieldset {
    margin: 0;
    padding: 0;
    background-color: var(--bg-mid);
    width: 100%;
    border: none;
}

form p {
    margin-top: 0.5em;
}

label {
    display: block;
    font-weight: bold;
    margin-top: 10px;
    color: var(--nav-txt);
}

input,
textarea,
select {
    display: block;
    width: 100%;
    padding: 5px;
    background-color: var(--bg-low);
    border: 1px solid var(--border);
    color: var(--txt);
}

select {
    width: 50%;
}

textarea {
    height: 80px;
}

.flexrow1,
.flexrow2 {
    display: flex;
    margin-top: 15px;
}

.column {
    flex: 1;
}

.box1,
.box2 {
    background-color: var(--bg-low);
    border: 1px solid var(--border);
    padding: 10px;
}


input[type="radio"],
input[type="checkbox"] {
    width: auto;
    display: inline-block;
    margin-right: 5px;
}

.inlinelabel {
    display: inline-block;
    font-weight: normal;
    margin-top: 0;
    color: var(--txt);
}

.licensebar {
    background-color: var(--bg-up);
    padding: 10px;
    margin-top: 15px;
}

.inputboxes {
    width: 150px;
    display: inline-block;
}

.bottombar {
    background-color: var(--bg-upper);
    padding: 15px;
    margin-top: 15px;
}

.submitbuttons {
    background-color: var(--other);
    color: var(--nav-bg);
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: bold;
    margin-right: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.submitbuttons:hover {
    background-color: var(--nav-txt);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-shadow);
}

fieldset {
    padding: 20px;
}

legend {
    height: auto;
    padding: 10px;
}

#comments-display {
    margin-top: 2rem;
}

.posted-comment {
    background-color: var(--bg-mid);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.posted-comment strong {
    color: var(--other);
    font-size: 1.1rem;
}

/* Skills Table */
.skills-table {
    margin: 3rem auto;
    width: 90%;
    border-collapse: collapse;
}

.skills-table th,
.skills-table td {
    padding: 10px;
    border: 1px solid var(--border);
}

.skills-table tr:nth-child(even) {
    background: var(--bg-low);
}

/* ==========================================================================
   Resume Page & ATS-Friendly Print Stylesheet
   ========================================================================== */

.resume-page-body {
    background-color: var(--bg-lower);
    color: var(--txt);
    min-height: 100vh;
}

/* Action Toolbar (Screen only) */
.resume-toolbar-container {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.resume-toolbar {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.toolbar-btn.primary-btn {
    background-color: var(--other);
    color: #0b0f19;
    border-color: var(--other);
    box-shadow: 0 2px 8px rgba(88, 166, 255, 0.3);
}

.toolbar-btn.primary-btn:hover {
    background-color: #79b8ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.4);
}

.toolbar-btn.secondary-btn {
    background-color: var(--bg-mid);
    color: var(--txt);
    border-color: var(--border);
}

.toolbar-btn.secondary-btn:hover {
    background-color: var(--bg-up);
    border-color: var(--txt-dim);
    color: var(--txt-bright);
}

/* Resume Paper Sheet Layout */
.resume-sheet-wrapper {
    max-width: 850px;
    margin: 2rem auto 5rem;
    padding: 0 1rem;
}

.resume-paper {
    background-color: #ffffff;
    color: #1a202c;
    border-radius: 6px;
    padding: 2.75rem 3rem;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.45;
}

/* Typography on Paper */
.resume-paper h1,
.resume-paper h2,
.resume-paper h3,
.resume-paper h4,
.resume-paper p,
.resume-paper span,
.resume-paper a,
.resume-paper li {
    color: #1a202c;
}

/* Header */
.resume-header {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #000000;
    margin-bottom: 1.25rem;
}

.resume-name {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.3rem 0;
    color: #000000 !important;
}

.resume-headline {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222222 !important;
    margin: 0 0 0.45rem 0;
}

.resume-contact-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: #444444 !important;
}

.resume-contact-bar a {
    color: #0284c7 !important;
    text-decoration: none;
    font-weight: 500;
}

.resume-contact-bar a:hover {
    text-decoration: underline;
}

.contact-divider {
    color: #888888 !important;
}

/* Section Common */
.resume-section {
    margin-bottom: 1.2rem;
    page-break-inside: auto;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #000000 !important;
    border-bottom: 1.5px solid #000000;
    padding-bottom: 0.2rem;
    margin: 0 0 0.65rem 0;
    page-break-after: avoid;
    break-after: avoid;
}

/* Entry */
.resume-entry {
    margin-bottom: 0.85rem;
    page-break-inside: avoid;
    break-inside: avoid;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.15rem;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.entry-title-group {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.entry-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #000000 !important;
    margin: 0;
}

.entry-location,
.entry-company,
.entry-org {
    font-size: 0.88rem;
    font-weight: 600;
    color: #111111 !important;
}

.entry-dates {
    font-size: 0.82rem;
    font-weight: 600;
    color: #444444 !important;
}

.entry-subheading {
    font-size: 0.85rem;
    color: #222222 !important;
    margin-bottom: 0.25rem;
}

.entry-subheading strong {
    color: #000000 !important;
}

.entry-meta-line {
    font-size: 0.82rem;
    color: #333333 !important;
    margin-bottom: 0.25rem;
}

.meta-separator {
    margin: 0 0.35rem;
    color: #666666 !important;
}

.entry-highlight {
    font-weight: 600;
    color: #000000 !important;
}

.entry-metrics-badge {
    display: inline-block;
    background-color: #f4f4f4;
    border-left: 3px solid #000000;
    padding: 0.25rem 0.55rem;
    font-size: 0.8rem;
    color: #000000 !important;
    margin: 0.2rem 0 0.4rem 0;
    border-radius: 0 4px 4px 0;
}

.cert-code-inline {
    background-color: #f4f4f4;
    border: 1px solid #cccccc;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-family: monospace;
    color: #000000 !important;
}

.cert-verify-link {
    color: #000000 !important;
    font-size: 0.82rem;
    text-decoration: underline;
    font-weight: 500;
}

.entry-tech-tag {
    font-size: 0.78rem;
    font-weight: 600;
    color: #333333 !important;
}

.entry-bullets {
    margin: 0.25rem 0 0 1.25rem;
    padding: 0;
    font-size: 0.85rem;
    color: #111111 !important;
}

.entry-bullets li {
    margin-bottom: 0.25rem;
    line-height: 1.4;
    color: #111111 !important;
}

.entry-bullets strong {
    color: #000000 !important;
}

/* Skills Category Layout */
.skills-category-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.84rem;
}

.skill-category-row {
    line-height: 1.4;
}

.category-name {
    color: #000000 !important;
    font-weight: 700;
    margin-right: 0.35rem;
}

.category-items {
    color: #222222 !important;
}

/* ==========================================================================
   Print-Specific Stylesheet (@media print)
   ========================================================================== */
@media print {
    @page {
        size: letter portrait;
        margin: 0.4in 0.5in;
    }

    /* Hide non-print elements */
    .no-print,
    .nav-bar,
    .resume-toolbar-container,
    .site-footer,
    .homelab-badge,
    .site-version-switcher {
        display: none !important;
    }

    body,
    .resume-page-body {
        background-color: #ffffff !important;
        color: #000000 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .resume-sheet-wrapper {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .resume-paper {
        background-color: #ffffff !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        color: #000000 !important;
    }

    .resume-paper a {
        text-decoration: none !important;
        color: #000000 !important;
    }

    .resume-contact-bar a {
        text-decoration: none !important;
        color: #000000 !important;
    }

    .section-title {
        border-bottom-color: #000000 !important;
        color: #000000 !important;
        page-break-after: avoid !important;
        break-after: avoid !important;
    }

    .entry-bullets li {
        color: #000000 !important;
    }

    .resume-entry {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .skills-category-list {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    #res-section-projects,
    .page-break-before {
        page-break-before: always !important;
        break-before: page !important;
    }
}

/* Mobile Responsiveness for Resume Screen View */
@media (max-width: 768px) {
    .resume-paper {
        padding: 1.5rem 1.25rem;
    }

    .resume-name {
        font-size: 1.6rem;
    }

    .resume-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-left,
    .toolbar-right {
        justify-content: space-between;
        width: 100%;
    }

    .toolbar-btn {
        flex: 1;
        justify-content: center;
        font-size: 0.8rem;
    }
}