@charset "utf-8";

body {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    padding-top: 4.3rem;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-weight: 700;
}

.card {
    border-radius: 0.8rem !important;
}

.card-img-overlay {
    border-radius: 0.8rem !important;
}

.rounded-xl {
    border-radius: 0.8rem !important;
}

.rounded-xl-bottom {
    border-bottom-right-radius: 0.8rem !important;
    border-bottom-left-radius: 0.8rem !important;
}

.rounded-xl-top {
    border-top-left-radius: 0.8rem !important;
    border-top-right-radius: 0.8rem !important;
}


.text-profile-position {
    font-weight: 400;
}

.text-profile-bio {
    /* font-family: "Raleway"; */
    font-weight: 400;
}

/* Glassmorphism Navbar (iOS Liquid Effect) */
.glass-navbar {
    background: rgba(255, 255, 255, 0.5) !important;
    /* Increased opacity for clear readability */
    backdrop-filter: blur(10px) saturate(500%) brightness(100%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(500%) brightness(100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: background 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.5s cubic-bezier(0.16, 1, 0.3, 1), -webkit-backdrop-filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 2.8rem;
    /* Reduced height (3.5rem * 0.8) */
}

/* Shimmer/Refraction Effect */
.glass-navbar::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
    animation: liquid-shimmer 20s infinite alternate ease-in-out;
}

@keyframes liquid-shimmer {
    0% {
        transform: translate(-10%, -10%) rotate(0deg);
    }

    100% {
        transform: translate(10%, 10%) rotate(3deg);
    }
}

.glass-navbar .navbar-brand {
    color: #000000 !important;
    letter-spacing: -0.01em;
    font-weight: 600;
    margin: 0 !important;
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute !important;
    left: 1rem !important;
    top: 1.4rem !important;
    transform: translateY(-50%) !important;
    white-space: nowrap;
}

.glass-navbar .navbar-brand.show-name {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 576px) {
    .glass-navbar .navbar-brand {
        max-width: 70%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}


.glass-navbar .nav-link {
    color: #1d1d1f !important;
    /* Dark grey for readability */
    font-weight: 600;
    /* Bolder font for readability */
    transition: all 0.3s ease;
    margin: 0 4px;
    padding: 0.5rem 1rem !important;
    border-radius: 10px;
}

.glass-navbar .nav-link:hover {
    color: #007bff !important;
    /* Accent color on hover */
    background: rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
}

/* Ensure vertical alignment for links and proper spacing on mobile */
@media (max-width: 575.98px) {
    .glass-navbar .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding-top: 4.8rem;
        padding-bottom: 2rem;
    }

    .glass-navbar .nav-link {
        padding: 0.8rem 1rem !important;
        text-align: center;
    }
}


.two-bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.two-bars span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #1d1d1f;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.glass-navbar .navbar-toggler {
    border: none !important;
    background: transparent !important;
    padding: 0.5rem 0.5rem !important;
    box-shadow: none !important;
    outline: none !important;
    position: absolute;
    right: 1rem !important;
    left: auto !important;
    top: 1.4rem;
    transform: translateY(-50%);
    z-index: 1100;
}

.glass-navbar .navbar-toggler[aria-expanded="true"] .two-bars {
    transform: rotate(180deg);
}

.glass-navbar .navbar-toggler:active .two-bars span {
    transform: scaleX(0.85);
}



.inline-badge {
    height: 16px;
    vertical-align: -10%;
    margin-right: 2px;
    line-break: unset;
}

.no-break {
    white-space: nowrap;
}

.cover-image {
    width: 180px;
    max-height: 120px;
}

.abstract-body {
    min-height: 100px;
}

img.lazy {
    background-image: url('images/loading.gif');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 50px 50px;
    min-height: 80px;
}

div.lazy {
    background-image: url('images/loading.gif');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 50px 50px;
    min-height: 80px;
}

.badge-publication {
    font-size: 100%;
}

.email-text {
    font-family: Source Code Pro, monospace;
}



/* Content level: one step smaller than parent title (≈87.5% of parent, same ratio as Bootstrap .small) */
.pub-meta {
    font-size: 0.90em;
}

/* Organisation logo in Experience / Education cards */
.org-logo-wrap {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.org-logo {
    width: 52px !important;
    height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
    object-fit: contain;
}

.profile-portrait {
    width: 74px !important;
    height: 74px !important;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    padding: 2px;
    background-color: #fff;
}