@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300italic,400,400italic,600");
@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&display=swap");

/* Basic Reset */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
    -webkit-text-size-adjust: none;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

mark {
    background-color: transparent;
    color: inherit;
}

input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

input, select, textarea {
    -moz-appearance: none;
    -webkit-appearance: none;
    -ms-appearance: none;
    appearance: none;
}

/* Basic */
html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    background-image: url("../images/header.jpeg");
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #333;
    font-size: 15pt;
    line-height: 1.85em;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 300;
}

/* Mobile background handling */
@media screen and (max-width: 736px) {
    body {
        background-image: url("../images/header-mobile.jpeg");
        background-attachment: scroll;
        background-position: center top;
        background-size: cover;
        background-repeat: no-repeat;
    }
}

/* High DPI mobile devices */
@media screen and (max-width: 736px) and (-webkit-min-device-pixel-ratio: 2),
       screen and (max-width: 736px) and (min-resolution: 192dpi) {
    body {
        background-image: url("../images/header-mobile.jpeg");
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }
}

/* Very small mobile devices */
@media screen and (max-width: 480px) {
    body {
        background-image: url("../images/header-mobile.jpeg");
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }
}

body.is-preload *, body.is-preload *:before, body.is-preload *:after {
    -moz-animation: none !important;
    -webkit-animation: none !important;
    -ms-animation: none !important;
    animation: none !important;
    -moz-transition: none !important;
    -webkit-transition: none !important;
    -ms-transition: none !important;
    transition: none !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    color: #B3A369;
    line-height: 1.25em;
    font-family: 'Oswald', 'Source Sans Pro', sans-serif;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color: inherit;
    text-decoration: none;
    border-bottom-color: transparent;
}

h1 strong, h2 strong, h3 strong, h4 strong, h5 strong, h6 strong {
    font-weight: 600;
}

h2 {
    font-size: 2.85em;
}

h3 {
    font-size: 1.25em;
}

strong, b {
    font-weight: 400;
    color: #483949;
}

em, i {
    font-style: italic;
}

a {
    color: inherit;
    border-bottom: solid 1px rgba(128, 128, 128, 0.15);
    text-decoration: none;
    transition: background-color 0.35s ease-in-out, color 0.35s ease-in-out, border-bottom-color 0.35s ease-in-out;
}

a:hover {
    color: #316cd3;
    border-bottom-color: transparent;
}

p, ul, ol, dl, table {
    margin-bottom: 1em;
}

p {
    text-align: justify;
    color: #333;
    font-weight: 300;
}

/* Container */
.container {
    margin: 0 auto;
    width: calc(100% - 6em);
    max-width: 75em;
}

/* Row system */
.row {
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    align-items: stretch;
    margin-top: -2.5em;
    margin-left: -2.5em;
}

.row > * {
    box-sizing: border-box;
    padding: 2.5em 0 0 2.5em;
}

.row.aln-middle {
    align-items: center;
}

.row > .col-1 { width: 8.33333%; }
.row > .col-2 { width: 16.66667%; }
.row > .col-3 { width: 25%; }
.row > .col-4 { width: 33.33333%; }
.row > .col-5 { width: 41.66667%; }
.row > .col-6 { width: 50%; }
.row > .col-7 { width: 58.33333%; }
.row > .col-8 { width: 66.66667%; }
.row > .col-9 { width: 75%; }
.row > .col-10 { width: 83.33333%; }
.row > .col-11 { width: 91.66667%; }
.row > .col-12 { width: 100%; }

/* Wrapper */
.wrapper {
    padding: 6em 0 4em 0;
}

.wrapper.style2 {
    background: transparent;
}

/* Header */
#header {
    background-color: transparent;
    color: #333;
    cursor: default;
    height: 80px;
    left: 0;
    line-height: 1.75em;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10000;
}

#header .container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2em;
}

#header .logo {
    display: flex;
    align-items: center;
}

#header .logo a {
    text-decoration: none;
    color: inherit;
}

#header .logo span {
    font-size: 1.8em;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fff;
    font-family: 'Oswald', 'Source Sans Pro', sans-serif;
    transition: color 0.2s ease;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

#header .logo a:hover span {
    color: #D4C285;
}

