/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #34495e;
    --light-bg: #f8f9fa;
    --border-color: #ecf0f1;
    --section-spacing: 6rem;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    padding: 0;
    margin: 0;
}

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

/* Header styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 2rem 0;
    margin-bottom: 3rem;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 0 20px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--border-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
}

.header-text h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.title {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.institution {
    color: var(--text-color);
    font-size: 1rem;
    opacity: 0.8;
}

/* Navigation */
nav {
    background-color: #fff;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover:after {
    width: 100%;
}

/* Main content */
main {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 3rem;
    margin-bottom: 3rem;
}

.section {
    margin-bottom: var(--section-spacing);
    animation: fadeIn 0.5s ease-in;
}

/* Narrative Intro */
.narrative-intro {
    margin-bottom: 4rem;
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
}

.narrative-intro:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Research Highlights */
.research-highlights {
    margin-bottom: 4rem;
}

.research-highlights h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
}

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

.research-card {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.research-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.research-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Publications Flow */
.publications-flow {
    margin-top: 4rem;
}

.publications-flow h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
}

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

.publication-card {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.publication-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.publication-card h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.publication-card ul {
    list-style: none;
    padding-left: 0;
}

.publication-card li {
    margin-bottom: 1.5rem;
}

.publication-card strong {
    color: var(--primary-color);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.publication-card p {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.6;
}

.publication-card a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.publication-card a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Teaching Flow */
.teaching-flow {
    margin-top: 4rem;
}

.teaching-flow h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
}

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

.teaching-card {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.teaching-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.teaching-card h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.teaching-card ul {
    list-style: none;
    padding-left: 0;
}

.teaching-card li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.teaching-card li:before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* Contact Flow */
.contact-flow {
    text-align: center;
    padding: 3rem;
    background-color: var(--light-bg);
    border-radius: 12px;
    margin-top: 4rem;
}

.contact-flow h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.contact-flow p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.8;
    border-top: 1px solid var(--border-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .research-grid,
    .publication-grid,
    .teaching-grid {
        grid-template-columns: 1fr;
    }

    main {
        padding: 2rem;
    }

    .narrative-intro,
    .research-card,
    .publication-card,
    .teaching-card {
        padding: 1.5rem;
    }
}