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

:root {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent: #2d3748;
    --border: #e5e5e5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

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

header {
    padding: 4rem 0 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

section {
    margin: 4rem 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.4s; }

h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

h2:hover::after {
    width: 100%;
}

.bio {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.publications {
    display: grid;
    gap: 1.5rem;
}

.publication-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.publication-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    border-color: var(--accent);
}

.publication-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
}

.authors {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.venue {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.publication-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.publication-link:hover {
    transform: translateX(4px);
}

.teaching {
    display: grid;
    gap: 1.5rem;
}

.teaching-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.teaching-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.teaching-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.role {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.teaching-card p:last-child {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.fun-section {
    margin-top: 3rem;
}

.fun-facts {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fun-facts:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.fun-facts ul {
    list-style: none;
}

.fun-facts li {
    padding: 0.5rem 0;
    color: var(--text-primary);
    position: relative;
    padding-left: 1.5rem;
}

.fun-facts li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.fun-facts li:hover::before {
    transform: translateX(4px);
}

.projects {
    display: grid;
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    border-color: var(--accent);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.project-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.project-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.project-link:hover {
    transform: translateX(4px);
}

footer {
    text-align: center;
    padding: 4rem 0 3rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

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

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    header {
        padding: 3rem 0 2rem;
    }
}
