/* @font-face {
    font-family: "Optima";
    src: url("optima.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
} */

@font-face {
    font-family: "OptimaM";
    src: url("optima-medium.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* @font-face {
    font-family: "caslon";
    src: url("LibreCaslonText-Regular.ttf") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
} */

html {
    scroll-behavior: smooth;
}

body {
    font-family: sans-serif, "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Arial", sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f3f4f6;
    margin: 0;
    padding: 0;
    font-size: 1.2em;
}

.liquid-glass-nav {
    padding: 0;
    background: transparent;
}

.liquid-glass-shell {
    width: 100%;
    margin: 0;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    background: rgba(242, 245, 249, 0.78);
    border-bottom: 1px solid rgba(166, 180, 202, 0.42);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
}

.liquid-glass-shell::before,
.liquid-glass-shell::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.liquid-glass-shell::before {
    inset: 1px;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.10);
}

.liquid-glass-shell::after {
    display: none;
}

.liquid-glass-shell > * {
    position: relative;
    z-index: 1;
}

.liquid-glass-brand {
    font-weight: 700;
    color: #111827;
    letter-spacing: 0.02em;
    padding: 0.35rem 0.5rem;
}

.liquid-glass-brand:hover {
    text-decoration: none;
}

.liquid-glass-nav .navbar-collapse {
    flex-grow: 0;
}

.liquid-glass-nav .navbar-nav {
    gap: 8px;
}

.liquid-glass-nav .nav-link {
    color: rgba(31, 41, 55, 0.88);
    font-weight: 600;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.liquid-glass-nav .nav-link:hover,
.liquid-glass-nav .nav-link:focus {
    color: #1080E7;
    text-decoration: none;
    transform: translateY(-2px);
}

.liquid-glass-toggler {
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.24);
}

.liquid-glass-toggler:focus {
    outline: 2px solid rgba(13, 110, 253, 0.18);
    outline-offset: 2px;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding-top: 150px;
}

header {
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    color: #111827;
}

header p {
    font-size: 1.4em;
    color: #6b7280;
    margin-top: 5px;
}

.social-links {
    font-size: 1.2em;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

section {
    margin-bottom: 25px;
    padding-top: 5px; 
}

h2 {
    position: relative;
    font-family: OptimaM, "Segoe UI", Arial, sans-serif;
    font-size: 1.5em;
    font-weight: 650;
    letter-spacing: 0.01em;
    padding: 18px 0 6px 10px;
    margin-bottom: 18px;
    color: #1f2937;
}

h2::after {
    content: "";
    position: absolute;
    left: 10px;
    bottom: 0;
    width: 24px;
    height: 2px;
    background: rgba(37, 99, 235, 0.28);
    border-radius: 999px;
}

/* margin: top, right, bottom, left */

.publication { 
    margin: 0 15px 30px 15px; 
    font-size: 18px; 
    line-height: 1.3; 
    font-family: "Segoe UI", Arial, sans-serif;
}

.publication .title { 
    font-family: OptimaM; 
    font-size: 20px; 
    font-weight: 650; 
    margin: 6px 0;
}

.publication .authors { 
    margin: 6px 0;
}

.publication .venue { 
    margin: 6px 0;
}

.publication .description { 
    color: #6b7280;
    margin: 6px 0;
}

.publication .links { 
    margin: 6px 0;
}

.publication .links a { 
    margin-right: 8px; 
    text-decoration: none; 
    color: #214F9A;
}

.publication .links a:hover { 
    text-decoration: underline;
}

.stats-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.stats-container img {
    max-width: 100%;
    height: auto;
}

footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 10px;
    border-top: 1px solid rgba(188, 208, 236, 0.45);
    color: #6b7280;
    font-size: 0.9em;
}

footer p {
    margin: 5px;
}

.container a {
    text-decoration: none;
    color: #05509F;
}

.container #bio a{
    font-weight: bold;
}

.container a:hover {
    text-decoration: underline; 
}

.social-links a {
    text-decoration: none;
    color: #1080E7;
    padding: 5px 10px;
}

.social-links a:hover {
    text-decoration: underline;
    font-weight: bold;
}

@media (max-width: 767.98px) {
    .liquid-glass-nav {
        padding: 0;
    }

    .liquid-glass-shell {
        width: 100%;
        padding: 12px 16px;
        border-radius: 0;
        flex-wrap: wrap;
    }

    .liquid-glass-nav .navbar-collapse {
        width: 100%;
        flex-basis: 100%;
        margin-top: 8px;
    }

    .liquid-glass-nav .navbar-nav {
        gap: 6px;
    }

    .liquid-glass-nav .nav-link {
        text-align: center;
    }

    .container {
        padding-top: 132px;
    }
}
