body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f0f0f1;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.paper-container {
    width: 100%;
    max-width: 850px;
    margin: 20px auto;
    background: none;
}

.paper {
    background: white;
    padding: 40px;
    box-shadow: 
        0 1px 3px 0 rgba(0, 0, 0, 0.1),
        0 1px 2px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 2px;
    position: relative;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    margin: 0;
    color: #2c3e50;
    font-size: 2.5em;
    font-weight: 600;
}

.contact-info {
    margin: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.contact-info a {
    color: #3498db;
    text-decoration: none;
    padding: 0 5px;
}

/* Add separator between links */
.contact-info a:not(:last-child)::after {
    content: "|";
    color: #666;
    margin-left: 10px;
}

.section {
    margin: 25px 0;
    padding-bottom: 15px;
}

.section:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
}

.section-title {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4em;
    font-weight: 600;
    text-transform: uppercase;
}

.skills-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.skills-label {
    font-weight: 600;
    color: #34495e;
    min-width: 200px;
}

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

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

.job-title {
    font-weight: 600;
    color: #34495e;
}

.job-header span:last-child {
    color: #666;
    font-size: 0.9em;
}

ul {
    margin: 8px 0;
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
    text-align: justify;
}

.education-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    align-items: center;
}

.visitor-counter {
    text-align: center;
    background: white;
    margin-top: 30px;
    display: inline-block;
    padding: 8px 15px;
    box-shadow: 
        0 1px 3px 0 rgba(0, 0, 0, 0.1),
        0 1px 2px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 2px;
    font-size: 0.9em;
    color: #666;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

#visitor-count {
    font-weight: 600;
    color: #3498db;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
        font-size: 14px;
    }

    .paper {
        padding: 20px;
        margin: 10px;
    }

    h1 {
        font-size: 1.8em;
    }

    .contact-info {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 5px;
        font-size: 0.9em;
        flex-wrap: wrap;
    }

    .contact-info a {
        margin: 0;
        padding: 0 5px;
    }

    .section-title {
        font-size: 1.1em;
        margin-bottom: 10px;
    }

    .job-header {
        flex-direction: column;
        gap: 5px;
        font-size: 0.9em;
    }

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

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        font-size: 0.9em;
    }

    .skills-label {
        margin-top: 10px;
        min-width: unset;
    }

    .education-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        font-size: 0.9em;
    }

    ul {
        padding-left: 15px;
    }

    li {
        font-size: 0.9em;
        margin-bottom: 10px;
        line-height: 1.4;
    }

    .visitor-counter {
        font-size: 0.8em;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
        font-size: 13px;
    }

    .paper {
        padding: 12px;
        margin: 5px;
    }

    h1 {
        font-size: 1.6em;
    }

    .section {
        margin: 15px 0;
    }

    .section-title {
        font-size: 1em;
        margin-bottom: 8px;
    }

    .skills-grid {
        gap: 6px;
        font-size: 0.85em;
    }

    .job-header {
        font-size: 0.85em;
    }

    li {
        font-size: 0.85em;
        margin-bottom: 8px;
    }

    .contact-info {
        font-size: 0.85em;
    }
}