/* Root variables */
:root {
    --primary-color: #1e40af;
    --secondary-color: #7c3aed;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Navigation */
.navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.2);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.1);
}

/* Hero Section */
.hero {
    background: url('../images/background.png') center bottom/cover no-repeat;
    background-attachment: fixed;
    position: relative;
    color: var(--text-dark);
    padding: 6rem 0;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.25));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    color: var(--bg-white);
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 3px rgba(52, 41, 41, 0.5);
}

.subtitle {
    font-size: 2.5rem;
    color: var(--bg-white);
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(52, 41, 41, 0.4);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
section {
    padding: 4rem 0;
    transition: background-color 0.3s ease;
    position: relative;
}

section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

section:nth-child(odd) {
    background: var(--bg-light);
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    animation: fadeInUp 0.6s ease-out;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* About Section */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.content-grid h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Results Section */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.result-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(30, 64, 175, 0.15);
    border-left-color: var(--secondary-color);
}

.result-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Code Section */
.code pre {
    background: var(--text-dark);
    color: #e0e0e0;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.code code {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
}

/* Citation Section */
.citation pre {
    background: var(--text-dark);
    color: #e0e0e0;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.citation code {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Hero Section Extensions */
.authors {
    margin: 2rem 0 1rem;
    font-size: 1.35rem;
    color: var(--text-dark);
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.authors p {
    color: var(--text-dark);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.institutions {
    margin: 1rem 0 2rem;
    font-size: 0.85rem;
}

.institution-list {
    color: var(--text-dark);
    line-height: 1.8;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.institution-list span {
    white-space: nowrap;
}

.publication-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* Visual Example Section */
.visual-example {
    background: linear-gradient(135deg, #f0f4ff 0%, #fff7ed 100%);
    position: relative;
    overflow: hidden;
}

.visual-example::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.example-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    margin-top: 2rem;
}

.concept-image {
    max-width: 2025px;
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.concept-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.example-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
    margin-top: 3rem;
}

.example-column {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.example-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.example-column h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.example-divider {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: bold;
    justify-self: center;
}

.frd-comparison {
    display: grid;
    gap: 1rem;
}

.metric-box {
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    border-top: 4px solid;
}

.metric-box.frd-box {
    background: linear-gradient(135deg, #dbeafe 0%, #f0f9ff 100%);
    border-top-color: var(--primary-color);
}

.metric-box.fid-box {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    border-top-color: #ca8a04;
}

.metric-header {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.metric-box.fid-box .metric-value {
    color: #ca8a04;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.metric-detail {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

.action-box {
    background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 100%);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid #16a34a;
}

.action-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.action-badge.success {
    background: #16a34a;
    color: white;
}

.action-box ul {
    color: var(--text-light);
}

.action-box li {
    margin-bottom: 0.5rem;
}

/* Deep Dive Section */
.deepdive {
    background: var(--bg-white);
}

.deepdive-content {
    max-width: 900px;
    margin: 0 auto;
}

.dive-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.dive-section:last-child {
    border-bottom: none;
}

.dive-section h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.dive-section ul, .dive-section ol {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-light);
}

.dive-section li {
    margin-bottom: 0.75rem;
}

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

.feature-cat {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--secondary-color);
}

.feature-cat h4 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.algorithm-steps {
    margin: 2rem 0;
}

.step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

.finding {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-top: 3px solid var(--secondary-color);
}

.finding h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.takeaways {
    margin: 1.5rem 0;
}

.takeaway {
    background: #e0f2fe;
    border-left: 4px solid #0284c7;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
    color: #0c4a6e;
}

/* Method Section */
.method-figures, .results-figures {
    display: grid;
    gap: 3rem;
    margin-top: 3rem;
}

.method-figure, .result-figure {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.result-figure {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.figure-placeholder img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

figcaption {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Results Enhancements */
.metric {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 0.25rem;
    font-size: 0.95rem;
}

/* Interactive Visualization */
.interactive-viz {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    margin-top: 3rem;
}

.interactive-viz h3 {
    color: white;
    margin-bottom: 1rem;
}

.viz-description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.viz-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    padding: 2rem;
    margin-top: 1rem;
}

.viz-controls {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.viz-controls label {
    color: white;
    font-weight: 500;
}

.viz-canvas {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    padding: 3rem;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.viz-canvas p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.placeholder-note {
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Benchmarks Section */
.benchmarks {
    background: var(--bg-light);
}

.benchmark-tables {
    display: grid;
    gap: 3rem;
}

.benchmark-table {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.benchmark-table h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

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

.benchmark-table th,
.benchmark-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.benchmark-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
}

.benchmark-table td.best {
    background: #dcfce7;
    font-weight: 600;
    color: #166534;
}

.benchmark-table tr.avg-row {
    background: var(--bg-light);
}

/* Datasets Section */
.datasets {
    background: var(--bg-white);
}

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

.dataset-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.dataset-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.dataset-card ul {
    list-style: none;
    padding: 0;
}

.dataset-card li {
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.dataset-summary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem;
    border-radius: 0.5rem;
    text-align: center;
}

.dataset-summary h3 {
    color: white;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.stat {
    padding: 1rem;
}

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

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Applications Section */
.applications {
    background: linear-gradient(135deg, #f0f4ff 0%, #fff7ed 100%);
    position: relative;
    overflow: hidden;
}

.applications::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
    margin-top: 3rem;
}

.application-card {
    background: white;
    padding: 2.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border-top: 3px solid var(--primary-color);
}

.application-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(30, 64, 175, 0.15);
}

.app-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.application-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.application-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Code Section Enhancements */
.code-features {
    margin-top: 2rem;
}

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

.feature-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #fff5eb 100%);
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 1px solid rgba(30, 64, 175, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.12);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.feature-card h4 {
    color: var(--text-dark);
    margin: 0.75rem 0 0.5rem;
    font-size: 1rem;
}

.feature-card p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

/* Team Section */
.team {
    background: var(--bg-light);
}

.team-institutions {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.institution {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--secondary-color);
}

.institution h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.institution p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.members {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.8;
}

.members span {
    display: inline-block;
    margin-right: 0.5rem;
}

.contact-info {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
}

.contact-info h3 {
    color: white;
    margin-bottom: 1rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: white;
    font-weight: 500;
    text-decoration: underline;
}

/* FAQ Section */
.faq {
    background: var(--bg-white);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-light);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(30, 64, 175, 0.15);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: var(--bg-light);
    border: none;
    text-align: left;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.faq-question:hover {
    background: linear-gradient(90deg, rgba(30, 64, 175, 0.05) 0%, transparent 100%);
    padding-left: 2.25rem;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    font-weight: 300;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    max-height: 1500px;
}

.faq-answer p {
    padding: 0 2rem 1.5rem 2rem;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-answer a {
    color: var(--primary-color);
    font-weight: 500;
}

/* FAQ Figure Container */
.faq-figure-container {
    margin: 1.5rem 2rem 1.5rem 2rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    text-align: center;
}

.faq-figure-container img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 1rem auto;
    border-radius: 0.25rem;
}

.faq-figure-caption {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.5;
}

/* arXiv Link Styling */
.arxiv-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 0.2rem 0.6rem;
    border-radius: 0.25rem;
}

.arxiv-link:hover {
    background: rgba(30, 64, 175, 0.1);
    text-decoration: underline;
}

.arxiv-link::before {
    content: '📄';
}

/* Citation Section Enhancements */
.citation h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

.pub-link {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--secondary-color);
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pub-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
}

.pub-link strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    color: rgba(255, 255, 255, 0.7);
}

footer a {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .nav-links {
        gap: 0.75rem;
        font-size: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .authors {
        font-size: 0.95rem;
    }

    .institutions {
        font-size: 0.75rem;
    }

    .publication-badges {
        flex-direction: column;
    }

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

    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    section {
        padding: 2rem 0;
    }

    .feature-categories,
    .findings-grid,
    .datasets-grid,
    .publication-links {
        grid-template-columns: 1fr;
    }

    .benchmark-table table {
        font-size: 0.85rem;
    }

    .benchmark-table th,
    .benchmark-table td {
        padding: 0.75rem 0.5rem;
    }

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

    .viz-controls {
        flex-direction: column;
    }

    .algorithm-steps .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .example-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .example-divider {
        display: none;
    }
}


