@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500&display=swap');

/* =========================================
   GLOBAL
   ========================================= */

:root {
    --background: #f7f8fa;
    --surface: #ffffff;
    --surface-alt: #f1f3f5;

    --text: #20252b;
    --text-muted: #66717d;

    --accent: #285f8f;
    --accent-hover: #1d496e;

    --border: #e1e5e9;

    --header: #17212b;

    --max-width: 1100px;
    --radius: 10px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--background);
    color: var(--text);

    font-family: "Inter", -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif;

    font-size: 16px;
    line-height: 1.75;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}


/* =========================================
   HEADER
   ========================================= */

header {
    background: var(--header);
    color: white;
}

.header-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 55px 30px 35px;
}

header h1 {
    margin: 0;

    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.subtitle {
    margin: 10px 0 0;

    color: #b9c5cf;
    font-size: 1rem;
    letter-spacing: 0.01em;
}


/* =========================================
   NAVIGATION
   ========================================= */

nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 30px;

    display: flex;
    align-items: center;
    gap: 6px;

    overflow-x: auto;
}

nav a {
    color: #bfc9d2;

    padding: 12px 15px 15px;

    font-size: 0.9rem;
    font-weight: 500;

    white-space: nowrap;

    border-bottom: 2px solid transparent;

    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

nav a:hover {
    color: white;
    text-decoration: none;
}

nav a.active {
    color: white;
    border-bottom-color: #8eb6d4;
}


/* =========================================
   MAIN
   ========================================= */

main {
    max-width: var(--max-width);
    margin: 0 auto;

    padding: 70px 30px;
}

section {
    margin-bottom: 75px;
}

section:last-child {
    margin-bottom: 0;
}


/* =========================================
   TYPOGRAPHY
   ========================================= */

h2 {
    margin: 0 0 28px;

    font-family: "Source Serif 4", Georgia, serif;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.3;

    color: var(--text);
}

h3 {
    margin: 0 0 7px;

    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;

    color: var(--text);
}

p {
    margin-top: 0;
}

strong {
    font-weight: 600;
}


/* =========================================
   HOME HERO
   ========================================= */

.hero {
    display: grid;

    grid-template-columns: minmax(0, 1fr) 280px;

    align-items: center;

    gap: 70px;

    margin-bottom: 85px;
}

.hero-text {
    max-width: 700px;
}

.hero-text h2 {
    font-size: 2.7rem;
    margin-bottom: 22px;
}

.hero-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.hero-image {
    width: 280px;
    justify-self: end;
}

.hero-image img {
    width: 100%;
    aspect-ratio: 1 / 1;

    object-fit: cover;

    border-radius: 50%;

    border: 5px solid white;

    box-shadow:
        0 12px 35px rgba(23, 33, 43, 0.12);
}


/* =========================================
   BUTTONS
   ========================================= */

.button-container {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
}

.button {
    display: inline-block;

    padding: 10px 17px;

    background: var(--accent);
    color: white;

    border-radius: 6px;

    font-size: 0.9rem;
    font-weight: 500;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.button:hover {
    background: var(--accent-hover);
    color: white;

    text-decoration: none;

    transform: translateY(-1px);
}


/* =========================================
   CARDS
   ========================================= */

.card-container {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(240px, 1fr));

    gap: 18px;
}

.card {
    padding: 27px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow:
        0 2px 8px rgba(23, 33, 43, 0.035);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(23, 33, 43, 0.08);
}

.card p {
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}


/* =========================================
   ABOUT PAGE
   ========================================= */

.about-layout {
    display: grid;

    grid-template-columns: 220px minmax(0, 1fr);

    gap: 45px;

    align-items: start;
}

.about-image {
    width: 220px;
}

.about-image img {
    width: 100%;

    border-radius: var(--radius);

    box-shadow:
        0 8px 25px rgba(23, 33, 43, 0.08);
}

.about-text {
    max-width: 700px;
}

.about-text p {
    color: var(--text-muted);
}


/* =========================================
   EDUCATION TIMELINE
   ========================================= */

.timeline {
    position: relative;

    margin-left: 8px;
    padding-left: 32px;

    border-left: 2px solid var(--border);
}

.timeline-item {
    position: relative;

    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: "";

    position: absolute;

    width: 10px;
    height: 10px;

    left: -38px;
    top: 8px;

    background: var(--accent);

    border-radius: 50%;

    border: 3px solid var(--background);
}

.timeline-item p {
    color: var(--text-muted);
}


/* =========================================
   DATES
   ========================================= */

.date {
    margin: 0 0 8px;

    color: var(--text-muted);

    font-size: 0.85rem;
    font-weight: 500;

    letter-spacing: 0.02em;
}


/* =========================================
   EXPERIENCE
   ========================================= */

.experience-item {
    margin-bottom: 22px;

    padding: 27px 30px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow:
        0 2px 8px rgba(23, 33, 43, 0.03);
}

.experience-header {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 30px;

    margin-bottom: 15px;
}

.experience-header .date {
    white-space: nowrap;
}

.organization {
    margin: 0;

    color: var(--text-muted);

    font-size: 0.95rem;
}

.experience-item ul {
    margin-bottom: 0;

    color: var(--text-muted);
}


/* =========================================
   PUBLICATIONS
   ========================================= */

.publication {
    display: grid;

    grid-template-columns: 42px minmax(0, 1fr);

    gap: 18px;

    padding: 0 0 30px;
    margin-bottom: 30px;

    border-bottom: 1px solid var(--border);
}

.publication:last-child {
    border-bottom: none;
}

.publication-number {
    margin: 0;

    color: var(--accent);

    font-size: 0.85rem;
    font-weight: 600;
}

.publication h3 {
    font-family: "Source Serif 4", Georgia, serif;

    font-size: 1.25rem;
    font-weight: 500;

    line-height: 1.5;
}

.publication p {
    margin: 5px 0;

    color: var(--text-muted);

    font-size: 0.92rem;
}


/* =========================================
   REFERENCES
   ========================================= */

.reference {
    margin-bottom: 18px;

    padding: 23px 27px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.reference p {
    color: var(--text-muted);
}


/* =========================================
   LISTS
   ========================================= */

.interest-list {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 10px 40px;

    padding-left: 20px;

    color: var(--text-muted);
}

.profile-links {
    display: grid;

    grid-template-columns: repeat(2, minmax(150px, 1fr));

    gap: 12px;

    padding: 0;

    list-style: none;
}

.profile-links a {
    display: block;

    padding: 13px 16px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 7px;

    font-size: 0.92rem;
    font-weight: 500;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.profile-links a:hover {
    background: var(--surface-alt);

    border-color: #cbd3da;

    text-decoration: none;
}


/* =========================================
   FOOTER
   ========================================= */

footer {
    margin-top: 30px;

    padding: 35px 30px;

    background: var(--header);

    color: #9daab5;

    text-align: center;

    font-size: 0.82rem;
}

footer p {
    margin: 3px;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 750px) {

    .header-content {
        padding: 40px 20px 25px;
    }

    nav {
        padding: 0 20px;
    }

    main {
        padding: 50px 20px;
    }

    section {
        margin-bottom: 60px;
    }

    .hero {
        grid-template-columns: 1fr;

        gap: 35px;

        text-align: center;
    }

    .hero-image {
        width: 190px;

        justify-self: center;
    }

    .hero-text {
        max-width: none;
    }

    .hero-text h2 {
        font-size: 2.2rem;
    }

    .button-container {
        justify-content: center;
    }

    .about-layout {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .about-image {
        width: 180px;
    }

    .experience-header {
        flex-direction: column;

        gap: 5px;
    }

    .experience-header .date {
        order: -1;
    }

    .interest-list {
        grid-template-columns: 1fr;
    }

    .profile-links {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   SMALL PHONES
   ========================================= */

@media (max-width: 450px) {

    body {
        font-size: 15px;
    }

    header h1 {
        font-size: 2rem;
    }

    nav a {
        padding-left: 10px;
        padding-right: 10px;
    }

    main {
        padding: 40px 17px;
    }

    h2 {
        font-size: 1.7rem;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .card,
    .experience-item,
    .reference {
        padding: 22px;
    }

    .publication {
        grid-template-columns: 30px minmax(0, 1fr);

        gap: 10px;
    }
}