* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #6D6E71;
    background: linear-gradient(135deg, #E0E0E0 0%, #f5f5f5 100%);
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, #6D6E71 0%, #2c2c2c 100%);
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid #C41230;
    position: relative;
}

.top-nav {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    z-index: 10;
}

.cmu-logo {
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.cmu-logo:hover {
    opacity: 0.8;
}

.cmu-wordmark {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-left: 3px solid #C41230;
    padding-left: 0.75rem;
    display: inline-block;
}

header h1 {
    margin: 0;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.2rem;
    margin: 1rem 0;
    font-weight: 300;
    opacity: 0.95;
}

.authors {
    margin-top: 1.5rem;
    font-size: 1rem;
}

.equal-contribution {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Quick Links */
.quick-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #C41230 0%, #941120 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: white;
    color: #C41230;
    border: 2px solid #C41230;
}

.btn-secondary:hover {
    background: #C41230;
    color: white;
    transform: translateY(-2px);
}

/* Abstract */
.abstract {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.abstract h2 {
    color: #C41230;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.abstract p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #6D6E71;
}

/* Contributions */
.contributions {
    margin-bottom: 3rem;
}

.contributions h2 {
    color: #C41230;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

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

.contribution-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contribution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contribution-card h3 {
    color: #C41230;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.contribution-card p {
    color: #6D6E71;
    line-height: 1.6;
}

.contribution-card strong {
    color: #C41230;
}

/* Figure Sections */
.figure-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.figure-section h2 {
    color: #C41230;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.figure-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.figure-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.figure-image:hover {
    transform: scale(1.02);
}

.figure-caption {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #C41230;
}

.figure-caption p {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: #6D6E71;
}

.figure-caption p:last-child {
    margin-bottom: 0;
}

.figure-caption ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.figure-caption li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #6D6E71;
}

.figure-caption strong {
    color: #C41230;
}

/* Results */
.results {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.results h2 {
    color: #C41230;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.result-highlight {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #C41230;
}

.result-highlight:last-child {
    margin-bottom: 0;
}

.result-highlight h3 {
    color: #C41230;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.result-highlight p {
    color: #6D6E71;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.result-highlight ul {
    margin-left: 1.5rem;
    color: #6D6E71;
}

.result-highlight li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.result-highlight strong {
    color: #C41230;
}

/* Resources */
.resources {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.resources h2 {
    color: #C41230;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

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

.resource-category {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 4px solid #C41230;
}

.resource-category h3 {
    color: #C41230;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.resource-category ul {
    list-style: none;
    padding: 0;
}

.resource-category li {
    margin-bottom: 0.75rem;
}

.resource-category a {
    color: #C41230;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.resource-category a:hover {
    color: #941120;
    text-decoration: underline;
}

/* Citation */
.citation {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.citation h2 {
    color: #C41230;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.citation p {
    color: #6D6E71;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.citation-box {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #C41230;
    overflow-x: auto;
}

.citation-box pre {
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

.citation-box code {
    font-family: 'Courier New', Courier, monospace;
    white-space: pre;
}

/* Footer */
footer {
    background: #000000;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding-top: 4rem;
    }
    
    .top-nav {
        top: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
    }
    
    .cmu-wordmark {
        font-size: 0.85rem;
        padding-left: 0.5rem;
        border-left-width: 2px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .contribution-grid {
        grid-template-columns: 1fr;
    }
    
    .resource-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-links {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        text-align: center;
    }
}
