/* --- Variables & Reset --- */
:root {
    --bg-color: #ffffff;
    --bg-alt: #f8f9fa;
    --text-main: #333333;
    --text-light: #666666;
    --text-warning: #b53b2e;
    --accent-color: #2c3e50; 
    --link-color: #3498db;
    --font-bg-color: #3498db4f;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth; 
}

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

/* --- Layout Utility --- */
.container {
    max-width: 900px; 
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navigation --- */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    width: 100%;
    border-bottom: 1px solid #eaeaea;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--accent-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

/* --- Hero Section --- */
.hero-section {
    padding: 60px 0 30px; /* Reduced Padding */
}

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

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

.profile-img {
    width: 220px;
    height: 220px;
    border-radius: 3%; 
    object-fit: cover;
    border: 3px solid var(--bg-alt);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: block;
}

.hero-text-container {
    text-align: left;
}

.hero-text-container h1 {
    font-size: 2.8rem;
    color: var(--accent-color);
    margin-bottom: 5px;
    line-height: 1.2;
}

.tagline {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 300;
}

.intro-text {
    margin-bottom: 20px;
    color: var(--text-main);
    max-width: 500px;
}

/* --- Social Icons --- */
.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icons a {
    color: var(--text-light);
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* --- General Section Styling --- */
.section-content {
    padding: 30px 0; /* Reduced Padding from 60px to 30px */
}

.alt-bg {
    background-color: var(--bg-alt);
}

h2 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

.divider {
    border: 0;
    height: 3px;
    width: 60px;
    background-color: var(--link-color);
    margin-bottom: 30px;
}

/* --- Mobility Subsection --- */
.mobility-subsection {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.mobility-list {
    list-style: none;
}

.mobility-list li {
    margin-bottom: 0px;
    padding-left: 15px;
    position: relative;
}

.mobility-list li::before {
    content: "•";
    color: var(--link-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* --- Awards List --- */
.award-list {
    list-style: none;
}

.award-list li {
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid #ddd;
}

.year {
    display: inline-block;
    font-weight: bold;
    min-width: 60px;
    color: var(--text-light);
}

/* --- Publications (Selected) --- */
.pub-item {
    margin-bottom: 25px;
}

.pub-title {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.pub-authors {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.pub-journal {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.9rem;
}

.pdf-link {
    font-size: 0.85rem;
    color: var(--link-color);
    text-decoration: none;
    margin-right: 10px;
}

.pdf-link:hover {
    text-decoration: underline;
}

/* --- Collapsible All Publications --- */
.all-publications-wrapper {
    margin-top: 20px;
    border-top: 1px solid #eaeaea;
    padding-top: 20px;
}

details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 20px;
    list-style: none; /* Hides default triangle in some browsers */
}

/* Custom arrow for summary */
details summary::-webkit-details-marker {
    display: none; 
}

details summary::before {
    content: "▶";
    display: inline-block;
    margin-right: 8px;
    font-size: 0.8em;
    transition: transform 0.2s;
}

details[open] summary::before {
    transform: rotate(90deg);
}

.small-print {
    font-size: 0.85rem;
}

.full-list .pub-item {
    margin-bottom: 10px;
}

.full-list .pub-authors {
    font-size: 0.85rem;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 40px 0;
    font-size: 0.9rem;
    color: var(--text-light);
    border-top: 1px solid #eaeaea;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .hero-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-text-container {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }

    .nav-container {
        flex-direction: column;
    }

    .nav-links {
        margin-top: 15px;
        gap: 15px;
        font-size: 0.9rem;
    }
}

/* Style for the CV Download buttons */
/* Style for the CV Download buttons (Simpler Text Version) */
.cv-button {
    text-decoration: none;
    font-size: 0.9rem; 
    color: var(--text-light);
    margin-left: 8px; /* Adds a little breathing room from the icons */
    border-bottom: 1px solid transparent; /* Invisible underline by default */
    transition: all 0.3s ease;
}

.cv-button:hover {
    color: var(--accent-color) !important; /* Darker color on hover */
    border-bottom: 1px solid var(--accent-color); /* Adds a subtle underline on hover */
}

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

.paper_comment {
    color: var(--text-warning);
    margin-top: -0.5em;
}