:root {
    --accent-green: #24ab00;
    --hover-green: #b5e7a0;
    --dark-bg: #23272a;
    --white: #fff;
    --gray-text: #333;
    --main-font: 'Raleway', Helvetica, Arial, sans-serif;
    --heading-font: 'Questrial', Helvetica, Arial, sans-serif;
    --max-width: 1100px;
    --section-padding: 18px 18px 12px 24px;
    --section-margin-bottom: 32px;
    --border-radius: 0;
}

body {
    background: var(--white);
    font-family: var(--main-font);
    color: #222;
    margin: 0;
    padding: 0;
}

.resume-container {
    display: flex;
    flex-direction: column;
    width: 100vw;
    max-width: 100vw;
    margin: 0 auto;
    background: var(--white);
    min-height: 100vh;
}

.sidebar {
    width: 100%;
    min-width: 0;
    padding: 18px 4px 10px 4px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background: var(--dark-bg);
    color: var(--white);
}

.sidebar-headshot img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--accent-green);
    margin-bottom: 0;
    background: var(--white);
}

.sidebar-header {
    margin-left: 12px;
}

.sidebar-header h1 {
    font-size: 1.2em;
    font-weight: 700;
    margin: 0 0 2px 0;
    text-align: left;
    letter-spacing: 1px;
}

.sidebar-header h2 {
    font-size: 1em;
    margin: 0 0 8px 0;
    color: var(--accent-green);
    text-align: left;
}

.sidebar-contact {
    margin-left: 12px;
}

.sidebar-contact ul {
    list-style: none;
    font-size: 0.98em;
    margin: 0 0 8px 0;
    padding: 0;
}

.sidebar-contact ul li {
    margin-bottom: 3px;
    color: var(--white);
}

.sidebar-contact a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-contact a:hover {
    color: var(--hover-green);
}

.sidebar-social {
    display: none;
}

.sidebar-skills {
    margin-bottom: var(--section-margin-bottom);
    border-left: 4px solid var(--accent-green);
    padding: 0;
}

.sidebar-skills h3 {
    margin: 0 0 12px 0;
}

.skill-group {
    margin-bottom: 8px;
    padding: 0;
}

.skill-group:last-child {
    margin-bottom: 0;
}

.skill-group h4 {
    font-size: 0.98em;
    margin: 0 0 2px 0;
    color: var(--dark-bg);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.skill-group ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.95em;
    color: var(--gray-text);
    display: block;
}

.skill-group ul li {
    display: inline;
}

.skill-group ul li:not(:last-child):after {
    content: ", ";
}

.main-content {
    padding: 10px 2vw 10px 2vw;
    background: var(--white);
    min-width: 0;
}

.main-content section {
    background: #f8fafb;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(72, 196, 0, 0.04);
    margin-bottom: 18px;
    padding: 18px 8px 12px 8px;
}

