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

:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --accent-color: #10b981;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #cbd5e1;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    background: var(--dark-bg);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand i {
    color: var(--accent-color);
}

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

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    background: var(--gradient-1);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.stat-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,255,255,0.3);
}

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

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

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

.section-dark {
    background: var(--dark-bg);
    color: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-dark .section-title {
    color: white;
}

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

.overview-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.overview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

/* Results Section */
.results-box {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.results-box h3 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.result-item {
    background: rgba(255,255,255,0.08);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.result-item.highlight {
    background: var(--accent-color);
    box-shadow: 0 5px 20px rgba(16,185,129,0.3);
}

.result-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.result-badge {
    background: rgba(255,255,255,0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.metric-card {
    background: rgba(255,255,255,0.08);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.metric-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.metric-desc {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Findings List */
.findings-box {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.findings-list {
    list-style: none;
}

.findings-list li {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.findings-list i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Pipeline */
.pipeline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 15px;
}

.pipeline-step {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 180px;
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 1rem;
    font-size: 1.2rem;
}

.step-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.step-content p {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.pipeline-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

.badge {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
}

.badge-success {
    background: var(--accent-color);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-box h3 {
    margin-bottom: 1rem;
}

.feature-box ul {
    list-style: none;
}

.feature-box li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.feature-box li:last-child {
    border-bottom: none;
}

/* Tech Stack */
.tech-stack {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 3rem;
}

.tech-stack h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.tech-badge {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.tech-badge:hover {
    transform: translateY(-5px);
}

.tech-badge i {
    font-size: 2rem;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

/* Dataset Section */
.dataset-info {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.dataset-header {
    text-align: center;
    margin-bottom: 2rem;
}

.dataset-subtitle {
    opacity: 0.8;
    margin-top: 0.5rem;
}

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

.dataset-stat {
    background: rgba(255,255,255,0.08);
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.stat-num {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
}

.stat-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

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

.modality-card {
    background: rgba(255,255,255,0.08);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.modality-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.modality-card h5 {
    margin-bottom: 0.5rem;
}

.modality-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

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

.viz-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.viz-header {
    background: var(--gradient-1);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.viz-placeholder {
    padding: 3rem 2rem;
    text-align: center;
    background: #f8fafc;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.viz-placeholder p {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.viz-placeholder small {
    color: #64748b;
    font-style: italic;
}

.viz-image {
    padding: 0;
    background: white;
}

.viz-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0 0 15px 15px;
}

.viz-caption {
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
    background: #f8fafc;
    margin: 0;
    border-radius: 0 0 15px 15px;
}

.notebook-link {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.notebook-link i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.notebook-link a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
}

.notebook-link a:hover {
    text-decoration: underline;
}

/* Q&A Grid */
.qa-grid {
    display: grid;
    gap: 2rem;
}

.qa-card {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.question {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.question i {
    color: var(--primary-color);
    margin-top: 3px;
}

.answer {
    padding-left: 2rem;
    opacity: 0.9;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.answer i {
    color: var(--accent-color);
    margin-top: 3px;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-links {
    list-style: none;
}

.contact-links li {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.contact-links i {
    color: var(--primary-color);
    margin-right: 10px;
}

.contact-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
}

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

.acknowledgments {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
}

.acknowledgments h3 {
    margin-bottom: 1rem;
}

.acknowledgments p {
    margin-bottom: 1rem;
}

.license {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.ethics-note {
    background: #fef3c7;
    color: #92400e;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #f59e0b;
}

.ethics-note i {
    color: #f59e0b;
    margin-right: 10px;
}

.crisis-resources {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #fbbf24;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.crisis-resources span {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
}

.footer-quote {
    font-style: italic;
    opacity: 0.7;
    margin-top: 0.5rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pipeline {
        flex-direction: column;
    }
    
    .pipeline-arrow {
        transform: rotate(90deg);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}
