:root {
    --bg-color: #ffffff;
    --text-primary: #111111;
    --text-secondary: #555555;
    --link-color: #333333;
    --link-hover: #0056b3;
    --border-color: #eeeeee;
    --font-serif: 'Crimson Text', serif;
    --font-sans: 'Inter', sans-serif;
}

body.dark-mode {
    --bg-color: #111111;
    --text-primary: #ffffff;
    --text-secondary: #bbbbbb;
    --link-color: #e0e0e0;
    --link-hover: #64b5f6;
    --border-color: #333333;
}

/* Toggle Switch */
.theme-switch {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 48px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 16px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 16px;
}

input:checked+.slider {
    background-color: var(--link-hover);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.resume-button {
    font-size: 0.85rem;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--bg-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.resume-button:hover {
    background-color: var(--text-primary);
    color: var(--bg-color);
    border-color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.2s;
}

a:hover {
    color: var(--link-hover);
    border-bottom-color: var(--link-hover);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    padding: 1.5rem 0 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

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

.header-left,
.header-center,
.header-right {
    flex: 1;
}

.header-center {
    display: flex;
    justify-content: center;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.theme-toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-icon {
    font-size: 1rem;
    color: var(--text-secondary);
}

.site-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
}

.social-icon {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: color 0.2s;
}

.social-icon:hover {
    color: var(--link-hover);
}

.nav-links a {
    font-family: var(--font-sans);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.nav-links a:hover {
    color: var(--link-hover);
}

/* Sections */
section {
    margin-bottom: 1rem;
}

.section-heading {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Profile / About */
.profile-section {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    align-items: center;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.profile-info .role {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.contact-mini {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-mini p {
    margin-bottom: 0.25rem;
}

.bio p {
    margin-bottom: 1rem;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--text-primary);
}

/* News / Timeline */
.news-list {
    list-style: none;
    font-family: var(--font-serif);
}

.news-item {
    margin-bottom: 0.5rem;
    display: flex;
    gap: 1rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: background-color 0.2s;
    border-radius: 4px;
}

.news-item:hover {
    background-color: #f9f9f9;
}

body.dark-mode .news-item:hover {
    background-color: #222;
    color: var(--text-primary);
}

.news-item .date {
    font-family: var(--font-sans);
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 60px;
}

.news-item .content {
    font-size: 1.1rem;
    flex: 1;
}

.timeline-bullets {
    list-style-type: disc;
    margin-top: 0.5rem;
    padding-left: 1.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

.timeline-bullets li {
    margin-bottom: 0.25rem;
}

.highlight-link {
    /* Mimic a link within the text */
    text-decoration: underline;
    text-decoration-color: #ddd;
    text-underline-offset: 3px;
}

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

/* Contact */
.contact-section p {
    font-family: var(--font-serif);
    font-size: 1.2rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    /* White overlay instead of dark */
}

.modal-content {
    background-color: var(--bg-color);
    margin: 5% auto;
    padding: 3rem;
    border: 1px solid #eee;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.close-modal {
    color: #999;
    float: right;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: #000;
}

#modal-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

#modal-description {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

#modal-image {
    max-width: 100%;
    border: 1px solid #eee;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .header-left,
    .header-center,
    .header-right {
        width: 100%;
        justify-content: center;
    }

    .header-right {
        gap: 1rem;
    }

    .profile-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .profile-image {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    .profile-header {
        justify-content: center;
    }

    .news-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .section-heading {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .bio p {
        font-size: 1.05rem;
    }
}