/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

/* Title section */
.title-section {
    text-align: center;
    margin-bottom: 60px;
}

.project-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 30px;
    line-height: 1.2;
}

.authors {
    margin-bottom: 15px;
}

.author {
    color: #0066cc;
    text-decoration: none;
    margin: 0 8px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.author:hover {
    color: #004499;
    text-decoration: underline;
}

.affiliation {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 400;
}

.affiliation-line {
    margin-bottom: 8px;
    line-height: 1.4;
}

.contribution-note {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 30px;
    font-style: italic;
}

.links {
    margin-top: 25px;
}

.link-button {
    display: inline-block;
    background-color: #0066cc;
    color: white;
    padding: 12px 24px;
    margin: 0 8px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.link-button:hover {
    background-color: #004499;
    transform: translateY(-2px);
}

/* Hero video section */
.hero-video {
    margin: 40px 0 60px 0;
    text-align: center;
}

.hero-video .video-container {
    max-width: 900px;
    margin: 0 auto;
}

.hero-video video {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Sections */
.section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.section-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.section-content p {
    margin-bottom: 20px;
}

.subsection-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2a2a2a;
    margin: 30px 0 15px 0;
}

/* Media placeholders */
.media-placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: 2px dashed #bbb;
    border-radius: 8px;
    padding: 60px 40px;
    text-align: center;
    margin: 25px 0;
    color: #666;
    font-style: italic;
    font-size: 1.1rem;
    transition: background 0.3s ease;
}

.media-placeholder:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #999;
}

/* Video containers */
.video-container {
    margin: 25px 0;
    text-align: center;
}

.video-container video {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 100%;
    height: auto;
    background-color: #000;
}

.video-caption {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    text-align: center;
}

/* Math formulas */
.math-formula {
    margin: 25px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

.formula-box {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    font-family: 'Times New Roman', serif;
    text-align: center;
    font-size: 1.1rem;
    color: #2a2a2a;
    line-height: 1.6;
}

.formula-explanation {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #f1f3f4;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #495057;
    font-style: italic;
    text-align: left;
}

/* Figure containers */
.figure-container {
    margin: 30px 0;
    text-align: center;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.figure-container embed {
    border: none;
    display: block;
}

.figure-caption {
    padding: 15px 20px;
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    text-align: left;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Results table */
.results-table {
    margin: 25px 0;
    overflow-x: auto;
}

.results-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.results-table th,
.results-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.results-table th {
    background-color: #0066cc;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

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

.results-table td:last-child {
    font-weight: 500;
    color: #0066cc;
}

/* Ordered list styling */
.section-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.section-content ol li {
    margin: 10px 0;
    line-height: 1.6;
}

.section-content ol li strong {
    color: #0066cc;
}

/* Comparison grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.comparison-item {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.comparison-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2a2a2a;
    margin-bottom: 15px;
}

/* Citation box */
.citation-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    overflow-x: auto;
}

.citation-box pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.citation-box code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: #333;
    background: none;
}

/* Contact */
.contact {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.contact-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.contact-link:hover {
    color: #004499;
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .project-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .author {
        display: block;
        margin: 5px 0;
    }

    .link-button {
        display: block;
        margin: 8px auto;
        text-align: center;
        max-width: 200px;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .media-placeholder {
        padding: 40px 20px;
        font-size: 1rem;
    }

    .hero-video {
        margin: 30px 0 40px 0;
    }

    .hero-video video {
        border-radius: 8px;
    }

    .video-container video {
        border-radius: 6px;
    }

    .math-formula {
        margin: 20px 0;
        padding: 15px;
    }

    .formula-box {
        padding: 12px;
        font-size: 1rem;
        margin: 12px 0;
    }

    .formula-explanation {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .project-title {
        font-size: 1.8rem;
    }

    .section-content {
        font-size: 1rem;
    }

    .media-placeholder {
        padding: 30px 15px;
    }

    .hero-video {
        margin: 20px 0 30px 0;
    }

    .video-caption {
        font-size: 0.9rem;
        margin-top: 8px;
    }

    .results-table {
        font-size: 0.9rem;
    }

    .results-table th,
    .results-table td {
        padding: 8px 10px;
    }

    .formula-box {
        font-size: 1rem;
        padding: 12px;
    }

    .figure-container embed {
        height: 400px;
    }

    .figure-caption {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* Animation and transitions */
.section {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }
.section:nth-child(6) { animation-delay: 0.6s; }
.section:nth-child(7) { animation-delay: 0.7s; }

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background-color: #0066cc;
    color: white;
}

::-moz-selection {
    background-color: #0066cc;
    color: white;
}
