@import url('syntax.css');

/* Theme variables */
:root {
    --bg-color: rgb(23 23 23);
    --text-color: rgb(255 255 255);
    --text-color-secondary: rgb(229 229 229);
    --link-color: #ff4444;
    --border-color: #333333;
    --code-bg: #2d2d2d;
    --timeline-bg: #333333;
    --timeline-dot: #ff4444;
    --transition-speed: 0.2s;
    --primary-color: #ff4444;
    --background-color: #111;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--bg-color);
    transition: background-color var(--transition-speed) ease;
}

body {
    font-family: 'Fira Code', ui-monospace, monospace;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    transition: background-color var(--transition-speed) ease,
                color var(--transition-speed) ease;
}

/* Theme toggle button */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1000;
    transition: color var(--transition-speed) ease;
}

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

.theme-toggle i {
    font-size: 1.2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Responsive adjustments for theme toggle */
@media (max-width: 768px) {
    .theme-toggle {
        top: 0.75rem;
        right: 0.75rem;
    }
}

/* Hide moon icon by default */
.moon-icon {
    display: none;
}

/* Show moon icon and hide sun icon in dark mode */
[data-theme="dark"] .sun-icon {
    display: none;
}

[data-theme="dark"] .moon-icon {
    display: block;
}

/* SPA Transitions */
main {
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-color-secondary);
    font-family: 'Fira Code', ui-monospace, monospace;
}

.error {
    text-align: center;
    padding: 2rem;
    color: #ff4444;
    font-family: 'Fira Code', ui-monospace, monospace;
}

/* Header and Navigation */
header {
    margin-bottom: 3rem;
    position: relative;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-profile-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

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

nav a.active {
    color: var(--link-color);
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: flex-start;
        gap: 2rem;
    }
    
    .nav-links a {
        padding: 0.5rem 0;
    }
}

/* Main Content */
main {
    margin-bottom: 3rem;
}

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

/* Home page styles */
.home-container {
    /* max-width: 700px; */
    margin: 0 auto;
}

.intro {
    margin-bottom: 4rem;
}

.intro h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.description {
    font-size: 1.2rem;
    color: var(--text-color-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-links a {
    color: var(--text-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
    transition: color var(--transition-speed) ease;
    padding: 0.25rem 0;
}

.social-links a:hover {
    color: var(--link-color);
    text-decoration-thickness: 2px;
}

.social-links i {
    width: 1.5rem;
    text-align: center;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .intro h1 {
        font-size: 2rem;
    }
    
    .description {
        font-size: 1.1rem;
    }
    
    .social-links a {
        font-size: 1rem;
    }
}

.section {
    margin-bottom: 3rem;
}

.section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Fira Code', ui-monospace, monospace;
}

.section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.section ul {
    list-style-type: none;
}

.section ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--link-color);
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Home page links */
.home a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    text-decoration-color: rgb(72, 28, 171);
}

.home a:hover {
    text-decoration-thickness: 2px;
    color: var(--link-hover-color);
    text-decoration-color: rgb(72, 28, 171);
}

/* Social links specific styles */
.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
}

/* Home page specific styles */
.home .home-container a,
.home .social-links a {
    text-decoration: underline !important;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.home .home-container a:hover,
.home .social-links a:hover {
    text-decoration-thickness: 2px !important;
    color: var(--link-hover-color);
}

/* Mailing list form */
.mailing-list-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

.mailing-list-form input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: border-color var(--transition-speed) ease;
}

.mailing-list-form input:focus {
    outline: none;
    border-color: var(--link-color);
}

.mailing-list-form button {
    padding: 0.75rem;
    background-color: var(--text-color);
    color: var(--bg-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

.mailing-list-form button:hover {
    background-color: var(--text-color);
}

/* CTA button */
.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--text-color);
    color: var(--bg-color);
    border-radius: 4px;
    text-decoration: none;
    transition: background-color var(--transition-speed) ease;
}

.cta-button:hover {
    background-color: var(--text-color);
    text-decoration: none;
}

/* Blog and Notes styles */
.post,
.note {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 0;
}

.post h1,
.note h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Fira Code', ui-monospace, monospace;
}

