/* --- Basic Setup --- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    background-color: #ffffff;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

hr {
    border: 0;
    height: 1px;
    background-color: #e0e0e0;
    margin: 3rem 0;
}

a {
    color: #0056b3; /* A professional blue */
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #003d82;
    text-decoration: underline;
}

h1, h2, h3 {
    font-weight: 700;
    color: #111;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.25rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    color: #222;
}

/* --- Header & Navigation --- */
header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1.logo {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: #111;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    font-size: 1rem;
    font-weight: 500;
    color: #444;
    text-decoration: none;
}

nav a:hover {
    color: #0056b3;
    text-decoration: none;
}

/* --- Main Content Sections --- */
section {
    padding: 1rem 0;
}

/* --- About Section --- */
#about {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
}

.profile-pic {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px; /* Softer, modern corners */
    margin-top: 1rem;
    border: 1px solid #ddd;
}

.bio {
    flex: 1;
}

.bio h2 {
    margin-top: 0;
    border: none;
    font-size: 2rem;
}

.bio h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
}

/* --- Publications & Lists --- */
#publications ul,
#service ul,
#teaching ul {
    list-style: none;
    padding-left: 0;
}

#publications li,
#service li,
#teaching li {
    margin-bottom: 1.75rem;
    padding-left: 1.5rem;
    border-left: 4px solid #0056b3;
    line-height: 1.6;
}

#publications b { /* Makes publication titles stand out */
    font-weight: 700;
    color: #111;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #888;
    border-top: 1px solid #f0f0f0;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }

    #about {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-pic {
        margin-bottom: 1rem;
    }

    .bio {
        text-align: left;
    }
}

@media (max-width: 480px) {
    h1.logo {
        font-size: 1.5rem;
    }

    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav a {
        font-size: 0.9rem;
    }

    h2 {
        font-size: 2rem;
    }
    
    .profile-pic {
        width: 150px;
        height: 150px;
    }
}