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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
}

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

/* ===== Navigation ===== */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary);
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.venue-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.hero-authors {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.hero-authors .affil {
    font-size: 0.875rem;
    opacity: 0.75;
}

.equal-contrib {
    font-size: 0.8rem;
    opacity: 0.65;
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 820px;
    margin: 0 auto 3rem;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 750px;
    margin: -1.5rem auto 2.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===== Sections ===== */
.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--light-gray);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark);
}

.subsection-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

.subsection-description {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

/* ===== Overview Cards ===== */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.overview-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.overview-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

.overview-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* ===== Research Questions ===== */
.rq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.rq-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
}

.rq-number {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.rq-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

.rq-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* ===== Results Section ===== */
.results-subsection {
    margin-bottom: 4rem;
}

.chart-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.chart-container canvas {
    max-height: 400px;
}

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

.metric-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.metric-change {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: inline-block;
    margin-top: 0.5rem;
}

/* ===== Comparison Section ===== */
.comparison-intro {
    text-align: center;
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--gray);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.comparison-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

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

.comparison-card.highlight {
    border: 3px solid var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.comparison-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray);
}

.comparison-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.comparison-detail {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.comparison-method {
    font-size: 0.875rem;
    color: var(--gray);
}

/* ===== Insights Grid ===== */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.insight-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

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

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

.insight-card h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

.insight-card p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.insight-stat {
    display: inline-block;
    background: var(--light-gray);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* ===== Workflow Table ===== */
.workflow-table-container {
    overflow-x: auto;
    margin-top: 2rem;
}

.workflow-table {
    width: 100%;
    background: var(--white);
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.workflow-table thead {
    background: var(--primary);
    color: var(--white);
}

.workflow-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.workflow-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.workflow-table tbody tr:hover {
    background: var(--light-gray);
}

.workflow-table .highlight-row {
    background: rgba(99, 102, 241, 0.05);
    font-weight: 600;
}

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

.ablation-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.ablation-header {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.ablation-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.ablation-table th {
    background: var(--light-gray);
    padding: 0.6rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--dark);
}

.ablation-table td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--light-gray);
    color: var(--gray);
}

.ablation-table tr:last-child td {
    border-bottom: none;
}

.ablation-note {
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    color: var(--gray);
    line-height: 1.6;
    border-top: 1px solid var(--light-gray);
}

/* ===== About Section ===== */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

.about-text h4 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.about-text p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.about-list li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    color: var(--gray);
    line-height: 1.6;
}

.about-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.about-list strong {
    color: var(--dark);
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .metrics-grid,
    .overview-grid,
    .rq-grid,
    .comparison-grid,
    .insights-grid {
        grid-template-columns: 1fr;
    }
}

