:root {
    --color-text: #1a1a1a;
    --color-text-light: #4a4a4a;
    --color-accent: #2a4a6a;
    --color-border: #e0e0e0;
    --color-bg: #fafafa;
    --font-sans: 'Karla', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-bg);
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    animation: fadeIn 0.8s ease-out;
}

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

header {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    animation: slideDown 0.8s ease-out 0.2s both;
}

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

h1 a { color: inherit; text-decoration: none; }

.subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.contact {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

section {
    margin-bottom: 3.5rem;
    animation: fadeInUp 0.8s ease-out both;
    scroll-margin-top: 2rem;
}
section:nth-child(2) { animation-delay: 0.3s; }
section:nth-child(3) { animation-delay: 0.4s; }
section:nth-child(4) { animation-delay: 0.5s; }
section:nth-child(5) { animation-delay: 0.6s; }

h2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
    color: var(--color-accent);
    letter-spacing: -0.01em;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
    font-size: 1rem;
}

.text-link {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px solid var(--color-accent);
}

.research-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.tag {
    padding: 0.4rem 1rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 2px;
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}
.tag:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}

.publications { list-style: none; }

.publications li {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    transition: transform 0.3s ease;
}
.publications li:last-child { border-bottom: none; }
.publications li:hover { transform: translateX(5px); }

.pub-link { text-decoration: none; color: inherit; display: block; }
.pub-title { font-weight: 500; color: var(--color-text); margin-bottom: 0.3rem; line-height: 1.5; }
.pub-authors { font-size: 0.9rem; color: var(--color-text-light); margin-bottom: 0.3rem; }
.pub-venue { font-size: 0.9rem; color: var(--color-accent); font-style: italic; }

.talks-list { list-style: none; }
.talks-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-light);
}
.talks-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-size: 1.2rem;
    line-height: 1.6;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.nav-links a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 400;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active { border-bottom-color: var(--color-accent); }

footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-light);
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.8s both;
}

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

::selection { background: var(--color-accent); color: white; }
