/* =========================
   Global
   ========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.7;

    color: #2c2c2c;

    background-color: #ffffff;
}

a {
    color: #2f6fb0;
    text-decoration: none;
}

a:hover {
    color: #174a7e;
}


/* =========================
   Navigation
   ========================= */

.navbar {
    background: rgba(255,255,255,0.95);

    border-bottom: 1px solid #e8e8e8;

    position: sticky;

    top: 0;

    z-index: 1000;

    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1050px;

    margin: auto;

    padding: 17px 30px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.nav-name a {
    font-size: 21px;

    font-weight: 600;

    color: #222;
}

.nav-links a {
    margin-left: 25px;

    color: #555;

    font-size: 15px;
}

.nav-links a:hover {
    color: #2f6fb0;
}


/* =========================
   Hero
   ========================= */

.hero {
    max-width: 1050px;

    margin: auto;

    padding: 80px 30px 60px;
}

.hero-container {
    display: flex;

    align-items: center;

    gap: 60px;
}

.profile-photo img {
    width: 230px;

    height: 230px;

    object-fit: cover;

    border-radius: 50%;

    box-shadow:
        0 8px 25px rgba(0,0,0,0.12);
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    font-size: 42px;

    margin: 0 0 8px;

    font-weight: 650;

    color: #222;
}

.position {
    font-size: 20px;

    margin: 0;

    color: #555;
}

.institution {
    font-size: 17px;

    color: #777;

    margin-top: 3px;
}

.bio {
    margin-top: 24px;

    font-size: 17px;

    color: #444;

    max-width: 680px;
}


/* =========================
   Profile links
   ========================= */

.profile-links {
    margin-top: 25px;

    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}

.profile-links a {
    padding: 7px 15px;

    border: 1px solid #d4dbe2;

    border-radius: 6px;

    color: #355d85;

    background: #fafcff;

    font-size: 14px;

    transition: 0.2s;
}

.profile-links a:hover {
    background: #edf4fa;

    border-color: #9dbbd6;
}


/* =========================
   Sections
   ========================= */

.section {
    max-width: 900px;

    margin: auto;

    padding: 55px 30px;
}

.section h2 {
    font-size: 28px;

    color: #222;

    margin-bottom: 25px;

    border-bottom: 2px solid #eee;

    padding-bottom: 10px;
}

.section p {
    font-size: 16px;
}


/* =========================
   Research Cards
   ========================= */

.research-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;
}

.research-card {
    padding: 22px;

    border: 1px solid #e5e5e5;

    border-radius: 8px;

    background: #fafafa;

    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.research-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 5px 18px rgba(0,0,0,0.07);
}

.research-card h3 {
    margin-top: 0;

    color: #2f5d88;
}

.research-card p {
    margin-bottom: 0;

    color: #555;
}


/* =========================
   Publications
   ========================= */

.publication {
    padding-bottom: 25px;

    margin-bottom: 25px;

    border-bottom: 1px solid #eee;
}

.publication h3 {
    margin-bottom: 7px;

    color: #2e5f8e;

    font-size: 18px;
}

.authors {
    margin: 4px 0;

    font-size: 15px;
}

.venue {
    font-style: italic;

    color: #666;

    margin: 4px 0;
}

.publication-links {
    margin-top: 9px;
}

.publication-links a {
    font-size: 14px;

    margin-right: 12px;

    font-weight: 500;
}

.more-publications {
    margin-top: 30px;
}


/* =========================
   Education
   ========================= */

.timeline-item {
    margin-bottom: 28px;
}

.timeline-item h3 {
    margin-bottom: 2px;

    color: #333;
}

.timeline-item p {
    margin: 3px 0;
}

.date {
    color: #777;

    font-size: 14px;
}


/* =========================
   Footer
   ========================= */

footer {
    margin-top: 60px;

    border-top: 1px solid #eee;

    text-align: center;

    padding: 30px;

    color: #888;

    font-size: 13px;
}


/* =========================
   Mobile
   ========================= */

@media (max-width: 750px) {

    .nav-container {
        flex-direction: column;

        align-items: flex-start;
    }

    .nav-links {
        margin-top: 10px;
    }

    .nav-links a {
        margin-left: 0;

        margin-right: 15px;
    }

    .hero {
        padding-top: 50px;
    }

    .hero-container {
        flex-direction: column;

        text-align: center;

        gap: 30px;
    }

    .profile-photo img {
        width: 190px;

        height: 190px;
    }

    .profile-info h1 {
        font-size: 34px;
    }

    .profile-links {
        justify-content: center;
    }

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

}
