:root {
    --bg: #ffffff;
    --text: #333333;
    --heading: #000000;
    --muted: #666666;
    --link: #007bff;
    --border: #eeeeee;
}

body.dark-mode {
    --bg: #1a1a1a;
    --text: #d4d4d4;
    --heading: #ffffff;
    --muted: #999999;
    --link: #5aa9ff;
    --border: #333333;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    max-width: 800px;
    margin: auto;
    padding: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header h1 {
    font-size: 24px;
    color: var(--heading);
}

header p {
    font-size: 16px;
    color: var(--muted);
}

.contact-info, .social-links {
    font-size: 14px;
    margin-top: 10px;
}

.social-links a {
    color: var(--link);
    text-decoration: none;
}

h2 {
    color: var(--heading);
    border-bottom: 2px solid var(--border);
    padding-bottom: 5px;
}

section h3 {
    color: var(--heading);
    border-bottom: 2px solid var(--border);
    padding-bottom: 5px;
}

.job h3, .education div h3 {
    font-size: 16px;
    color: var(--text);
}

.job p, .education p, .skills p, .experience p, .publications p, .honors p, .languages p, .description p {
    font-size: 14px;
    line-height: 1.6;
}

a {
    color: var(--link);
}

ul {
    margin-top: 5px;
}

li {
    font-size: 14px;
    line-height: 1.6;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-right: 20px;
}

.project-links {
    display: flex;
    gap: 15px;
    justify-content: start;
    align-items: center;
    margin-bottom: 1em;
}

.project-logo {
    width: 90px;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s;
}

.project-logo:hover {
    transform: scale(1.1);
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
}

.theme-toggle:hover {
    border-color: var(--link);
}

.reduced-font {
    font-size: 0.9em; /* Adjust the scaling factor as needed */
    line-height: 1.2; /* Adjust line height if necessary */
}
