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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

body.dark-theme {
    background: rgb(11, 17, 30) !important;
    color: #f5f5f5 !important;
}
body.dark-theme .container,
body.dark-theme .main-content,
body.dark-theme .left-sidebar,
body.dark-theme .right-sidebar {
    background: rgb(17, 23, 38) !important;
    color: #f5f5f5 !important;
}
body.dark-theme .card,
body.dark-theme .blog-card,
body.dark-theme .project-card,
body.dark-theme .featured-post,
body.dark-theme .featured-project-card,
body.dark-theme .timeline-content,
body.dark-theme .resume-section {
    background: #181f2f !important;
    color: #f5f5f5 !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25) !important;
}
body.dark-theme .nav-link,
body.dark-theme .category-btn,
body.dark-theme .project-link,
body.dark-theme .search-dropdown,
body.dark-theme .resume-action-btn {
    background: #181f2f !important;
    color: #f5f5f5 !important;
    border-color: #222 !important;
}
body.dark-theme .nav-link.active,
body.dark-theme .nav-link:hover,
body.dark-theme .category-btn.active,
body.dark-theme .category-btn:hover {
    background: #222 !important;
    color: #fff !important;
}
body.dark-theme .search-dropdown {
    background: #222 !important;
    color: #f5f5f5 !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.35) !important;
}
body.dark-theme .search-result-item:hover {
    background: #181f2f !important;
}
body.dark-theme .project-link:hover,
body.dark-theme .resume-action-btn:hover {
    background: #222 !important;
    color: #fff !important;
}
body.dark-theme .resume-divider,
body.dark-theme .resume-section-line,
body.dark-theme .education-timeline::after {
    border-color: #333 !important;
}
body.dark-theme .timeline-dot-inner {
    background: #f5f5f5 !important;
    border-color: #222 !important;
}
body.dark-theme .timeline-icon-in-card {
    background: #222 !important;
    color: #fff !important;
}
body.dark-theme .status-badge.completed {
    background: #28a745 !important;
    color: #fff !important;
}
body.dark-theme .status-badge.in-progress {
    background: #007bff !important;
    color: #fff !important;
}
body.dark-theme .edu-achievements a {
    color: #7abaff !important;
}
body.dark-theme .edu-achievements a:hover {
    color: #fff !important;
}
body.dark-theme .search-box input {
    background: #181f2f !important;
    color: #f5f5f5 !important;
    border-color: #222 !important;
}
body.dark-theme .search-box input:focus {
    background: #222 !important;
    color: #fff !important;
}
body.dark-theme .tweet-box,
body.dark-theme .live-now,
body.dark-theme .github-graph {
    background: #181f2f !important;
    color: #f5f5f5 !important;
    box-shadow: none !important;
    border: none !important;
}
body.dark-theme .tweet-box h4,
body.dark-theme .live-now h4,
body.dark-theme .github-graph h4 {
    color: #fff !important;
}
body.dark-theme .tweet-box p,
body.dark-theme .live-now p,
body.dark-theme .github-graph p {
    color: #f5f5f5 !important;
}
body.dark-theme .error-message {
    background: #181f2f !important;
    color: #ffb3b3 !important;
    border-left: 4px solid #e74c3c !important;
}
body.dark-theme .back-btn {
    background: #181f2f !important;
    color: #f5f5f5 !important;
}
body.dark-theme .back-btn:hover {
    background: #222 !important;
    color: #fff !important;
}

/* Container Layout */
.container {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 400px;
    min-height: 100vh;
    background-color: #f8f9fa;
    position: relative;
}

/* Left Sidebar */
.left-sidebar {
    padding: 2rem;
    background-color: #fff;
    position: fixed;
    width: 250px;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #eee;
    z-index: 10;
}

.profile {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.profile h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a1a1a;
}

