@import url(https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700;900&family=Inter:wght@400;500;600;700&display=swap);
/* Reset and base styles */

:root {
    --paper-bg: #ffffff;
    --ink: #1b2430;           /* high contrast text */
    --ink-muted: #424c5f;
    --accent: #1f6feb;        /* academic blue */
    --accent-2: #0ea5e9;      /* cyan accent */
    --rule: #e6eaf2;          /* subtle divider */
    --panel: #f7f9fc;         /* soft panel */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--paper-bg);
    -webkit-font-smoothing: antialiased;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--ink);
}

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

p {
    margin-bottom: 1rem;
    color: var(--ink-muted);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
a:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 4px; }

/* Logo Animation */
.hero-logo {
    animation: spin 8s linear infinite;
    animation-play-state: running;
    transform-origin: 50% 50%;
    will-change: transform;
}

.hero-logo:hover {
    animation-play-state: paused;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-logo { animation: none; }
}

/* Navigation */
.site-header {
    background: #ffffff;
    backdrop-filter: none;
    border-bottom: 1px solid var(--rule);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: inset 0 -1px 0 var(--rule), 0 2px 24px rgba(0,0,0,0.03);
}

.navbar {
    padding: 0.75rem 0;
}

.navbar-brand h1 {
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
    margin: 0;
    color: var(--ink);
}

.navbar-nav {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.navbar-nav a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
    font-variant: small-caps;
    letter-spacing: 0.06em;
    padding: 0;
    border-radius: 0;
    background: none;
    position: relative;
}

.navbar-nav a:hover {
    color: var(--ink);
    background: none;
}

.navbar-nav a.is-active {
    color: var(--ink);
}

.navbar-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 1px;
    background: var(--rule);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease, background-color 220ms ease;
}

.navbar-nav a:hover::after,
.navbar-nav a:focus-visible::after,
.navbar-nav a.is-active::after {
    transform: scaleX(1);
    background: var(--accent);
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 0;
    color: white;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #e6efff; /* lighter than body, not as bright as heading */
    opacity: 1;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    color: #daecf7;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--ink);
}

.btn-secondary:hover {
    background: #2c3e50;
    color: white;
}

/* Research Overview */
.research-overview {
    padding: 4rem 0;
    background: var(--paper-bg);
}

.papers-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 860px;
    margin: 0 auto;
}

.paper-item {
    background: #ffffff;
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
}

.paper-item h3 {
    margin-bottom: 0.25rem;
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
    font-weight: 800;
    display: flex;
    align-items: center; /* vertical align logo and text */
    gap: 0.5rem;
    background: linear-gradient(180deg, #e3e1f1 0%, var(--panel) 100%);
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--rule);
}

.logo-bullet {
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.08));
}

.paper-item h3 a {
    color: var(--ink);
    text-decoration: none;
}

.paper-item h3 a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.paper-item .synopsis {
    margin-bottom: 0;
    color: var(--ink-muted);
    line-height: 1.7;
}

.papers-list .paper-item + .paper-item {
    border-top: none;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--ink);
}

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

.research-card {
    background: var(--panel);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--rule);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.research-card:hover {
    transform: translateY(-6px);
    border-color: #d9e2f1;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

.research-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.research-card p {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.research-card .btn {
    margin-top: auto;
}

/* Methodology Section */
.methodology {
    padding: 4rem 0;
    background: #f8f9fa;
    text-align: center;
}

.methodology p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* Research Paper Styles */
.research-paper {
    padding: 2rem 0 4rem;
    background: var(--paper-bg);
}

.research-paper h1 {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--rule);
}

.research-paper h2 {
    color: var(--ink);
    border-bottom: 1px solid var(--rule);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.research-paper h3 {
    color: #2a3344;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.research-paper p {
    margin-bottom: 1rem;
    text-align: justify;
}

.research-paper ul, .research-paper ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.research-paper li {
    margin-bottom: 0.5rem;
}

.research-paper code {
    background: #eef2f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

.research-paper pre {
    background: #eef2f9;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.research-paper pre code {
    background: none;
    padding: 0;
}

/* Footer */
.site-footer, .site-footer p, .site-footer a {
    background: #0b1020;
    color: #e6efff;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #131a2e;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; } 

/* Accessibility */
.btn:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }
