/* --- Variables & Reset --- */
:root {
    --primary-color: #1a1a2e;
    --secondary-color: #555;
    --accent-color: #2a7ae2;
    --accent-dark: #1a5ab2;
    --bg-color: #ffffff;
    --section-bg: #f7f9fc;
    --border-color: #e4e8ef;
    --text-muted: #6b7280;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
    --radius: 12px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--primary-color);
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
}

/* --- Top accent bar --- */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-color), #6c63ff);
    z-index: 1000;
    transition: width 0.1s linear;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 24px 40px;
}

h2 {
    text-align: center;
    font-weight: 700;
    font-size: 1.75rem;
    margin-top: 70px;
    margin-bottom: 28px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 14px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* --- Hero / Header --- */
.hero {
    text-align: center;
    padding: 48px 0 32px;
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color);
    margin: 0 0 28px;
}

.authors {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.authors span {
    margin: 0 8px;
    display: inline-block;
}

.contribution-note {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.8;
}

/* --- CVPR Badge --- */
.conference-badge {
    margin: 18px 0 24px;
}

.badge {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* --- Link Buttons --- */
.button-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.link-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-sm);
}

.link-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(42, 122, 226, 0.3);
    color: #fff;
}

.link-button i {
    font-size: 1.05em;
}

/* --- Abstract --- */
.abstract {
    text-align: justify;
    background: linear-gradient(135deg, #f0f5ff, #f7f9fc);
    padding: 28px 32px;
    border-radius: var(--radius);
    border-left: 4px solid var(--accent-color);
    margin-bottom: 8px;
    color: #2d3748;
    font-size: 1.01rem;
    box-shadow: var(--shadow-sm);
}

/* --- Media Elements --- */
img, video {
    max-width: 100%;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
}

video {
    width: 100%;
    object-fit: cover;
    background-color: #0a0a0a;
}

.overview-video {
    margin-bottom: 8px;
}

/* --- Pipeline Section --- */
.pipeline-section img {
    width: 100%;
    margin-bottom: 12px;
}

.caption {
    text-align: left;
    color: var(--text-muted);
    font-size: 0.9em;
    margin: 10px 0 28px;
    line-height: 1.6;
}

/* ============================
   CAROUSEL
   ============================ */
.carousel {
    margin-bottom: 20px;
    user-select: none;
}

.carousel-viewport {
    display: flex;
    align-items: center;
    gap: 10px;
}

.carousel-track-container {
    flex: 1;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    background: #000;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.slide-label {
    background: linear-gradient(135deg, var(--primary-color), #2c3e6b);
    color: #fff;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 16px;
    letter-spacing: 0.3px;
}

.slide-caption {
    background: var(--section-bg);
    color: var(--secondary-color);
    text-align: center;
    font-style: italic;
    font-size: 0.92rem;
    padding: 10px 16px;
}

/* Navigation Buttons */
.carousel-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

.carousel-btn:hover {
    background: var(--accent-color);
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(42, 122, 226, 0.35);
}

.carousel-btn:active {
    transform: scale(0.96);
}

/* Footer: dots + counter */
.carousel-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 14px;
}

.carousel-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    border: 1px solid #d0d7e3;
}

.carousel-dot.active {
    background: var(--accent-color);
    transform: scale(1.25);
    border-color: var(--accent-color);
}

.carousel-counter {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    min-width: 36px;
}

/* --- Citation --- */
.citation-block {
    background-color: var(--section-bg);
    border: 1px solid var(--border-color);
    padding: 20px 24px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    border-radius: var(--radius);
    font-size: 0.88rem;
    line-height: 1.7;
    box-shadow: var(--shadow-sm);
}

/* --- Responsive --- */
@media (max-width: 640px) {
    h1 {
        font-size: 1.6rem;
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .abstract {
        padding: 20px;
    }
}
