/* ===== Root Variables ===== */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --bg-white: #ffffff;
    --bg-gray: #f9fafb;
    --bg-light: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* ===== Navigation ===== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-logo img {
    border-radius: 8px;
}

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

.nav-links a {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

/* ===== Hero Section ===== */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    margin-top: 60px;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-logo {
    width: auto;
    height: 80px;
    max-width: 90%;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.5;
}

.hero-authors {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.hero-authors a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.hero-authors a:hover {
    border-bottom-color: white;
}

.affiliations {
    margin-top: 0.5rem;
    opacity: 0.9;
    font-size: 1rem;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

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

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

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ===== Abstract Section ===== */
.abstract-section {
    background: var(--bg-gray);
}

.abstract-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
}

.abstract-content p {
    margin-bottom: 1.5rem;
}

.abstract-highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.metric {
    text-align: center;
    padding: 1rem;
}

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

.metric-improvement {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-medium);
    line-height: 1.4;
}

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

.contribution-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
}

.contribution-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

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

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

.contribution-card p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* ===== Method Section ===== */
.method-section {
    background: var(--bg-gray);
}

.method-content {
    max-width: 1100px;
    margin: 0 auto;
}

.method-diagram {
    text-align: center;
    margin-bottom: 4rem;
}

.diagram-img {
    width: 100%;
    max-width: 1000px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1rem;
}

.diagram-caption,
.workflow-caption,
.table-caption,
.chart-caption {
    color: var(--text-medium);
    font-size: 0.95rem;
    font-style: italic;
    margin-top: 1rem;
}

.method-description {
    margin-bottom: 4rem;
}

.method-description h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.agent-roles {
    display: grid;
    gap: 2rem;
}

.agent-role {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.agent-role h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.agent-role p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.method-features {
    margin-top: 4rem;
}

.method-features h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.workflow-img {
    width: 100%;
    max-width: 800px;
    display: block;
    margin: 0 auto 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

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

.feature-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-item p {
    color: var(--text-medium);
    line-height: 1.6;
}

/* ===== Results Section ===== */
.results-content {
    max-width: 1100px;
    margin: 0 auto;
}

.results-table,
.results-breakdown {
    margin-bottom: 4rem;
}

.results-table h3,
.results-breakdown h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.table-img,
.chart-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1rem;
}

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

.highlight-box {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.highlight-box h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.highlight-box ul {
    list-style: none;
    margin-bottom: 1rem;
}

.highlight-box li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
}

.highlight-box li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.insight {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    color: var(--text-medium);
    font-style: italic;
    border-left: 3px solid var(--accent-color);
}

/* ===== Collaboration Section ===== */
.collaboration-section {
    background: var(--bg-gray);
}

.collaboration-content {
    max-width: 1100px;
    margin: 0 auto;
}

.collaboration-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
}

.collaboration-insights {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.collaboration-insights h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.collaboration-insights p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.collaboration-insights ul {
    list-style: none;
    margin: 1.5rem 0;
}

.collaboration-insights li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-dark);
}

.collaboration-insights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.insight-text {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 500;
    border-left: 4px solid var(--primary-color);
}

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

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

.paper-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
}

.paper-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.link-icon {
    font-size: 3rem;
}

.link-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.link-content p {
    color: var(--text-medium);
}

.citation-box {
    background: var(--bg-gray);
    padding: 2rem;
    border-radius: 12px;
    position: relative;
}

.citation-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.citation-box pre {
    background: var(--text-dark);
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.copy-btn {
    position: absolute;
    top: 4.5rem;
    right: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.copy-btn:hover {
    background: var(--primary-dark);
}

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

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

.team-member {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.member-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.member-affiliation {
    color: var(--text-medium);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.member-email {
    color: var(--primary-color);
    font-size: 0.95rem;
}

.acknowledgments {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.acknowledgments h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.acknowledgments p {
    color: var(--text-medium);
    line-height: 1.7;
}

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

.footer p {
    margin: 0.5rem 0;
}

.footer a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-light);
}

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

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .abstract-highlight {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contributions-grid,
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .results-highlights {
        grid-template-columns: 1fr;
    }
    
    .copy-btn {
        position: static;
        margin-top: 1rem;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-logo {
        height: 60px;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}
