/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #10b981;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --highlight-color: #dbeafe;
}

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

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

/* Header Styles */
header {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: -20px -20px 40px -20px;
    border-radius: 0 0 20px 20px;
}

.title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 30px;
    opacity: 0.95;
}

.authors {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

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

.affiliation {
    font-size: 1rem;
    margin-bottom: 5px;
    opacity: 0.9;
}

.conference {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 20px 0;
    padding: 10px 20px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

.links {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Section Styles */
section {
    margin-bottom: 60px;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Abstract */
.abstract {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

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

/* Highlights */
.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.highlight-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.highlight-box:hover {
    transform: translateY(-5px);
}

.highlight-box h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.highlight-box p {
    font-size: 1rem;
    opacity: 0.95;
}

/* Results Section */
.section-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    text-align: center;
}

.dataset-section {
    margin-bottom: 60px;
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
}

.dataset-section h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.dataset-desc {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 25px;
}

.gif-container {
    width: 100%;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.gif-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Tables */
.tables-grid {
    display: grid;
    gap: 30px;
}

.table-container {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    overflow-x: auto;
}

.table-container h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

thead {
    background-color: var(--primary-color);
    color: white;
}

th, td {
    padding: 12px 15px;
    text-align: left;
}

th {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tbody tr {
    border-bottom: 1px solid var(--border-color);
}

tbody tr:hover {
    background-color: var(--highlight-color);
}

tbody tr.ours {
    background-color: #d1fae5;
    font-weight: 600;
}

tbody tr.ours:hover {
    background-color: #a7f3d0;
}

/* Method Section */
.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.method-component {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
    transition: transform 0.3s ease;
}

.method-component:hover {
    transform: translateX(5px);
}

.method-component h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.method-component p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Comparison Section */
.comparison-table {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    overflow-x: auto;
}

/* Citation */
.citation {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
}

.citation pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.6;
}

.citation code {
    font-family: 'Monaco', 'Courier New', monospace;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

footer p {
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .authors span {
        display: block;
        margin: 5px 0;
    }
    
    .highlights {
        grid-template-columns: 1fr;
    }
    
    .method-grid {
        grid-template-columns: 1fr;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .table-container {
        padding: 15px;
    }
    
    th, td {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.6s ease-out;
}
