:root {
    --cv-split: 33.333%;
    --cv-screen-gap: 40px;
    --cv-sheet-width-screen: min(1400px, calc(100vw - var(--cv-screen-gap)));
    --cv-screen-seam: calc(50% - (var(--cv-sheet-width-screen) / 6));
}

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    margin: 20px;
}

body.cv-page {
    background: linear-gradient(to right, #417e5a 0 var(--cv-screen-seam), #ffffff var(--cv-screen-seam) 100%);
}

body.portfolio-page {
    background: #ffffff;
}

.container {
    background-color: white !important;
}

.cv-sheet {
    width: var(--cv-sheet-width-screen);
    max-width: var(--cv-sheet-width-screen) !important;
    min-height: auto;
    margin: 0 auto;
    padding: 0;
    background: linear-gradient(to right, #417e5a 0 var(--cv-split), #ffffff var(--cv-split) 100%) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.portfolio-sheet {
    width: min(1400px, calc(100vw - var(--cv-screen-gap)));
    max-width: min(1400px, calc(100vw - var(--cv-screen-gap))) !important;
    margin: 0 auto;
    background: white !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.cv-layout {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    margin: 0 !important;
}

.cv-sidebar,
.cv-main {
    padding: 10mm 8mm;
}

.cv-main {
    background: transparent;
    color: #222;
}

.cv-footer {
    width: 100%;
    padding: 0;
    margin-top: 0.35rem;
    text-align: right;
}

@media screen and (max-width: 900px) {
    .cv-sheet {
        background: white !important;
    }

    .portfolio-sheet {
        width: 100%;
        max-width: 100% !important;
        box-shadow: none;
    }

    .language-toggle {
        position: static;
        justify-content: flex-start;
        align-items: stretch;
        max-width: none;
        margin: 1rem 1rem 0;
        border-radius: 1rem;
        border-right: 1px solid rgba(42, 62, 52, 0.1);
        opacity: 1;
        background: rgba(255, 255, 255, 0.96);
    }

    .menu-group {
        justify-content: flex-start;
    }

    .cv-sidebar,
    .cv-main {
        padding: 1rem;
    }
}

a {
    text-decoration: none;
    color: #000;
}

header {
    text-align: center;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
    position: relative;
}

.name {
    font-weight: bold;
    display: block;
    font-size: 2em;
}

.title {
    font-weight: bold;
    display: block;
    color: #666;
    font-size: 1.5em;
}

.photo-container {
    border: max(1px, 0.2rem) solid #cdd9e526;
    border-radius: 50%;
    margin-right: 0.5em;
    width: 12em;
    height: 12em;
}

.photo {
    border-radius: 50%;
    width: 13em;
    height: 13em;
    border:0.35em solid #e2e2e2;
}

.table-no-bg {
    --bs-table-bg:  rgba(0,0,0,0) !important;
}

.cover {
    width: 100%;
}

.language-toggle {
    position: absolute;
    top: 14px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
    justify-content: flex-end;
    max-width: min(90vw, 40rem);
    padding: 0.55rem 0.7rem;
    border-radius: 1rem 0 0 1rem;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(42, 62, 52, 0.1);
    border-right: 0;
    box-shadow: 0 0.6rem 1.4rem rgba(34, 51, 44, 0.12);
    backdrop-filter: blur(10px);
    opacity: 0.28;
    transition: opacity 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
    z-index: 10;
}

.language-toggle:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 0.8rem 1.8rem rgba(34, 51, 44, 0.2);
}

.menu-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
    width: 100%;
}

.menu-link {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    color: #2b4137;
    background: rgba(65, 126, 90, 0.08);
    border: 1px solid transparent;
    font-weight: 600;
    line-height: 1;
    transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.menu-link:hover {
    text-decoration: none;
    background: rgba(65, 126, 90, 0.16);
    color: #1f3028;
}

.menu-link.is-active {
    background: #417e5a;
    color: white;
}

.menu-link-primary {
    background: #2b4137;
    color: white;
}

.menu-link-primary:hover {
    background: #1f3028;
    color: white;
}

.contact-info {
    justify-content: space-between;
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin: 0 10px;
    text-align: left;
}

section {
    margin-bottom: 20px;
}

.cv-sidebar section {
    margin-bottom: 10px;
}

.cv-sidebar .table {
    margin-bottom: 0.35rem;
}

h3 {
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    color: #333;
}

.cv-sidebar h3 {
    margin-bottom: 0.35rem;
}

.experience, .project {
    margin-bottom: 15px;
}

.languages {
    list-style: none;
    padding: 0;
}

.languages li {
    /* display: inline-flex; */
    display: inline-block;
    /* align-items: center; */
    background: #e2e2e2;
    padding: 5px 5px;
    margin: 5px;
    border-radius: 3px;
}

.language_swatch {
    background-color: #ff0000;
    display: inline-block;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    border: max(1px, 0.0625rem) solid #cdd9e526;
    margin-right: 0.2em;
    vertical-align: middle; /* Aligns swatch vertically */
}

.language_name {
    padding-top: 0.2em;
    vertical-align: middle; /* Ensure the text aligns vertically with the swatch */
}

.tech_swatch {
    background-color: #ff0000;
    display: inline-block;
    width: 1em;
    height: 1em;
    border: max(1px, 0.0625rem) solid #cdd9e526;
    margin-right: 0.2em;
    vertical-align: middle; /* Aligns swatch vertically */
}

.skills {
    list-style: none;
    padding: 0;
}

.skills li {
    display: inline-block;
    background: #e2e2e2;
    padding: 5px 5px;
    margin: 5px;
    border-radius: 3px;
}

footer {
    text-align: center;
    margin-top: -1em;
    color: #777;
}

.years {
    font-style: italic;
    color: #666;
    /* margin-left: 10px; */
}

.logo-exp-edu-stack {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 0.35em;
    padding-right: 0.35em;
}

.logo-exp-edu-container {
    display: inline-block;
    border: max(1px, 0.2rem) solid #cdd9e526;
    background-color: #cdd9e526;
    vertical-align: top;
    border-radius: 50%;
    width: 4em;
    height: 4em;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-exp-edu-container + .logo-exp-edu-container {
    margin-left: -1em;
}

.logo-exp-edu {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exp-title {
    font-weight: bold;
    display: block;
    font-size: 1.25em;
    /* margin-block-start: 0.5em;
    margin-block-end: 0.5em; */
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    margin-bottom: -0.25em;
}

.exp-block {
    min-width: 0;
    flex: 1;
}

.exp-header-container {
    display: flex;
    align-items: flex-start;
}

.exp-list {
    padding-left: 5em;
    margin-top: -0.85em;
}

.exp-list-multi-logo {
    margin-top: -0.35em;
}

.badge-size-0-75em {
	font-size: 0.75em !important;
}

.badge-size-1em {
	font-size: 1em !important;
    margin: 0.1em;
}

.badge-weight-500 {
	font-weight: 500 !important;
}

.text-bg-light-gray {
    background-color: #e2e2e2;
    color: black;
}

.text-bg-green {
    background-color: #59ad7b;
    color: white;
}

.invisible-border
{
    border: rgba(0,0,0,0);
}

.table-ssm {
    th,
    td {
        padding: 0.1em;
    }
}

.exp-list {
    li::marker {
        color: #777;
    }
}

.langSpoken {
    font-weight: bold;
    font-size: 1.5em;
}

.fancycv {
    background-color: transparent;
    color: white;
}
.fancycv h3 {
    color: white;
}

.fancycv table {
    --bs-table-color: white;
}

.fancycv a {
    color: white;
}

.fancycv .title {
    color:#b5ae30;
}

@media print {
    @page { size: A4; margin: 0; }

    body {
        font-size: 7.5pt;
        margin: 0;
        background-color: white !important;
    }
    
    /* Hide language toggle in the PDF */
    .language-toggle {
        display: none;
    }
    
    /* Adjust margins and font sizes for printing */
    .cv-sheet {
        width: 210mm;
        min-height: 297mm;
        margin: 0;
        padding: 0;
        max-width: 100% !important;
        box-shadow: none;
        background: linear-gradient(to right, #417e5a 0 33.333%, #ffffff 33.333% 100%) !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .cv-layout {
        margin: 0 !important;
    }

    .cv-sidebar,
    .cv-main {
        padding-top: 3mm;
        padding-bottom: 2mm;
    }

    .cv-sidebar {
        padding-left: 8mm;
        padding-right: 6mm;
    }

    .cv-main {
        padding-left: 7mm;
        padding-right: 8mm;
    }

    .cv-footer {
        padding: 0 8mm 1mm;
        margin-top: -2mm;
    }

    h1, h2, h3 {
        font-size: 20px;
    }
    h3 {
        padding-bottom: 3px;
    }
    .copyright {
        display: none;
    }
    header {
        padding-bottom: 0px;
        margin-bottom: 0px;
    }
    .languages li {
        padding: 3px 3px;
        margin: 2px;
    }
    .skills li {
        padding: 3px 3px;
        margin: 2px;
    }
    .experience {
        break-inside: avoid;
    }
}
