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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Layout */
.site-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.site-title:hover {
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #666;
    font-weight: 500;
}

.nav-menu a:hover {
    color: #333;
    text-decoration: none;
}

.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1rem;
    min-height: calc(100vh - 200px);
}

/* Typography */
h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #111;
}

h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: #222;
}

h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #333;
}

p {
    margin-bottom: 1rem;
}

/* Homepage sections */
.projects-section {
    margin-top: 4rem;
}

.project {
    background-color: #f8f9fa;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.project h3 {
    margin-top: 0;
    color: #1a1a1a;
}

.tvl {
    font-weight: 600;
    color: #059669;
    margin-bottom: 0.5rem;
}

.project-link {
    font-weight: 500;
}

/* Skills section */
.skills-section {
    margin-top: 4rem;
}

.skills-section ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.skills-section li {
    margin-bottom: 0.5rem;
}

/* Contact section */
.contact-section {
    margin-top: 4rem;
}

.contact-section ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Blog styles */
.blog-page h1 {
    margin-bottom: 0.5rem;
}

.blog-intro {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post-preview {
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.post-preview h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.post-preview time {
    color: #666;
    font-size: 0.9rem;
}

.post-preview p {
    margin-top: 0.75rem;
    color: #555;
}

.read-more {
    font-weight: 500;
}

/* Post styles */
.post-header {
    margin-bottom: 3rem;
}

.post-header h1 {
    margin-bottom: 0.5rem;
}

.post-header time {
    color: #666;
    font-size: 0.95rem;
}

.post-categories {
    margin-top: 0.75rem;
}

.category {
    display: inline-block;
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h2 {
    margin-top: 2.5rem;
}

.post-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.post-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

/* Footer */
.site-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 2rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-content p {
    color: #666;
    margin-bottom: 1rem;
}

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

.social-links a {
    color: #666;
}

.social-links a:hover {
    color: #333;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .contact-section ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}