.bio {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

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

.social-icon {
    color: #666;
    font-size: 1.1rem;
    transition: all 0.3s;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f8f9fa;
    text-decoration: none;
}

.social-icon:hover {
    color: #1a1a1a;
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.main-nav {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.nav-link {
    text-decoration: none;
    color: #666;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link i {
    width: 20px;
    font-size: 1.1rem;
    text-align: center;
}

.nav-link:hover, .nav-link.active {
    background-color: #f0f0f0;
    color: #1a1a1a;
    transform: translateX(5px);
}

/* Subtle styling for Let's Talk button */
.nav-link[href^="mailto"] {
    color: #1a1a1a;
    font-weight: 500;
    margin-top: 0.5rem;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.nav-link[href^="mailto"]:hover {
    border-color: #1a1a1a;
    background-color: #f8f9fa;
    transform: translateX(5px);
}

/* Main Content */
.main-content {
    padding: 3rem;
    background-color: #fff;
    min-height: 100vh;
    grid-column: 2;
    width: 100%;
    position: relative;
    margin: 0 auto;
}

.intro {
    background-color: #f8f9fa;
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.intro h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.2;
}

.intro p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    max-width: 800px;
}

.highlights {
    background-color: #f8f9fa;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.highlights h3 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #1a1a1a;
    font-weight: 600;
}

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

.card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card h4 {
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-size: 1.3rem;
    font-weight: 600;
}

.card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.card small {
    color: #888;
    font-size: 0.85rem;
    display: block;
    line-height: 1.4;
}

/* Right Sidebar */
.right-sidebar {
    padding: 3rem 2rem;
    background-color: #fff;
    position: fixed;
    right: 0;
    width: 400px;
    height: 100vh;
    overflow-y: auto;
    border-left: 1px solid #eee;
    z-index: 10;
}

.search-box {
    margin-bottom: 2.5rem;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-left: 3.2rem;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: #f8f9fa;
}

.search-box::before {
    content: '🔍';
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #666;
    pointer-events: none;
}

.search-box input:focus {
    outline: none;
    border-color: #1a1a1a;
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.tweet-box, .live-now, .github-graph {
    background-color: #f8f9fa;
    padding: 1.8rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.tweet-box h4, .live-now h4, .github-graph h4 {
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 600;
}

.tweet-box p, .live-now p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.graph-placeholder {
    height: 200px;
    background-color: #fff;
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .container {
        grid-template-columns: 250px 1fr;
    }
    .main-content {
        width: calc(100% - 250px);
        margin-left: 250px;
    }
    .right-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    .left-sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .main-content {
        width: 100%;
        margin-left: 0;
        padding: 1.5rem;
    }
    .right-sidebar {
        position: static;
        width: 100%;
        height: auto;
    }
}

@media (max-width: 900px) {
    .left-sidebar, .right-sidebar {
        display: none !important;
    }
    .mobile-search-box input {
        width: 100%;
        padding: 0.9rem 1.2rem;
        border-radius: 12px;
        border: none;
        font-size: 1rem;
        background: #f8f9fa;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        margin-bottom: 0.5rem;
        outline: none;
    }
    .mobile-profile-pic img {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        object-fit: cover;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
}

/* Blog Page Styles */
.blogs-header {
    margin-bottom: 2rem;
    background-color: #f8f9fa;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.blogs-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.blogs-header p {
    color: #666;
    font-size: 1.1rem;
}

.blog-categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #666;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover, .category-btn.active {
    background-color: #1a1a1a;
    color: #fff;
}

.featured-post {
    background-color: #f8f9fa;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.featured-post .post-category {
    background-color: #1a1a1a;
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.featured-post h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.blog-card-image {
    height: 200px;
    width: 100%;
    background-color: #f0f0f0;
    border-radius: 12px 12px 0 0;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.blog-card .post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #1a1a1a;
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #1a1a1a;
}

.blog-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    color: #666;
    font-size: 0.85rem;
}

/* Individual Blog Post */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.blog-post img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.blog-post figure {
    margin: 2rem 0;
}

.blog-post figcaption {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

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

.blog-post h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
}

.blog-post h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.blog-post p {
    line-height: 1.6;
    margin: 1rem 0;
}

.blog-post code,
.blog-post pre {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
}

.blog-post pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

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

.blog-post blockquote {
    border-left: 4px solid #007bff;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
}

.blog-post ul, .blog-post ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.blog-post li {
    margin: 0.5rem 0;
}

.blog-post table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.blog-post th, .blog-post td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}

.blog-post th {
    background: #f8f9fa;
}

.blog-post .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    margin: 1.5rem 0;
}

.blog-post .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.blog-post audio {
    width: 100%;
    margin: 1.5rem 0;
}

.blog-post details {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.blog-post summary {
    cursor: pointer;
    font-weight: bold;
}

.blog-post .footnotes {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.blog-post .footnotes ol {
    font-size: 0.9rem;
}

/* Math equation styles */
.blog-post .math-inline {
    padding: 0 0.2em;
}

.blog-post .math-display {
    overflow-x: auto;
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Loading state */
.blog-post .loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Back button */
.blog-post .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: none;
    border-radius: 4px;
    color: #333;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: background 0.2s;
}

.blog-post .back-btn:hover {
    background: #e9ecef;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 2em;
    color: #666;
    font-style: italic;
}

/* Projects Page Styles */
.projects-header {
    margin-bottom: 2rem;
    background-color: #f8f9fa;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.projects-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.projects-header p {
    color: #666;
    font-size: 1.1rem;
}

.project-categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.featured-project {
    margin-bottom: 3rem;
}

.featured-project-card {
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.featured-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.featured-project-image {
    height: 300px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.project-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #1a1a1a;
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: capitalize;
}

.featured-project-content {
    padding: 2rem;
}

.featured-project-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.project-card-image {
    height: 200px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.project-card-content {
    padding: 1.5rem;
}

.project-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #1a1a1a;
}

.technology-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tech-tag {
    background-color: #f0f0f0;
    color: #666;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    color: #666;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background-color: #1a1a1a;
    color: #fff;
    transform: translateY(-2px);
}

/* Project Details Page Fixes */
.project-details {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0;
    font-family: inherit;
}

.project-hero {
    height: 280px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: #fff;
    background-color: rgba(0,0,0,0.3);
    background-blend-mode: overlay;
    margin-bottom: 2rem;
    font-family: inherit;
}

.project-hero h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-family: inherit;
}

.project-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 1rem;
}

.project-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
}

.project-description,
.project-description * {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    font-size: 1.1rem !important;
    color: #222;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal !important;
}
.project-description pre,
.project-description code {
    font-family: inherit !important;
    font-size: 1.1rem !important;
    background: none !important;
    color: inherit !important;
    padding: 0 !important;
    border-radius: 0 !important;
    white-space: normal !important;
}
.project-description {
    background-color: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    margin: 0 auto 0 auto;
    max-width: 900px;
    min-width: 0;
    overflow: auto;
}

.project-sidebar {
    position: static;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.technology-section, .project-links-section {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.project-sidebar h4 {
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-size: 1.1rem;
}

.project-links {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    color: #666;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
}
.project-link:hover {
    background-color: #1a1a1a;
    color: #fff;
    transform: translateY(-2px);
}

.technology-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tech-tag {
    background-color: #f0f0f0;
    color: #666;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-family: inherit;
}

@media (max-width: 1100px) {
    .project-details {
        padding: 1rem;
    }
    .project-content {
        gap: 1rem;
    }
}

@media (max-width: 900px) {
    .project-content {
        gap: 1rem;
    }
}

/* Back button styling */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: #f8f9fa;
    border: none;
    border-radius: 6px;
    color: #1a1a1a;
    cursor: pointer;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: background 0.2s, color 0.2s;
}
.back-btn:hover {
    background: #e9ecef;
    color: #1a1a1a;
}

/* Error Messages */
.error-message {
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    background-color: #fff;
    border-left: 4px solid #e74c3c;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    color: #e74c3c;
    font-size: 1.1rem;
    text-align: center;
}

/* Simplified Projects Styles */
.projects-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.projects-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.featured-project {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

/* Education Page Styles */
.education-header {
    margin-bottom: 3rem;
    background-color: #f8f9fa;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    text-align: left;
}

.education-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.education-header p {
    color: #666;
    font-size: 1.1rem;
}

.education-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.education-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #1a1a1a;
    top: 0;
    bottom: 0;
    left: 32px;
    border-radius: 2px;
    z-index: 0;
}

.timeline-item {
    position: relative;
    width: 100%;
    display: flex;
    align-items: flex-start;
    margin: 0;
    padding: 2.5rem 0 2.5rem 0;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.5s cubic-bezier(.4,0,.2,1);
    z-index: 1;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-dot {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.timeline-dot-inner {
    width: 18px;
    height: 18px;
    background: #1a1a1a;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.timeline-content {
    margin-left: 64px;
    width: 100%;
    max-width: 650px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 1.5rem;
    z-index: 2;
}

.timeline-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.icon-badge-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.2rem;
}

.timeline-icon-in-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #1a1a1a;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.timeline-header h3 {
    font-size: 1.4rem;
    color: #1a1a1a;
    margin: 0;
    font-weight: 600;
}

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge.completed {
    background-color: #28a745;
    color: #fff;
}

.status-badge.in-progress:not(.completed) {
    background-color: #111 !important;
    color: #fff !important;
    border: 1px solid #111;
}

.timeline-body {
    color: #666;
}

.university-info {
    margin-bottom: 1rem;
}

.university-info h4 {
    font-size: 1.1rem;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
}

.location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

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

.description {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 900px) {
    .education-timeline {
        max-width: 100%;
    }
    .timeline-content {
        max-width: 95vw;
        min-width: 0;
    }
}

@media (max-width: 600px) {
    .education-timeline::after {
        left: 16px;
    }
    .timeline-dot {
        left: 0;
    }
    .timeline-content {
        margin-left: 40px;
        padding: 1rem;
    }
}

/* --- Resume Page Styles --- */
.resume-section {
    font-family: inherit;
    background: #fff;
    padding: 2.5rem 1.5rem;
    max-width: 900px;
    margin: 0 auto 3rem auto;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.resume-container {
    width: 100%;
}
.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1.5rem;
}
.resume-title-block {
    flex: 2;
}
.resume-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.resume-role {
    font-size: 1.3rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.5rem;
}
.resume-contact-block {
    flex: 1.5;
    font-size: 1rem;
    color: #222;
    margin-top: 0.2rem;
}
.resume-contact-block b {
    font-weight: 600;
}
.resume-divider {
    border: none;
    border-top: 2px solid #bbb;
    margin: 0.5rem 0 1.5rem 0;
}
.resume-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #222;
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.resume-section-line {
    border: none;
    border-top: 1.5px solid #bbb;
    margin: 0 0 1.2rem 0;
}
.resume-job, .resume-edu, .resume-project, .resume-skills {
    margin-bottom: 2.2rem;
}
.resume-job-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.1rem;
}
.resume-job-company {
    font-size: 1rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.1rem;
}
.resume-job-dates {
    font-size: 0.98rem;
    font-style: italic;
    color: #666;
    margin-bottom: 0.5rem;
}
.resume-job-list {
    margin-left: 1.2rem;
    margin-bottom: 0.2rem;
}
.resume-job-list li {
    margin-bottom: 0.3rem;
    font-size: 1rem;
    color: #222;
}
.resume-edu-degree {
    font-size: 1.08rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.1rem;
}
.resume-edu-dates {
    font-size: 0.98rem;
    font-style: italic;
    color: #666;
    margin-bottom: 0.5rem;
}
.resume-edu-list {
    margin-left: 1.2rem;
    margin-bottom: 0.2rem;
}
.resume-edu-list li {
    margin-bottom: 0.3rem;
    font-size: 1rem;
    color: #222;
}
.resume-project-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.1rem;
}
.resume-project-dates {
    font-size: 0.98rem;
    font-style: italic;
    color: #666;
    margin-bottom: 0.2rem;
}
.resume-project-role {
    font-size: 1rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.2rem;
}
.resume-project-list {
    margin-left: 1.2rem;
    margin-bottom: 0.2rem;
}
.resume-project-list li {
    margin-bottom: 0.3rem;
    font-size: 1rem;
    color: #222;
}
.resume-skills-list {
    margin-left: 1.2rem;
    margin-bottom: 0.2rem;
}
.resume-skills-list li {
    margin-bottom: 0.3rem;
    font-size: 1rem;
    color: #222;
}
.resume-actions {
    display: flex;
    gap: 1.2rem;
    margin-top: 2.5rem;
    justify-content: flex-start;
}
.resume-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: #f8f9fa;
    color: #222;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid #bbb;
    transition: background 0.2s, color 0.2s;
}
.resume-action-btn:hover {
    background: #222;
    color: #fff;
    border-color: #222;
}
@media (max-width: 700px) {
    .resume-section {
        padding: 1.2rem 0.2rem;
    }
    .resume-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.edu-achievements {
    margin-top: 0.7rem;
    margin-bottom: 0.2rem;
    padding-left: 1.2rem;
}
.edu-achievements li {
    margin-bottom: 0.2rem;
    font-size: 0.97rem;
    color: #333;
}
.edu-achievements a {
    color: #007bff;
    text-decoration: underline;
    transition: color 0.2s;
}
.edu-achievements a:hover {
    color: #0056b3;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(.4,0,.2,1), transform 0.6s cubic-bezier(.4,0,.2,1);
}
.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme .profile h1,
body.dark-theme .bio,
body.dark-theme .resume-name,
body.dark-theme .resume-role,
body.dark-theme .resume-section-title,
body.dark-theme .resume-job-title,
body.dark-theme .resume-job-company,
body.dark-theme .resume-edu-degree,
body.dark-theme .resume-project-title,
body.dark-theme .resume-project-role,
body.dark-theme .main-nav,
body.dark-theme .nav-link,
body.dark-theme .social-icon,
body.dark-theme .card h4,
body.dark-theme .card p,
body.dark-theme .tweet-box,
body.dark-theme .live-now,
body.dark-theme .github-graph,
body.dark-theme .right-sidebar,
body.dark-theme .left-sidebar,
body.dark-theme .main-content {
    color: #f5f5f5 !important;
}
body.dark-theme .resume-section-title,
body.dark-theme .resume-job-title,
body.dark-theme .resume-edu-degree,
body.dark-theme .resume-project-title {
    color: #fff !important;
}
body.dark-theme .resume-job-company,
body.dark-theme .resume-project-role {
    color: #e0e0e0 !important;
}
body.dark-theme .resume-role {
    color: #b3b3b3 !important;
}

body.dark-theme .social-icon {
    background: #222 !important;
    color: #fff !important;
    border: 1.5px solid #444 !important;
}
body.dark-theme .social-icon:hover {
    background: #ffd700 !important;
    color: #222 !important;
}
body.dark-theme .intro {
    background: #181f2f !important;
    color: #f5f5f5 !important;
}
body.dark-theme .intro h2,
body.dark-theme .intro h1 {
    color: #fff !important;
}
body.dark-theme .tweet-box,
body.dark-theme .live-now,
body.dark-theme .github-graph {
    background: #181f2f !important;
    color: #f5f5f5 !important;
}
body.dark-theme .tweet-box h4,
body.dark-theme .live-now h4,
body.dark-theme .github-graph h4 {
    color: #fff !important;
}
body.dark-theme .tweet-box p,
body.dark-theme .live-now p,
body.dark-theme .github-graph p {
    color: #f5f5f5 !important;
}
body.dark-theme .intro p,
body.dark-theme .intro span,
body.dark-theme .intro li {
    color: #f5f5f5 !important;
}

body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme .section-header,
body.dark-theme .blogs-header h2,
body.dark-theme .projects-header h2,
body.dark-theme .resume-section-title {
    color: #fff !important;
}
body.dark-theme .card p,
body.dark-theme .blog-card p,
body.dark-theme .project-card p,
body.dark-theme .resume-section p,
body.dark-theme .resume-job-list li,
body.dark-theme .resume-edu-list li,
body.dark-theme .resume-project-list li,
body.dark-theme .resume-skills-list li {
    color: #eaeaea !important;
}

body.dark-theme .highlights {
    background: #181f2f !important;
    color: #fff !important;
}
body.dark-theme .highlights h3 {
    color: #fff !important;
}
body.dark-theme .highlights .card {
    background: #232a3b !important;
    color: #fff !important;
}
body.dark-theme .highlights .card h4,
body.dark-theme .highlights .card p,
body.dark-theme .highlights .card small {
    color: #fff !important;
}

body.dark-theme .blogs-header,
body.dark-theme .projects-header {
    background: #181f2f !important;
    color: #fff !important;
}
body.dark-theme .blogs-header h2,
body.dark-theme .projects-header h2,
body.dark-theme .blogs-header p,
body.dark-theme .projects-header p {
    color: #fff !important;
}
body.dark-theme .education-timeline::after {
    background-color: #fff !important;
    border-color: #fff !important;
}

body.dark-theme .education-header {
    background: #181f2f !important;
    color: #fff !important;
}
body.dark-theme .education-header h2,
body.dark-theme .education-header p {
    color: #fff !important;
}

body.dark-theme .timeline-content,
body.dark-theme .timeline-content .location,
body.dark-theme .timeline-content .duration,
body.dark-theme .timeline-content .description,
body.dark-theme .timeline-content .university-info h4,
body.dark-theme .timeline-content .post-category {
    color: #eaeaea !important;
}

body.dark-theme .resume-contact-block,
body.dark-theme .resume-contact-block div,
body.dark-theme .resume-contact-block b {
    color: #fff !important;
}
body.dark-theme .resume-job-dates,
body.dark-theme .resume-edu-dates,
body.dark-theme .resume-project-dates {
    color: #eaeaea !important;
}
body.dark-theme .resume-divider,
body.dark-theme .resume-section-line {
    border-color: #fff !important;
}

/* Add styles for email button to match nav links */
.email-button {
    margin-top: 0.5rem;
}

.email-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 1rem;
    border: 1px solid #eee;
}

.email-link:hover {
    background-color: #f0f0f0;
    color: #1a1a1a;
    transform: translateX(5px);
    border-color: #1a1a1a;
}

.email-link i {
    width: 20px;
    font-size: 1.1rem;
    text-align: center;
    margin-right: 12px;
}

.dark-theme .email-link {
    color: #eaeaea;
    border-color: #222;
}

.dark-theme .email-link:hover {
    background-color: #222;
    color: #fff;
    border-color: #fff;
}

body.dark-theme .tweet-box {
  background: #181c20;
}
body.dark-theme .tweet-box,
body.dark-theme .tweet-box * {
  color: #f2f2f2 !important;
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 900px) {
  .mobile-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #fff;
    padding: 0.7rem 1.2rem !important;
    border-bottom: 1px solid #eee;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1002;
    height: 56px;
  }
  .mobile-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-left: 0;
    margin-right: 0;
    line-height: 1;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    flex: 1 1 auto;
    justify-content: center;
  }
  #mobile-dark-mode-toggle {
    margin-left: auto;
  }
}
body.dark-theme .mobile-header {
  background: #181f2f !important;
  border-bottom: 1px solid #232a3b !important;
}
body.dark-theme .mobile-title {
  color: #f5f5f5 !important;
}
body.dark-theme #mobile-dark-mode-toggle {
  color: #ffd700 !important;
}

