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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

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

/* Navigation */
.navbar {
    background-color: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

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

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 3rem 0;
}

.profile-section {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-content h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-bg);
    border-radius: 50%;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* Content Sections */
section {
    margin: 3rem 0;
}

section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

section h2 a {
    color: inherit;
    text-decoration: none;
}

section h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

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

section a {
    color: var(--secondary-color);
    text-decoration: none;
}

section a:hover {
    text-decoration: underline;
}

blockquote {
    background-color: var(--light-bg);
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
}

/* News Section */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--light-bg);
    border-radius: 5px;
}

.news-date {
    font-weight: bold;
    color: var(--secondary-color);
}

/* Posts Section */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.post-date {
    font-weight: bold;
    color: #666;
}

.post-title {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.post-title:hover {
    text-decoration: underline;
}

/* Publications & Projects */
.publication-item,
.project-item,
.talk-item {
    background-color: var(--light-bg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.publication-item h3,
.project-item h3,
.talk-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.publication-meta,
.project-meta,
.talk-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

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

.publication-links a,
.project-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--secondary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
    transition: background-color 0.3s;
}

.publication-links a:hover,
.project-links a:hover {
    background-color: var(--primary-color);
}

/* Blog Posts */
.blog-post {
    background-color: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.blog-post h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.blog-post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-post-content {
    line-height: 1.8;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

footer p {
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .profile-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-image {
        margin: 0 auto;
    }

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

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

    .profile-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .profile-image {
        width: 250px;
        height: 250px;
    }

    section h2 {
        font-size: 1.5rem;
    }
}

/* Made with Bob */
/* BibTeX Display */
.bibtex-entry {
    margin-top: 1rem;
    background-color: #f5f5f5;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 1rem;
}

.bibtex-entry pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #333;
}

/* Character Icons for Pinky and Brain */
.character-icon {
    width: 40px;
    height: 40px;
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
}

blockquote .character-icon {
    background-color: #fff;
    padding: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.blog-image {
    border: 1px solid #ddd;
    padding: 10px;
    margin-top: 10px;
}

.blog-image summary {
    cursor: pointer;
    font-weight: 500;
}

.blog-image img {
    max-width: 100%;
    height: auto;
}

.cv-section {
    margin-bottom: 30px;
}

.cv-item {
    display: flex;
    margin-bottom: 15px;
}

.cv-date {
    width: 180px;
    font-weight: 600;
    color: #666;
}

.cv-content {
    flex: 1;
}

.cv-list {
    list-style: none;
    padding-left: 0;
}

.cv-list li {
    margin-bottom: 6px;
}