@charset "utf-8";

/* =========================================================
   Academic homepage theme
   Adapted from https://github.com/luost26/academic-homepage
   (Bootstrap 4.6 base) for Nikhil Singh's personal site.
   ========================================================= */

body {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-size: 1.02rem;
    line-height: 1.65;
    color: #232830;
    padding-top: 5.0rem;
}

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

p {
    line-height: 1.65;
}

/* Bootstrap's .small is only 80% (~13px) — too tight for the dense
   author / venue / note text this site leans on. Nudge it up. */
.small, small {
    font-size: 0.9rem !important;
}

/* Publication entries: give the title and metadata more air. */
.row.no-gutters h5 {
    font-size: 1.14rem;
    line-height: 1.4;
}

.row.no-gutters .small {
    line-height: 1.55;
}

.abstract-links a {
    font-weight: 600;
}

a {
    color: #2450a5;
}

a:hover {
    color: #14305f;
}

.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-weight: 400;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.navbar-brand strong {
    letter-spacing: 0.01em;
}

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

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

/* Small institution logo shown beside an affiliation. */
.edu-logo {
    height: 20px;
    width: 20px;
    object-fit: contain;
    vertical-align: -5px;
    margin-right: 6px;
}

.email-text {
    font-family: "Source Code Pro", monospace;
    font-size: 0.82rem;
    letter-spacing: -0.01em;
    overflow-wrap: break-word;
    word-break: normal;
}

/* Publication items ------------------------------------- */
.abstract-links a {
    margin-right: 0.35rem;
}

.pub-mark {
    font-size: 0.8rem;
}

/* Curriculum vitae -------------------------------------- */
.mono {
    font-family: "Source Code Pro", monospace;
}

/* Section eyebrow used across CV panels: quiet, not iconified. */
.cv-eyebrow {
    font-family: "Source Code Pro", monospace;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #2450a5;
    margin-bottom: 1.1rem;
}

.cv-entry + .cv-entry {
    margin-top: 1.15rem;
}

.cv-entry-head {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.cv-entry-title {
    font-weight: 700;
    font-size: 1.08rem;
    line-height: 1.35;
}

.cv-entry-date {
    margin-left: auto;
    font-family: "Source Code Pro", monospace;
    font-size: 0.83rem;
    color: #7a828e;
    white-space: nowrap;
}

.cv-entry-org {
    color: #4a5360;
    font-size: 0.98rem;
}

.cv-entry-note {
    font-size: 0.96rem;
    line-height: 1.55;
    color: #5b6470;
    margin-top: 0.2rem;
}

/* Mentee roster: typographic multi-column list, no boxes. */
.roster {
    column-count: 2;
    column-gap: 2.5rem;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.roster li {
    break-inside: avoid;
    padding: 0.4rem 0;
    border-top: 1px solid #eef0f3;
}

.roster > li:first-child,
.roster > li.roster-col-first {
    border-top: none;
}

.roster-name {
    font-weight: 700;
    font-size: 0.96rem;
}

.roster-note {
    color: #5b6470;
    font-size: 0.9rem;
}

@media (max-width: 576px) {
    .roster { column-count: 1; }
}

/* Skills laid out as label / value rows, not pills. */
.cv-skill-row {
    display: flex;
    flex-wrap: wrap;
    padding: 0.5rem 0;
    border-top: 1px solid #eef0f3;
}

.cv-skill-row:first-child {
    border-top: none;
}

.cv-skill-label {
    flex: 0 0 11rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: #2450a5;
    padding-top: 1px;
}

.cv-skill-values {
    flex: 1 1 60%;
    min-width: 15rem;
    color: #333b45;
    font-size: 0.98rem;
    line-height: 1.55;
}

@media (max-width: 576px) {
    .cv-skill-label { flex-basis: 100%; margin-bottom: 0.15rem; }
}

/* Gallery ----------------------------------------------- */
.gallery-grid {
    column-count: 3;
    column-gap: 1rem;
}

@media (max-width: 992px) {
    .gallery-grid { column-count: 2; }
}

@media (max-width: 576px) {
    .gallery-grid { column-count: 1; }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: 0.6rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    background: #fff;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-caption {
    font-size: 0.88rem;
    line-height: 1.45;
    color: #5b6470;
    padding: 9px 13px;
}

/* Lightbox ---------------------------------------------- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 92%;
    max-height: 92%;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Presentations (PDF viewer) ---------------------------- */
.slide-viewer {
    position: relative;
    background: #0a0a1a;
    cursor: pointer;
    overflow: hidden;
    border-top-left-radius: 0.8rem;
    border-top-right-radius: 0.8rem;
}

.slide-viewer canvas {
    display: block;
    width: 100%;
    height: auto;
}

.slide-nav {
    position: absolute;
    top: 0;
    height: 100%;
    width: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    border: none;
    background: none;
}

.slide-nav:hover { opacity: 1; }

.slide-nav i {
    font-size: 1.4rem;
    color: #fff;
    background: rgba(36, 80, 165, 0.6);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-prev { left: 0; }
.slide-next { right: 0; }

.slide-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a1a;
    z-index: 5;
}

.slide-progress { height: 3px; background: #e3e6ec; }
.slide-progress-bar {
    height: 100%;
    background: #2450a5;
    transition: width 0.3s ease;
}

.slide-viewer.fullscreen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 4500;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 0;
}

.slide-viewer.fullscreen canvas {
    max-width: 100%;
    max-height: 100%;
    width: auto;
}

.spinner-ring {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.25);
    border-top-color: #2450a5;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Back-to-top ------------------------------------------- */
.scroll-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #2450a5;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 3000;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}
