/* Font declarations */
@font-face {
    font-family: 'NeueHaasDisplay';
    src: url('../fonts/NeueHaasDisplayRoman.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'NeueHaasDisplay';
    src: url('../fonts/NeueHaasDisplayBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --black-hsl: 0, 0%, 0%;
    --white-hsl: 0, 0%, 100%;
    --accent-color: #003E74;
    --text-color: hsla(var(--black-hsl), 1);
    --background-color: hsla(var(--white-hsl), 1);
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
}

body {
    font-family: 'NeueHaasDisplay', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4vw;
    box-sizing: border-box;
}

header {
    color: white;
    padding: 1vw 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

header.transparent {
    background-color: transparent;
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.85);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 1vw;
    box-sizing: border-box;
}

.header-title {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.03em;
    padding-left: 3vw;
    display: flex;
    align-items: center;
    height: 100%;
    font-family: 'NeueHaasDisplay', sans-serif;
}

.header-title-text {
    line-height: 1;
}

.header-nav {
    display: flex;
    flex-grow: 1;
    justify-content: center;
}

.header-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav-item {
    margin-left: 20px;
    font-size: 14px;
    letter-spacing: 0.05em;
}

a {
    color: inherit;
    text-decoration: underline;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

.header-actions {
    display: flex;
    align-items: center;
    padding-right: 3vw;
}

.header-actions-action--social {
    display: flex;
    gap: 15px;
}

.icon {
    width: 20px;
    height: 20px;
    margin-left: 0;
}

.page-section {
    padding: 80px 0;
    position: relative;
}

.page-section.hero-section {
    padding-top: 0;
    padding-bottom: 80px;
}

.section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.section-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.67);
}

.black {
    color: white;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-weight: bold;
    line-height: 1em;
    letter-spacing: 0em;
    font-family: 'NeueHaasDisplay', sans-serif;
}

h1 {
    font-size: 4.5rem;
    margin-bottom: 0.3em;
    letter-spacing: 0em;
}

h2 {
    font-size: 3.8rem;
    line-height: 1em;
    letter-spacing: 0em;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 0.2em;
    letter-spacing: 0em;
}

h4 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.2em;
    line-height: 0.95em;
    letter-spacing: 0em;
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
    box-sizing: border-box;
}

.span-3 {
    width: 25%;
}

.span-8 {
    width: 66.6666%;
}

.span-9 {
    width: 75%;
}

.span-12 {
    width: 100%;
}

.image-block-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
}

footer {
    padding: 10px 0;
    background-color: #003E74;
    font-size: 14px;
}

.social-icon {
    width: 24px;
    height: 24px;
    margin: 0 10px;
}

/* PhD Defence Section */
.phd-defence {
    text-align: center;
    padding: 60px 0;
    background-color: #000;
    color: white;
}

.phd-defence h2 {
    font-size: 2em;
    margin-bottom: 30px;
    letter-spacing: -0.01em;
}

.phd-defence p {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 16px;
    line-height: 1.2;
}

/* Publications Section */
.publications {
    background-color: var(--accent-color);
    color: white;
    padding: 60px 0;
}

.publications h3 {
    margin-bottom: 30px;
    font-size: 1.8em;
}

.publications ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.publications li {
    margin-bottom: 25px;
    line-height: 1.5;
}

section.publications a, section.publications a:visited, section.publications a:hover, section.publications a:active {
    color: white !important;
    text-decoration: underline !important;
}

.publications a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

.publications strong {
    font-weight: bold;
}

.publications p {
    margin: 0.5em 0;
}

/* Patents Section */
.patents {
    background-color: var(--accent-color);
    color: white;
    padding-top: 0;
}

.patents h3 {
    margin-top: 20px;
    font-size: 1.8em;
}

.patents ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* Reduce font size for publications and patents by two points */
.publications,
.patents {
    font-size: 0.875em;
}

