/* Global Styles: keep palette aligned with shared.css */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #27ae60;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-size: 16px;
}

/* Landing Page */
.landing-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.landing-content {
    text-align: center;
    padding: 2rem;
}

.landing-title {
    font-size: 3rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.landing-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-weight: 400;
}

.language-selector {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.lang-btn {
    padding: 1rem 3rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

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

/* Main Content Page */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    border-radius: 12px;
}

/* Header */
.header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 2rem;
    margin-bottom: 3rem;
}

.project-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.project-note {
    background-color: var(--bg-light);
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.6;
}

.project-note strong {
    color: var(--primary-color);
    font-style: normal;
}

/* Navigation */
.nav {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.nav a {
    color: var(--secondary-color);
    text-decoration: none;
    margin-right: 1.5rem;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Section Styles */
.section {
    margin-bottom: 4rem;
}

.section-number {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

h2 {
    font-size: 2rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

h3 {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-color);
    line-height: 1.8;
}

ul, ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

li {
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

/* Blockquote */
blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-light);
    background-color: var(--bg-light);
    padding: 1rem 1.5rem;
    border-radius: 4px;
}

/* Highlighted Text */
.highlight {
    background-color: #fff9c4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

/* Code/Monospace */
code {
    font-family: 'Courier New', monospace;
    background-color: var(--bg-light);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.9em;
    color: var(--primary-color);
}

/* Lists with spacing */
.section ul li,
.section ol li {
    padding-left: 0.5rem;
}

/* Research-specific styling */
.hypothesis {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 4px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--accent-color);
}

.hypothesis strong {
    color: var(--accent-color);
}

.metric-list {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.metric-item {
    background-color: var(--bg-light);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    border-left: 3px solid var(--secondary-color);
}

.metric-item strong {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1.5rem;
    }

    .project-title {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .landing-title {
        font-size: 2rem;
    }

    .landing-subtitle {
        font-size: 1rem;
    }

    .language-selector {
        flex-direction: column;
        gap: 1rem;
    }

    .lang-btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    ul, ol {
        margin-left: 1.5rem;
    }
}

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

    .container {
        max-width: 100%;
        padding: 1rem;
    }
}

/* Picture */
.flowchart-image {
    width:  800px;
      clear:  left;
      float:  left;
      margin: 0 5px 5px 0;
      max-width: 100%;
  }