:root {
    --primary-color: #1e88e5; /* Blue color */
    --secondary-color: #29b6f6; /* Light blue color */
    --background-light: #ffffff;
    --background-dark: #121212;
    --text-light: #000000;
    --text-dark: #ffffff;
    --card-light: #f4f4f4;
    --card-dark: #1e1e1e;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: var(--background-dark);
        color: var(--text-dark);
    }
    .container {
        background-color: var(--card-dark);
    }
    header h1, .contact-info a, .publications a, .books a {
        color: var(--text-dark);
    }
    footer {
        color: var(--text-dark);
    }
}

@media (prefers-color-scheme: light) {
    body {
        background-color: var(--background-light);
        color: var(--text-light);
    }
    .container {
        background-color: var(--card-light);
    }
    header h1, .contact-info a, .publications a, .books a {
        color: var(--text-light);
    }
    footer {
        color: var(--text-light);
    }
}

body {
    font-family: 'Noto Sans', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    padding: 20px;
    margin: 20px;
    max-width: 800px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

header h1 {
    font-size: 2.5em;
    margin: 0;
    color: var(--primary-color);
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.contact-info a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--secondary-color);
}

.contact-info i {
    margin-right: 8px;
}

.content p, .education p, .publications p, .books p, .awards p, .activities p {
    margin-bottom: 5px;
}

.section {
    margin-top: 20px;
    margin-bottom: 20px;
}

.section h2 {
    font-size: 1.5em;
    margin-top: 1.5em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.section p, .section .item {
    margin: 5px 0;
}

.section p[style*="margin-left: 20px;"] {
    margin-left: 20px;
}

.publications h3 {
    font-size: 1.2em;
    margin-top: 0.8em;
    margin-bottom: 0.4em;
    color: var(--secondary-color);
}

.publications a, .books a {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    transition: color 0.3s;
}

.publications a:hover, .books a:hover {
    color: var(--secondary-color);
}

.publications a i, .books a i {
    margin-right: 4px;
}

footer {
    margin-top: 1.5em;
    text-align: center;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px 0;
    background-color: var(--primary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.button:hover {
    background-color: var(--secondary-color);
    color: var(--text-dark); /* Ensure text color stays dark */
}

ul {
    padding-left: 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-bottom-color 0.3s;
}

a:hover {
    color: var(--secondary-color);
}
