@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    --univ-blue: #1a365d;
    --soft-blue: #3182ce;
    --text-main: #1a202c;
    --text-muted: #6b7386;
    --border: #e2e8f0;
    --bg-light: #f1f1f1;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background: white;
}

header {
    border-bottom: 1px solid var(--border);
    background: white;
    padding: 15px 0;
}

.navbar {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: "Playfair Display", serif;
    color: var(--univ-blue); 
    text-decoration: none; 
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logo span { color: var(--soft-blue); font-weight: 700; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 12px;
    transition: 0.2s;
    border-radius: 5px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--soft-blue);
}

.nav-links a.active {
    background: var(--bg-light);
    color: var(--soft-blue);
}

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

.about {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    margin-bottom: 60px;
}

.left-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.profile-pic {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(100%);
    transition: filter 0.5s ease-in-out;
    border: 5px solid var(--soft-blue);
}

.profile-pic:hover img {
    filter: grayscale(0%);
}

.profile-pic:hover {
    transform: scale(1.03); 
}

.intro h1 { font-weight: 500; font-size: 2.2rem; color: var(--univ-blue); }
.intro span { font-weight: 700; }
.role { color: var(--soft-blue); font-weight: 500; font-size: 1.1rem; }
.affiliation { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 10px; }
.text { margin-bottom: 20px; text-align: justify; color: var(--text-main); }

.references, .interests {
    margin-bottom: 10px;
}

h3 { text-transform: uppercase; font-size: 1rem; color: var(--univ-blue);}

.blue-item {
    background-color: var(--univ-blue);
    color: white;
}

.grey-item {
    background-color: var(--border);
    color: var(--univ-blue)
}

.item {
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: 0.2s;
}

.item:hover {
    font-size: 0.92rem;
}


.text.italic {
    color: var(--text-muted);
    font-style: italic;
    border-left: 4px solid var(--border); 
    padding-left: 20px;                  
    margin: 25px 0;
    display: block;                      
}

.cv-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--univ-blue);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--soft-blue);
    font-size: 1rem;
    transition: font-size 0.3s ease;
}

.cv-link:hover {
    font-size: 1.02rem;
}

.contact {
    border-top: 1px solid var(--border);
    padding-top: 50px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.address {
    margin-bottom: 10px;
}

.email-link {
    color: var(--soft-blue);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 10px;
    margin-top: 5px;
}

.social-item img {
    height: 23px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.social-item img:hover {
    transform: scale(1.05);
}

.orcid-icon img {
    height: 25px;
}

.logos { display: flex; gap: 30px; align-items: center; }
.logos img {
    transition: transform 0.3s ease;
}
.logos img:hover {
    transform: scale(1.05);
}
.univ-logo { height: 45px; }
.lem-logo { height: 55px; }

footer {
    text-align: center;
    padding-top: 40px;
    padding-bottom: 20px;
    background: var(--bg-light);
    color: #94a3b8;
    font-size: 0.85rem;
}

.made-with {
    font-size: 0.7rem;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: 5px 8px;
    }

    .about {
        flex-direction: column;
        align-items: center;
    }

    .title {
        display: block;
        margin-bottom: 10px;
    }

    .contact {
        flex-direction: column;
        align-items: center;
    }
    
    .social-item {
        justify-content: center;
    }
}