:root {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --accent-color: #4da6ff;
    --link-color: #8cb4ff;
    --header-bg: #222222;
    --footer-text: #888888;
    --pub-bg: #252525;
}

[data-theme="light"],
html[data-theme="light"] body {
    --bg-color: #f8f9fa;
    --text-color: #333333;
    --accent-color: #0056b3;
    --link-color: #007bff;
    --header-bg: #e9ecef;
    --footer-text: #666666;
    --pub-bg: #ffffff;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    color: var(--text-color);
    margin-left: 10px;
    display: flex;
    align-items: center;
}

.theme-toggle:focus {
    outline: none;
}

html,
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}


a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Layout Wrapper */
.wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Header & Nav */
.site-header {
    background-color: var(--header-bg);
    padding: 20px 0;
    border-bottom: 1px solid var(--pub-bg);
}

.site-header .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.site-nav {
    display: flex;
    gap: 20px;
}

.page-link {
    color: var(--footer-text);
    font-weight: 400;
    text-transform: lowercase;
}

.page-link:hover {
    color: var(--text-color);
    text-decoration: underline;
}

/* Main Content */
.page-content {
    padding: 40px 0;
    min-height: 80vh;
}

h1,
h2,
h3 {
    color: var(--text-color);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.2rem;
    border-bottom: 1px solid var(--pub-bg);
    padding-bottom: 10px;
}


h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.4rem;
}

img {
    max-width: 100%;
    border-radius: 4px;
}

/* Publications List */
.publication-item {
    background-color: var(--pub-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #333;
}

.publication-item h3 {
    margin-top: 0;
}

/* Footer */
.site-footer {
    border-top: 1px solid #333;
    padding: 30px 0;
    text-align: center;
    color: var(--footer-text);
    font-size: 0.9rem;
}

/* Profile Section */
.profile-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.profile-text {
    flex: 2;
}

.profile-image {
    flex: 1;
}

.profile-image img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--pub-bg);
}

@media (max-width: 768px) {
    .profile-container {
        flex-direction: column-reverse;
    }
}