.post-meta,
.note-meta {
    color: var(--text-color-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.post-meta time,
.note-meta time {
    margin-right: 0.5rem;
}

.post-meta .reading-time,
.note-meta .reading-time {
    margin-right: 0.5rem;
}

.post-meta .post-categories,
.note-meta .note-categories {
    color: var(--link-color);
    font-weight: 500;
}

.post-meta .categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.post-meta .categories a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    background-color: var(--code-bg);
    border-radius: 3px;
    font-size: 0.8rem;
}

.post-meta .categories a:hover {
    text-decoration: none;
    color: var(--text-color);
}

.post-content,
.note-content {
    line-height: 1.8;
}

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

.post-content h2,
.note-content h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    font-family: 'Fira Code', ui-monospace, monospace;
}

.post-content h3,
.note-content h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    font-family: 'Fira Code', ui-monospace, monospace;
}

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

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

.post-content code,
.note-content code {
    background: var(--code-bg);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Fira Code', ui-monospace, monospace;
    font-size: 0.9em;
}

.post-content pre,
.note-content pre {
    background: var(--code-bg);
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.post-content pre code,
.note-content pre code {
    background: none;
    padding: 0;
}

.post-content blockquote,
.note-content blockquote {
    border-left: 4px solid var(--border-color);
    padding-left: 1rem;
    margin-left: 0;
    color: var(--text-color-secondary);
    font-style: italic;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

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

.post-navigation a:hover {
    text-decoration: none;
    color: var(--text-color);
}

/* Blog index and Notes index */
.blog-index,
.notes-index {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 0;
}

/* Search and Filter Container */
.search-filter-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-container {
    flex: 1;
    min-width: 200px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--link-color);
}

.category-filter {
    min-width: 200px;
}

.category-filter select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: border-color var(--transition-speed) ease;
}

