/* ----------------------------------------------------
   1. Root Variables & Theme Switching
   ---------------------------------------------------- */

:root {
    --bg-color: #f4f4f4;
    --text-color: #333;
    --link-color: #2979ff;
}

.light-theme {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dark-theme {
    --bg-color: #333;
    --text-color: #f4f4f4;
    --link-color: #82aaff;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', monospace;
    font-size: 15px;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

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

/* ----------------------------------------------------
   2. Layout & Container
   ---------------------------------------------------- */

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

.about-me p {
    line-height: 1.6;
}

/* ----------------------------------------------------
   3. News Column
   ---------------------------------------------------- */

.news-icon {
    color: #4b86f0;
    margin-right: 6px;
}

.social-icons, .contact-info {
    font-size: 0.8em;
    line-height: 1.55;
}

/* ----------------------------------------------------
   4. Navbar
   ---------------------------------------------------- */

.navbar {
    background-color: #4b86f0;
}

.navbar-nav {
    width: auto !important;
    margin-left: auto !important;
    background-color: #4b86f0;
}

.navbar-nav .nav-link {
    color: #ffffff;
    font-size: 20px;
}

.navbar-nav .nav-item {
    margin: 10px;
    background-color: transparent !important;
}

/* ----------------------------------------------------
   5. Main Content & Sections
   ---------------------------------------------------- */

.about-me {
    position: relative;
}

.section {
    padding: 10px;
    border-radius: 10px;
    max-width: 1100px;
    position: relative;
}

.content-box {
    padding: 20px;
    margin-top: 30px;
    margin-bottom: 40px;
}

/* ----------------------------------------------------
   6. Publications & Resources
   ---------------------------------------------------- */

.publication-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.publication {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

body.publications-page .publication {
    margin-bottom: 0.5rem !important;
    position: relative;
    padding-left: 30px;
    line-height: 1.6;
}

.triangle-bullet {
    color: #2979ff;
    font-size: 1.25rem;
    margin-right: 0.75rem;
    margin-top: 0.3rem;
}

.publication-content h5 {
    margin-bottom: 0.3rem;
}

.publication-content p {
    margin-bottom: 0.5rem;
}

.pub-type-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: #79aafd;
    color: #fff;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

h2 {
    margin-bottom: 0.1rem;
}

h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.publications-page h4 {
    margin-left: 30px;
}

/* ----------------------------------------------------
   7. Profile Image & Circle
   ---------------------------------------------------- */

.profile-image {
    width: 150px;
    height: 150px;
    border: 3px solid #4b86f0;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-text {
    width: 100%;
    height: auto;
    border-radius: 50%;
    border: 2px solid #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

.circle-text img {
    max-width: 180%;
    max-height: 180%;
}

/* ----------------------------------------------------
   8. Contact & Social Icons
   ---------------------------------------------------- */

.contact-info,
.social-icons {
    list-style: none;
    padding-left: 50px;
    text-align: left;
}

.contact-info li,
.social-icons li {
    margin-bottom: 10px;
}

.contact-info li i,
.social-icons li i {
    margin-right: 5px;
}

/* ----------------------------------------------------
   9. Header Image
   ---------------------------------------------------- */

.header-image {
    width: 100%;
    height: 3cm;
    object-fit: cover;
    margin: 0;
    padding: 0;
}

header {
    margin: 0;
    padding: 0;
}

/* ----------------------------------------------------
   10. Current Role / Row Highlights
   ---------------------------------------------------- */

.current-role {
    background-color: rgba(75, 134, 240, 0.08);
    border-left: 4px solid #4b86f0;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
}

tr.current-row {
    background-color: rgba(75, 134, 240, 0.08);
    font-weight: 500;
}

/* ----------------------------------------------------
   11. Media Queries
   ---------------------------------------------------- */

@media (max-width: 768px) {
    .navbar-nav {
        width: 100%;
    }
    .navbar-nav .nav-item {
        margin: 10px 0;
    }
    .navbar-nav .nav-link {
        font-size: 16px;
    }
    .section {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .sidebar {
        padding: 10px;
    }
    .profile-image {
        width: 150px;
        height: 150px;
    }
    .contact-info,
    .social-icons {
        padding-left: 140px;
    }
}
