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

:root {
  --primary: #6366f1;        /* Indigo */
  --primary-dark: #4f46e5;   /* Deeper indigo */
  --secondary: #06b6d4;      /* Aqua accent */
  --dark: #1e293b;           /* Text */
  --dark-light: #475569;     /* Subtle text */
  --gray: #e2e8f0;           /* Neutral divider */
  --surface: #f9fafb;        /* Box background */
  --light: #ffffff;          /* Page background */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Optional subtle gradient overlay for depth */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: linear-gradient(135deg, #f0f9ff 0%, #fdf4ff 50%, #fffde7 100%);
    opacity: 0.25;
    z-index: -1;
}

header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

nav a {
    color: var(--dark-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover,
nav a.active {
    color: var(--primary-dark);
    background: rgba(99, 102, 241, 0.1);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after, nav a.active::after {
    width: 80%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.venue {
    font-size: 1.25rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.authors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.author {
    text-align: center;
}

.author-name {
    color: var(--dark);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.author-affiliation {
    color: var(--dark-light);
    font-size: 0.9rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 3rem 0;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.35);
}

.btn-secondary {
    background: var(--surface);
    color: var(--dark);
    border: 1px solid var(--gray);
}

.btn-secondary:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

section {
    margin: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--gray);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.1);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 1rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.image-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--surface);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.image-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(255,255,255,0.8), transparent);
    padding: 1rem;
    color: var(--dark);
    font-size: 0.9rem;
}

.bibtex-container {
    background: var(--surface);
    border: 1px solid var(--gray);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    color: var(--dark-light);
}

.bibtex-code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--dark-light);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.copy-btn:hover {
    background: var(--primary-dark);
}

footer {
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--gray);
    color: var(--dark-light);
}

.abstract-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-light);
}

/* Benchmark Table Styles */
.benchmark-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--gray);
    border-radius: 0.5rem;
    color: var(--dark);
    font-size: 0.95rem;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.refresh-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    border: none;
    color: white;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.refresh-btn:hover {
    background: var(--primary-dark);
}

.last-updated {
    color: var(--dark-light);
    font-size: 0.9rem;
    text-align: right;
    margin-bottom: 1rem;
}

.table-container {
    overflow-x: auto;
    border-radius: 1rem;
    background: var(--surface);
    border: 1px solid var(--gray);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #f1f5f9;
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--dark);
    border-bottom: 2px solid var(--gray);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

th:hover {
    background: rgba(99, 102, 241, 0.05);
}

th .sort-indicator {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.5;
}

th.sorted .sort-indicator {
    opacity: 1;
    color: var(--primary);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray);
    color: var(--dark-light);
}

tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

.rank-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.rank-1 { background: linear-gradient(135deg, #ffd700, #ffed4e); color: #000; }
.rank-2 { background: linear-gradient(135deg, #c0c0c0, #e8e8e8); color: #000; }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #e8a87c); color: #000; }
.rank-other { background: rgba(99, 102, 241, 0.15); color: var(--dark); }

.method-name {
    font-weight: 600;
    color: var(--dark);
}

.method-link {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.method-link:hover {
    color: var(--secondary);
}

.metric-value {
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.best-value {
    color: #059669;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--dark-light);
}

.error-message {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .authors {
        gap: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .benchmark-controls {
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    th, td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
}

.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 1000;
    transition: width 0.1s ease;
}
