:root {
    --bg-color: #0f1419;
    --text-color: #e6e9ef;
    --link-color: #3b82f6;
    --border-color: #2f3336;
    --box-bg-color: #1a1e24;
    --code-bg-color: #1e2329;
    --code-border-color: #3b82f6;
    --accent-color: #3b82f6;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

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

.main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

a:hover {
    opacity: 0.8;
}

header {
    margin-bottom: 40px;
}

nav {
    padding: 10px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-right {
    display: flex;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 1.2em;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.social-links-container {
    margin: 20px 0;
}

#theme-toggle {
    padding: 5px 10px;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    border-radius: 4px;
}

.content-box {
    padding: 20px 0;
    margin-bottom: 20px;
}

/* Home Page Styling */
.home-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-section {
    padding: 40px 0;
}

.profile-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 600;
}

.profile-section h2 {
    font-size: 1.5rem;
    margin: 30px 0 10px;
    color: var(--text-color);
    font-weight: 600;
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: rgba(230, 233, 239, 0.8);
}

.experience {
    margin: 20px 0;
}

.experience p {
    margin: 10px 0;
}

.interests {
    margin-top: 15px;
    max-width: 600px;
}

.contact {
    margin-top: 20px;
    font-size: 1rem;
    opacity: 0.8;
}

/* Post Styles */
h1, h2 {
    color: var(--text-color);
}

article {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

article:last-child {
    border-bottom: none;
}

article h3 {
    margin-bottom: 5px;
}

time {
    color: #6b7280;
    font-size: 0.9rem;
}

footer {
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

footer .social-links {
    display: flex;
    gap: 15px;
}

footer .social-links a {
    color: var(--text-color);
    text-decoration: none;
}

footer .social-links a:hover {
    color: var(--link-color);
}

.player {
    font-style: italic;
}

#mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

.log-entry {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.log-entry:last-child {
    border-bottom: none;
}

.log-entry h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.log-content {
    font-size: 1rem;
    line-height: 1.6;
}

.log-content p {
    margin-bottom: 1rem;
}

.log-content a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px solid var(--link-color);
}

.log-content a:hover {
    border-bottom-color: transparent;
}

/* Light theme */
body.light-theme {
    --bg-color: #f8f9fa;
    --text-color: #1a1e24;
    --link-color: #3472e0;
    --border-color: #e1e4e8;
    --box-bg-color: #ffffff;
    --code-bg-color: #f0f0f0;
    --code-border-color: #3b82f6;
    --accent-color: #3472e0;
}

body.light-theme .subtitle {
    color: rgba(26, 30, 36, 0.8);
}

body.light-theme time {
    color: #555;
}

body.light-theme footer .social-links a {
    color: var(--text-color);
}

body.light-theme #theme-toggle {
    color: var(--text-color);
}

/* Light mode syntax highlighting */
body.light-theme .token.comment,
body.light-theme .token.prolog,
body.light-theme .token.doctype,
body.light-theme .token.cdata {
    color: #708090;
}

body.light-theme .token.punctuation {
    color: #999999;
}

body.light-theme .token.property,
body.light-theme .token.tag,
body.light-theme .token.boolean,
body.light-theme .token.number,
body.light-theme .token.constant,
body.light-theme .token.symbol,
body.light-theme .token.deleted {
    color: #905;
}

body.light-theme .token.selector,
body.light-theme .token.attr-name,
body.light-theme .token.string,
body.light-theme .token.char,
body.light-theme .token.builtin,
body.light-theme .token.inserted {
    color: #690;
}

body.light-theme .token.operator,
body.light-theme .token.entity,
body.light-theme .token.url,
body.light-theme .language-css .token.string,
body.light-theme .style .token.string {
    color: #9a6e3a;
}

body.light-theme .token.atrule,
body.light-theme .token.attr-value,
body.light-theme .token.keyword {
    color: #07a;
}

body.light-theme .token.function,
body.light-theme .token.class-name {
    color: #dd4a68;
}

body.light-theme .token.regex,
body.light-theme .token.important,
body.light-theme .token.variable {
    color: #e90;
}

/* Responsive design for smaller screens */
@media screen and (max-width: 768px) {
    .nav-content, .nav-left, .nav-right {
        width: 100%;
        justify-content: space-between;
    }

    #mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: var(--text-color);
        z-index: 100;
    }

    #main-nav {
        padding-top: 10px;
    }

    #main-nav.show {
        display: flex;
        flex-direction: column;
    }
}

/* For even smaller screens */
@media screen and (max-width: 480px) {
    .social-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-links a {
        margin: 5px 0;
    }
}

pre[class*="language-"] {
    background-color: var(--code-bg-color) !important;
    border: 1px solid var(--border-color) !important;
    border-left: 3px solid var(--code-border-color) !important;
    border-radius: 5px !important;
    padding: 1em !important;
    margin: .5em 0 !important;
    overflow: auto !important;
}

code[class*="language-"] {
    background: none !important;
    color: var(--text-color) !important;
    font-family: 'Roboto Mono', monospace !important;
    font-size: 0.9em !important;
    text-align: left !important;
    white-space: pre !important;
    word-spacing: normal !important;
    word-break: normal !important;
    word-wrap: normal !important;
    line-height: 1.5 !important;
}

.code-block {
    display: block !important;
    overflow-x: auto !important;
    padding: 1em 0 1em 1em !important;
}

/* Projects page styles */
#projects-container section {
    margin-bottom: 3rem;
}

#projects-container section {
    margin-bottom: 3rem;
}

#projects-container h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.project-entry {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.project-entry:last-child {
    border-bottom: none;
}

.project-entry h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--link-color);
}

.project-links {
    margin-top: 1rem;
}

.project-links a {
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--bg-color);
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    border: 1px solid var(--accent-color);
    transition: background-color 0.3s, color 0.3s;
}

.project-links a:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

/* Add these token color rules */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #8b949e;
}

.token.punctuation {
    color: #c9d1d9;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: #79c0ff;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #a5d6ff;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: #d2a8ff;
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #ff7b72;
}

.token.function,
.token.class-name {
    color: #d2a8ff;
}

.token.regex,
.token.important,
.token.variable {
    color: #ffa657;
}

/* About page styles */
.about-section {
    line-height: 1.7;
}

.about-section h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.about-section p {
    margin-bottom: 15px;
}

.about-section ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.about-section li {
    margin-bottom: 8px;
}

.posts-link {
    color: var(--text-color);
    margin-left: 10px;
    transition: color 0.2s ease;
}

.posts-link:hover {
    color: var(--link-color);
}