a {
    color: var(--theme-primary-color);
    transition: all 0.2s;
}

a:link {
    text-decoration: none;
    color: var(--theme-primary-color);
}

a:visited {
    text-decoration: none;
    color: var(--theme-primary-color);
}

a:active {
    text-decoration: none;
    color: var(--theme-primary-color);
}

a:hover {
    text-decoration: none;
    color: var(--theme-invert-color-0);
}

body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-size: 15px;
    background-color: var(--theme-absolute-color);
    color: var(--theme-invert-color);
}

.caption-text {
    color: var(--theme-primary-color);
}

.jumbotron {
    padding: 2rem 2rem;
    background-color: var(--theme-color-0);
}

.jumbotron .theme-switch {
    position: absolute;
    top: 0;
    right: 0;
}

.jumbotron .theme-switch :hover {
    cursor: pointer;
}

.image-stack-container {
    position: relative;
    width: 100%;
    height: calc(13rem + 60px);
    padding: 20px;
    perspective: 1000px;
}

.image-wrapper {
    position: absolute;
    width: 16rem;
    transition: all 0.4s ease-in-out;
    transform-origin: center center;
}

.image-wrapper:nth-child(1) {
    transform: translateX(-10px) scale(1);
    z-index: 3;
}

.image-wrapper:nth-child(2) {
    transform: translateX(20px) scale(0.98) rotate(3deg);
    z-index: 2;
}

.image-wrapper:nth-child(3) {
    transform: translateX(50px) scale(0.95) rotate(6deg);
    z-index: 1;
}

.image-wrapper:nth-child(2):hover {
    transform: scale(1.2) !important;
    z-index: 3 !important;
}

.image-wrapper:nth-child(3):hover {
    transform: scale(1.3) !important;
    z-index: 3 !important;
}

.profile-image {
    width: 16rem;
    height: 13rem;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.image-desc {
    font-size: 0.8rem;
    font-family: monospace;
    text-align: center;
    margin-top: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-wrapper:hover .image-desc {
    opacity: 1;
}

.path {
    font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace !important;
    font-weight: bold;
    margin-bottom: 1rem;
}

.bio-link {
    display: flex;
}

.bio-link a {
    display: flex;
}

.bio-link svg {
    height: 1.2rem;
    width: 1.2rem;
    margin: 0 0.25rem;
    align-self: center;
}

.bio-link svg:hover {
    cursor: pointer;
}

.bio-link svg path {
    fill: var(--theme-invert-color);
}

.bio-link svg:hover path {
    fill: var(--theme-primary-color);
    transition: fill 0.3s;
}

.research-item {
    margin-bottom: 1rem;
}

.research-item img {
    width: 100%;
}

.research-item .award-outer {
    padding: 2px;
    border-radius: 0.2rem;
    background: linear-gradient(to bottom right, #EAC925, #D89810, #DCB319);
    display: inline-block;
}

.research-item .award-outer .award {
    padding: 0.02rem 0.5rem;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 0.1rem;
    background-color: #E3B71A;
    color: white;
    margin: auto;
    font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
}

.badge-bar {
    display: flex;
}

.badge-bar .badge {
    margin-inline: 0.2rem;
}

.badge-bar .badge:first-child {
    margin: 0 0.2rem 0 0;
}

.company::before {
    content: "@";
    font-weight: bold;
    margin-right: 0.1rem;
    color: var(--theme-secondary-color);
}

.tag {
    font-size: 0.8rem;
    margin-right: 0.4rem;
    color: var(--theme-invert-color-0)
}

.tag::before {
    content: "#";
    font-weight: bold;
    margin-right: 0.1rem;
    color: var(--theme-secondary-color);
}

.tag-btn {
    padding: 0.1em 0.3em;
    line-height: 1.3rem;
    border-radius: 0.3rem;
    font-size: 0.9em;
    color: var(--theme-inverted-color);
    background-color: var(--tag-bg);
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.research-theme-text {
    font-family: 'Crimson Pro', serif; 
    font-style: italic; 
    font-size: 1.1rem;
}

.tag-btn.active {
    background-color: var(--theme-primary-color);
    color: var(--theme-color-1);
}

.toggle-switch {
    display: flex;
    align-items: center;
    background: var(--toggle-bg, #f0f0f0);
    border-radius: 20px;
    padding: 2px;
    cursor: pointer;
    font-size: 0.7rem;
    width: fit-content;
    margin-bottom: auto;
}

.toggle-option {
    padding: 3px 10px;
    border-radius: 13px;
    transition: all 0.3s ease;
    color: var(--toggle-text, #666);
}

.toggle-option.active {
    background: var(--toggle-active-bg, white);
    color: var(--toggle-active-text, #333);
    box-shadow: var(--toggle-shadow, 0 2px 4px rgba(0,0,0,0.1));
}

.research-link {
    margin-right: 0.2rem;
}

#news-list .news-item {
    margin: 0.5rem;
}