:root {
    --bg-color: #ffffff;
    --text-color: #363636;
    --text-muted: #7a7a7a;
    --link-color: hsl(204, 86%, 53%);
    --link-hover: hsl(204, 86%, 43%);
    --border-color: #dbdbdb;
    --code-bg: #f5f5f5;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --button-bg: #363636;
    --button-hover: #292929;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

nav .nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 0 20px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-family: 'Google Sans', sans-serif;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 5px 10px;
}

nav a:hover {
    color: var(--link-color);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 80px 50px 20px;
}

section {
    margin-bottom: 80px;
}

.hero {
    text-align: center;
    margin-bottom: 60px;
}

.hero h1 {
    font-family: 'Google Sans', sans-serif;
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.1;
    color: var(--text-color);
}

.hero h2.subtitle {
    font-family: 'Google Sans', sans-serif;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.3;
    color: var(--text-color);
}

/* Green-VLA brand colors */
.green-vla .green {
    color: #1EB980;
}

.green-vla .purple {
    color: #6C63FF;
}

/* Author List */
.authors {
    font-size: 20px;
    margin-bottom: 25px;
    font-family: 'Google Sans', sans-serif;
}

.authors a {
    color: var(--link-color);
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.2s ease;
}

.authors a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Institution Logos */
.institutions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.institutions img {
    height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.institutions img:hover {
    filter: none;
    opacity: 1;
}

/* Institution Placeholder (for demo) */
.institution-placeholder {
    height: 60px;
    padding: 15px;
    /* width: 150px; */
    background: transparent;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-color);
    font-family: 'Google Sans', sans-serif;
}

/* Links (Paper, Code, etc.) */
.links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.links a {
    display: inline-block;
    padding: 10px 25px;
    background: var(--button-bg);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 15px;
    font-family: 'Google Sans', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1);
}

.links a:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.teaser {
    margin: 50px 0;
    text-align: center;
}

.teaser video,
.teaser img {
    width: 100%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.teaser-placeholder {
    width: 100%;
    max-width: 800px;
    height: 450px;
    background: var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 18px;
    margin: 0 auto;
}

.abstract {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px;
}

.abstract h2,
section h2 {
    font-family: 'Google Sans', sans-serif;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-color);
}

.abstract p,
section p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 15px;
    text-align: justify;
}

section h3 {
    font-family: 'Google Sans', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-color);
    text-align: center;
}

#results h3 {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

#results h3:first-of-type {
    border-top: none;
    margin-top: 30px;
    padding-top: 0;
}

section ul {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    margin-left: 30px;
    margin-bottom: 20px;
}

section li {
    margin-bottom: 8px;
}

/* Impact metrics highlighting */
.impact-metric {
    display: inline-block;
    background: linear-gradient(135deg, rgba(30, 185, 128, 0.15), rgba(108, 99, 255, 0.15));
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    color: var(--text-color);
    border: 1px solid rgba(30, 185, 128, 0.3);
    margin: 0 2px;
    white-space: nowrap;
}

.method-overview ul li {
    padding-left: 8px;
    margin-bottom: 12px;
    line-height: 1.8;
}

.method-overview ul li b {
    color: var(--text-color);
    font-weight: 600;
}

.full-width-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: none;
    margin: 20px 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.video-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--code-bg);
}

.video-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-item video,
.video-item iframe {
    width: 100%;
    height: 250px;
    display: block;
    border: none;
    border-radius: 8px;
}

.video-placeholder {
    width: 100%;
    height: 250px;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    border-radius: 8px;
}

.video-item .caption {
    padding: 15px;
    text-align: center;
    font-size: 14px;
    font-family: 'Google Sans', sans-serif;
    color: var(--text-muted);
}

.bibtex-section {
    margin-top: 60px;
}

.bibtex-container {
    position: relative;
    background: var(--code-bg);
    border-radius: 6px;
    padding: 25px;
    margin-top: 20px;
    border: 1px solid var(--border-color);
}

.bibtex-container pre {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.copy-button {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    background: var(--button-bg);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-family: 'Google Sans', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
}

.copy-button:hover {
    background: var(--button-hover);
}

.copy-button.copied {
    background: #27ae60;
}

footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
    font-family: 'Google Sans', sans-serif;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 42px;
    }

    .hero h2.subtitle {
        font-size: 20px;
    }

    .authors {
        font-size: 18px;
    }

    nav .nav-content {
        gap: 15px;
    }

    nav a {
        font-size: 14px;
        padding: 5px;
    }

    .links {
        flex-direction: column;
        align-items: center;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    section h2 {
        font-size: 26px;
    }

    .interactive-demo {
        padding: 25px 15px;
    }

    .secondary-videos {
        grid-template-columns: repeat(2, 1fr);
    }

    .camera-hotspot {
        width: 25px;
        height: 25px;
    }
}