/* Footer */
#footer {
    background-color: transparent;
    color: #E5E5E5;
    padding: 4em 0 2em 0;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Bio specific styles */
.bio-title {
    font-size: 2.5em;
    font-weight: 600;
    color: #B3A369;
    margin-bottom: 0.25em;
    transition: color 0.3s ease-in-out;
    text-align: center;
    font-family: 'Oswald', 'Source Sans Pro', sans-serif;
}

.bio-title:hover {
    color: #D4C285;
}

.bio-subtitle {
    font-size: 1.25em;
    font-weight: 300;
    color: #483949;
    margin-bottom: 1.5em;
    font-family: 'Oswald', 'Source Sans Pro', sans-serif;
}

.bio-content h3.bio-title {
    text-align: center;
}

.bio-content p {
    font-size: 1.1em;
    line-height: 1.75em;
    color: #333;
    text-align: justify;
    margin-bottom: 1.5em;
    font-weight: 300;
}

/* Quote Styling */
.bio-quote {
    margin: 3em 0 2em 0;
    padding: 0 1em;
}

.quote-block {
    position: relative;
    font-style: italic;
    font-size: 1.4em;
    line-height: 1.6;
    color: #E5E5E5;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 3em 4em 2.5em 4em;
    background: rgba(179, 163, 105, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(179, 163, 105, 0.2);
    backdrop-filter: blur(10px);
}

.quote-mark {
    font-family: 'Georgia', serif;
    font-size: 3em;
    color: #B3A369;
    font-weight: bold;
    line-height: 1;
    position: absolute;
    opacity: 0.95;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.quote-mark-left {
    left: 0.5em;
    top: 0.5em;
}

.quote-mark-right {
    right: 0.5em;
    bottom: 0.5em;
    top: auto;
}

.quote-author {
    font-style: normal;
    font-weight: 600;
    color: #B3A369;
    text-align: right;
    margin-top: 1.5em;
    font-size: 1em;
    letter-spacing: 0.8px;
    padding-right: 1em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Quote hover effects */
.quote-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(179, 163, 105, 0.4);
    transition: all 0.4s ease-in-out;
}

.quote-block:hover .quote-mark {
    opacity: 1;
    transform: scale(1.1);
    color: #D4C285;
    transition: all 0.4s ease-in-out;
}

.quote-block:hover .quote-author {
    color: #D4C285;
    transition: color 0.4s ease-in-out;
}

/* Bio text display control */
.bio-mobile {
    display: none;
}

.bio-content .actions {
    text-align: center;
}

.bio-button {
    font-size: 1.1em;
    padding: 0.75em 2.5em;
    border-radius: 0.5em;
    background-color: #B3A369;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease-in-out;
}

.bio-button:hover {
    background-color: #D4C285;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Title Card Styling */
#title .container {
    background: transparent;
    border-radius: 1em;
    padding: 3em 2em;
    box-shadow: none;
    border: none;
}

/* Reduce space between title section and bio section */
#title.wrapper {
    padding: 6em 0 1em 0;
}

/* Reduce top padding of bio section to minimize gap */
#bio.wrapper {
    padding: 1em 0 4em 0;
}

#title .bio-title {
    color: #D4C285;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-size: 5em;
}

#title .bio-subtitle {
    color: #E5E5E5;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    font-size: 2em;
}

#title .bio-button {
    background-color: #B3A369;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#title .bio-button:hover {
    background-color: #D4C285;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Bio Card Styling */
#bio .container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1em;
    padding: 3em 2em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(179, 163, 105, 0.3);
    backdrop-filter: blur(10px);
}

/* Publications Card Styling */
#papers .container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1em;
    padding: 3em 2em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(179, 163, 105, 0.3);
    backdrop-filter: blur(10px);
}

/* Connect Section Styling */
#connect .container {
    background: transparent;
    border-radius: 1em;
    padding: 3em 2em;
    box-shadow: none;
    border: none;
}

#connect .bio-title {
    color: #D4C285;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-size: 3.025em;
}

#connect .connect-card {
    background: transparent;
    border-radius: 1em;
    padding: 2em 1.5em;
    box-shadow: none;
    border: none;
    margin-bottom: 1em;
}

