:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #0f3460;
    --highlight: #e94560;
    --light: #f8f9fa;
    --text: #2d3436;
    --text-light: #636e72;
    --border: #dfe6e9;
}

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

body {
    font-family: 'Work Sans', sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: linear-gradient(135deg, var(--light) 0%, #e8eef2 100%);
    overflow-x: hidden;
}

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

header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    color: white;
    padding: 40px 20px;
    margin-bottom: 1em;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}


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"><rect width="100" height="100" fill="none"/><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="30" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="80" cy="60" r="2.5" fill="rgba(255,255,255,0.12)"/></svg>');
    opacity: 0.3;
    animation: float 20s linear infinite;
}

@keyframes float {
    from { transform: translateY(0); }
    to { transform: translateY(-100px); }
}

h1, header h2 {
    font-family: 'Crimson Pro', serif;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: white;
}
header h2 {
    font-size: 3em;
}

.subtitle {
    font-size: 1.3em;
    font-weight: 300;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.main-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    margin: -40px auto 40px;
    padding: 60px;
    position: relative;
    z-index: 2;
}

/* Section Navigation */
.section-nav {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 12px 20px;
    margin: -60px -60px 30px -60px;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section-nav h3 {
    color: white;
    margin: 0;
    font-size: 1.2em;
    font-weight: 500;
}

.section-nav-links {
    display: flex;
    gap: 15px;
}

.section-nav a {
    color: white;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 0.9em;
}

.section-nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

section {
    scroll-margin-top: 80px; margin-bottom: 5rem;
}

h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 2.2em;
    color: var(--primary);
    margin: 50px 0 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--highlight);
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--accent);
}

h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.6em;
    color: var(--secondary);
    margin: 35px 0 18px;
    font-weight: 600;
    scroll-margin-top: 80px;
}

h4 {
    font-size: 1.2em;
    color: var(--accent);
    margin: 25px 0 12px;
    font-weight: 600;
}

p {
    margin-bottom: 18px;
    color: var(--text);
    font-size: 1.05em;
}

ul, ol {
    margin: 20px 0 20px 25px;
}

li {
    margin-bottom: 12px;
    color: var(--text);
    line-height: 1.7;
}

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

.objective-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 5px solid var(--highlight);
    padding: 25px;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.objective-card:hover {
    transform: translateX(8px);
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.15);
}

.objective-card h4 {
    color: var(--highlight);
    margin-top: 0;
    font-size: 1.3em;
}

.info-box {
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.info-box h3 {
    color: white;
    margin-top: 0;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.info-box p {
    color: white;
}

.info-box strong {
    color: white;
}

.info-box ul {
    list-style: none;
    margin-left: 0;
}

.info-box li {
    color: white;
}

.info-box li::before {
    content: '▸';
    color: var(--highlight);
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2em;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.comparison-table th {
    padding: 18px;
    text-align: left;
    font-weight: 600;
    font-size: 1.05em;
}

.comparison-table td {
    padding: 15px 18px;
    border-bottom: 1px solid var(--border);
}

.comparison-table tbody tr:hover {
    background-color: rgba(233, 69, 96, 0.05);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.tag {
    display: inline-block;
    background: var(--highlight);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
}

.tag.success {
    background: #00b894;
}

.tag.warning {
    background: #fdcb6e;
    color: var(--primary);
}

.tag.info {
    background: var(--accent);
}

code {
    background: #f1f3f5;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--highlight);
    font-size: 0.95em;
}

.code-block {
    background: var(--primary);
    color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
    font-family: 'Courier New', monospace;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.1) 0%, rgba(233, 69, 96, 0.05) 100%);
    border-left: 5px solid var(--highlight);
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 6px;
}

footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-size: 0.95em;
}

.icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .main-content {
        padding: 40px 25px;
        margin: -30px 15px 30px;
    }

    .section-nav {
        margin: -40px -25px 30px -25px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .section-nav h3 {
        font-size: 1em;
    }

    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 1.8em;
    }

    .comparison-table {
        font-size: 0.9em;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 10px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        flex-direction: column;
    }

    .step-number {
        margin-bottom: 15px;
    }
}

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

.main-content > * {
    animation: fadeIn 0.6s ease-out;
}

.toc {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0 50px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.toc h2 {
    margin-top: 0;
    font-size: 1.8em;
    border-bottom: 2px solid var(--highlight);
    padding-bottom: 15px;
}

.toc ul {
    list-style: none;
    margin: 20px 0 0 0;
}

.toc > ul {
    margin-left: 0;
}

.toc > ul > li {
    margin-bottom: 15px;
}

.toc ul ul {
    margin-top: 10px;
    margin-left: 25px;
}

.toc ul ul li {
    margin-bottom: 8px;
}

.toc a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.toc a:hover {
    color: var(--highlight);
    transform: translateX(5px);
}

.toc > ul > li > a {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary);
}

.toc ul ul a {
    font-size: 0.95em;
    font-weight: 400;
    color: var(--text-light);
}

.page-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin: 30px 0;
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
}

.page-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.page-nav a:hover {
    background: var(--accent);
    color: white;
}

.page-nav .disabled {
    color: var(--text-light);
    pointer-events: none;
}

/* Process Flow Styles */
.process-flow {
    background: #f8f9fa;
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
}

.process-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    background: var(--highlight);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2em;
    flex-shrink: 0;
    margin-right: 20px;
}

.step-content h4 {
    margin-top: 0;
    color: var(--primary);
}

/* Case Study Styles */
.case-study {
    background: linear-gradient(135deg, #e8eef2 0%, #f8f9fa 100%);
    border: 2px solid var(--accent);
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
}

.case-study h3 {
    color: var(--accent);
    margin-top: 0;
}

/* Metrics Grid Styles */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.metric-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.metric-value {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--highlight);
    margin-bottom: 5px;
}

.metric-label {
    color: var(--text-light);
    font-size: 0.9em;
}
