body {
    font-family: 'PT Serif', serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 2px solid #007bff;
}
header h1 {
    margin: 0;
    font-size: 2.5em;
    color: #007bff;
}
.contacts {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
    flex-direction: row;
}
a {
    color: #4169e1;
    text-decoration: none;
    font-size: 0.9em;
}
a:hover {
    text-decoration: underline;
}
section {
    margin: 20px 0;
}
h2 {
    color: #007bff;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    font-size: 1.8em;
}
.education, .job, .reference {
    margin-bottom: 15px;
}
.education h3, .job h3, .reference h3 {
    margin: 0;
    font-size: 1.2em;
    color: #333;
}
.education p, .job p, .reference p {
    margin: 5px 0;
    font-size: 0.95em;
}
.skills-grid, .projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}
.projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}
.project-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}
.project-item img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 5px;
}
.project-item div {
    flex: 1;
}
.project-item h3 {
    font-size: 1.1em;
    margin: 0;
}
ul {
    margin: 10px 0;
    padding-left: 20px;
}
ul li {
    list-style-type: none;
    margin-bottom: 5px;
}
.webgl-section {
    text-align: center;
}
.webgl-section canvas {
    max-width: 100%;
    width: 100%;
    max-height: 512px;
    height: auto;
    aspect-ratio: 1/1;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: block;
    margin: 0 auto;
}
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    header h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.5em;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .project-item {
        flex-direction: column;
    }
    .project-item img {
        width: 100%;
        height: auto;
    }
    .webgl-section canvas {
        max-height: 300px;
    }
}