.connect-bio-subtitle {
    font-size: 1.1em;
    font-weight: 300;
    color: #fff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    font-family: 'Source Sans Pro', sans-serif;
    text-align: left;
    line-height: 1.5em;
}

.connect-bio-subtitle p {
    color: #fff !important;
    font-weight: 300;
    line-height: 1.5em;
}

.connect-bio-subtitle h3 {
    color: #D4C285 !important;
}

/* Publication styles */
.publication {
    position: relative;
    margin-bottom: 1em;
    text-align: left;
}

/* Publication section headers */
#papers h3 {
    font-size: 1.4em;
    margin: 2em 0 1em 0;
    color: #B3A369;
    border-bottom: 2px solid rgba(179, 163, 105, 0.3);
    padding-bottom: 0.4em;
}

.publication .publication-text {
    margin-bottom: 0;
    color: #333;
    font-weight: 300;
}

.publication-icons {
    margin-left: 1em;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    align-items: center;
}

.publication-icons a {
    color: #B3A369;
    font-size: 1.1em;
    text-decoration: none;
    border-bottom: none;
    padding: 0.3em;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.3em;
    background: rgba(179, 163, 105, 0.1);
    transition: all 0.2s ease;
}

.publication-icons a:hover {
    color: #D4C285;
    background: rgba(179, 163, 105, 0.2);
    transform: scale(1.1);
}

.publication-icons i {
    display: inline-block;
    width: 1.2em;
    text-align: center;
}

/* Actions */
ul.actions {
    cursor: default;
    list-style: none;
    padding-left: 0;
}

ul.actions li {
    display: inline-block;
    padding: 0 0.75em 0 0;
    vertical-align: middle;
}

/* Icons */
ul.icons {
    cursor: default;
    list-style: none;
    padding-left: 0;
}

ul.icons li {
    display: inline-block;
    padding: 0 1em 0 0;
}

ul.icons li a {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-size: 1.5em;
    padding: 0.4em;
    min-width: 45px;
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.3em;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

ul.icons li a:hover {
    color: #D4C285;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    background: rgba(212, 194, 133, 0.2);
    transform: scale(1.1);
}

/* Image */
.image.fit {
    display: block;
    margin: 0 0 2em 0;
    width: 100%;
    border-radius: 0.375em;
}

.image.fit img {
    border-radius: 0.375em;
    display: block;
    width: 100%;
    height: auto;
}

.bio-image img {
    border-radius: 0.5em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.bio-image img:hover {
    transform: scale(1.05);
}

/* Bio image specific styling */
.bio-image .image.fit {
    border-radius: 0.5em;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    margin: 0 auto;
}

.bio-image .image.fit img {
    border-radius: 0.5em;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Hide mobile headshot on desktop */
.mobile-headshot {
    display: none;
}

/* Responsive */
@media screen and (max-width: 1680px) {
    body, input, textarea, select {
        font-size: 13pt;
    }
}

@media screen and (max-width: 1280px) {
    body, input, textarea, select {
        font-size: 12pt;
    }
    
    .wrapper {
        padding: 4em 0 2em 0;
    }
    
    #title .container {
        padding: 2.5em 1.5em;
    }
    
    #bio .container {
        padding: 2.5em 1.5em;
    }
    
    #papers .container {
        padding: 2.5em 1.5em;
    }
    
    #connect .container {
        padding: 2.5em 1.5em;
    }
    
    #connect .connect-card {
        padding: 1.5em 1em;
    }
}

@media screen and (max-width: 840px) {
    body, input, textarea, select {
        font-size: 11pt;
    }
}

