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

html {
    scroll-behavior: smooth;
}

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

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

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

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

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

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

.nav-link {
    color: #6b7280;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2563eb;
}

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

.bar {
    width: 25px;
    height: 3px;
    background-color: #1f2937;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1400px;
}

.hero-content-vertical {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
    color: #1f2937;
    max-width: 100%;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .hero-title {
        white-space: normal;
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    .author-names {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .affiliations {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .hero-content-vertical {
        gap: 2rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
}

.highlight {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.authors {
    margin-bottom: 0;
    width: 100%;
    max-width: 1200px;
}

.author-names {
    font-size: 1.2rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.contact-info {
    font-size: 1rem;
    color: #2563eb;
    margin-bottom: 0;
}

.authors p {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.affiliations {
    font-size: 0.9rem;
    color: #6b7280;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: white;
    color: #2563eb;
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.framework-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: block;
}

/* Sections */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: #f8fafc;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #1f2937;
}

/* Abstract Section */
.abstract-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

.abstract-content p {
    text-align: justify;
    text-justify: inter-word;
    margin-bottom: 1.5rem;
}

.key-contributions {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.key-contributions h3 {
    color: #2563eb;
    margin-bottom: 1rem;
}

.key-contributions ul {
    list-style: none;
    padding-left: 0;
}

.key-contributions li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.key-contributions li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Method Section */
.method-overview {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 4rem;
}

.method-diagram {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.method-stages {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.stage {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #2563eb;
}

.stage-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stage-number {
    width: 40px;
    height: 40px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.stage h3 {
    color: #1f2937;
    margin: 0;
}

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

.step {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.step h4 {
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.formula {
    background: #1f2937;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    margin-top: 1rem;
    overflow-x: auto;
}

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

.reward-item {
    padding: 1.5rem;
    background: #f0f9ff;
    border-radius: 8px;
    border: 1px solid #e0f2fe;
}

.reward-item h4 {
    color: #0369a1;
    margin-bottom: 0.5rem;
}

.sr2-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sr2-step {
    padding: 1rem;
    background: #fef3c7;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

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

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

.result-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 4px solid #10b981;
}

.metric-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 0.5rem;
}

.metric-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.metric-description {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

.results-chart, .comparison-chart {
    text-align: center;
    margin: 2rem 0;
}

.chart-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.chart-caption {
    margin-top: 1rem;
    color: #6b7280;
    font-style: italic;
}

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

.ablation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.ablation-results {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ablation-item {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #e5e7eb;
}

.ablation-item.highlight {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.ablation-item h4 {
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.improvement {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: #dcfce7;
    color: #166534;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Dataset Section */
.dataset-overview {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

.dataset-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    color: #6b7280;
    font-weight: 500;
}

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

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

.example-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.dataset-download {
    text-align: center;
    margin-top: 3rem;
}

.download-info {
    margin-top: 1rem;
    color: #6b7280;
    font-style: italic;
}

/* Case Study Section */
.featured-case {
    margin-bottom: 4rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.case-analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
    align-items: start;
}

.case-visualization {
    text-align: center;
}

.case-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.case-caption {
    color: #6b7280;
    font-style: italic;
    margin: 0;
}

.case-reasoning {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.case-reasoning h4 {
    color: #2563eb;
    margin-bottom: 1rem;
}

.reasoning-steps .step {
    margin-bottom: 1.5rem;
}

.reasoning-steps h5 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.reasoning-steps ul {
    list-style: none;
    padding-left: 0;
}

.reasoning-steps li {
    padding: 0.25rem 0;
    border-left: 2px solid transparent;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}

.reasoning-steps li:hover {
    border-left-color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
}

.equation-comparison {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
}

.equation-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.equation-box {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    text-align: center;
}

.equation-box.highlight {
    border-color: #10b981;
    background: #f0fdf4;
}

.equation-box h5 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.equation {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
}

.equation-box.highlight .equation {
    background: #ecfdf5;
    color: #166534;
}

.accuracy-note {
    text-align: center;
    padding: 1rem;
    background: #ecfdf5;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
}

.accuracy-note i {
    color: #10b981;
    margin-right: 0.5rem;
}

.additional-cases {
    margin-bottom: 4rem;
}

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

.case-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.case-thumb {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.case-info h4 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.case-info p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.case-equation {
    font-family: 'Monaco', 'Menlo', monospace;
    background: #f1f5f9;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    color: #334155;
    text-align: center;
    border-left: 4px solid #2563eb;
}

.scaling-section {
    margin-top: 4rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.scaling-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.scaling-insights h4 {
    color: #2563eb;
    margin-bottom: 1rem;
}

.scaling-insights ul {
    list-style: none;
    padding-left: 0;
}

.scaling-insights li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.scaling-insights li:last-child {
    border-bottom: none;
}

.scaling-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.scaling-stats .stat {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    flex: 1;
}

.scaling-stats .stat-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.25rem;
}

.scaling-stats .stat-label {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Code Section */
.code-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.tech-stack {
    margin-top: 2rem;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-item {
    padding: 0.5rem 1rem;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.file-tree {
    background: #1f2937;
    color: #e5e7eb;
    padding: 1.5rem;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
}

.file-item {
    padding: 0.25rem 0;
    border-left: 2px solid transparent;
    padding-left: 1rem;
}

.file-item:hover {
    border-left-color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

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

.feature-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.code-download {
    text-align: center;
    margin-top: 3rem;
}

/* Citation Section */
.citation-box {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    background: #1f2937;
    border-radius: 12px;
    overflow: hidden;
}

.citation-box pre {
    margin: 0;
    padding: 2rem;
    background: none;
    color: #e5e7eb;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

.copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: #1d4ed8;
}

/* Footer */
.footer {
    background: #1f2937;
    color: #e5e7eb;
    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 {
    color: white;
    margin-bottom: 1rem;
}

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

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

.footer-section a {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        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: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .method-overview,
    .dataset-overview,
    .code-overview,
    .ablation-grid,
    .case-analysis-grid,
    .equation-row,
    .scaling-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .stage-steps {
        grid-template-columns: 1fr;
    }
    
    .reward-components {
        grid-template-columns: 1fr;
    }
    
    .results-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .example-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}