.category-filter select:focus {
    outline: none;
    border-color: var(--link-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-filter-container {
        flex-direction: column;
        gap: 1rem;
    }

    .search-container,
    .category-filter {
        width: 100%;
        min-width: unset;
    }

    .search-input,
    .category-filter select {
        padding: 0.625rem 0.875rem;
        font-size: 0.9375rem;
    }
}

.posts-container,
.notes-container {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.post-link,
.note-link {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.1rem 0;
}

.post-date,
.note-date {
    color: var(--text-color-secondary);
    font-size: 0.9rem;
    opacity: 0.7;
}

.post-link a,
.note-link a {
    color: var(--text-color);
    text-decoration: underline;
    font-size: 1rem;
    transition: color var(--transition-speed) ease;
}

.post-link a:hover,
.note-link a:hover {
    color: var(--link-color);
}

.no-posts,
.no-notes {
    color: var(--text-color-secondary);
    font-style: italic;
    margin-top: 1rem;
}

/* About page styles */
.about-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.about-subtitle {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.about-location {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.about-section p {
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Timeline styles */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--timeline-bg);
    transition: background-color 0.3s ease;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--timeline-dot);
    transition: background-color 0.3s ease;
}

.timeline-date {
    font-weight: 500;
    color: #666;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

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

.timeline-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
}

.timeline-content li {
    margin-bottom: 0.5rem;
    color: #444;
}

/* Skills grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

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

.skill-category p {
    color: var(--text-color);
}

.experience-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.experience-details {
    margin-bottom: 1.5rem;
}

.experience-title {
    font-weight: 600;
    color: var(--text-color);
}

.experience-date,
.experience-location {
    color: var(--text-color);
}

.education-item h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.education-degree,
.education-date {
    color: var(--text-color);
}

.contact-info p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: var(--text-color);
    text-decoration: underline;
}

.contact-info a:hover {
    color: var(--link-color);
}

/* Blog and Notes index styles */
.blog-index h1,
.notes-index h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-family: 'Fira Code', ui-monospace, monospace;
}

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

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

.read-more {
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    margin-top: 1rem;
}

.read-more:hover {
    text-decoration: none;
    color: var(--text-color);
}

/* Hide description in individual blog posts */
.post-content .description,
.note-content .description {
    display: none;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.page-info {
    color: var(--text-color-secondary);
    font-size: 0.9rem;
}

.pagination-links {
    display: flex;
    gap: 1rem;
}

.pagination a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pagination a:hover {
    color: var(--link-color);
    border-color: var(--link-color);
}

.pagination a.previous,
.pagination a.next {
    font-weight: 500;
}

/* Post preview links */
.post-preview .post-title a {
    text-decoration: none;
    color: var(--text-color);
    transition: color var(--transition-speed);
}

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

/* Responsive styles */
@media (max-width: 768px) {
    .about-container {
        padding: 1rem;
    }

    .about-title {
        font-size: 2rem;
    }

    .about-subtitle {
        font-size: 1.1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

.post-categories {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.category-tag {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-color-secondary);
    color: var(--text-color-secondary);
    border-radius: 1rem;
    font-family: 'Inter', sans-serif;
    text-transform: lowercase;
}

/* Category page styles */
.categories-index {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.category-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.category-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.category-posts {
    display: grid;
    gap: 2rem;
}

.category-posts .post-preview {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.category-posts .post-preview h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

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

.category-posts .post-preview h3 a:hover {
    color: var(--link-color);
}

.category-posts .post-date {
    color: var(--text-color-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.category-posts .post-excerpt {
    color: var(--text-color-secondary);
    line-height: 1.6;
}

/* Categories navigation */
.categories-nav {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.all-categories {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.all-categories:hover {
    color: var(--link-color);
    border-color: var(--link-color);
}

/* Global navigation links */
nav a {
    text-decoration: none;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

nav a:hover {
    text-decoration-thickness: 2px;
}

/* Links within posts and notes content */
.post-content a,
.note-content a {
    text-decoration: underline;
    color: var(--text-color);
    transition: color var(--transition-speed);
}

.post-content a:hover,
.note-content a:hover {
    color: var(--link-color);
}

/* Post preview links */
.post-preview .post-title a {
    text-decoration: none;
    color: var(--text-color);
    transition: color var(--transition-speed);
}

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

/* Responsive styles */
@media (max-width: 768px) {
    .about-container {
        padding: 1rem;
    }

    .about-title {
        font-size: 2rem;
    }

    .about-subtitle {
        font-size: 1.1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

.post-categories {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.category-tag {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-color-secondary);
    color: var(--text-color-secondary);
    border-radius: 1rem;
    font-family: 'Inter', sans-serif;
    text-transform: lowercase;
}

/* Home Page Styles */
.home {
    max-width: var(--content-width);
    margin: 0 auto;
    /* padding: 2rem; */
}

/* Hero Section */
.hero-section {
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.profile-image {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    position: relative;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero-text .description {
    font-size: 1.2rem;
    color: var(--text-color-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .profile-image {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text .description {
        font-size: 1.1rem;
    }

    .social-links {
        justify-content: center;
    }
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-links a {
    color: var(--text-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
    transition: color var(--transition-speed) ease;
    padding: 0.25rem 0;
}

.social-links a:hover {
    color: var(--link-color);
    text-decoration-thickness: 2px;
}

/* Skills Section */
.skills {
    margin-bottom: 3rem;
}

.skills h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-color);
}

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

.skill-category {
    padding: 1.25rem;
    background-color: var(--bg-color-secondary);
    border-radius: 0.75rem;
    transition: transform var(--transition-speed);
}

.skill-category:hover {
    transform: translateY(-3px);
}

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

.skill-category p {
    color: var(--text-color-secondary);
    font-size: 0.95rem;
}

/* Featured Posts */
.featured-posts {
    margin-bottom: 3rem;
}

.featured-posts h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-color);
}

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

.post-preview {
    padding: 1.25rem;
    background-color: var(--bg-color-secondary);
    border-radius: 0.75rem;
    transition: transform var(--transition-speed);
}

.post-preview:hover {
    transform: translateY(-3px);
}

.post-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-color-secondary);
}

.post-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.post-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.post-title a:hover {
    color: var(--accent-color);
}

.post-excerpt {
    color: var(--text-color-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Newsletter Section */
.newsletter {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-color-secondary);
    border-radius: 0.75rem;
    margin-bottom: 3rem;
}

.newsletter h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.newsletter p {
    color: var(--text-color-secondary);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color var(--transition-speed);
}

.newsletter-form button:hover {
    background-color: var(--accent-color-hover);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .form-group {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

    .skills-grid,
    .post-grid {
        grid-template-columns: 1fr;
    }
}

/* Table of Contents */
.toc-container {
    margin: 2rem 0;
    background: var(--bg-color-secondary);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toc-toggle {
    width: 100%;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.toc-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

.toc-toggle::after {
    content: '▼';
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.toc-content {
    padding: 1rem 1.5rem;
    display: none;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    position: relative;
}

.toc-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-color-secondary);
}

.toc-list a {
    color: var(--text-color-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.toc-list a:hover {
    color: var(--link-color);
    padding-left: 0.25rem;
}

/* Note Content */
.note-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.note-content h2 {
    font-size: 1.8rem;
    margin: 3rem 0 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-color);
}

.note-content h2:first-of-type {
    margin-top: 0;
    border-top: none;
}

.note-content h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    color: var(--text-color);
}

.note-content p {
    margin-bottom: 1.5rem;
    color: var(--text-color-secondary);
}

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

.note-content li {
    margin-bottom: 0.75rem;
    color: var(--text-color-secondary);
}

.note-content blockquote {
    border-left: 4px solid var(--link-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: var(--text-color-secondary);
    font-style: italic;
}

/* Note Tags */
.note-tags {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.note-tags .tag {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: var(--bg-color-secondary);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.note-tags .tag:hover {
    background: var(--link-color);
    color: var(--bg-color);
    transform: translateY(-1px);
}

/* Note Navigation */
.note-navigation {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.note-navigation .nav-link {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: var(--bg-color-secondary);
    flex: 1;
    text-align: center;
}

.note-navigation .nav-link:hover {
    background: var(--link-color);
    color: var(--bg-color);
    transform: translateY(-1px);
}

.note-navigation .prev {
    text-align: left;
}

.note-navigation .next {
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .note {
        padding: 1.5rem 0;
    }

    .note-title {
        font-size: 2rem;
    }

    .note-content {
        font-size: 1rem;
    }

    .note-content h2 {
        font-size: 1.6rem;
    }

    .note-content h3 {
        font-size: 1.3rem;
    }

    .note-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .note-navigation .nav-link {
        width: 100%;
    }
}

/* Experience section */
.experience-section {
    /* margin-top: 1rem; */
    /* padding: 2rem; */
    background: var(--bg-color-secondary);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.experience-header h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin: 0;
}

.experience-navigation {
    display: flex;
    gap: 1rem;
}

.experience-navigation .nav-button {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    transition: color 0.3s ease;
}

.experience-navigation .nav-button:hover {
    color: var(--link-color);
}

.experience-content {
    position: relative;
    min-height: 200px;
    overflow: hidden;
}

.experience-item {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.experience-item.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.experience-item.prev {
    transform: translateX(-100%);
}

.experience-item h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.duration {
    color: var(--text-color-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.experience-item ul {
    list-style-type: none;
    padding-left: 0;
}

.experience-item li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.experience-item li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--link-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .experience-section {
        /* padding: 1.5rem; */
        margin-top: 2rem;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .experience-navigation {
        width: 100%;
        justify-content: space-between;
    }

    .nav-button {
        width: 100%;
        justify-content: center;
    }

    .experience-dots {
        order: -1;
        justify-content: center;
    }
}

/* Projects section */
.projects-section {
    margin-top: 1rem;
    background: var(--bg-color-secondary);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.projects-scroll-container {
    max-height: 400px; /* Height for 5 records */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--text-color-secondary) var(--bg-color);
}

.projects-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.projects-scroll-container::-webkit-scrollbar-track {
    background: var(--bg-color);
}

.projects-scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--text-color-secondary);
    border-radius: 3px;
}

.projects-table {
    width: 100%;
    border-collapse: collapse;
}

.projects-table th {
    background: var(--bg-color);
    color: var(--text-color);
    font-weight: 600;
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1;
}

.projects-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    vertical-align: top;
}

.projects-table tr:last-child td {
    border-bottom: none;
}

.projects-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.project-link {
    color: var(--link-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.built-with {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--bg-color);
    color: var(--text-color-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--link-color);
    color: var(--bg-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .projects-section {
        /* padding: 1.5rem; */
        margin-top: 2rem;
    }

    .projects-table th,
    .projects-table td {
        padding: 0.75rem;
    }

    .tech-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
}

.view-counter {
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-counter i {
    color: #4a90e2;
}

.post-meta .view-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-color-secondary);
    font-size: 0.9rem;
}

.post-meta .view-counter i {
    color: #4a90e2;
    font-size: 0.8rem;
}

/* Add margin to the 'View all categories' link on category pages */
.view-all-categories-link {
  margin-top: 2rem; /* Adjust value as needed */
} 