@media screen and (max-width: 736px) {
    html, body {
        overflow-x: hidden;
    }
    
    body, input, textarea, select {
        font-size: 11pt;
    }
    
    h2 {
        font-size: 2em;
    }
    
    h3 {
        font-size: 1.1em;
    }
    
    hr {
        margin: 1.5em 0;
    }
    
    section, article {
        margin: 0 0 1.5em 0;
    }
    
    section:last-child, article:last-child {
        margin-bottom: 0;
    }
    
    .row > section, .row > article {
        margin: 0;
    }
    
    header > p {
        margin: 0.5em 0 0 0;
    }
    
    .image.featured {
        margin: 0 0 1.5em 0;
    }
    
    .image.left {
        margin: 0 1.5em 1.5em 0;
    }
    
    .image.centered {
        margin: 0 0 1.5em 0;
    }
    
    ul.actions li {
        display: block;
        padding: 0 0 1em 0;
    }
    
    ul.actions li:first-child {
        padding-left: 0;
    }
    
    ul.menu li {
        display: block;
        line-height: 2.25em;
        padding: 0 0 0 0;
        margin: 0 0 0 0;
    }
    
    ul.menu li:first-child {
        padding-left: 0;
        margin-left: 0;
    }
    
    ul.icons {
        margin: 0;
    }
    
    ul.icons li a {
        font-size: 1.5em;
    }
    
    .wrapper {
        padding: 3em 0 1em 0;
    }
    
    #header {
        height: 10vh;
        min-height: 100px;
    }
    
    #header .inner {
        max-width: calc(100% - 2em);
        width: 100%;
    }
    
    #header header > p {
        margin: 0.5em 0 0 0;
    }
    
    #header h1 {
        font-size: 1.75em;
    }
    
    #header hr {
        margin: 1em 0;
    }
    
    body.homepage #header {
        background-attachment: scroll;
    }
    
    body.homepage #header:before {
        display: none;
    }
    
    body.homepage #header h1 {
        font-size: 2em;
    }
    
    #banner {
        padding: 3em 0;
    }
    
    #sidebar > hr:first-of-type {
        margin: 2em 0;
    }
    
    #main > header {
        margin: 0 0 2em 0;
    }
    
    #footer {
        padding: 3em 0 1em 0;
    }
    
    .carousel {
        margin: 0 0 2em 0;
    }
    
    .carousel .reel {
        margin: 0 0 2em 0;
    }
    
    .carousel article {
        margin: 0 0 2em 0;
    }
    
    .carousel article .image {
        margin: 0 0 1em 0;
    }
}

@media screen and (max-width: 736px) {
    .container {
        width: calc(100% - 2em);
    }
    
    #header {
        height: 8vh;
        min-height: 80px;
        background-attachment: scroll;
    }
}

@media screen and (max-width: 1280px) {
    .container {
        width: calc(100% - 4em);
    }
    
    #header {
        height: 10vh;
        min-height: 100px;
    }
}

