/*!
 * Theme styles for Christopher Cox's site.
 * Based on the Start Bootstrap "Resume" template (MIT License).
 * Original template: https://startbootstrap.com/theme/resume
 */

/* -------- Theme variables -------- */
:root {
    --primary: #4a6fa5;            /* sidebar / accent. Change this to re-skin. */
    --primary-dark: #2d4a7a;
    --text-body: #495057;
    --text-heading: #343a40;
    --bg: #ffffff;
}

/* -------- Bootstrap primary overrides -------- */
.bg-primary {
    background-color: var(--primary) !important;
}
.text-primary {
    color: var(--primary) !important;
}
a {
    color: var(--primary);
}
a:hover, a:focus, a:active {
    color: var(--primary-dark);
}

/* -------- Body & typography -------- */
body {
    padding-top: 54px;
    color: var(--text-body);
    font-family: 'Muli', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Saira Extra Condensed', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-heading);
}
h1 {
    font-size: 6rem;
    line-height: 5.5rem;
}
h2 {
    font-size: 3.5rem;
}
h3 {
    font-size: 2rem;
}
.subheading {
    text-transform: uppercase;
    font-weight: 500;
    font-family: 'Saira Extra Condensed', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.35rem;
}
p.lead {
    font-size: 1.15rem;
    line-height: 1.7;
}

/* -------- Scrolling behavior -------- */
@media (min-width: 992px) {
    body {
        padding-top: 0;
        padding-left: 17rem;
    }
}

/* -------- Side navigation (desktop) -------- */
#sideNav .navbar-brand {
    width: 100%;
    text-align: center;
    margin-right: 0;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
#sideNav .navbar-toggler:focus {
    outline-color: #fff7ec;
}

@media (min-width: 992px) {
    #sideNav {
        text-align: center;
        position: fixed;
        top: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 17rem;
        height: 100vh;
    }
    #sideNav .navbar-brand {
        flex-direction: column;
        display: flex;
        margin: 0 auto;
        padding: 0.5rem;
    }
    #sideNav .navbar-brand .img-profile {
        max-width: 10rem;
        max-height: 10rem;
        border: 0.5rem solid rgba(255, 255, 255, 0.2);
    }
    #sideNav .navbar-collapse {
        display: flex;
        align-items: flex-start;
        flex-grow: 0;
        width: 100%;
        margin-bottom: auto;
    }
    #sideNav .navbar-collapse .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    #sideNav .navbar-collapse .navbar-nav .nav-item {
        display: block;
    }
    #sideNav .navbar-collapse .navbar-nav .nav-item .nav-link {
        display: block;
    }
}

#sideNav .navbar-nav .nav-item .nav-link {
    font-weight: 800;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
}

/* -------- Resume sections -------- */
section.resume-section {
    border-bottom: 1px solid #dee2e6;
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}
section.resume-section .resume-section-content {
    max-width: 75rem;
}

@media (min-width: 768px) {
    section.resume-section {
        min-height: 100vh;
    }
    section.resume-section .resume-section-content h1 {
        font-size: 6rem;
        line-height: 5.5rem;
    }
}

@media (min-width: 992px) {
    section.resume-section {
        padding-left: 5rem !important;
        padding-right: 5rem !important;
    }
}

/* -------- Social icons -------- */
.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.social-icons .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
    width: 3.5rem;
    background-color: var(--primary);
    color: #fff !important;
    border-radius: 100%;
    font-size: 1.3rem;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.social-icons .social-icon:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    text-decoration: none;
}

/* -------- Publications list -------- */
#publications p {
    margin-bottom: 1.1rem;
    line-height: 1.6;
}

/* -------- Small refinements -------- */
hr.m-0 {
    height: 0;
    border-top: 1px solid #dee2e6;
}

/* -------- Mobile tweaks -------- */
@media (max-width: 991.98px) {
    #sideNav .navbar-brand {
        font-family: 'Saira Extra Condensed', sans-serif;
        font-weight: 700;
        font-size: 1.25rem;
        letter-spacing: 0.04rem;
    }
    h1 { font-size: 4rem; line-height: 4rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.5rem; }
}

.thesis-topics {
    padding-left: 1.2rem;
    margin: 0;
}
.thesis-topics li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}
