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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* Header Styles */
header {
    background: linear-gradient(135deg, #1e90ff 0%, #20b2aa 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    font-weight: 700;
}

header .subtitle {
    font-size: 1.3em;
    opacity: 0.95;
    font-weight: 300;
}

/* Main Content */
main {
    padding: 40px 20px;
}

section {
    background: white;
    margin-bottom: 30px;
    padding: 40px;
    border-radius: 8px;
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/
}

section h2 {
    font-size: 2em;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #1e90ff 0%, #20b2aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #1e90ff 0%, #20b2aa 100%);
    border-image-slice: 1;
    padding-bottom: 10px;
}

/* Abstract Section */
.abstract-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: start;
}

.teaser-image {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.teaser-image img {
    width: 100%;
    height: auto;
    display: block;
}

.abstract-text {
    font-size: 1.1em;
    line-height: 1.8;
}

.abstract-text p {
    margin-bottom: 15px;
}

/* Downloads Section */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.download-item {
    text-align: center;
    padding: 30px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.download-item:hover {
    border-color: #1e90ff;
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.2);
    transform: translateY(-5px);
}

.download-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.download-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
}

.download-item p {
    color: #666;
    margin-bottom: 20px;
}

.download-poster {
    width: 250px;
    margin: auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.download-poster img {

    width: 100%;
    height: auto;
    display: block;
}

.download-button {
    display: inline-block;
    background: linear-gradient(135deg, #1e90ff 0%, #20b2aa 100%);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(30, 144, 255, 0.3);
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(30, 144, 255, 0.4);
}

/* Poster Preview Section - REMOVED */

/* Our Immersive Tool Section */
.tool-section {
    background: white;
    margin-bottom: 30px;
    padding: 40px;
    border-radius: 8px;
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.tool-item {
    text-align: center;
}

.tool-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.tool-item p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #555;
}

/* Challenging Data Section */
.data-section {
    background: white;
    margin-bottom: 30px;
    padding: 40px;
    border-radius: 8px;
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/
}

.data-content {
    margin-top: 20px;
}

.data-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 250px));
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
    justify-content: center;
}

.data-image-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.data-description {
    margin-bottom: 30px;
}

