* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #e8edf1;
    min-height: 100vh;
}

.container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.sidebar {
    background: linear-gradient(135deg, #2c5364 0%, #203a43 100%);
    color: white;
    padding: 40px 30px;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.3);
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.main-content {
    padding: 40px 50px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 5px;
    color: #2c5364;
}

.job-title {
    font-size: 1.3em;
    color: #666;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-info p {
    margin: 8px 0;
    font-size: 0.9em;
}

.contact-info a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.contact-info a:hover,
.contact-info a:focus {
    opacity: 0.8;
    text-decoration: underline;
}

a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.section {
    margin-bottom: 35px;
}

.section-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 3px solid #2c5364;
    color: #2c5364;
}

.sidebar .section-title {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
    font-size: 1.3em;
}

.sidebar-summary {
    font-size: 0.9em;
    line-height: 1.6;
}

.job {
    margin-bottom: 25px;
    padding: 12px;
    margin-left: -12px;
    margin-right: -12px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.job:hover {
    background-color: #f0f4f8;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
}

.job-position {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c5364;
    margin: 0;
}

.job-date {
    color: #666;
    font-size: 0.9em;
}

.job-company {
    color: #0066cc;
    font-weight: 600;
    margin-bottom: 8px;
}

.job-location {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.job-description ul {
    margin-left: 20px;
    margin-top: 8px;
}

.job-description li {
    margin: 5px 0;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-bars {
    display: flex;
    gap: 3px;
}

.skill-bar {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

.skill-bar.filled {
    background: white;
}

.strengths-list, .achievements-list {
    list-style: none;
}

.strengths-list li, .achievements-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.strengths-list li:before, .achievements-list li:before {
    content: "\25C6";
    position: absolute;
    left: 0;
    color: rgba(255,255,255,0.9);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pdf-download {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.15);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.pdf-download:hover,
.pdf-download:focus {
    background: rgba(255,255,255,0.25);
}

.education-item {
    margin-bottom: 20px;
}

.education-degree {
    font-weight: bold;
    font-size: 1.1em;
    color: #2c5364;
    margin: 0;
}

.education-school {
    color: #0066cc;
    margin-top: 3px;
}

.education-year {
    color: #666;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .container {
        display: flex;
        flex-direction: column;
    }

    .main-content {
        order: 1;
        padding: 30px 20px;
    }

    .sidebar {
        order: 2;
        padding: 30px 20px;
    }

    h1 {
        font-size: 1.8em;
    }

    .job-title {
        font-size: 1em;
        letter-spacing: 1px;
    }

    .job-header {
        flex-direction: column;
        gap: 2px;
    }

    .job-date {
        order: -1;
        font-size: 0.85em;
    }
}

@media print {
    body {
        font-size: 10pt;
        color: #000;
        background: white;
    }

    .pdf-download {
        display: none;
    }

    .job {
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .container {
        display: block;
        box-shadow: none;
        max-width: 100%;
    }

    .sidebar {
        background: none;
        color: #000;
        padding: 20px 0;
        border-bottom: 2px solid #2c5364;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 30px;
    }

    .profile-img {
        display: none;
    }

    .sidebar .section-title {
        color: #2c5364;
        border-bottom-color: #2c5364;
    }

    .sidebar-summary {
        color: #333;
    }

    .strengths-list li:before,
    .achievements-list li:before {
        color: #2c5364;
    }

    .skill-bar {
        background: #ccc;
    }

    .skill-bar.filled {
        background: #2c5364;
    }

    .contact-info a {
        color: #000;
        text-decoration: underline;
    }

    .main-content {
        padding: 20px 0;
    }

    .job {
        page-break-inside: avoid;
    }

    .education-item {
        page-break-inside: avoid;
    }

    .section-title {
        page-break-after: avoid;
    }
}
