/* 
 * Academic Website Stylesheet
 * Design inspired by Sewon Min's website (https://www.sewonmin.com/index.html)
 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Main Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.main-content {
    background-color: #fff;
}

/* Page Title */
.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2d3748;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.note {
    font-size: 0.9rem;
    color: #718096;
    font-style: italic;
    margin-bottom: 2rem;
}

/* Profile Header */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    gap: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

.profile-text {
    flex: 1;
}

.profile-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2d3748;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-role {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.25rem;
}

.affiliation {
    color: #718096;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact-info {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.contact-info p {
    margin: 0.25rem 0;
    color: #4a5568;
}

.contact-info a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.link-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.link-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.profile-image {
    flex-shrink: 0;
}

.profile-image img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* Section Titles */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-image-slice: 1;
    color: #2d3748;
}

/* Bio Section */
.bio {
    margin-bottom: 2.5rem;
}

.bio p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #4a5568;
    font-size: 1.05rem;
}

.bio a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.bio a:hover {
    text-decoration: underline;
}

/* Research Interests */
.research-interests {
    margin-bottom: 2.5rem;
}

.interests-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.interest-tag {
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #e0e7ff 0%, #e9d5ff 100%);
    color: #5b21b6;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.interest-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

/* News Section */
.news {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

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

.news-list li {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    padding-left: 1.5rem;
    position: relative;
    color: #4a5568;
}

.news-list li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.date {
    display: inline-block;
    font-weight: 700;
    color: #667eea;
    margin-right: 0.75rem;
    background: #e0e7ff;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.news-list a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.news-list a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Publications Page */
.publications-section {
    margin-bottom: 3rem;
}

.publications-section h2 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 5px;
    display: inline-block;
}

.publication-item {
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #667eea;
    transition: all 0.3s ease;
}

.publication-item:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateX(4px);
}

.publication-item:last-child {
    border-bottom: none;
}

.publication-title {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: #2d3748;
    line-height: 1.4;
}

.publication-authors {
    color: #4a5568;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.publication-venue {
    font-style: italic;
    color: #718096;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.publication-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.publication-links a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.publication-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Teaching & Services Page */
.section {
    margin-bottom: 3rem;
}

.section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-image-slice: 1;
    color: #2d3748;
}

.section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 1rem;
    color: #4a5568;
    padding-left: 1rem;
    border-left: 3px solid #667eea;
}

.section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.section li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    color: #4a5568;
}

.section a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.section a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Life Page */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 1rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 500;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2.5rem 2rem;
    text-align: center;
    margin-top: 4rem;
    color: #fff;
}

footer p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

footer a:hover {
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

.credit {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 0.75rem;
        font-size: 0.9rem;
    }

    .container {
        padding: 1rem;
    }

    .profile-header {
        flex-direction: column;
        padding: 1.5rem;
    }

    .profile-text h1 {
        font-size: 2rem;
    }

    .profile-image img {
        width: 180px;
        height: 180px;
    }

    .interests-grid {
        gap: 0.5rem;
    }

    .interest-tag {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .nav-links a {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .profile-text h1 {
        font-size: 1.75rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .profile-image img {
        width: 150px;
        height: 150px;
    }

    .social-links {
        gap: 0.5rem;
    }

    .link-button {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

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