body {
    background-color: #1a1a1a;
    color: #e0e0e0;
	font-size: 18px;
    font-family: 'Courier New', monospace;
    margin: 0;
    padding: 0;
}

/* Menu */
#menu {
    background-color: #2a2a2a;
    border-bottom: 2px solid #0f0;
    padding: 12px 20px;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-left {
    float: left;
}

.menu-right {
    float: right;
}

#menu a {
    color: #0f0;
    text-decoration: none;
    padding: 8px 16px;
    transition: 0.3s;
}

#menu a:hover {
    background-color: #0f0;
    color: #1a1a1a;
    border-radius: 4px;
}

/* Mobile Menu */
@media (max-width: 600px) {
    .menu-left, .menu-right {
        float: none;
        text-align: center;
    }
    
    .menu-right a {
        display: inline-block;
        margin: 5px;
    }
    
    #menu {
        padding: 10px;
    }
}

/* Portfolio */
/* General */
.section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #3a3a3a;
}

.section h2 {
    color: #0f0;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Block 1 */
.profile {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #3a3a3a;
}

.profile-photo {
    flex-shrink: 0;
}

.profile-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #0f0;
	transition: transform 0.3s ease;
    cursor: pointer;
}

.profile-img:hover {
    transform: scale(1.1);
}

.profile-info h1 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    color: #0f0;
}

.profile-info .title {
    font-size: 1.2rem;
    color: #aaa;
    margin: 0;
}

/* Block 2 */
.contacts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.contacts-list span {
    background-color: #2a2a2a;
    padding: 8px 16px;
    border-radius: 5px;
    font-family: monospace;
}

/* Block 4 */
.job {
    margin-bottom: 25px;
}

.job-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: #0f0;
}

.job-company {
    color: #aaa;
    margin-bottom: 10px;
    font-size: 1rem;
}

.job ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.job li {
    margin: 5px 0;
}

/* Block 5 */
.timeline {
    margin-top: 10px;
}

.timeline-year {
    margin-bottom: 25px;
}

.year-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #0f0;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #3a3a3a;
}

.year-list {
    margin: 0;
    padding-left: 25px;
}

.year-list li {
    margin: 8px 0;
    font-size: 1rem;
}

.year-list li em {
    color: #666;
    font-style: italic;
}

/* Mobile Portfolio */
@media (max-width: 700px) {
    .profile {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .contacts-list {
        flex-direction: column;
        gap: 10px;
    }
    
    .container {
        padding: 20px;
    }
}



/* Стили для блога */
.blog-list {
    margin-top: 30px;
}

.blog-post-preview {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #3a3a3a;
}

.blog-post-preview h2 {
    margin: 0 0 10px 0;
}

.blog-post-preview h2 a {
    color: #0f0;
    text-decoration: none;
}

.blog-post-preview h2 a:hover {
    text-decoration: underline;
}

.post-meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    color: #0f0;
    text-decoration: none;
    margin-top: 10px;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* Стили для отдельного поста */
.blog-post h1 {
    color: #0f0;
    margin-bottom: 10px;
}

.post-content {
    line-height: 1.8;
    margin-top: 30px;
}

.post-content h2, .post-content h3 {
    color: #0f0;
    margin-top: 30px;
}

.post-content code {
    background-color: #2a2a2a;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
}

.post-content pre {
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.post-navigation {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #3a3a3a;
}

.post-navigation a {
    color: #0f0;
    text-decoration: none;
}

.post-navigation a:hover {
    text-decoration: underline;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
    display: block;
}
