/* --- Professional Academic Portfolio Stylesheet --- */

/* 1. Global Setup and Variables */
:root {
    --primary-color: #154360; /* Darker, more corporate blue */
    --secondary-color: #1a5276; /* Slightly lighter blue */
    --accent-color: #a93226; /* Muted red for awards */
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --text-color: #34495e;
    --text-light: #ecf0f1;
    --border-color: #e5e7e9;
    --shadow: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 20px rgba(0,0,0,0.1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-light);
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 2. Navigation Bar */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.nav-brand {
    font-size: 1.7rem;
    font-family: 'Lora', serif;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}
.nav-links { list-style: none; display: flex; }
.nav-links li { margin-left: 2.5rem; }
.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding-bottom: 5px;
}
.nav-links a:hover { color: var(--secondary-color); }

/* 3. Bio Section */
.section-bio {
    background: var(--background-white);
    padding: 5rem 0 3rem 0;
    border-bottom: 1px solid var(--border-color);
}
.bio-layout { display: flex; align-items: center; gap: 3rem; }
.bio-image img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover; /* This crops the image to fit the container */
    object-position: center top; /* This focuses the crop on the top-center (face area) */
    box-shadow: var(--shadow);
}
.bio-text h1 {
    font-family: 'Lora', serif;
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.subtitle { font-size: 1.25rem; font-weight: 600; color: var(--secondary-color); margin-bottom: 0.5rem; }
.affiliation { font-size: 1.1rem; margin-bottom: 1.5rem; }
.contact-info p { margin-bottom: 0.5rem; }
hr { border: 0; height: 1px; background: var(--border-color); margin: 1.5rem 0; }
.bio-narrative { padding-top: 2rem; max-width: 960px; text-align: justify; }

/* 4. Content Sections */
.section-content { padding: 4rem 0; }
.section-light { background: var(--background-white); }
h2 {
    text-align: center;
    font-family: 'Lora', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
h3 {
    text-align: center;
    font-weight: 400;
    color: #555;
    margin-bottom: 3rem;
}
.subsection-header {
    margin-top: 4rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 400;
    color: #555;
}
.card {
    background: var(--background-white);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.section-light .card {
    background: var(--background-light);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

/* 5. Specific Layouts */
.publication-list .authors, .presentation-list .title { font-weight: 600; font-size: 1.05rem; color: var(--primary-color); }
.publication-list .title { font-size: 1rem; margin: 0.25rem 0; }
.publication-list .proceedings { font-style: italic; color: #555; }

.presentation-list .conference-list {
    list-style-type: none;
    padding-left: 0;
    margin-top: 0.5rem;
}
.presentation-list .conference-list li {
    font-style: italic;
    color: #555;
}

.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.card ul { list-style-type: none; }
.card li { margin-bottom: 0.75rem; border-left: 3px solid var(--secondary-color); padding-left: 1rem; }
.card h3 { text-align: left; font-family: 'Inter', sans-serif; font-size: 1.2rem; color: var(--primary-color); margin-bottom: 1.5rem;}
.teaching-card {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* 6. Footer */
.footer { background: var(--primary-color); color: var(--text-light); text-align: center; padding: 2rem 0; }

/* 7. Responsive Design */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .bio-layout { flex-direction: column; text-align: center; }
    .bio-text h1 { font-size: 2.8rem; }
    .service-grid { grid-template-columns: 1fr; }
    h2 { font-size: 2rem; }
}