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

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Navigation */
.navbar {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-toggler {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007acc;
}

/* Main Content */
.main-content {
    margin-top: 60px;
    padding: 40px 0;
}

/* Header Section */
.header-section {
    text-align: center;
    padding: 40px 0 60px;
}

.name-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
}

.profile-section {
    margin: 30px 0;
}

.profile-image {
    display: inline-block;
    margin-bottom: 30px;
}

/* Style the avatar within the profile-image container */
.profile-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ddd;
}

.profile-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #999;
    border: 3px solid #ddd;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.intro-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Section Styling */
.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
}

/* Research Section */
.research-section {
    padding: 50px 0;
    background-color: #fafafa;
}

.research-intro {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
}

.research-areas ul {
    list-style: none;
    padding-left: 0;
}

.research-areas li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.research-areas li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #007acc;
    font-weight: bold;
}

.research-areas strong {
    color: #333;
}

/* News Section */
.news-section {
    padding: 50px 0;
}

.news-list {
    max-width: 800px;
}

.news-item {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.news-date {
    font-weight: 600;
    color: #007acc;
    margin-right: 15px;
    white-space: nowrap;
    font-size: 0.95rem;
}

.news-content {
    color: #333;
}

/* Service Section */
.service-section {
    padding: 50px 0;
    background-color: #fafafa;
}

.service-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-category h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.service-category p {
    color: #666;
}

/* Publications Section */
.publications-section {
    padding: 50px 0;
}

.publications-note {
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: #666;
}

.publications-note a {
    color: #007acc;
    text-decoration: none;
}

.publications-note a:hover {
    text-decoration: underline;
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.publication-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.publication-venue {
    background-color: #007acc;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    width: fit-content;
}

.publication-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.publication-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background-color: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #666;
}

/* Ensure images inside publication-image fill the container and are nicely cropped */
.publication-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.publication-details {
    flex: 1;
}

.publication-details h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.4;
}

.publication-authors {
    margin-bottom: 5px;
    color: #666;
}

.publication-venue-full {
    margin-bottom: 15px;
    color: #666;
    font-style: italic;
}

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

.pub-link {
    color: #007acc;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.pub-link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #eee;
    margin-top: 50px;
}

.footer p {
    color: #666;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-toggler {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .name-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .publication-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .publication-image {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
    
    .service-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .news-date {
        margin-right: 0;
    }
    
    .publication-links {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 20px 0;
    }
    
    .name-title {
        font-size: 1.8rem;
    }
    
    .intro-text p {
        font-size: 1rem;
    }
    
    .profile-placeholder {
        width: 120px;
        height: 120px;
        font-size: 36px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.nav-link:focus,
.pub-link:focus {
    outline: 2px solid #007acc;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar {
        display: none;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .publication-image {
        display: none;
    }
    
    .publication-content {
        flex-direction: column;
    }
}