:root {
    /* Light theme */
    --bg-color: #ffffff;
    --text-color: #1A1A1A;
    --nav-bg: #ffffff;
    --nav-text: #1A1A1A;
    --card-bg: #ffffff;
    --border-color: #E5E7EB;
    --primary-color: #4F46E5;
    --hover-color: #4338CA;
    --secondary-color: #6B7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Styles for navbar profile image */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid black;
}


.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Sections */
/* First section needs extra padding to account for the fixed navbar */
#about.section {
    padding-top: 8rem;
}

/* Rest of the sections */
.section {
    padding: 2rem 0;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: #111827;
}

/* Profile/About Section */
.profile {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 0.75rem;
    margin: 0 auto;
    display: block;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.profile-content {
    width: 100%;
}

.profile-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.profile-content h4 {
    font-size: 1.25rem;
    margin: 2rem 0 1rem;
    color: #111827;
}

.profile-content .description {
    margin-bottom: 2rem;
    line-height: 1.8;
    text-align: justify;
    color: var(--secondary-color);
}

.profile-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.profile-content a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

.research-interests ul {
    list-style: none;
    margin-left: 1rem;
}

.research-interests li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--secondary-color);
}

.research-interests li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Teaching Section */
.courses-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.course-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.course-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.course-subtitle {
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.course-meta {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

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

.course-links p {
    margin-bottom: 0.5rem;
}

.course-links ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

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

.course-links li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.course-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.course-links a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

.course-card .description {
    text-align: justify;
}

/* Publications Section */
.publications-category {
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.publication-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.publication-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.publication-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.publication-card h4 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.publication-card h4 a:hover {
    color: var(--primary-color);
}

.authors {
    color: var(--primary-color);
    margin: 0.75rem 0;
    font-weight: 500;
}

.publication-meta {
    color: var(--secondary-color);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.additional-links {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);


    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.additional-links p {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.additional-links ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.additional-links li {
    margin-bottom: 0.5rem;
}

.additional-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.additional-links a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

/* Contact Section */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

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

.contact-content p:last-child {
    margin-bottom: 0;
}

.contact-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

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

    .nav-links {
        display: none;
    }

    .profile {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .section {
        padding: 4rem 0;
    }

    .research-interests {
        text-align: left;
    }
    .courses-list {
        flex-direction: column;
    }

}

.education {
    margin-top: 2rem;
}

.education h4 {
    font-size: 1.25rem;
    color: #111827;
    margin-bottom: 1.5rem;
}

.education-item {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.education-item::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.education-item h5 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.education-item .duration {
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.education-item .institution {
    color: var(--text-color);
}

/* Dataset specific styles */
.dataset-details {
    list-style: none;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}

.dataset-details li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--secondary-color);
}

.dataset-details li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.dataset-citation {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
}

.dataset-citation h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.download-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: background-color 0.2s, transform 0.2s;
}

.download-link:hover {
    background-color: var(--hover-color);
    transform: translateY(-1px);
}