/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #7f8c8d;
    --text-color: #333333;
    --bg-color: #ffffff;
    --light-bg: #f9f9f9;
    --border-color: #e0e0e0;

    --font-heading: 'Philosopher', serif;
    --font-body: 'Source Sans 3', sans-serif;

    --max-width: 1000px;
    --header-height: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

main {
    flex: 1;
    padding-top: var(--header-height);
}

.section {
    padding: 60px 0;
}

/* ==========================================================================
   Header
   ========================================================================== */
.page-header {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 2px;
}

/* Navigation */
.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-size: 0.95rem;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    padding: 80px 0;
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    justify-content: center;
}

.profile-image-container {
    flex-shrink: 0;
}

.profile-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    /* Circle shape as requested style typically implies personal formal */
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-text {
    max-width: 500px;
}

.main-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.affiliation {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 400;
}

/* ==========================================================================
   Career Section
   ========================================================================== */
.career-section {
    background-color: #fff;
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.career-list {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    border-left: 2px solid var(--border-color);
    padding-left: 30px;
}

.career-item {
    margin-bottom: 30px;
    position: relative;
}

.career-item::before {
    content: '';
    position: absolute;
    left: -37px;
    /* Align dot with line */
    top: 6px;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 3px solid #fff;
}

.career-year {
    display: block;
    font-family: var(--font-heading);
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.career-desc {
    color: var(--text-color);
    font-size: 1.1rem;
}

/* ==========================================================================
   Information / Contact
   ========================================================================== */
.info-section {
    background-color: var(--light-bg);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Side by side info and map */
    gap: 40px;
    align-items: start;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.info-table th {
    text-align: left;
    padding: 15px 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
    width: 100px;
}

.info-table td {
    padding: 15px 10px;
    border-bottom: 1px solid var(--border-color);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    font-size: 0.9rem;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.map-container iframe {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.page-footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 30px 0;
    text-align: center;
    margin-top: auto;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .page-header {
        padding: 0 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav ul {
        display: none;
        /* Hide for mobile initially, would need JS to toggle */
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 20px 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .main-nav.open ul {
        display: flex;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .main-title {
        font-size: 2.2rem;
    }
}

/* ==========================================================================
   Portfolio Section
   ========================================================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 20px 0;
}

.portfolio-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-image-link {
    display: block;
    overflow: hidden;
}

.portfolio-image {
    width: 100%;
    height: 200px;
    /* or auto, but fixed height helps alignment */
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.portfolio-title a {
    color: var(--primary-color);
}

.portfolio-title a:hover {
    color: var(--accent-color);
}

.portfolio-date {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: block;
}

.portfolio-desc {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
    /* Pushes button down if we had one */
}

/* Optional: Add a "View Project" link/button style if desired */
.portfolio-link-btn {
    display: inline-block;
    margin-top: auto;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.portfolio-link-btn:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Publications
   ========================================================================== */
.subsection-title {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    font-family: var(--font-heading);
}

.pub-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
}

.pub-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pub-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pub-image {
    flex: 0 0 250px;
    display: flex;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    background-color: #eee;
}

.pub-image img {
    flex: 1;
    width: 100%;
    height: auto;
    display: block;
}

.pub-info {
    flex: 1;
}

.pub-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.pub-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.pub-title a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.pub-authors {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.pub-venue {
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1.5;
}

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

.pub-link {
    font-size: 0.95rem;
    color: var(--accent-color);
    font-weight: bold;
}

.pub-link:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .pub-item {
        flex-direction: column;
        gap: 15px;
    }
    .pub-image {
        flex: 1 1 auto;
        width: 100%;
        max-width: 400px;
    }
}