@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600&display=swap');

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

body {
    font-family: Raleway, sans-serif;
    font-size: 0.9rem;
    line-height: 1.2;
    color: #333;
    background-color: #f2f6f2;
}

::selection {
    background-color: #196127;
    color: #fff;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
    padding-bottom: 0px;
    border-bottom: 1px solid #eee;
}

.name {
    font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: 2rem;
    font-weight: normal;
    color: #444;
}

.name a {
    color: inherit;
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #196127;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #218034;
}

.social-links svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Navigation */
nav {
    margin-bottom: 40px;
}

nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

nav a {
    font-family: Menlo, Consolas, "Courier New", monospace;
    color: #196127;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

nav a:hover {
    color: #218034;
}

/* Profile photo */
.profile-photo {
    text-align: center;
    margin: 60px 0;
    padding-bottom: 60px;
    border-bottom: 1px solid #eee;
}

.profile-img-wrapper {
    display: inline-block;
    position: relative;
}

.profile-photo img {
    max-width: 500px;
    width: 100%;
    height: auto;
    display: block;
}

.profile-photo .profile-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

/* Hover for devices with mouse */
@media (hover: hover) {
    .profile-img-wrapper:hover .profile-hover {
        opacity: 1;
    }

    .profile-img-wrapper:hover .profile-default {
        opacity: 0;
    }
}

/* Tap toggle for touch devices */
.profile-img-wrapper.show-alt .profile-hover {
    opacity: 1;
}

.profile-img-wrapper.show-alt .profile-default {
    opacity: 0;
}

/* Sections */
section {
    margin-bottom: 60px;
    padding-top: 20px;
}

section h2 {
    font-family: Menlo, Consolas, "Courier New", monospace;
    font-size: 1.2rem;
    font-weight: normal;
    margin-bottom: 20px;
    color: #444;
    border-bottom: 2px solid #196127;
    padding-bottom: 0;
    display: inline-block;
}

section p {
    margin-bottom: 15px;
}

section ul {
    margin-left: 20px;
}

section li {
    margin-bottom: 10px;
}

section a {
    color: #14501f;
    text-decoration: underline;
    text-decoration-color: #14501f;
    transition: color 0.2s, text-decoration-color 0.2s;
}

section a:hover {
    color: #196127;
    text-decoration-color: #196127;
}

/* Publications */
.publications {
    list-style: none;
    margin-left: 0;
}

.publication {
    margin-bottom: 25px;
}

.pub-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 0px;
}

.pub-link {
    display: inline-block;
    margin-top: 6px;
    text-decoration: none;
}

.pub-link svg {
    width: 20px;
    height: 20px;
    fill: #14501f;
    transition: fill 0.2s;
}

.pub-link:hover svg {
    fill: #196127;
}

.pub-authors {
    color: #444;
    margin-bottom: 0px;
}

.pub-venue {
    color: #444;
    font-style: italic;
    margin-bottom: 0px;
}

.pub-description {
    margin-top: 5px;
    color: #666;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Footer */
footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
}

footer .social-links {
    justify-content: center;
    margin-bottom: 3px;
}

/* Responsive */
@media (max-width: 400px) {
    nav ul {
        flex-wrap: wrap;
        gap: 15px;
    }
}