@media (max-width: 600px) {
  .mobile-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.7rem 0.7rem;
  }
  .mobile-title {
    font-size: 1.1rem;
  }
  .main-content {
    padding: 0.7rem !important;
  }
  .highlights, .intro, .card, .tweet-box, .live-now, .github-graph {
    padding: 0.7rem !important;
    border-radius: 8px !important;
  }
}

/* Hamburger menu overlay (to be implemented in JS) */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  z-index: 999;
}
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 80vw;
  max-width: 320px;
  height: 100vh;
  background: #fff;
  box-shadow: 2px 0 16px rgba(0,0,0,0.08);
  z-index: 1001;
  flex-direction: column;
  padding: 2rem 1.5rem;
  gap: 1.2rem;
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav-overlay.open {
  display: block;
}

/* Hide mobile header on desktop */
.mobile-header { display: none; }
@media (max-width: 900px) {
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #eee;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1002;
  }
  .mobile-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-left: 0.5rem;
  }
  .mobile-header #hamburger-toggle {
    background: none;
    border: none;
    font-size: 2rem;
    color: #1a1a1a;
    cursor: pointer;
    margin-right: 1rem;
  }
  .mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    z-index: 1001;
  }
  .mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 80vw;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 16px rgba(0,0,0,0.08);
    z-index: 1003;
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.2rem;
    overflow-y: auto;
  }
  .mobile-nav.open {
    display: flex;
  }
  .mobile-nav-overlay.open {
    display: block;
  }
}