/* Mobile responsive for bio sections */
@media screen and (max-width: 736px) {
    /* Hide contact area on mobile */
    #connect {
        display: none;
    }
    
    /* Improved mobile typography and spacing */
    body, input, textarea, select {
        font-size: 16px; /* Prevent zoom on iOS */
        line-height: 1.6;
    }
    
    /* Better container spacing for mobile */
    .container {
        width: calc(100% - 0.5em);
        padding: 0 0.25em;
    }
    
    /* Improved header for mobile */
    #header {
        height: 60px;
        min-height: 60px;
        background-attachment: scroll;
        padding: 0;
    }
    
    #header .container {
        padding: 0 1em;
        justify-content: center;
    }
    
    #header .logo span {
        font-size: 1.5em;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    }
    
    /* Better section spacing */
    #bio, #title {
        padding: 1.5em 0;
    }
    
    .wrapper {
        padding: 2em 0 1em 0;
    }
    
    /* Improved typography scaling */
    .bio-title {
        font-size: 2.2em;
        line-height: 1.2;
        margin-bottom: 0.5em;
    }
    
    #title .bio-title {
        font-size: 2.8em;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    }
    
    .bio-subtitle {
        font-size: 1.3em;
        line-height: 1.4;
        margin-bottom: 1em;
    }
    
    #title .bio-subtitle {
        font-size: 1.5em;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    }
    
    #connect footer .bio-title {
        font-size: 1.1em;
    }
    
    /* Better content readability */
    .bio-content p {
        font-size: 1.1em;
        text-align: left;
        line-height: 1.7;
        margin-bottom: 1.2em;
        color: #333;
        font-weight: 400;
    }
    
    /* Quote styling for mobile */
    .bio-quote {
        margin: 2em 0 1em 0;
        padding: 0 0.5em;
    }
    
    .quote-block {
        color: #E5E5E5;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
        font-size: 1.3em;
        line-height: 1.5;
        padding: 2.5em 2.5em 2em 2.5em;
        text-align: center;
        background: rgba(179, 163, 105, 0.1);
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        border: 2px solid rgba(179, 163, 105, 0.25);
        backdrop-filter: blur(8px);
    }
    
    .quote-mark {
        font-size: 2.2em;
        color: #B3A369;
        opacity: 0.95;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    
    .quote-mark-left {
        left: 0.3em;
        top: 0.3em;
    }
    
    .quote-mark-right {
        right: 0.3em;
        bottom: 0.3em;
    }
    
    .quote-author {
        font-size: 0.95em;
        margin-top: 1.2em;
        text-align: right;
        padding-right: 0.5em;
        color: #B3A369;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    }
    
    /* Mobile quote hover effects (subtle) */
    .quote-block:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
        border-color: rgba(179, 163, 105, 0.4);
        transition: all 0.3s ease-in-out;
    }
    
    .quote-block:hover .quote-mark {
        opacity: 1;
        transform: scale(1.05);
        color: #D4C285;
        transition: all 0.3s ease-in-out;
    }
    
    .quote-block:hover .quote-author {
        color: #D4C285;
        transition: color 0.3s ease-in-out;
    }
    
    /* Bio text display control for mobile */
    .bio-desktop {
        display: none;
    }
    
    .bio-mobile {
        display: block;
    }
    
    /* Hide contact button on mobile */
    .bio-button {
        display: none;
    }
    
    /* Better card styling for mobile */
    #title .container {
        padding: 1.5em 1em;
        background: transparent;
        border: none;
        box-shadow: none;
        margin: 0;
    }
    
    #bio .container {
        padding: 1.5em 0.25em;
        border-radius: 0.75em;
        margin: 0 0.1em;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(179, 163, 105, 0.3);
    }
    
    #papers .container {
        padding: 1.5em 1em;
        border-radius: 0.75em;
        margin: 0 0.5em;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(179, 163, 105, 0.3);
    }
    
    #connect .container {
        padding: 1.5em 1em;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    
    #connect .connect-card {
        padding: 1em 0.5em;
        background: transparent;
        border: none;
        box-shadow: none;
        margin-bottom: 1em;
    }
    
    /* Improved publication layout for mobile */
    .publication {
        margin-bottom: 1.5em;
        padding: 0;
    }
    
    .publication .publication-text {
        font-size: 1.05em;
        line-height: 1.6;
        text-align: left;
        color: #333;
        font-weight: 400;
    }
    
    .publication-icons {
        margin-left: 0;
        margin-top: 0.5em;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5em;
    }
    
    .publication-icons a {
        font-size: 1.2em;
        padding: 0.3em;
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 0.3em;
        background: rgba(179, 163, 105, 0.1);
        transition: all 0.2s ease;
    }
    
    .publication-icons a:hover {
        background: rgba(179, 163, 105, 0.2);
        transform: scale(1.1);
    }
    
    /* Better section headers */
    #papers h3 {
        font-size: 1.3em;
        margin: 1.5em 0 1em 0;
        color: #B3A369;
        border-bottom: 2px solid rgba(179, 163, 105, 0.3);
        padding-bottom: 0.3em;
    }
    
    /* Improved connect section layout */
    .connect-bio-subtitle {
        font-size: 1em;
        line-height: 1.5;
        text-align: left;
        color: #fff;
        font-weight: 300;
    }
    
    .connect-bio-subtitle h3 {
        font-size: 1.2em;
        margin-bottom: 0.5em;
        color: #D4C285;
    }
    
    .connect-bio-subtitle p {
        margin-bottom: 0.5em;
        color: #fff;
        font-weight: 300;
    }
    
    /* Better footer for mobile */
    #footer {
        padding: 2em 0 1em 0;
    }
    
    #footer .icons {
        margin-bottom: 1em;
    }
    
    #footer .icons li a {
        font-size: 1.8em;
        padding: 0.5em;
        min-width: 40px;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 0.3em;
        background: rgba(255, 255, 255, 0.1);
        transition: all 0.2s ease;
    }
    
    #footer .icons li a:hover {
        background: rgba(212, 194, 133, 0.2);
        transform: scale(1.1);
    }
    
    /* Hide headshot on mobile */
    .bio-image {
        display: none;
    }
    
    /* Better row system for mobile */
    .row {
        margin-top: -1em;
        margin-left: -1em;
    }
    
    .row > * {
        padding: 1em 0 0 1em;
    }
    
    /* Mobile-specific column classes */
    .col-12-mobile { width: 100%; }
    .col-8-mobile { width: 100%; } /* Stack on mobile */
    .col-4-mobile { width: 100%; } /* Stack on mobile */
    .col-5-mobile { width: 100%; } /* Stack on mobile */
    .col-3-mobile { width: 100%; } /* Stack on mobile */
    
    /* Force bio content to full width on mobile */
    .bio-content {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Improved actions for mobile */
    ul.actions {
        margin: 1em 0;
    }
    
    ul.actions li {
        display: block;
        padding: 0 0 0.5em 0;
        width: 100%;
    }
    
    /* Better spacing for mobile */
    section, article {
        margin: 0 0 1em 0;
    }
    
    /* Mobile headshot */
    .mobile-headshot {
        display: block;
        margin: 0 auto 1.5em auto;
        width: 120px;
        height: 120px;
        border-radius: 50%;
        overflow: hidden;
        border: 4px solid rgba(255, 255, 255, 0.8);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .mobile-headshot img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    /* Improved construction notice for mobile */
    #construction-notice {
        padding: 0.8em 0;
        margin-bottom: 1em;
    }
    
    #construction-notice p {
        font-size: 1em;
        padding: 0 1em;
        line-height: 1.4;
    }
}

