

:root {
    /* New palette: Sage / Forest (warm green, not too cool) */
    --primary-color: #E9F3E3;          /* light sage (sidebar, accents) */
    --primary-text-color: #1A1F16;     /* warm charcoal text */
    --primary-color-dark: #2F5D3A;     /* forest green accents */
    --primary-color-light: #7A8F75;    /* mid sage for muted text */
    --secondary-color: #FFFFFF;        /* page background */
    --secondary-color-dark: #E8EFE6;   /* warm light divider */
    --background-color: #FAFCF7;       /* very light warm greenish background */
    --border-color: #D8E2D4;           /* soft warm border */
    --text-color: #1A1F16;             /* body text */
    --content-max-width: 74ch;
    /* softer accent for subtle lines */
    --accent-soft: #D2E3CD;
}


html,
body {
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    font-family: Roboto, sans-serif;
    font-size: 100%;
    color: var(--text-color)
}

#viewport {
    margin: auto;
    width: 1024px;
    align-items: center;
}

#page1, #page2, #page3, #page4 {
    display: flex;
    width: 1024px;
    height: 1350px;
    box-shadow: 0px 0px 10px 5px rgba(17, 24, 39, 0.08);
    background-color: var(--secondary-color);
    margin-top: 10px;
    margin-bottom: 10px;
    border: solid 2px var(--border-color);
}

.resume-sidebar {
    padding: 1.25rem;
    background-color: var(--primary-color);
    width: 250px;
    color: var(--primary-text-color);
    flex-shrink: 0;
}

.resume-content {
    padding: 1.5rem;
    line-height: 1.5;
}

h2 {
    display: flex;
    white-space: nowrap;
    width: 100%;
    font-weight: 1000;
    margin-bottom: 5px;
    margin-top: 10px;
}

.resume-sidebar h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

h2:after {
    content: '';
    position: relative;
    top: 0.65em;
    flex-grow: 2;
    margin-left: 15px;
}

.resume-sidebar h2:after {
    border-top: 1px solid var(--secondary-color-dark);
}

.resume-content h2:after,
.resume-content h1:after,
.resume-content h1:before {
    display: none;
}

.resume-content h2,
.resume-content h1 {
    color: var(--primary-text-color);
    margin-bottom: 1.25rem;
    margin-top: 1.75rem;
    font-weight: 700;
    font-size: 1.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-soft);
    position: relative;
}

.resume-content h1:first-child {
    margin-top: 0;
}

.resume-content h2:first-child {
    margin-top: 1.75rem;
}

h1 {
    margin-top: 0;
    display: flex;
    white-space: nowrap;
    width: 100%;
    font-weight: 1000;
}



#summary p {
    margin-left: 0;
    margin-right: 0;
    text-align: justify;
    padding-left: 0.6rem;
    max-width: var(--content-max-width);
}

#skills-tools {
    display: flex;
    flex-wrap: wrap;
}

#skills-tools ul {
    flex-grow: 1;
}

#personal, #company {
    width: 100%;
    margin-bottom: 1rem;
}

#photo img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0;
    border: 2px solid var(--secondary-color);
}

#photo {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

#company h2 {
    margin-bottom: 0.75rem;
}

#company>.info, #personal>.info {
    display: flex;
    margin-bottom: 0.5rem;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.info>* {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
}

.info img {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.bar {
    display: none;
    justify-content: space-between;
    margin-top: 5px;
    margin-bottom: 5px;
}

.block {
    height: 0.5em;
    display: inline-block;
    background-color: var(--primary-color-light);
    flex-grow: 1;
    margin-right: 5px;
}

.filled {
    background-color: var(--secondary-color-dark);
}

.text-small {
    font-size: 0.75em;
}

.skill {
    margin-bottom: 0.75rem;
}

/* New skill category styling */
.skill-category {
    margin-bottom: 0.75rem;
}

.skill-category h3 {
    padding-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 0.4rem 0;
    color: var(--primary-text-color);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.skill-category h3:after {
    display: none;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background-color: var(--secondary-color);
    color: var(--primary-text-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--secondary-color-dark);
    white-space: nowrap;
}

#name {
    font-size: 1.7em;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--primary-text-color);
}

#title {
    font-size: 1.05em;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--primary-text-color);
    opacity: 0.8;
}

#name,
#title {
    width: 100%;
    text-align: center;
}

.work-item {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 0.75rem;
    margin-top: 0;
    margin-right: 0;
    align-items: start;
    padding: 0.6rem;
    background-color: rgba(255, 255, 255, 0.5);
    gap: 0.5rem;
    position: relative;
}

.work-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    bottom: 0.75rem;
    width: 2px;
    background-color: var(--accent-soft);
}

/* Removed hover effects for static appearance */

/* Compact work items for older roles */
.work-item.compact {
    margin-bottom: 0.4rem;
    padding: 0.4rem;
}

.work-item.compact .title {
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

.work-item.compact .company {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.work-item.compact .timeframe {
    font-size: 0.7rem;
    padding: 0.1rem 0.25rem;
}

.work-item ul {
    break-before: avoid;
    break-inside: avoid;
    text-align: left;
}

#certifications .work-item {
    margin-bottom: 5px;
}

.timeframe {
    width: 80px;
    color: var(--primary-color-dark);
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    background-color: var(--primary-color);
    padding: 0.15rem 0.3rem;
    border-radius: 3px;
    border: 1px solid var(--primary-text-color);
    line-height: 1.2;
}

/* Position grid to align title and timeframe on one row */
.position {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
}

.position .title {
    grid-column: 1;
}

.position .timeframe {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
}

.position .company,
.position .jobdescription {
    grid-column: 1 / -1;
}

.keywords {
    width: 100%;
    font-style: italic;
    color: var(--primary-color-light);
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    line-height: 1.3;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    grid-column: 1 / -1;
}

.title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-text-color);
    margin-bottom: 0.25rem;
    width: 100%;
}

.company {
    color: var(--primary-color-light);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    width: 100%;
    font-style: italic;
}

.jobdescription {
    margin-top: 0.4rem;
    text-align: justify;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    max-width: var(--content-max-width);
}

.jobdescription p {
    margin-top: 0.2rem;
    margin-bottom: 0.4rem;
    line-height: 1.4;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    text-justify: inter-word;
}

ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-inline-start: 1.5rem;
}

.jobdescription ul {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.jobdescription li {
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

#education .title, #certifications .title {
    font-size: 1.1rem;
}

#education .company, #certifications .company {
    font-size: 1.1rem;
}

#didyouknow {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    margin-top: 2rem;
    margin-bottom: 0;
    padding: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--primary-color-dark);
    text-align: center;
    line-height: 1.3;
}

#didyouknow :first-child {
    font-weight: 700;
}

#interests p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

#certifications .cert-item {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.3;
}

#certifications .cert-year {
    color: var(--primary-color-light);
    font-weight: 600;
    min-width: 2.5rem;
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

#certifications .cert-name {
    flex: 1;
}

#education .edu-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    line-height: 1.3;
}

#education .edu-year {
    color: var(--primary-color-light);
    font-weight: 600;
    min-width: 4rem;
    margin-right: 0.5rem;
    font-size: 0.8rem;
    margin-top: 0.1rem;
}

#education .edu-details {
    flex: 1;
}

#education .edu-degree {
    font-weight: 600;
    margin-bottom: 0.2rem;
    font-size: 0.85rem;
}

#education .edu-school {
    font-size: 0.8rem;
    color: var(--primary-color-light);
    line-height: 1.2;
}