/* LinkedIn button style */
.linkedin-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 14px;
    background: #0077b5;
    color: #fff !important;
    border-radius: 4px;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s;
    font-weight: 500;
}

.linkedin-btn i {
    margin-right: 6px;
}

.linkedin-btn:hover {
    background: #005983;
    color: #fff;
}

/* 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: #2c3e50;
    background: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1400px; /* Increased from 1200px for less border */
    margin: 0 auto;
    padding: 0 12px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 16px 0;
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: #e67e22;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: #7f8c8d;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #e67e22;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-start; /* Changed from center to move content up */
    padding-top: 140px; /* Added padding to clear navbar */
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4fd 100%);
    color: #2c3e50;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    flex-direction: column; /* Stack main content and description */
    gap: 40px;
}

/* New wrapper for Title/Authors and Video */
.hero-main {
    display: grid;
    grid-template-columns: 0.8fr 1.4fr; /* Video gets more space (bigger video) */
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -2px;
    line-height: 1.1;
    background: linear-gradient(135deg, #e67e22, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    color: #34495e;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 20px; /* Slightly larger text */
    margin-bottom: 0;
    color: #57606f;
    line-height: 1.8;
    max-width: 100%; /* Full width */
    text-align: justify;
}

/* Authors Section */
.authors-section {
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 16px;
    border-left: 4px solid #3498db;
}

.authors-list {
    margin-bottom: 16px;
}

.author-names {
    font-size: 18px;
    line-height: 1.8;
    color: #2c3e50;
    font-weight: 500;
}

.author-name {
    font-weight: 600;
}

.author-names sup {
    font-size: 12px;
    color: #7f8c8d;
    margin-left: 2px;
}

.affiliations {
    font-size: 14px;
    color: #7f8c8d;
}

.affiliation {
    margin-bottom: 4px;
}

.affiliation sup {
    color: #95a5a6;
    margin-right: 6px;
}

.co-first-note {
    font-size: 14px;
    color: #7f8c8d;
    font-style: italic;
    margin: 8px 0 16px 0;
    text-align: left;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px; /* Added margin since description is moved */
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 16px;
    letter-spacing: -0.2px;
}

.btn-primary {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d35400, #e67e22);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-secondary:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.8;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Ensure it takes full grid cell */
}

.video-placeholder {
    width: 100%;
    max-width: 500px;
    height: 300px;
    background: linear-gradient(135deg, #e8f4fd, #d6eaf8);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px dashed #3498db;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    background: linear-gradient(135deg, #d6eaf8, #aed6f1);
    border-color: #2980b9;
}

.video-placeholder i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #3498db;
}

.video-placeholder p {
    font-size: 16px;
    color: #2980b9;
    font-weight: 500;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 64px;
    color: #2c3e50;
    letter-spacing: -1px;
}

/* Overview Section */
.overview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4fd 100%);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.overview-card {
    background: white;
    padding: 40px 32px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.overview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.15);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #e67e22, #f39c12);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.card-icon i {
    font-size: 24px;
    color: white;
}

.overview-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #2c3e50;
    letter-spacing: -0.5px;
}

.overview-card p {
    color: #7f8c8d;
    line-height: 1.6;
    flex-grow: 1;
    font-size: 16px;
}

/* Stats Section */
.stats {
    background: white;
    padding: 100px 0;
}

.stats-row {
    margin-bottom: 80px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
}

.stats-row:last-child {
    margin-bottom: 0;
}

.stats-row.single {
    justify-content: center;
}

.stats-row.double {
    justify-content: center;
}

.stat-content {
    text-align: center;
    max-width: 500px;
    transition: all 0.3s ease;
}

.stat-content:hover {
    transform: translateY(-4px);
}

.stat-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.stat-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.stat-content:hover img {
    transform: scale(1.02);
}

.stat-content p {
    color: #7f8c8d;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Examples Section */
.examples {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4fd 100%);
}

.examples-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 16px 32px;
    border: 2px solid #e8f4fd;
    background: white;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #7f8c8d;
    font-size: 16px;
}

.tab-btn.active,
.tab-btn:hover {
    border-color: #3498db;
    background: #3498db;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.example-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 48px;
    align-items: start;
}

