:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --text-muted: #666666;
    --link-color: #34810d;
    --border-color: #eaeaea;
}

.dark-theme {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --link-color: #34810d;
    --border-color: #333333;
}

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

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.site-title a {
    color: var(--text-color);
    text-decoration: none;
}

nav a, nav button {
    margin-left: 1rem;
    color: var(--text-color);
    text-decoration: none;
}

nav a:hover, nav button:hover, .site-title a:hover {
    text-decoration: underline;
}

#themeToggle {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
}

.intro {
    margin-bottom: 2rem;
}

.blog-posts {
    border-top: 1px solid var(--border-color);
}

.post-header, .blog-posts article {
    display: grid;
    grid-template-columns: 100px 1fr 100px;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.post-header {
    font-weight: bold;
    color: var(--text-muted);
}

.blog-posts article a {
    color: var(--link-color);
    text-decoration: none;
}

.blog-posts article a:hover {
    text-decoration: underline;
}

/* Blog post styles */
.blog-post {
    max-width: 100%;
    margin: 0 auto;
}

.blog-post h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.blog-post .post-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.blog-post h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-post p {
    margin-bottom: 1rem;
}

/* About page styles */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.profile-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    width: 200px;
    height: 200px;
}

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

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

.profile-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-image-container:hover .profile-image-overlay {
    opacity: 1;
}

/* Load animation for profile image */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.profile-image-container {
    animation: fadeIn 1s ease-out;
}


.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}

.connect-links a {
    margin-right: 1rem;
    color: var(--link-color);
}

/* Responsive styles */
@media (max-width: 600px) {
    .post-header, .blog-posts article {
        grid-template-columns: 1fr 2fr;
    }

    .post-header span:last-child, .blog-posts article span:last-child {
        display: none;
    }
}

@media (min-width: 768px) {
    .about-content {
        flex-direction: row;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .blog-post h1 {
        font-size: 2rem;
    }

    .blog-post h2 {
        font-size: 1.5rem;
    }
}

/* Footer styles */
footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Twitter (X) logo styles */
.twitter-logo {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: middle;
}

/* Social sharing buttons */
.social-share {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.social-share h3 {
    margin-bottom: 1rem;
}

.share-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: none;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.share-button.twitter {
    background-color: #1DA1F2;
}

.share-button.facebook {
    background-color: #4267B2;
}

.share-button.linkedin {
    background-color: #0077B5;
}

.share-button.whatsapp {
    background-color: #25D366;
}

.share-button:hover {
    opacity: 0.9;
}

/* Featured image styles */
.featured-image {
    max-width: 100%;
    height: 50vh;
    margin-bottom: 1rem;
    border-radius: 10px;
}

