﻿body {
    font-family: sans-serif;
    line-height: 1.6;
    background-color: #f6f6f6;
    color: #000;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 50%;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #fff;
    border: 1px solid #a2a9b1;
}

header {
    border-bottom: 1px solid #a2a9b1;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h1,
h2,
h3 {
    margin-top: 10px;
    margin-bottom: 10px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #a2a9b1;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.nav-right {
    margin-left: auto;
}

nav a {
    text-decoration: none;
    color: #0645ad;
    cursor: pointer;
}

nav a:hover {
    text-decoration: underline;
}

.profile-photo {
    float: right;
    width: 250px;
    margin-left: 20px;
    margin-bottom: 10px;
}

.profile-photo img {
    width: 100%;
    display: block;
    border: 1px solid #000;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 25px;
    font-size: 0.95em;
    vertical-align: top;
}

th,
td {
    border: 1px solid #a2a9b1;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

th {
    background-color: #eaecf0;
    font-weight: bold;
}

footer {
    margin-top: 50px;
    padding: 20px;
    border-top: 1px solid #a2a9b1;
    font-size: 0.85em;
    background-color: #f8f9fa;
}

.contacts a {
    margin-right: 15px;
    color: #0645ad;
    text-decoration: none;
}

.contacts a:hover {
    text-decoration: underline;
}

.clear {
    clear: both;
}

.project-card {
    border: 1px solid #a2a9b1;
    background-color: #fff;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.project-info {
    flex: 1;
}

.project-image {
    width: 200px;
    height: 120px;
    flex-shrink: 0;
    border: 1px solid #a2a9b1;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.project-image::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #a2a9b1;
    border-radius: 4px;
}

.project-image:hover::after {
    opacity: 1;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-image:hover img {
    transform: scale(1.05);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.modal-content,
#caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: normal;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px) {
    .modal-content {
        width: 100%;
    }
}

.project-card h3 {
    margin-top: 0;
    color: #0645ad;
    border-bottom: 1px solid #eaecf0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.project-card-details p {
    margin: 8px 0;
}

.blog-list {
    list-style-type: disc;
}

.blog-list li {
    margin-bottom: 10px;
}

.blog-date {
    font-size: 12px;
    color: #54595d;
    font-weight: bolder;
}

.project-tag {
    display: inline-block;
    background-color: #eaecf0;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.85em;
    margin-right: 5px;
}

.project-tools {
    font-size: 0.8em;
    color: #0645ad;
    font-weight: bold;
    margin-top: 10px;
    font-family: sans-serif;
}

.project-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    color: #0645ad;
    text-decoration: none;
}

.project-link:hover {
    text-decoration: underline;
}

.resume-section {
    margin-bottom: 30px;
}

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

.resume-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.resume-item-header h3 {
    margin: 0;
    font-size: 1.15em;
}

.resume-item-date {
    font-size: 0.9em;
    color: #54595d;
    white-space: nowrap;
    margin-left: 10px;
}

.resume-item-header h3 small {
    font-size: 0.8em;
    font-weight: normal;
    color: #54595d;
}

.resume-item ul li {
    font-size: 14px;
}

hr {
    border: 0;
    border-top: 1px solid #eaecf0;
    margin: 20px 0;
}

.resume-item-role {
    font-weight: bold;
    color: #202122;
    margin: 4px 0;
}

.skills-languages-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.skills-languages-row .resume-section:first-child {
    flex: 2;
}

.skills-languages-row .resume-section:last-child {
    flex: 1;
}

.skills-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    margin-bottom: 10px;
    font-size: 14px;
}

.skills-category {
    font-weight: bold;
}

@media (max-width: 600px) {
    .container {
        margin: 0;
        border: none;
    }

    .profile-photo {
        float: none;
        width: 100%;
        margin: 0 auto 20px auto;
    }

    .skills-languages-row {
        flex-direction: column;
        gap: 0;
    }

    .project-card {
        flex-direction: column;
    }

    .project-image {
        width: 100%;
        height: 180px;
    }
}

p {
    margin: 0;
}

pre {
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    padding: 15px;
    overflow-x: auto;
    font-family: monospace;
    font-size: 0.9em;
    line-height: 1.4;
    margin: 20px 0;
}

code {
    font-family: monospace;
    background: #f8f9fa;
    padding: 2px 4px;
    border: 1px solid #eaecf0;
    border-radius: 3px;
}

.blog-content-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #a2a9b1;
    margin: 20px 0;
    display: block;
}

/* Blog Post Specific Styling */
.blog-post-body {
    font-family: Georgia, "Times New Roman", Times, serif;
}

.blog-post-body pre,
.blog-post-body code {
    font-family: "Courier New", Courier, monospace;
}