/* Employment Section */
.employment {
    background-color: #f9f9f9;
    padding: 10px 0;
}

.employment h4 {
    margin-top: 0;
    font-weight: normal;
}

.employment h4 strong {
    font-weight: bold;
}

/* Hero section specific styling */
.hero-section {
    position: relative;
    margin-top: 0 !important;
    padding-top: 0 !important;
    min-height: 33vh;
}

.hero-section .image-block-wrapper {
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    top: 2.2em;
}

.hero-section h1 {
    margin-top: 0.5em;
    font-size: 4.5rem;
}

.hero-section .section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-section .content-wrapper {
    padding-top: 80px;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    margin: 5% auto;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 900px;
    position: relative;
}

/* Close button in modal */
.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Play overlay styling for video thumbnail */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.play-overlay svg {
    width: 68px;
    height: 68px;
    filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.5));
}

.phd-video-container {
    position: relative;
    cursor: pointer;
}

.phd-video-container:hover .play-overlay svg {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Qualifications section */
.qualifications {
    background-color: #f9f9f9;
    padding: 10px 0;
}

.qualifications h4 {
    font-weight: 500;
}

/* Common styles for employment and qualifications sections */
.employment .content, .qualifications .content {
    max-width: 50%;
    margin: 0 auto;
}

.employment h3, .qualifications h3 {
    font-size: 1.8em;
    margin-top: 20px;
    font-weight: 600;
}

.career-entry {
    display: flex;
    margin-bottom: 35px;
    align-items: flex-start;
}

.career-date {
    width: 15%;
    text-align: right;
    padding-right: 10px;
    font-size: 16px;
    padding-top: 5px;
    color: #555;
    font-weight: bold;
}

.career-logo {
    width: 15%;
    padding: 0 10px;
    text-align: center;
}

.career-logo img {
    max-width: 90%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.career-details {
    width: 70%;
    padding-left: 10px;
}

.career-details h4 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: normal;
}

.career-details h4 strong {
    font-weight: bold;
}

.career-details p {
    margin-top: 8px;
    font-size: 16px;
    /* line-height: 1.5; */
    color: #333;
}

hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 30px 0;
    width: 100%;
}

@media (max-width: 1200px) {
    .employment .content, .qualifications .content {
        max-width: 70%;
    }
}

@media (max-width: 768px) {
    .employment .content, .qualifications .content {
        max-width: 90%;
    }
    
    .career-entry {
        flex-direction: column;
    }
    
    .career-date, .career-logo, .career-details {
        width: 100%;
        text-align: left;
        padding: 0;
        margin-bottom: 10px;
    }
    
    .career-logo img {
        max-width: 120px;
    }
    
    .span-3, .span-8, .span-9 {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .header-nav {
        display: none;
    }
    
    .header-burger {
        display: block;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h3 {
        font-size: 1.3em;
    }
    
    .page-section {
        padding: 60px 0;
    }
    
    .hero-section {
        min-height: auto;
        padding-top: 100px;
    }
}

p {
    line-height: 1.2;
} 

/* Modified hyperlink styling to use the normal text color for links, except for voice text links */
a, a:visited, a:hover, a:active {
    color: inherit;
    text-decoration: underline;
}
a.voice, a.voice:visited, a.voice:hover, a.voice:active {
    color: white;
} 

/* Fix for main content to remove top padding */
main#page {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Footer layout updates */
footer .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

footer p {
    margin: 0;
    color: white;
}

footer .social-links a {
    color: white;
    display: inline-block;
    line-height: 0;
    font-size: 0;
} 

footer .social-links {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Make the site title use same typography as headers */
#site-title {
    font-family: inherit;
    text-decoration: none;
    line-height: 1em;
    letter-spacing: 0em;
    font-size: 24px;
    display: inline-block;
    font-weight: bold;
}

/* Remove underlines from header links */
header a {
    text-decoration: none;
} 