/* Minimalist Style */
:root {
    --background-color: #ffffff; /* White */
    --text-color: #000000; /* Black */
    --accent-color: #474747; /* Blue */
    --title-color-dark: #f9f8f8;
    --title-color-light: #333333;
}

/* General Styles */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    margin-left: 20px; /* Add left margin to body content */
}

header {
    background-color: var(--accent-color);
    color: var(--background-color);
    text-align: center;
    padding: 1rem;
    top: 0; /* Stick to the top of the viewport */
    z-index: 1000; /* Ensure it stays above other content */
    border-radius: 10px
}

header .header-image {
    float: left;
    width: 200px;
    height: auto;
    margin-right: 1rem;
    border-radius: 10%;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.8); /* Add white shadow */
}

main {
    padding: 1rem;
    margin-bottom: 2rem; /* Adjust margin for non-sticky footer */
}

section {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
}

section > .text-content {
    flex: 1; /* Left column for text */
    margin-right: 1rem;
}

.section-image {
    flex: 0 0 200px; /* Right column for image with fixed width */
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

footer {
    background-color: var(--accent-color);
    color: var(--background-color);
    text-align: center;
    padding: 1rem;
    position: relative; /* Make the footer non-sticky */
    bottom: 0;
    width: 100%;
}
footer a {
    color: var(--text-color);
    text-decoration: none;
}

/* Light Palette */
body.light {
    background-color: #ffffff; /* Pure white */
    color: #333333; /* Dark gray */
}

section.light {
    background: #ffffff; /* Pure white */
    color: #333333; /* Dark gray */
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Dark Palette */
body.dark {
    background-color: #121212; /* Deep black-gray */
    color: #e0e0e0; /* Light gray */
}


section.dark {
    background: #1f1f1f; /* Dark gray */
    color: #e0e0e0; /* Light gray */
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Publication Section Styles */
section#publications {
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Light Theme */
body.light section#publications {
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
}

/* Dark Theme */
body.dark section#publications {
    background-color: #1f1f1f; /* Dark background */
    color: #e0e0e0; /* Light text */
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header h1 {
    animation: fadeIn 1.5s ease-in-out;
}

#header-info {
    animation: fadeIn 1s;
}

/* Publication Cards */
#publications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    list-style: none;
}

#publications-list li {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #000000; /* High contrast text */
}

body.dark #publications-list li {
    background: #837f7f;
    border: 1px solid #333;
    color: #ffffff; /* High contrast text for dark theme */
}

#publications-list li:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

#publications-list a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

body.dark #publications-list a {
    text-decoration: none;
    color: #00039b;
    font-weight: bold;
}

#publications-list a:hover {
    text-decoration: underline;
}

/* Hero Image */
.hero {
    background-color: var(--accent-color);
    color: var(--background-color);
    text-align: center;
    padding: 2rem;
}

.hero h1 {
    margin: 0;
    font-size: 2.5rem;
    animation: fadeIn 1.5s ease-in-out;
}

/* Settings Menu */
.settings-menu {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
}

.settings-toggle {
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
}

.settings-dropdown {
    display: none;
    position: absolute;
    top: 50px;
    right: 50;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    text-align: left;
    font-size: 0.9rem; /* Smaller text */
    width: 200px; /* Increased width */
}

.settings-menu:focus-within .settings-dropdown {
    display: block;
}

.settings-dropdown select,
.settings-dropdown button {
    display: block;
    margin-bottom: 0.5rem;
    width: 100%;
    padding: 0.5rem;
    font-size: 0.9rem; /* Smaller text */
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    cursor: pointer;
}
.material-icons {
    vertical-align: middle;
    font-size: 1.2rem;
    color: khaki;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    color: var(--text-color);
    width: 300px;
    background-color: #837f7f;
}

body.dark section h2 {
   padding: 1rem;
    font-size: 1.5rem;
    color: var(--title-color-dark);
    text-align: center;
}
body.light section h2 {
    padding: 1rem;
    font-size: 1.5rem;
    color: var(--title-color-light);
    text-align: center;
}

/* Responsive Menu */
.responsive-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    background-color: var(--accent-color);
    color: var(--background-color);
    width: 100%;
    max-width: 300px;
    height: 100%;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 1rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.responsive-menu.open {
    transform: translateX(0);
}

.responsive-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.responsive-menu ul li {
    margin: 1rem 0;
}

.responsive-menu ul li a {
    color: var(--background-color);
    text-decoration: none;
    font-size: 1.2rem;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    background-color: var(--accent-color);
    color: var(--background-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

@media only screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .responsive-menu {
        display: block;
    }
    .header-image {
        display: none;
    }
    .section-image {
        display: none;
    }
section h2 {
    font-size: 1.2rem !important;
}
    section {
        flex-direction: column;
        align-items: center;
    }
    section > .text-content {
        margin-right: 0;
        text-align: center;
    }
    .section-image {
        margin-top: 1rem;
    }
}