html {
    scroll-behavior: smooth;
}

/* Camera Viewer Styles */
.camera-viewer-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.robot-image-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.robot-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: block;
}

.camera-hotspot {
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(52, 152, 219, 0.6);
    border: 3px solid #3498db;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    animation: pulse 2s infinite;
}

.camera-hotspot:hover {
    background: rgba(52, 152, 219, 0.9);
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.8);
}

.camera-hotspot.active {
    background: rgba(46, 204, 113, 0.8);
    border-color: #2ecc71;
    animation: none;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }
}

.video-display {
    width: 100%;
    max-width: 900px;
}

.main-video-container {
    position: relative;
    margin-bottom: 20px;
    background: var(--code-bg);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-label {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
    font-family: 'Google Sans', sans-serif;
}

.video-label-small {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
    font-family: 'Google Sans', sans-serif;
}

#mainVideo {
    width: 100%;
    max-height: 600px;
    border-radius: 8px;
    background: #000;
    object-fit: contain;
}

.secondary-videos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.secondary-video-wrapper {
    position: relative;
    background: var(--code-bg);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.secondary-video-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    border-color: var(--link-color);
}

.secondary-video-wrapper video {
    width: 100%;
    height: 120px;
    border-radius: 4px;
    background: #000;
    object-fit: cover;
}

.secondary-video-wrapper video.active {
    border: 2px solid #2ecc71;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

@media (max-width: 768px) {
    .camera-viewer-container {
        gap: 20px;
    }

    .secondary-videos {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .camera-hotspot {
        width: 25px;
        height: 25px;
        border-width: 2px;
    }

    .video-label {
        font-size: 16px;
    }

    .robot-image {
        max-width: 100%;
    }
}

/* Temp */

:root {
    --bg: #fff;
    --ink: #363636;
    --muted: #7a7a7a;
    --grid: #dbdbdb;
    --card: #f5f5f5;
    --c1: #0ea5e9;
    --c2: #8b5cf6;
    --c3: #22c55e;
    --c4: #ef4444;
    --firstcol: 96px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0a0a0a;
        --ink: #f5f5f5;
        --muted: #b5b5b5;
        --grid: #2a2a2a;
        --card: #1a1a1a;
    }
}

* {
    box-sizing: border-box
}

/* Overridden by main body styles above */

/* h1 styling is handled by .hero h1 */

.note {
    color: var(--text-muted);
    font-size: 12.5px;
    margin: 0 0 12px;
    font-family: 'Noto Sans', sans-serif;
}

.figure {
    background: var(--card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: none;
    padding: 20px;
    margin: 14px 0 18px;
}

/* .figure h2 {
    font-size: 16px;
    margin: 0 0 6px
} */

.legend {
    display: flex;
    gap: 12px 16px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 12.5px;
    margin: 2px 0 8px;
    font-family: 'Noto Sans', sans-serif;
}

.chip {
    width: 12px;
    height: 12px;
    border-radius: 5px;
    display: inline-block
}

.table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed
}

.table th,
.table td {
    padding: 6px 8px
}

.table th {
    color: var(--text-color);
    font-weight: 600;
    font-family: 'Google Sans', sans-serif;
}

.table thead th {
    text-align: center
}

.table tbody th {
    width: var(--firstcol);
    text-align: right;
    white-space: nowrap
}

.table tr:not(:last-child) td,
.table tr:not(:last-child) th {
    border-bottom: 1px solid var(--border-color);
}

.cell {
    height: 22px;
    border-radius: 10px;
    background: var(--border-color);
    position: relative;
    overflow: hidden;
}

.fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: calc(var(--v)*1%);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(0, 0, 0, .08)), var(--color);
}

.val {
    position: absolute;
    right: 8px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 12.5px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
    mix-blend-mode: luminosity;
}

.miss {
    background: repeating-linear-gradient(135deg, transparent 0 6px, var(--border-color) 6px 12px);
}

.aloha-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px 14px;
    align-items: start;
}

.aloha-col {
    display: grid;
    gap: 8px
}

.aloha-head {
    text-align: center;
    color: var(--text-muted);
    font-weight: 600;
    font-family: 'Google Sans', sans-serif;
    font-size: 13px;
}

.badge {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .9);
    color: #000;
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 11.5px;
    font-weight: 700;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .05);
}

.badge .green-vla .green {
    color: #1EB980;
}

.badge .green-vla .purple {
    color: #6C63FF;
}

.compact .cell {
    height: 20px
}

.caption {
    color: var(--text-muted);
    font-size: 12.5px;
    margin-top: 6px;
    font-family: 'Noto Sans', sans-serif;
}