:root {
    --bg-color: #ffffff;
    --text-color: #2c3e50;
    --link-color: #3498db;
    --hover-color: #2980b9;
    --meta-color: #7f8c8d;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

header {
    margin-bottom: 3rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

header h1 a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.2s ease;
}

header h1 a:hover {
    color: var(--link-color);
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    padding: 0.5rem 0;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--link-color);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.post-preview {
    margin-bottom: 2.5rem;
}

.post-preview h2 {
    margin-bottom: 0.5rem;
}

.post-preview h2 a {
    text-decoration: none;
    color: var(--text-color);
}

.post-preview h2 a:hover {
    color: var(--link-color);
}

.post-meta {
    color: var(--meta-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-content {
    margin-top: 2rem;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 1.5rem 0 1rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content a {
    color: var(--link-color);
    text-decoration: none;
}

.post-content a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

.post-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}

.post-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1rem 0;
}

/* CV Styles */
.cv {
    max-width: 800px;
    margin: 0 auto;
}

.cv-header {
    margin-bottom: 2rem;
    text-align: center;
}

.cv-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.cv-header h2 {
    font-size: 1.5rem;
    color: var(--meta-color);
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-info p {
    color: var(--meta-color);
}

.cv-section {
    margin-bottom: 2.5rem;
}

.cv-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-category h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--link-color);
}

.experience-item,
.education-item,
.project-item {
    margin-bottom: 1.5rem;
}

.experience-item h3,
.education-item h3,
.project-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.company,
.school {
    font-weight: 500;
    color: var(--link-color);
}

.period {
    color: var(--meta-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.experience-item ul {
    margin-left: 1.2rem;
}

.experience-item li {
    margin-bottom: 0.3rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    header {
        margin-bottom: 2rem;
    }
    
    header h1 {
        font-size: 1.75rem;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .skills {
        grid-template-columns: 1fr;
    }
}
