body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: #333;
            margin: 0;
            padding: 0;
            background-color: #f4f4f4;
        }
        .container {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }
        header {
            background-color: #fff;
            padding: 20px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
        }
        .profile {
            display: flex;
            align-items: center;
        }
        .profile img {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            margin-right: 20px;
        }
        nav {
            display: flex;
        }
        nav a {
            margin-left: 20px;
            text-decoration: none;
            color: #333;
            position: relative;
            cursor: pointer;
            display: flex;
            align-items: center;
        }
        nav a img {
            width: 24px;
            height: 24px;
            margin-right: 10px;
        }
        nav a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 3px;
            bottom: -5px;
            left: 0;
            background-color: #ff0000;
            transition: width 0.3s ease-in-out;
        }
        nav a:hover::after {
            width: 100%;
        }
        nav a.active {
            color: #ff0000;
        }
        nav a.active::after {
            width: 100%;
        }
        main {
            flex-grow: 1;
            padding: 20px;
            max-width: 800px;
            margin: 0 auto;
        }
        @media (max-width: 1000px) {
            .header-content {
                flex-direction: column;
                align-items: flex-start;
            }
            .profile {
                margin-bottom: 20px;
            }
            nav {
                flex-direction: column;
            }
            nav a {
                margin-left: 0;
                margin-bottom: 15px;
            }
        }
        h1 {
            font-size: 3em;
            margin-bottom: 10px;
        }
        h2 {
            font-size: 2em;
            margin-top: 40px;
        }
        h3 {
            font-size: 1.5em;
            margin-top: 30px;
        }
        .intro {
            color: #333;
            font-size: 1.2em;
            margin-bottom: 20px;
        }
        .description {
            font-size: 1.1em;
            max-width: 800px;
        }
        .project, .publication, .course {
            background-color: white;
            padding: 20px;
            margin: 20px 0;
            border-radius: 5px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .project {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
        }
        .project img {
            max-width: 300px;
            height: auto;
            margin-top: 60px;
            margin-left: 20px;
            margin-right: 20px;
            margin-bottom: 20px;
        }
        .project-content {
            flex: 1;
            min-width: 300px;
        }
        .publication a {
            color: #0066cc;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        .publication a:hover {
            color: #004080;
            text-decoration: underline;
        }
        @media (max-width: 768px) {
            .project {
                flex-direction: column;
            }
            .project img {
                max-width: 90%;
                margin-right: 0;
            }
        }
        .contact-form {
            display: flex;
            flex-direction: column;
        }
        .contact-form input, .contact-form textarea {
            margin-bottom: 10px;
            padding: 8px;
            border: 1px solid #ccc;
            border-radius: 4px;
        }
        .contact-form button {
            background-color: #2ecc71;
            color: white;
            border: none;
            padding: 10px;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        .contact-form button:hover {
            background-color: #2980b9;
        }

html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
.profile > a { display: flex; }
.profile h2 a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid #0066cc;
    outline-offset: 3px;
}
