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

a,
a:visited,
a:hover {
    text-decoration: none;
    color: #fff;
}

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background: #0d1117;
    color: #c9d1d9;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.cv {
    display: flex;
    width: 210mm;
    min-height: 297mm;
    background: linear-gradient(135deg, #0a0e13 0%, #111820 100%);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    position: relative;
}

/* Subtle embedded grid background */
.cv::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

/* LEFT PANEL */
.left {
    background: #111820cc;
    width: 35%;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 1;
}

.photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #58a6ff;
    object-fit: cover;
    margin-bottom: 20px;
}

.name {
    font-size: 1.6em;
    font-weight: 700;
    color: #fff;
}

.role {
    font-size: 1em;
    color: #58a6ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.section {
    margin: 25px 0;
}

.section h3 {
    font-size: 0.95em;
    text-transform: uppercase;
    border-left: 4px solid #58a6ff;
    padding-left: 8px;
    margin-bottom: 10px;
    color: #58a6ff;
}

.section div {
    font-size: 0.9em;
    margin-bottom: 6px;
}

.cv-icon {
    height: 1em;
    width: 1em;
    filter: invert(1);
}

.information-badge {
    background-color: #444;
    padding: 2px;
    color: white !important;
    border-radius: 4px;
}

/* Progress bar skill */
.skill-bar {
    height: 6px;
    background: #222;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 3px;
}

.skill-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #58a6ff, #00d2ff);
}

/* RIGHT PANEL */
.right {
    width: 65%;
    padding: 40px 50px;
    z-index: 1;
}

h2 {
    font-size: 1.2em;
    text-transform: uppercase;
    color: #58a6ff;
    border-bottom: 1px solid #58a6ff44;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

.card {
    background: #161b22;
    border-left: 3px solid #58a6ff;
    border-radius: 6px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.card h4 {
    margin: 0;
    font-size: 1em;
    color: #fff;
}

.card span {
    font-size: 0.85em;
    color: #8b949e;
}

.card p {
    font-size: 0.9em;
    margin-top: 5px;
    line-height: 1.4em;
}

.nospace {
    font-size: 0;
}

@media print {
    body {
        background: none;
    }

    .cv {
        box-shadow: none;
    }

    .cv-icon {
        filter: invert(0);
    }

    .card h4,
    .name,
    .left,
    body,
    a {
        color: #000 !important;
    }

    .information-badge {
        border: solid 1px #aaa;
        padding: 1px;
        color: black !important;
    }

    .card {
        padding: 5px 5px;
        margin-bottom: 3px;
    }

    .section {
        margin: 0 0;
    }

    .do-not-print {
        display: none;
    }

    .card p, .role {
        margin-bottom: 3px;
    }

    /* .left {
        background-color: #aaa !important;
    } */
}