/* Additional mobile improvements for very small screens */
@media screen and (max-width: 480px) {
    .container {
        width: calc(100% - 0.5em);
        padding: 0 0.25em;
    }
    
    #header .logo span {
        font-size: 1.3em;
    }
    
    .bio-title {
        font-size: 2em;
    }
    
    #title .bio-title {
        font-size: 2.4em;
    }
    
    .bio-subtitle {
        font-size: 1.2em;
    }
    
    #title .bio-subtitle {
        font-size: 1.3em;
    }
    
    .bio-content p {
        font-size: 1.05em;
        color: #333;
        font-weight: 400;
    }
    
    /* Adjust mobile headshot for very small screens */
    .mobile-headshot {
        width: 100px;
        height: 100px;
        margin-bottom: 1em;
    }
    
    /* Quote styling for very small screens */
    .bio-quote {
        margin: 1.5em 0 1em 0;
        padding: 0 0.25em;
    }
    
    .quote-block {
        font-size: 1.1em;
        line-height: 1.5;
        padding: 2em 2em 1.5em 2em;
        text-align: center;
        color: #E5E5E5;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
        background: rgba(179, 163, 105, 0.08);
        border-radius: 10px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
        border: 2px solid rgba(179, 163, 105, 0.2);
        backdrop-filter: blur(6px);
    }
    
    .quote-mark {
        font-size: 1.8em;
        color: #B3A369;
        opacity: 0.95;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    
    .quote-mark-left {
        left: 0.2em;
        top: 0.2em;
    }
    
    .quote-mark-right {
        right: 0.2em;
        bottom: 0.2em;
    }
    
    .quote-author {
        font-size: 0.9em;
        margin-top: 1em;
        text-align: right;
        padding-right: 0.3em;
        color: #B3A369;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    }
    
    /* Very small screen quote hover effects (minimal) */
    .quote-block:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
        border-color: rgba(179, 163, 105, 0.35);
        transition: all 0.3s ease-in-out;
    }
    
    .quote-block:hover .quote-mark {
        opacity: 1;
        transform: scale(1.03);
        color: #D4C285;
        transition: all 0.3s ease-in-out;
    }
    
    .quote-block:hover .quote-author {
        color: #D4C285;
        transition: color 0.3s ease-in-out;
    }
    
    .publication .publication-text {
        font-size: 1em;
        color: #333;
        font-weight: 400;
    }
    
    .connect-bio-subtitle {
        font-size: 0.95em;
        color: #fff;
        font-weight: 300;
    }
    
    #footer .icons li a {
        font-size: 1.6em;
        padding: 0.4em;
        min-width: 45px;
        min-height: 45px;
    }
    

}

