/* === GLOBAL === */
body {
    color: #1a1a1a;
    background: #f9f9fb;
    font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    margin: 0;
    padding: 0;
    line-height: 1.7;
}

/* Links */
a {
    color: #1a4ba3;
    text-decoration: none;
}
a:hover {
    color: #a23030;
}

/* === HEADER === */
#header {
    padding: 32px 48px;
    background: #ffffff;
    border-bottom: 1px solid #e3e3e3;
}

#headerSiteTitle {
    font-size: 32px;
    font-weight: 650;
    letter-spacing: 0.5px;
    color: #222;
    margin-bottom: 4px;
}

#headerPageTitle {
    font-size: 18px;
    font-weight: 400;
    color: #555;
    letter-spacing: 3px;
    padding-left: 12px;
    border-left: 3px solid #c4c4c4;
}

/* === SIDEBAR MENU === */
#menu {
    float: left;
    width: 220px;
    padding: 24px 16px;
    background: #ffffff;
    border-right: 1px solid #e3e3e3;
    min-height: 100vh;
}

#toc {
    font-size: 15px;
    padding-top: 12px;
}

#tocItem {
    padding: 12px 0;
    border-bottom: 1px solid #ececec;
}
#tocItem a {
    color: #444;
    font-weight: 500;
}
#tocItem a:hover {
    color: #a23030;
}

#copyright {
    font-size: 12px;
    color: #777;
    margin-top: 32px;
}

/* === MAIN CONTENT === */
#mainContent {
    margin-left: 260px;
    padding: 40px;
    max-width: 900px;
    font-size: 15px;
}

/* =====================================================
   == ABOUT SECTION (CENTERED PHOTO ABOVE TEXT) ==
   ===================================================== */
#aboutContainer {
    text-align: center;
    margin-bottom: 40px;
}

/* Profile image container */
#personalDetails {
    margin-bottom: 20px;
}

/* Circular profile photo */
#personalDetails img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* About text under the image */
#aboutText {
    text-align: left;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* === COMMON ITEMS === */
#commonItem {
    padding: 12px 0;
}

#commonItemDate {
    font-size: 12px;
    color: #777;
}

#commonItemDate:before {
    content: " (";
}
#commonItemDate:after {
    content: ") ";
}

#commonItemTitle {
    font-weight: 600;
    font-size: 17px;
    color: #222;
}

#commonItemDetail {
    font-size: 13px;
    margin-left: 16px;
    color: #555;
}

/* === PUBLICATIONS / PROJECTS === */
.paperList,
.projectList,
.contactData {
    padding-bottom: 32px;
}

.paperListTitle,
.projectListTitle,
.contactTitle {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: #222;
    border-bottom: 2px solid #d5d5d5;
}

.paper,
.project,
.supervisedThesis,
.presentation {
    padding: 16px 0;
    border-bottom: 1px solid #e6e6e6;
}

.paperTitle,
.thesisTitle {
    font-size: 16px;
    font-weight: 600;
    color: #8b1a1a;
}

.paperTitle:before,
.paperTitle:after,
.thesisTitle:before,
.thesisTitle:after {
    content: "'";
}

.paperAbstract,
.paperBibEntry,
.thesisSupervisor,
.thesisAbstract {
    font-size: 13px;
    margin-left: 16px;
    margin-top: 6px;
    color: #555;
}

.paperDate,
.thesisDate,
.projectDate,
.presentationDate {
    font-size: 12px;
    color: #777;
}

.paperDate:before,
.thesisDate:before,
.projectDate:before,
.presentationDate:before {
    content: " (";
}
.paperDate:after,
.thesisDate:after,
.projectDate:after,
.presentationDate:after {
    content: ") ";
}

.paperDescription:before,
.thesisDescription:before,
.projectDescription:before,
.presentationLocation:before {
    content: "- ";
}

/* === HEADINGS === */
h2 {
    font-size: 24px;
    font-weight: 650;
    color: #222;
    margin-top: 32px;
}

h3 {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-top: 24px;
}

hr {
    display: none;
}

/* === FOOTER === */
.footer-basic {
    padding: 40px 0;
    background-color: #ffffff;
    color: #4b4c4d;
    border-top: 1px solid #e3e3e3;
    text-align: center;
    margin-top: 40px;
}

.footer-basic ul {
    padding: 0;
    list-style: none;
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-basic li {
    padding: 0 10px;
}

.footer-basic .social {
    text-align: center;
    padding-bottom: 25px;
}

.footer-basic .social > a {
    font-size: 22px;
    width: 42px;
    height: 42px;
    line-height: 42px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    border: 1px solid #bbb;
    margin: 0 6px;
    color: inherit;
    opacity: 0.8;
}

.footer-basic .social > a:hover {
    opacity: 1;
}

/* ===== MENU TOGGLE BUTTON ===== */
#menuToggle {
    width: 100%;
    margin-top: 20px;
    padding: 10px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

#menuToggle:hover {
    background: #e5e5e5;
}

/* When menu is hidden */
.menu-hidden {
    transform: translateX(-250px);
    transition: transform 0.3s ease;
}

.menu-visible {
    transform: translateX(0);
    transition: transform 0.3s ease;
}

/* Ensure menu stays above on mobile when sliding */
#menu {
    position: relative;
    z-index: 10;
}


#menuShowFloating {
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

#menuShowFloating:hover {
    background: #f2f2f2;
}

/* =====================================================
   ============  RESPONSIVE MOBILE FIXES  ==============
   ===================================================== */
@media (max-width: 768px) {

    /* Remove float layout */
    #menu {
        float: none;
        width: 100%;
        min-height: auto;
        padding: 16px;
        border-right: none;
        border-bottom: 1px solid #e3e3e3;
    }

    /* Stack content under the menu */
    #mainContent {
        margin-left: 0;
        padding: 20px;
        max-width: 100%;
    }

    /* Header spacing adjustments */
    #header {
        padding: 24px 20px;
        text-align: center;
    }

    #headerSiteTitle {
        font-size: 26px;
    }

    #headerPageTitle {
        display: block;
        margin-top: 8px;
        border-left: none;
        padding-left: 0;
        letter-spacing: 2px;
    }

    /* TOC items spacing */
    #tocItem {
        padding: 10px 0;
    }

    /* About image scaling */
    #personalDetails img {
        width: 140px;
        height: 140px;
    }

    /* Footer adjustments */
    .footer-basic {
        padding: 30px 10px;
    }
}
