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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.3;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

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

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.header-content {
    padding: 35px 30px;
    text-align: center;
}

.title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.subtitle {
    font-size: 1rem;
    color: #5a6c7d;
    margin-bottom: 15px;
    font-weight: 400;
    line-height: 1.2;
}

.author-info {
    margin-bottom: 25px;
}

.authors {
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 5px;
}

.affiliation {
    font-size: 0.8rem;
    color: #7f8c8d;
    line-height: 1.2;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

/* Section Styles */
.section {
    margin: 20px 0;
}

.content {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.content h2 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.abstract {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #444;
    text-align: justify;
    margin: 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
}


.feature-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 6px;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-content h3 {
    font-size: 0.9rem;
    color: #2c3e50;
    margin: 0 0 4px 0;
    font-weight: 600;
    line-height: 1.2;
}

.feature-content p {
    color: #666;
    line-height: 1.25;
    font-size: 0.75rem;
    margin: 0;
}

/* Method Overview */
.method-overview-full {
    margin-top: 15px;
}

.method-figure {
    text-align: center;
    margin-bottom: 20px;
}

.overview-img {
    width: 100%;
    max-width: 900px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.robomimic-tasks {
    margin-top: 20px;
}

.robomimic-tasks h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.tasks-figure {
    text-align: center;
}

.tasks-img {
    width: 100%;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Updated Features Grid - Three in one row, more compact */
.features-grid-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

/* Simulation Results Videos */
.simulation-results {
    margin: 20px 0;
}

.simulation-results h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

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

.video-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
}


.video-card h4 {
    font-size: 0.85rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
    text-align: center;
    text-transform: capitalize;
}

.video-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.video-description {
    margin-top: 6px;
    font-size: 0.7rem;
    color: #666;
    text-align: center;
    line-height: 1.2;
}

/* Real Robot Results Styling */
.high-success-tasks, .complex-task-comparisons {
    margin: 20px 0;
}

.high-success-tasks h4, .complex-task-comparisons h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.comparison-section {
    margin: 15px 0;
}

.comparison-section h5 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
    text-align: left;
}

.video-card h6 {
    font-size: 0.8rem;
    color: #2c3e50;
    margin-bottom: 6px;
    font-weight: 600;
    text-align: center;
}

.video-card.success h6 {
    color: #27ae60;
}

.video-card.failure h6 {
    color: #e74c3c;
}

.video-card.success {
    border-left: 3px solid #27ae60;
}

.video-card.failure {
    border-left: 3px solid #e74c3c;
}

/* Real Robot Videos - 2 rows, 3 columns */
.real-robot-videos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 15px;
}

/* Simple Metrics - One Line */
.simple-metrics {
    text-align: center;
    margin: 20px 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #444;
}

.simple-metrics .metric {
    display: inline;
    margin: 0 4px;
}

.simple-metrics strong {
    color: #667eea;
    font-weight: 600;
}

/* Simple Findings - Compact */
.simple-findings {
    margin: 20px 0;
}

.simple-findings h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.findings-text {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #444;
    text-align: justify;
    margin: 0;
}

.findings-text strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Real Robot Video Success/Failure Styling */
.real-robot-videos .video-card.success h5 {
    color: #27ae60;
    font-weight: 600;
}

.real-robot-videos .video-card.failure h5 {
    color: #e74c3c;
    font-weight: 600;
}

.real-robot-videos .video-card.success {
    border-top: 3px solid #27ae60;
}

.real-robot-videos .video-card.failure {
    border-top: 3px solid #e74c3c;
}

.method-label {
    font-size: 0.7rem;
    text-align: center;
    margin-bottom: 6px;
    font-style: italic;
    font-weight: 500;
}

.real-robot-videos .video-card.success .method-label {
    color: #27ae60;
}

.real-robot-videos .video-card.failure .method-label {
    color: #e74c3c;
}

/* Results Section */
.result-figure {
    margin: 40px 0;
}

.result-figure h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

.figure-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.result-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.figure-caption {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 6px;
    padding: 12px;
    border-left: 3px solid #667eea;
    margin-top: 10px;
}

.figure-caption p {
    margin: 0;
    color: #5a6c7d;
    line-height: 1.3;
    font-size: 0.8rem;
}

.figure-caption strong {
    color: #2c3e50;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.metric-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}


.metric-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
}

.metric-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

/* Findings Section */
.findings-section {
    margin: 40px 0;
}

.findings-section h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.findings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.finding-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}


.finding-item i {
    font-size: 1.5rem;
    color: #667eea;
    margin-top: 5px;
    min-width: 24px;
}

.finding-item h4 {
    font-size: 1rem;
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.finding-item p {
    margin: 0;
    color: #666;
    line-height: 1.3;
    font-size: 0.85rem;
}

/* Citation */
.citation-box {
    position: relative;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
    border: 1px solid #e9ecef;
}

.citation-box pre {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
    overflow-x: auto;
}

.copy-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.8rem;
    cursor: pointer;
}

.copy-btn:hover {
    background: #5a6fd8;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 40px 0 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.footer-content {
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: #666;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #667eea;
    text-decoration: none;
}

.footer-links a:hover {
    color: #5a6fd8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .header-content {
        padding: 40px 20px;
    }
    
    .content {
        padding: 30px 20px;
    }
    
    .content h2 {
        font-size: 2rem;
    }
    
    .features-grid-compact {
        grid-template-columns: 1fr;
    }
    
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .findings-grid {
        grid-template-columns: 1fr;
    }
    
    .finding-item {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .links {
        flex-direction: column;
        align-items: center;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .video-card {
        padding: 15px;
    }
    
    .features-grid-compact {
        gap: 20px;
    }
    
    .feature-card {
        padding: 20px;
    }
}