.main-content h2 {
    color: var(--accent-green);
    font-family: var(--heading-font);
    font-size: 1.15em;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.main-content h3 {
    font-size: 1em;
    margin-bottom: 1px;
    color: var(--dark-bg);
    font-weight: 700;
}

.main-content p,
.main-content li {
    color: var(--gray-text);
    font-size: 0.98em;
    line-height: 1.5em;
}

.subDetails {
    font-size: 0.9em;
    margin-bottom: 2px;
}

article {
    margin-bottom: 8px;
}

details {
    margin-top: 10px;
    margin-bottom: 10px;
}

details summary {
    cursor: pointer;
    color: var(--accent-green);
    font-weight: 600;
    margin-bottom: 10px;
}

.hey {
    color: var(--accent-green);
    font-size: 1.1em;
}

.skill-tooltip {
    position: relative;
    cursor: pointer;
    border-bottom: 1px dotted var(--accent-green);
    transition: color 0.2s;
}

.skill-tooltip:hover,
.skill-tooltip:focus {
    color: var(--accent-green);
}

.tooltip-content {
    display: none;
    position: absolute;
    left: 0;
    top: 1.5em;
    z-index: 10;
    min-width: 180px;
    background: var(--dark-bg);
    color: var(--white);
    font-size: 0.95em;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    white-space: normal;
    pointer-events: none;
}

.skill-tooltip:hover .tooltip-content,
.skill-tooltip:focus .tooltip-content {
    display: block;
    pointer-events: auto;
}

@media (hover: none) and (pointer: coarse) {

    .skill-tooltip:active .tooltip-content,
    .skill-tooltip:focus .tooltip-content {
        display: block;
        pointer-events: auto;
    }
}

@media (min-width: 900px) {
    .resume-container {
        flex-direction: row;
        max-width: var(--max-width);
        border-radius: 16px;
        box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
        min-height: 80vh;
    }

    .sidebar {
        width: 320px;
        min-width: 260px;
        flex-direction: column;
        align-items: center;
        padding: 40px 28px 32px 28px;
        background: var(--dark-bg);
        color: var(--white);
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.04);
        border-radius: 16px 0 0 16px;
    }

    .sidebar-headshot img {
        width: 120px;
        height: 120px;
        margin-bottom: 18px;
    }

    .sidebar-header {
        margin-left: 0;
    }

    .sidebar-header h1 {
        font-size: 2em;
        text-align: center;
    }

    .sidebar-header h2 {
        font-size: 1.1em;
        text-align: center;
    }

    .sidebar-contact {
        margin-left: 0;
    }

    .sidebar-contact ul {
        font-size: 1em;
        margin-bottom: 18px;
    }

    .sidebar-skills {
        margin-top: 18px;
    }

    .main-content {
        padding: 48px 48px 32px 48px;
    }

    .main-content section {
        padding: 32px 28px 24px 28px;
        margin-bottom: 32px;
    }

    .main-content h2 {
        font-size: 1.5em;
        margin-bottom: 18px;
    }

    .main-content h3 {
        font-size: 1.1em;
        margin-bottom: 2px;
    }
}

.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 24px 24px 24px;
    background: var(--dark-bg);
    color: var(--white);
    margin-bottom: 32px;
    border-bottom: none;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent-green);
    background: var(--white);
    padding: 5px;
}

.header-name-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.header-name-title h1 {
    font-size: 2.2em;
    margin: 0 0 4px 0;
    font-family: var(--heading-font);
    font-weight: 700;
    letter-spacing: 1px;
}