.data-description h3,
.analysis-tasks h3 {
    font-size: 1.5em;
    background: linear-gradient(135deg, #1e90ff 0%, #20b2aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.data-description p {
    line-height: 1.8;
    color: #555;
}

.task-list {
    list-style: none;
    padding-left: 0;
}

.task-list li {
    padding: 15px;
    margin-bottom: 12px;
    background: #f8f9fa;
    border-left: 4px solid #1e90ff;
    border-radius: 4px;
    line-height: 1.6;
}

.task-list li strong {
    color: #1e90ff;
}

/* Real Exploration Scenario Section */
.scenario-section {
    background: white;
    margin-bottom: 30px;
    padding: 40px;
    border-radius: 8px;
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/
}

.scenario-content {
    margin-top: 20px;
}

.scenario-intro {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.scenario-images {
    margin-top: 20px;
}

.scenario-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.scenario-item {
    text-align: center;
}

.scenario-item-center {
    grid-column: 1 / -1;
    max-width: 300px;
    margin: 0 auto;
}

.scenario-item img {
    width: 150px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.scenario-item img:hover {
    transform: scale(1.05);
}

.scenario-caption {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

/* More Retrieval Results Section */
.results-section {
    background: white;
    margin-bottom: 30px;
    padding: 40px;
    border-radius: 8px;
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    magrin:auto;
    margin-top: 20px;
}



.result-item img {
    width: 180px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.result-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* What We Already Learned Section */
.learned-section {
    background: white;
    margin-bottom: 30px;
    padding: 40px;
    border-radius: 8px;
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/
}

.learned-content {
    margin-top: 20px;
}

.learned-list {
    list-style: none;
    padding-left: 0;
}

.learned-list li {
    padding: 15px 15px 15px 50px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #e0f2f7 0%, #b2dfdb 100%);
    border-radius: 8px;
    position: relative;
    line-height: 1.6;
    color: #333;
}

.learned-list li::before {
    content: "✓";
    position: absolute;
    left: 20px;
    top: 15px;
    font-size: 1.5em;
    color: #20b2aa;
    font-weight: bold;
}

/* What Still Needs Work Section */
.needs-work-section {
    background: white;
    margin-bottom: 30px;
    padding: 40px;
    border-radius: 8px;
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/
}

.needs-work-content {
    margin-top: 20px;
}

.needs-work-list {
    list-style: none;
    padding-left: 0;
}

.needs-work-list li {
    padding: 15px 15px 15px 50px;
    margin-bottom: 15px;
    background: #fff4e6;
    border-left: 4px solid #ff9800;
    border-radius: 4px;
    position: relative;
    line-height: 1.6;
    color: #333;
}

.needs-work-list li::before {
    content: "⚠";
    position: absolute;
    left: 20px;
    top: 15px;
    font-size: 1.3em;
    color: #ff9800;
}

/* Takeaways Section */
.takeaways-section {
    background: linear-gradient(135deg, #1e90ff 0%, #20b2aa 100%);
    margin-bottom: 30px;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

/* Video Section */
.video-section {
    background: white;
    margin-bottom: 30px;
    padding: 40px;
    border-radius: 8px;
}

.video-content {
    margin-top: 20px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

/* Video Preview with Play Icon */
.video-preview-link {
    position: relative;
    display: block;
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-preview-link:hover {
    transform: scale(1.02);
}

.video-preview-link img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-preview-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-image: url('assets/play-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

.video-preview-link:hover::after {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-caption {
    margin-top: 15px;
    text-align: center;
    color: #666;
    font-style: italic;
    font-size: 1.1em;
}

.takeaways-section h2 {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
    -webkit-text-fill-color: initial!important;
        border-image: initial!important;
}

.takeaways-content {
    margin-top: 20px;
}

.takeaways-content p {
    font-size: 1.1em;
    line-height: 1.8;
    color: white;
}

/* Poster Preview Section */
.poster-preview {
    text-align: center;
}

.poster-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.poster-preview img:hover {
    transform: scale(1.02);
}

.image-caption {
    margin-top: 15px;
    color: #666;
    font-style: italic;
}

/* Contact Section */
.contact-box {
    background: linear-gradient(135deg, #d4f1d4 0%, #a8e6cf 100%);
    padding: 40px;
    border-radius: 8px;
    border-left: 5px solid #20b2aa;
}

.contact-info h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #333;
}

.contact-title {
    font-size: 1.2em;
    color: #20b2aa;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-affiliation {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.contact-link {
    display: inline-block;
    color: #20b2aa;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #1e8f7a;
    transform: translateX(5px);
}

/* References Section */
.references-section {
    background: white;
    margin-bottom: 30px;
    padding: 40px;
    border-radius: 8px;
}

.references-content {
    margin-top: 20px;
}

.reference-item {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    line-height: 1.8;
}

.reference-item:last-child {
    border-bottom: none;
}

.reference-number {
    font-weight: 600;
    color: #1e90ff;
    margin-right: 10px;
}

.reference-text {
    color: #555;
}

/* Citation Links */
.citation {
    color: #1e90ff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.citation:hover {
    color: #20b2aa;
    text-decoration: underline;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-logo-link {
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
}

.footer-logo-link:hover {
    transform: translateY(-5px);
    opacity: 0.8;
}

.footer-logo {
    height: 60px;
    width: auto;
    border-radius: 4px;
}

footer p {
    opacity: 0.8;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #bbb;
}

.lightbox-caption {
    color: white;
    text-align: center;
    padding: 20px;
    max-width: 80%;
    font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    header .subtitle {
        font-size: 1.1em;
    }

    .abstract-content {
        grid-template-columns: 1fr;
    }

    section {
        padding: 25px;
    }

    section h2 {
        font-size: 1.5em;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .contact-box {
        padding: 25px;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }

    .data-images {
        grid-template-columns: 1fr;
    }

    .scenario-row {
        grid-template-columns: 1fr;
    }

    .scenario-item-center {
        max-width: 100%;
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .learned-list li,
    .needs-work-list li {
        padding-left: 40px;
    }

    .learned-list li::before,
    .needs-work-list li::before {
        left: 15px;
    }

    .footer-logos {
        gap: 20px;
    }

    .footer-logo {
        height: 50px;
    }

    .lightbox-close {
        top: 20px;
        right: 30px;
        font-size: 40px;
    }

    .lightbox-caption {
        font-size: 0.9em;
    }

    .video-caption {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .results-grid {
        grid-template-columns: 1fr;
    }

    .scenario-item img,
    .result-item img {
        height: 150px;
    }

    .tool-item img {
        height: 150px;
    }
}