.example-video .video-placeholder {
    background: linear-gradient(135deg, #e8f4fd, #d6eaf8);
    border-color: #3498db;
    color: #2980b9;
}

.example-video .video-placeholder:hover {
    background: linear-gradient(135deg, #d6eaf8, #aed6f1);
}

.example-qa h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #2c3e50;
    letter-spacing: -0.5px;
}

.qa-item {
    margin-bottom: 24px;
    padding: 24px;
    background: white;
    border-radius: 16px;
    border-left: 4px solid #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1);
}

.qa-item .question {
    margin-bottom: 12px;
    color: #34495e;
    font-weight: 500;
}

.qa-item .answer {
    color: #e67e22;
    font-weight: 600;
}

/* Benchmark Section */
.benchmark {
    background: white;
}

.benchmark-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.stat-item {
    text-align: center;
    padding: 40px 24px;
    background: linear-gradient(135deg, #f8f9fa, #e8f4fd);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.stat-item h3 {
    font-size: 48px;
    font-weight: 800;
    color: #e67e22;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.stat-item p {
    color: #7f8c8d;
    font-weight: 600;
    font-size: 16px;
}

.benchmark-table h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #2c3e50;
    letter-spacing: -0.5px;
}

.table-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 20px 24px;
    text-align: left;
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
}

th {
    background: linear-gradient(135deg, #e8f4fd, #f8f9fa);
    font-weight: 700;
    color: #2c3e50;
    font-size: 16px;
    letter-spacing: -0.2px;
}

td {
    font-size: 16px;
    color: #34495e;
}

tr.human-baseline {
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    border-top: 2px solid #27ae60;
}

tr.human-baseline td {
    font-weight: 700;
    color: #27ae60;
}

tr.best-model {
    background: linear-gradient(135deg, #e8f4fd, #f0f8ff);
}

tr.best-model td {
    font-weight: 600;
    color: #e67e22;
}

/* Download Section */
.download {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4fd 100%);
}

.download-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.download-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(52, 152, 219, 0.1);
    transition: all 0.3s ease;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.1);
    flex: 1 1 300px; /* Allow growing and shrinking, base 300px */
    max-width: 400px; /* Limit maximum width */
}

.download-card:hover {
    border-color: #3498db;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.15);
}

.download-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.download-icon i {
    font-size: 24px;
    color: white;
}

.download-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #2c3e50;
    letter-spacing: -0.5px;
}

.download-card p {
    color: #7f8c8d;
    margin-bottom: 24px;
    line-height: 1.6;
    flex-grow: 1;
    font-size: 16px;
}

.download-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 14px;
}

.download-info .size {
    color: #e67e22;
    font-weight: 700;
}

.download-info .format {
    color: #7f8c8d;
}

.download-btn {
    width: 100%;
    justify-content: center;
}

/* People Section */
.people {
    background: white;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Increased from 200px */
    gap: 24px;
    max-width: 1200px; /* Increased from 1000px */
    margin: 0 auto;
}

.person-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.person-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.15);
}

.person-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 24px;
    border: 4px solid #e8f4fd;
    transition: all 0.3s ease;
}

.person-card:hover .person-image {
    border-color: #3498db;
    transform: scale(1.05);
}

.person-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2c3e50;
    letter-spacing: -0.5px;
}

.person-card p {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 4px;
}

.person-card .affiliation {
    color: #3498db;
    font-weight: 600;
    font-size: 14px;
}

/* Citation Section */
.citation {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4fd 100%);
}

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

.citation-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.1);
    position: relative;
}

.citation-box pre {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #2c3e50;
    overflow-x: auto;
    margin-bottom: 24px;
    border: 1px solid #e8f4fd;
}

.copy-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    font-size: 14px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 64px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 24px;
    color: white;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 16px;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 32px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-main {
        grid-template-columns: 1fr; /* Stack on mobile */
        text-align: center;
        gap: 48px;
    }
    
    .hero-container {
        gap: 32px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .example-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .examples-tabs {
        flex-direction: column;
        align-items: start;
    }

    .tab-btn {
        width: 200px;
    }

    .table-container {
        overflow-x: auto;
    }

    table {
        min-width: 600px;
    }

    .section-title {
        font-size: 36px;
    }

    .stats-row {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 60px;
    }

    .stats-row.double {
        flex-direction: column;
    }

    .stat-content {
        max-width: 100%;
    }

    .people-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }

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

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

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

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

/* Loading animation for download buttons */
.download-btn.loading {
    position: relative;
    color: transparent;
}

.download-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Specific animation for stat items */
.stat-content.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.stat-content.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}