/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', sans-serif;
    line-height: 1.7;
    color: #e2e8f0;
    background-color: #1a202c;
    font-weight: 400;
}

/* Navigation */
/* Footer */
footer {
    background-color: #0f1419;
    color: #a0aec0;
    text-align: center;
    padding: 2rem;
    margin-top: 8.5rem;
    border-top: 0.5px solid #2d3748;
    font-size: 0.875rem;
}

/* Navigation */
nav {
    background-color: #1a202c;
    padding: 2rem 0;
    border-bottom: 1px solid #2d3748;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav a {
    color: #a0aec0;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

nav a:hover,
nav a.active {
    color: #e2e8f0;
    border-bottom-color: #e2e8f0;
}

/* Main Content */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem 1rem;
    min-height: calc(100vh - 140px);
}

/* Home Page Styles */
.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 50vh;
    justify-content: center;
}

.profile-section {
    max-width: 600px;
}

.profile-image img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-shadow: none;
}

.profile-info {
    padding: 0;
}

.name {
    font-size: 2.25rem;
    color: #f7fafc;
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: -0.025em;
}

.title {
    font-size: 1.125rem;
    color: #a0aec0;
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.025em;
}

.introduction {
    max-width: 500px;
    margin: 0 auto 3rem;
}

.introduction p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #cbd5e0;
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: #a0aec0;
    text-decoration: none;
    border: 1px solid #2d3748;
    border-radius: 6px;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
    transition: all 0.2s ease;
}

.contact-btn:hover {
    color: #f7fafc;
    border-color: #4a5568;
    background-color: #2d3748;
}

/* Blogs Page Styles */
.blogs-container {
    max-width: 700px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0;
    background: none;
    box-shadow: none;
}

.page-header h1 {
    font-size: 2rem;
    color: #f7fafc;
    margin-bottom: 0.75rem;
    font-weight: 500;
    letter-spacing: -0.025em;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.blog-post-preview {
    background: none;
    padding: 0;
    border: none;
    box-shadow: none;
    border-bottom: 1px solid #2d3748;
    padding-bottom: 2rem;
    transition: none;
}

.blog-post-preview:hover {
    transform: none;
    box-shadow: none;
}

.blog-post-preview:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #a0aec0;
}

.blog-date {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    font-weight: 400;
}

.read-time {
    color: #a0aec0;
    font-weight: 400;
}

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

.blog-post-preview h2 a {
    color: #f7fafc;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    transition: color 0.2s ease;
}

.blog-post-preview h2 a:hover {
    color: #cbd5e0;
}

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

.cv-content {
    display: flex;
    flex-direction: column;
}

.cv-preview {
    display: flex;
    flex-direction: column;
}

.cv-download-section {
    text-align: center;
    padding: 3rem 0;
}

.download-card {
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
}

.cv-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.download-card h3 {
    color: #f7fafc;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 500;
}

.download-card p {
    color: #cbd5e0;
    margin-bottom: 2rem;
}

.download-options {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border: 1px solid #2d3748;
    border-radius: 6px;
    font-weight: 400;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: transparent;
    color: #a0aec0;
}

.download-btn:hover {
    color: #f7fafc;
    border-color: #4a5568;
    background-color: #2d3748;
}

.file-info {
    font-size: 0.875rem;
    color: #a0aec0;
    margin-top: 1.5rem;
}

/* Footer */
footer {
    background-color: #000000;
    color: #767779;
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
}

/* Blog Post Styles */
.blog-post-container {
    max-width: 700px;
    margin: 0 auto;
}

.blog-post {
    background: none;
    padding: 0;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #2d3748;
}

.post-header h1 {
    font-size: 2.25rem;
    color: #f7fafc;
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.875rem;
    color: #a0aec0;
}

.post-content {
    line-height: 1.7;
    color: #cbd5e0;
}

.post-content h2 {
    font-size: 1.5rem;
    color: #f7fafc;
    margin: 2.5rem 0 1rem 0;
    font-weight: 500;
    letter-spacing: -0.025em;
}

.post-content h3 {
    font-size: 1.25rem;
    color: #f7fafc;
    margin: 2rem 0 0.75rem 0;
    font-weight: 500;
}

.post-content h4 {
    font-size: 1.125rem;
    color: #f7fafc;
    margin: 1.5rem 0 0.5rem 0;
    font-weight: 500;
}

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

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content code {
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
    font-size: 0.875rem;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

.post-content pre {
    background-color: #0d1117;
    color: #f0f6fc;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    line-height: 1.5;
    border: 1px solid #21262d;
}

.post-content pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

.post-content blockquote {
    border-left: 4px solid #2d3748;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #a0aec0;
}

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #2d3748;
    text-align: center;
}

.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #2d3748;
}

.back-to-blogs {
    display: inline-flex;
    align-items: center;
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.back-to-blogs:hover {
    color: #f7fafc;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .profile-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .profile-info {
        padding-left: 0;
    }
    
    .profile-image img {
        width: 200px;
        height: 200px;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .cv-preview {
        grid-template-columns: 1fr;
    }
    
    .contact-links {
        justify-content: center;
    }
    
    main {
        padding: 0 1rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .post-header h1 {
        font-size: 1.875rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-content h2 {
        font-size: 1.375rem;
    }
    
    .post-content h3 {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .profile-section {
        padding: 2rem;
    }
    
    .page-header {
        padding: 1.5rem;
    }
    
    .blog-post-preview,
    .cv-summary,
    .download-card,
    .contact-info {
        padding: 1.5rem;
    }
}