.header-name-title h2 {
    font-size: 1.2em;
    margin: 0;
    color: var(--accent-green);
    font-family: var(--main-font);
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.header-contact {
    font-size: 1em;
    margin-bottom: 6px;
    text-align: right;
}

.header-contact span {
    color: var(--white);
    font-weight: 600;
    margin-right: 2px;
}

.header-contact a {
    color: var(--white);
    text-decoration: none;
    margin-left: 2px;
}

.header-contact a:hover {
    color: var(--accent-green);
}

.header-social {
    display: flex;
    gap: 16px;
}

.header-social a {
    color: var(--accent-green);
    font-size: 1.3em;
    text-decoration: none;
    transition: color 0.2s;
}

.header-social a:hover {
    color: var(--hover-green);
}

.left-col section,
.right-col section,
.sidebar-skills {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-left: 4px solid var(--accent-green);
    margin-bottom: var(--section-margin-bottom);
    padding: var(--section-padding);
}

.left-col section:last-child,
.right-col section:last-child {
    margin-bottom: 0;
}

.left-col h2,
.right-col h2,
.sidebar-skills h3 {
    color: var(--accent-green);
    font-family: var(--heading-font);
    font-size: 1.3em;
    margin-bottom: 12px;
    letter-spacing: 1px;
    font-weight: 700;
}

.left-col h3,
.right-col h3 {
    font-size: 1.05em;
    margin-bottom: 2px;
    color: black;
    font-weight: 900;
}

.left-col p,
.right-col p,
.left-col li,
.right-col li {
    color: var(--gray-text);
    font-size: 1em;
    line-height: 1.5em;
}

@media not print {
@media (max-width: 900px){
    .resume-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 4vw 16px 4vw;
        margin-bottom: 24px;
    }

    .header-left,
    .header-right {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .header-name-title {
        align-items: center;
    }

    .header-right {
        margin-top: 12px;
        align-items: center;
        text-align: center;
    }

    .header-contact {
        text-align: center;
    }

    .header-social {
        justify-content: center;
    }

    .main-columns {
        padding: 0 2vw;
    }

    .left-col section,
    .right-col section,
    .sidebar-skills {
        padding: 14px 8px 10px 12px;
        margin-bottom: 18px;
        border-left: 3px solid var(--accent-green);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        border-radius: var(--border-radius);
    }

    .education {
        margin-top: 18px;
    }
}
}

.main-columns {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 8px;
}

.left-col,
.right-col {
    width: 100%;
}

.left-col {
    margin-bottom: var(--section-margin-bottom);
}

@media (min-width: 900px) {
    .main-columns {
        flex-direction: row;
        gap: 32px;
        align-items: flex-start;
    }

    .left-col,
    .right-col {
        width: 50%;
        min-width: 0;
    }

    .left-col {
        margin-bottom: 0;
    }
}

@media print {
    .header-social{
        display: none !important;
    }
    .left-col, .right-col {
        margin-bottom: 0 !important;
    }
    html, body {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }
    .resume-header {
        padding: 22px 12px 8px 12px !important;
        margin-bottom: 12px !important;
    }
    .header-logo img {
        width: 40px !important;
        height: 40px !important;
        margin-right: 10px !important;
    }
    .header-name-title h1 {
        font-size: 1.2em !important;
        margin-bottom: 2px !important;
    }
    .header-name-title h2 {
        font-size: 1em !important;
        margin-bottom: 2px !important;
    }
    .header-contact, .header-social {
        font-size: 0.95em !important;
        gap: 6px !important;
    }
    .left-col section, .right-col section, .sidebar-skills {
        padding: 6px 6px 6px 6px !important;
        margin-bottom: 6px !important;
    }
    section, article {
        margin-bottom: 6px !important;
        padding-bottom: 0 !important;
    }
    h2, .sidebar-skills h3 {
        font-size: 1em !important;
        margin-bottom: 4px !important;
    }
    h3 {
        font-size: 0.98em !important;
        margin-bottom: 2px !important;
    }
    .subDetails {
        font-size: 0.85em !important;
        margin-bottom: 1px !important;
    }
    .print-skill-detail {
        display: inline !important;
    }
    .tooltip-content {
        display: none !important;
    }
    body, .resume-header, .main-columns {
        break-before: avoid;
        break-inside: avoid;
        page-break-before: avoid;
        page-break-inside: avoid;
    }
    .resume-header {
        break-after: avoid;
        page-break-after: avoid;
    }
    #showMore {
        display: none !important;
    }
    .more-job {
        display: block !important;
    }
}

@media (max-width: 900px) or (print) {
    .main-columns {
        display: flex;
        flex-direction: column;
    }

    .about {
        order: 1;
    }

    .experience {
        order: 2;
    }

    .sidebar-skills {
        order: 3;
    }

    .open-source {
        order: 4;
    }

    .mobile-apps {
        order: 5;
    }

    .education {
        order: 6;
    }

    .left-col,
    .right-col {
        display: contents;
    }
}

.print-skill-detail {
    display: none;
}

.open-source h3 a {
    color: var(--accent-green);
    margin-left: 8px;
    font-size: 1em;
    text-decoration: none;
    transition: color 0.2s;
}

.open-source h3 a:hover {
    color: var(--hover-green);
}

.hide {
    display: none !important;
}

#showMore {
    display: inline-block;
    margin: 12px 0 0 0;
    color: var(--accent-green);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1em;
    padding: 0;
}

@media print {
    #showMore {
        display: none !important;
    }
    .more-job {
        display: block !important;
    }
}