/* Landscape mobile improvements */
@media screen and (max-width: 736px) and (orientation: landscape) {
    #header {
        height: 50px;
        min-height: 50px;
    }
    
    #header .logo span {
        font-size: 1.3em;
    }
    
    .wrapper {
        padding: 1.5em 0 0.5em 0;
    }
    
    #bio, #title {
        padding: 1em 0;
    }
    
    .bio-title {
        font-size: 2em;
    }
    
    #title .bio-title {
        font-size: 2.4em;
    }
    
    .bio-subtitle {
        font-size: 1.2em;
    }
    
    #title .bio-subtitle {
        font-size: 1.3em;
    }
    
    .bio-content p {
        font-size: 1em;
        color: #333;
        font-weight: 400;
    }
    
    .bio-button {
        padding: 0.6em 1.5em;
        font-size: 0.95em;
    }
    

}

/* Touch-friendly improvements for all mobile devices */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    a, button, .bio-button {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better hover states for touch devices */
    .bio-button:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .bio-image img:hover {
        transform: none;
    }
    
    .publication-icons a:hover {
        transform: none;
        background: rgba(179, 163, 105, 0.2);
    }
    
    #footer .icons li a:hover {
        transform: none;
        background: rgba(212, 194, 133, 0.2);
    }
    
    /* Improved focus states for accessibility */
    a:focus, button:focus, .bio-button:focus {
        outline: 2px solid #D4C285;
        outline-offset: 2px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bio-title, h1, h2, h3, h4, h5, h6 {
        color: #000;
    }
    
    .bio-button {
        background-color: #000;
        color: #fff;
        border: 2px solid #000;
    }
    
    .publication-icons a {
        background: rgba(0, 0, 0, 0.1);
        border: 1px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .bio-button:hover {
        transform: none;
    }
    
    .bio-image img:hover {
        transform: none;
    }
    
    .publication-icons a:hover {
        transform: none;
    }
    
    #footer .icons li a:hover {
        transform: none;
    }
    
    .quote-block:hover {
        transform: none;
    }
    
    .quote-block:hover .quote-mark {
        transform: none;
    }
}

/* Construction Notice Styles */
#construction-notice {
    background: rgba(179, 163, 105, 0.9);
    padding: 1em 0;
    text-align: center;
    margin-bottom: 2em;
    position: relative;
    z-index: 100;
}

#construction-notice p {
    color: #fff;
    font-size: 1.2em;
    margin: 0;
    font-weight: 600;
    padding: 0 1em;
    line-height: 1.3;
}

/* Carousel Styles */
.carousel {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    min-height: 300px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 300px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Make the second image (drones) smaller */
.carousel-slide:nth-child(2) img {
    max-width: 85%;
    max-height: 85%;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(179, 163, 105, 0.8);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(179, 163, 105, 1);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    text-align: center;
    margin-top: 15px;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: rgba(179, 163, 105, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: rgba(179, 163, 105, 1);
}

.dot:hover {
    background-color: rgba(179, 163, 105, 0.8);
}

/* Mobile responsive construction notice */
@media screen and (max-width: 736px) {
    #construction-notice {
        padding: 0.8em 0;
        margin-bottom: 1em;
    }
    
    #construction-notice p {
        font-size: 1em;
        padding: 0 1em;
        line-height: 1.4;
    }
}

@media screen and (max-width: 480px) {
    #construction-notice {
        padding: 0.6em 0;
        margin-bottom: 0.8em;
    }
    
    #construction-notice p {
        font-size: 0.95em;
        padding: 0 0.8em;
        line-height: 1.5;
    }
}

/* Mobile responsive carousel */
@media screen and (max-width: 736px) {
    .carousel {
        min-height: 200px;
    }
    
    .carousel-container {
        height: 200px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
        padding: 8px 12px;
    }
    
    .carousel-btn.prev {
        left: 5px;
    }
    
    .carousel-btn.next {
        right: 5px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
    
    /* Make drones image even smaller on mobile */
    .carousel-slide:nth-child(2) img {
        max-width: 75%;
        max-height: 75%;
    }
}