/* ===========================
   CSS Variables
   =========================== */
:root {
    --primary-color: #0d9488;
    --secondary-color: #14b8a6;
    --accent-color: #06b6d4;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-white: #ffffff;
    --bg-light: #f0fdfa;
    --bg-alt: #ccfbf1;
    --border-color: #e2e8f0;
    --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);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

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

strong {
    color: var(--text-dark);
    font-weight: 600;
}

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

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

/* ===========================
   Header
   =========================== */
.header {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #14b8a6 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.header .container {
    position: relative;
    z-index: 1;
}

.logo-container {
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: white;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.conference-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem auto;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.badge-icon {
    font-size: 2rem;
    line-height: 1;
}

.badge-content {
    text-align: left;
}

.badge-highlight {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.conference-name {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.authors {
    margin: 2rem 0;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.author-list {
    margin-bottom: 1rem;
}

.author {
    display: inline-block;
    margin: 0 0.75rem;
    font-size: 1.125rem;
    color: white;
}

.affiliations {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
}

.affiliations p {
    margin: 0.25rem 0;
    color: rgba(255, 255, 255, 0.9);
}

.links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    font-size: 1rem;
}

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

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

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid white;
}

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

.icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* ===========================
   Navigation
   =========================== */
.nav {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.5s ease-out;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.nav-list a {
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: var(--transition);
}

.nav-list a:hover {
    color: var(--primary-color);
    background-color: var(--bg-alt);
}

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

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.25rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.content-box {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    transition: var(--transition);
}

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

.section-alt .content-box {
    background-color: var(--bg-white);
}

/* ===========================
   Stats Grid
   =========================== */
.benchmark-overview {
    margin-bottom: 3rem;
}

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

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

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

.stat-label {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 500;
}

/* ===========================
   Feature Grid
   =========================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

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

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

.feature-item p {
    color: var(--text-light);
    font-size: 0.9375rem;
}

.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}

.feature-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    font-size: 1.0625rem;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ===========================
   Images
   =========================== */
.image-container {
    margin: 2rem 0;
    text-align: center;
}

.figure {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.figure:hover {
    box-shadow: var(--shadow-xl);
    transform: scale(1.01);
}

.caption {
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: var(--text-light);
    font-style: italic;
}

/* ===========================
   Capability List
   =========================== */
.capability-list {
    margin-top: 2rem;
}

.capability-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: var(--bg-white);
    border-radius: 0.75rem;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.capability-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.capability-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.capability-content h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.capability-content p {
    margin: 0;
    color: var(--text-light);
}

/* ===========================
   Agent Grid
   =========================== */
.agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.agent-card {
    padding: 1.75rem;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.05), rgba(20, 184, 166, 0.05));
    border-radius: 0.75rem;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
}

.agent-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.agent-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.agent-card p {
    margin: 0;
    font-size: 0.9375rem;
}

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

.result-card {
    background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 2px solid #99f6e4;
    transition: var(--transition);
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.result-card h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

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

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

/* ===========================
   Citation
   =========================== */
.citation-box {
    background-color: var(--bg-alt);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.citation-box code {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-dark);
    white-space: pre;
    display: block;
}

.contact-list {
    list-style: none;
    margin-top: 1rem;
}

.contact-list li {
    padding: 0.5rem 0;
    font-size: 1.0625rem;
}

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

.footer p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 1rem;
    }

    .title {
        font-size: 1.75rem;
    }

    .section {
        padding: 3rem 0;
    }

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

    .content-box {
        padding: 1.5rem;
    }

    .stat-grid,
    .feature-grid,
    .agent-grid,
    .results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .nav-list {
        gap: 0.5rem;
        padding: 0.75rem 0;
    }

    .nav-list a {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }

    .links {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .author {
        display: block;
        margin: 0.5rem 0;
    }

    .capability-item {
        flex-direction: column;
        text-align: center;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .metric {
        font-size: 1.5rem;
    }

    .conference-badge {
        flex-direction: row;
        padding: 0.875rem 1.25rem;
        gap: 0.75rem;
    }

    .badge-icon {
        font-size: 1.5rem;
    }

    .badge-highlight {
        font-size: 1rem;
    }

    .conference-name {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 120px;
    }

    .title {
        font-size: 1.5rem;
    }

    .header {
        padding: 3rem 0 2rem;
    }
}

/* ===========================
   Print Styles
   =========================== */
@media print {
    .nav,
    .footer {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }
}