body.dark-theme .highlight-blog-card div,
body.dark-theme .highlight-project-card div {
  color: #f5f5f5 !important;
}
body.dark-theme .desktop-copyright,
body.dark-theme .mobile-copyright {
  color: #f5f5f5 !important;
}

body.dark-theme .mobile-nav {
  background: #181f2f !important;
}
body.dark-theme .mobile-profile-pic img {
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
body.dark-theme .mobile-search-box input {
  background: #232a3b !important;
  color: #f5f5f5 !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
body.dark-theme .mobile-nav .nav-link,
body.dark-theme .mobile-nav .email-link {
  background: #232a3b !important;
  color: #f5f5f5 !important;
  border: none !important;
}
body.dark-theme .mobile-nav .nav-link.active,
body.dark-theme .mobile-nav .nav-link:hover {
  background: #222 !important;
  color: #fff !important;
}
body.dark-theme .mobile-nav .tweet-box {
  background: #232a3b !important;
  color: #f5f5f5 !important;
  box-shadow: none !important;
  border: none !important;
}
body.dark-theme .mobile-nav .tweet-box a {
  color: #7abaff !important;
}
body.dark-theme .mobile-copyright {
  color: #f5f5f5 !important;
}

body.dark-theme .mobile-header #hamburger-toggle,
body.dark-theme .mobile-header .close-icon {
  color: #fff !important;
}

@media (max-width: 900px) {
  .main-content {
    margin-top: 56px !important;
  }
}

body.dark-theme #mobile-nav-close i {
  color: #fff !important;
}

#page-loader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1);
}
body.dark-theme #page-loader {
  background: #181f2f;
}
.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.loader-ks {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #181f2f;
  margin-bottom: 1.5rem;
  transition: color 0.3s;
}
body.dark-theme .loader-ks {
  color: #ffd700;
}
.loader-infinity svg {
  display: block;
  margin: 0 auto;
}
#page-loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

body.dark-theme details summary {
    color: #111 !important;
}

body.dark-theme code,
body.dark-theme pre,
body.dark-theme .blog-post code,
body.dark-theme .blog-post pre {
    background: #232a3b !important;
    color: #ffd700 !important;
    border-radius: 4px !important;
}

body.dark-theme .post-date,
body.dark-theme .read-time {
    color: #fff !important;
} 