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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5em;
    font-weight: bold;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3em;
    margin-bottom: 1.5em;
    opacity: 0.95;
}

.acceptance-badge {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 1.6em;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 0.95em;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.authors {
    margin-bottom: 1em;
    font-size: 1.1em;
}

.author {
    margin: 0 15px;
    font-weight: 500;
}

.affiliations {
    margin-bottom: 2em;
    font-size: 1em;
    opacity: 0.9;
}

.action-buttons {
    margin-top: 2em;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    margin: 0 10px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.btn-primary {
    background-color: transparent;
    color: white;
}

.btn-primary:hover {
    background-color: white;
    color: #667eea;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: #667eea;
    transform: translateY(-2px);
}

/* Section Styles */
.section {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

.section:nth-child(even) {
    background-color: #f8f9fa;
}

.section h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 1.5em;
    color: #2c3e50;
}

.section h3 {
    font-size: 1.8em;
    margin-bottom: 1em;
    color: #34495e;
}

/* Abstract */
.abstract-text {
    font-size: 1.2em;
    line-height: 1.8;
    text-align: justify;
    max-width: 900px;
    margin: 0 auto;
    color: #555;
}

/* Figure and Image Containers - CVPR/ECCV Best Practices */
.figure-container {
    margin: 50px 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    overflow: hidden;
    border: 1px solid #e1e8ed;
}

.image-container {
    position: relative;
    width: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    min-height: 200px;
}

.research-figure {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    background: white;
}

.research-figure:hover {
    transform: scale(1.03);
    cursor: zoom-in;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* Specific sizing for different image types - preserve aspect ratios */
.architecture-figure {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.comparison-figure {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
}

.dataset-figure {
    max-width: 100%;
    max-height: 700px;
    object-fit: contain;
}

/* Legacy PDF containers - keeping for backward compatibility */
.pdf-embed-container {
    position: relative;
    width: 100%;
    min-height: 500px;
    background: #f5f5f5;
    border-radius: 8px;
}

.pdf-embed-container object,
.pdf-embed-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.figure-caption {
    padding: 25px 30px;
    background: #f8f9fa;
    font-size: 0.95em;
    color: #495057;
    border-top: 1px solid #e9ecef;
    line-height: 1.6;
    text-align: justify;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

/* Academic figure styling */
.figure-number {
    color: #667eea;
    font-weight: 700;
}

/* Loading animation for images */
.research-figure {
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.3s ease;
}

.research-figure.loaded {
    opacity: 1;
}

/* Innovation Grid */
.innovation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.innovation-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.innovation-item h3 {
    padding: 20px;
    background: #667eea;
    color: white;
    margin: 0;
    text-align: center;
}

/* Results Section */
.results-container {
    margin: 40px 0;
}

.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.performance-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.9em;
}

.performance-table th {
    background: #667eea;
    color: white;
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
}

.performance-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.performance-table tr:hover {
    background-color: #f8f9fa;
}

.performance-table tr.highlight {
    background-color: #e8f4fd;
    font-weight: 600;
}

.performance-table tr.highlight:hover {
    background-color: #d1ecf1;
}

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

.highlight-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.highlight-card h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.highlight-card p {
    color: #666;
    line-height: 1.6;
}

/* Citation Section */
.citation-box {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 30px;
    border-radius: 10px;
    position: relative;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.citation-box pre {
    background: none;
    border: none;
    color: inherit;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre-wrap;
    margin: 0;
}

.copy-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85em;
    transition: background-color 0.3s ease;
}

.copy-btn:hover {
    background: #2980b9;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
}

.footer p {
    margin: 10px 0;
}

.footer a {
    color: #3498db;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5em;
    }
    
    .hero-subtitle {
        font-size: 1.1em;
    }

    .acceptance-badge {
        font-size: 0.9em;
        margin-bottom: 1.3em;
    }
    
    .authors {
        font-size: 1em;
    }
    
    .author {
        display: block;
        margin: 5px 0;
    }
    
    .innovation-grid {
        grid-template-columns: 1fr;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        display: block;
        margin: 10px auto;
        width: 200px;
    }
    
    .section h2 {
        font-size: 2em;
    }
    
    .pdf-embed-container {
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2em;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .performance-table {
        font-size: 0.8em;
    }
    
    .performance-table th,
    .performance-table td {
        padding: 8px 5px;
    }
}

/* Animation for loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out;
}

/* Abstract Section */
.abstract-content {
    background: rgba(0, 0, 0, 0.03);
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    margin-top: 1.5rem;
    backdrop-filter: blur(10px);
}

.abstract-content p {
    color: rgba(0, 0, 0, 0.85);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
    font-size: 1.05rem;
}

.abstract-content p:last-child {
    margin-bottom: 0;
}

.abstract-content strong {
    color: var(--accent);
    font-weight: 600;
}

/* Research Highlights */
.highlights-research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-item {
    background: rgba(255, 255, 255, 0.04);
    padding: 1.8rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.highlight-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 191, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.highlight-item h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.highlight-item p {
    color: rgba(0, 0, 0, 0.8);
    line-height: 1.6;
    margin: 0;
}

/* Methodology Section */
.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.method-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 123, 191, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.method-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.method-card p {
    color: rgba(0, 0, 0, 0.8);
    line-height: 1.6;
    margin: 0;
}

/* Conclusion Section */
.conclusion-content {
    background: rgba(0, 0, 0, 0.03);
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    margin-top: 1.5rem;
    backdrop-filter: blur(10px);
}

.conclusion-content p {
    color: rgba(0, 0, 0, 0.85);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
    font-size: 1.05rem;
}

.conclusion-content p:last-child {
    margin-bottom: 0;
}

.conclusion-content strong {
    color: var(--accent);
    font-weight: 600;
}

/* Image Modal for Full-Size Viewing */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    cursor: pointer;
}

.image-modal img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 8px;
}

.image-modal .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.image-modal .close:hover {
    color: #bbb;
}

/* Responsive Images */
@media (max-width: 768px) {
    .research-figure {
        border-radius: 4px;
    }
    
    .image-container {
        padding: 20px 15px;
    }
    
    .architecture-figure,
    .comparison-figure,
    .dataset-figure {
        max-height: 400px;
    }
    
    .innovation-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .figure-container {
        margin: 30px 0;
    }
    
    .figure-caption {
        padding: 15px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .image-container {
        padding: 15px 10px;
    }
    
    .architecture-figure,
    .comparison-figure,
    .dataset-figure {
        max-height: 300px;
    }
    
    .figure-caption {
        padding: 12px;
        font-size: 0.85em;
    }
}

/* Enhanced Visual Results Styling */
.results-figure {
    max-height: 600px;
    width: 100%;
    object-fit: contain;
}

.analysis-figure {
    max-height: 500px;
    width: 100%;
    object-fit: contain;
}

.layers-figure {
    max-height: 450px;
    width: 100%;
    object-fit: contain;
}

.results-insights {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.insight-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 191, 0.15);
}

.insight-card h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.insight-card p {
    margin: 0;
    line-height: 1.6;
}

/* Mobile responsiveness for new visual results */
@media (max-width: 768px) {
    .results-insights {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .insight-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .insight-card {
        padding: 1rem;
    }
    
    .results-figure,
    .analysis-figure {
        max-height: 400px;
    }
}

/* Video Section Styles */
.video-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e6ed;
}

.video-section h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.video-container {
    margin-bottom: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.video-wrapper {
    position: relative;
    width: 100%;
    background: #000;
}

.demo-video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: contain;
}

.video-caption {
    padding: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    background: #f8f9fa;
}

.video-caption strong {
    color: var(--primary);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

/* Video responsiveness */
@media (max-width: 768px) {
    .video-section {
        margin-top: 2rem;
    }
    
    .video-section h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .video-container {
        margin-bottom: 2rem;
    }
    
    .video-caption {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .demo-video {
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .video-caption {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
    
    .demo-video {
        max-height: 300px;
    }
}

/* Video Section Styles */
.video-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e6ed;
}

.video-section h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.video-notice {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    color: #0056b3;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

.video-notice a {
    color: #007bff;
    text-decoration: underline;
}

.video-container {
    margin-bottom: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.video-header h4 {
    margin: 0;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
}

.download-link {
    background: #28a745;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.download-link:hover {
    background: #218838;
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
}

.video-wrapper {
    position: relative;
    width: 100%;
    background: #000;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    background: #000;
}

.video-caption {
    padding: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    background: #f8f9fa;
}

.video-caption strong {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.05rem;
}

.download-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.download-section h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.download-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.download-section li {
    margin-bottom: 0.5rem;
}

.download-section a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.download-section a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Mobile responsiveness for video section */
@media (max-width: 768px) {
    .video-section h3 {
        font-size: 1.5rem;
    }
    
    .video-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .video-header h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .video-caption {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .demo-video {
        max-height: 400px;
    }
    
    .download-section {
        padding: 1rem;
    }
}
