/* =========================================
   1. General Setup & Layout
   ========================================= */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 80vh; /* Keeps footer at bottom */
}

/* =========================================
   2. Navigation Ribbon (Sticky)
   ========================================= */
nav {
    background-color: #eaf6ff;
    width: 100%;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.1em;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

nav ul li a:hover {
    background-color: #d0e9fc;
}

/* =========================================
   3. Header & Profile (Home Only)
   ========================================= */
header {
    text-align: center;
    margin-bottom: 40px;
    display: block; /* Visible by default, JS may hide it */
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: white;
}

h1 {
    margin: 15px 0 5px;
    font-size: 2.2em;
    color: #2c3e50;
}

.bio {
    font-size: 1.1em;
    color: #555;
    margin-top: 0;
}

/* =========================================
   4. Page Section Logic
   ========================================= */
/* HIDE all sections by default. JS will show the active one. */
.page {
    display: none;
    opacity: 0;
    animation: fadeIn 0.4s ease-in-out forwards;
}

/* Class added by JS to show content */
.page.active {
    display: block;
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   5. Content Styling
   ========================================= */
h2 {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.6em;
    color: #2c3e50;
}

.publication-list, 
.news-list, 
.teaching-list {
    list-style: none;
    padding-left: 0;
}

.publication-item, 
.news-list li, 
.teaching-list li {
    margin-bottom: 25px;
}

/* Links */
.publication-item a, p a {
    color: #007bff;
    text-decoration: none;
}

.publication-item a:hover, p a:hover {
    text-decoration: underline;
}

strong {
    color: #444;
}

/* =========================================
   6. Footer
   ========================================= */
footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 0.9em;
}
