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

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

header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    font-size: 1.5rem;
}

nav h1 a {
    color: white;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

nav a.active {
    font-weight: 600;
    border-bottom: 2px solid white;
    padding-bottom: 0.2rem;
}

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

section {
    background: white;
    padding: 3rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

h1 {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

h2 {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    border-bottom: 3px solid #3b82f6;
    padding-bottom: 0.5rem;
}

h3.pub-category {
    color: #1e3a8a;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #93c5fd;
    padding-bottom: 0.3rem;
}

h3.pub-category:first-child {
    margin-top: 0;
}

.hero {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    align-items: start;
}

.profile-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #3b82f6;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    text-align: justify;
}

.hero-content .title {
    font-size: 1.3rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.hero-content .description {
    /* font-size: 1.3rem; */
    color: #64748b;
    margin-bottom: 0.5rem;
    text-align: justify;
}


.hero-content .contact {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.contact a {
    color: #3b82f6;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.pub-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.pub-item.award {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
}

.award-badge {
    display: inline-block;
    background: #f59e0b;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pub-item h3 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.pub-item .authors {
    color: #64748b;
    margin-bottom: 0.3rem;
}

.pub-item .venue {
    color: #475569;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.pub-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

.pub-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.pub-link:hover {
    background: #2563eb;
}

.pub-link.paper {
    background: #dc2626;
}

.pub-link.paper:hover {
    background: #b91c1c;
}

.pub-link.poster {
    background: #7c3aed;
}

.pub-link.poster:hover {
    background: #6d28d9;
}

.pub-link.slides {
    background: #059669;
}

.pub-link.slides:hover {
    background: #047857;
}

.pub-link.doi {
    background: #d6710c;
}

.pub-link.doi:hover {
    background: #a4570a;
}

.research-interests {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.interest-card {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #3b82f6;
}

.interest-card h3 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.teaching-item {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #3b82f6;
}

.teaching-item h3 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.cv-section {
    margin-bottom: 2.5rem;
}

.cv-section h3 {
    color: #1e3a8a;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #93c5fd;
    padding-bottom: 0.3rem;
}

.cv-item {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #3b82f6;
}

.cv-item .cv-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cv-item h4 {
    color: #1e3a8a;
    font-size: 1.1rem;
    margin: 0;
}

.cv-item .period {
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
}

.cv-item .institution {
    color: #475569;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.cv-item ul {
    margin-left: 1.5rem;
    color: #475569;
}

.cv-item ul li {
    margin-bottom: 0.3rem;
}

footer {
    background: #1e293b;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    header {
        padding: 1rem 0;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    nav h1 {
        font-size: 1.2rem;
    }
    
    nav ul {
        flex-direction: row;
        gap: 0.8rem;
        font-size: 0.9rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .container {
        padding: 2rem 1rem;
    }
    
    section {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .profile-image {
        width: 180px;
        height: 180px;
        margin: 0 auto;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content .title {
        font-size: 1.1rem;
    }
    
    .hero-content .contact {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .research-interests {
        grid-template-columns: 1fr;
    }
    
    .interest-card {
        padding: 1rem;
    }
    
    h3.pub-category {
        font-size: 1.2rem;
    }
    
    .pub-item {
        padding: 1rem;
    }
    
    .pub-item h3 {
        font-size: 1rem;
    }
    
    .pub-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pub-link {
        justify-content: center;
        width: 100%;
    }
    
    .award-badge {
        font-size: 0.8rem;
        padding: 0.25rem 0.6rem;
    }
    
    .cv-section h3 {
        font-size: 1.2rem;
    }
    
    .cv-item {
        padding: 1rem;
    }
    
    .cv-item .cv-header {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .cv-item h4 {
        font-size: 1rem;
    }
    
    .cv-item .period {
        font-size: 0.85rem;
    }
    
    .cv-item ul {
        margin-left: 1rem;
        font-size: 0.95rem;
    }
    
    .teaching-item {
        padding: 1rem;
    }
    
    .teaching-item h3 {
        font-size: 1rem;
    }
    
    footer {
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    nav h1 {
        font-size: 1rem;
    }
    
    nav ul {
        gap: 0.5rem;
        font-size: 0.85rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content .title {
        font-size: 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
}