/* Partially Generated by Copilot */
/* Why CIM Matters Page Specific Styles */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Prevent sections from hiding behind fixed header */
section {
    scroll-margin-top: 400px;
}

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

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Quick Navigation */
.quick-nav {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
    padding: 0 20px;
}

.quick-nav-toggle {
    display: none !important;
    background-color: white;
    color: var(--primary-color);
    border: 2px solid white;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Courier Prime', monospace;
    font-size: 16px;
    font-weight: 600;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.quick-nav-items {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-nav-btn {
    background-color: white;
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid white;
    display: inline-block;
}

.quick-nav-btn:hover {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--primary-color);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: white;
}

header h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.tagline {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

/* Scrollable Content */
.scrollable-content {
    margin-top: 0;
}

/* Section Styles */
.cim-section {
    padding: 60px 20px;
    background-color: white;
}

.cim-section.alt-bg {
    background-color: var(--light-bg);
}

.cim-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.cim-section h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    margin-top: 30px;
}

.cim-section h4 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    margin-top: 15px;
}

.cim-section h5 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

/* Content Blocks */
.content-block {
    max-width: 1100px;
    margin: 0 auto;
}

.lead,
.intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-color);
}

.lead {
    font-weight: 600;
}

/* Highlight Boxes */
.highlight-box {
    background: linear-gradient(135deg, rgba(44, 95, 45, 0.1), rgba(226, 92, 4, 0.1));
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
    border-left: 5px solid var(--secondary-color);
}

.highlight-box p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 0;
}

/* Dual Nature Section */
.dual-nature {
    margin: 40px 0;
}

.nature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.nature-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--primary-color);
}

.alt-bg .nature-card {
    background-color: white;
}

.nature-card h4 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.nature-card p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.benefit {
    background-color: var(--light-bg);
    padding: 15px;
    border-radius: 5px;
    font-style: italic;
    margin-top: 15px;
    border-left: 3px solid var(--secondary-color);
}

/* Coverage Grid */
.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.coverage-card {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--secondary-color);
    transition: transform 0.3s ease;
}

.alt-bg .coverage-card {
    background-color: white;
}

.coverage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.coverage-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.coverage-card ul {
    list-style: none;
    padding: 0;
}

.coverage-card li {
    padding: 8px 0;
    line-height: 1.6;
    border-bottom: 1px solid var(--light-bg);
}

.coverage-card li:last-child {
    border-bottom: none;
}

/* Key Point Box */
.key-point {
    background-color: var(--dark-bg);
    color: white;
    padding: 40px;
    border-radius: 8px;
    margin: 40px 0;
    border-left: 5px solid var(--secondary-color);
}

.key-point h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.key-point p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.key-point p:last-child {
    margin-bottom: 0;
}

/* Comparison Section */
.ontology-vs-instance {
    margin: 40px 0;
}

.comparison-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.comparison-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--primary-color);
}

.alt-bg .comparison-item {
    background-color: white;
}

.comparison-item h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.example-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.example-list li {
    padding: 10px 15px;
    margin-bottom: 10px;
    background-color: var(--light-bg);
    border-radius: 5px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.95rem;
}

/* Knowledge Graph Benefits */
.kg-benefits {
    margin: 40px 0;
}

.benefit-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.benefit-card {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

.alt-bg .benefit-card {
    background-color: white;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.benefit-card h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.benefit-card p {
    line-height: 1.7;
    font-size: 0.95rem;
}

/* AI Value Section */
.ai-value {
    margin: 40px 0;
}

.solution-box {
    background: linear-gradient(135deg, rgba(44, 95, 45, 0.05), rgba(226, 92, 4, 0.05));
    padding: 35px;
    border-radius: 8px;
    margin: 30px 0;
    border: 2px solid var(--primary-color);
}

.solution-box h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

.ai-benefit {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ai-benefit h5 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.ai-benefit p {
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Real World Example */
.real-world-example {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
    border-left: 5px solid var(--secondary-color);
}

.real-world-example h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.real-world-example ul {
    margin: 20px 0;
    padding-left: 25px;
}

.real-world-example li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.conclusion {
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 5px;
}

/* Problem/Solution Boxes */
.problem-solution {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.problem-box,
.solution-box-2 {
    padding: 30px;
    border-radius: 8px;
}

.problem-box {
    background-color: rgba(226, 92, 4, 0.1);
    border-left: 5px solid var(--secondary-color);
}

.solution-box-2 {
    background-color: rgba(44, 95, 45, 0.1);
    border-left: 5px solid var(--primary-color);
}

.problem-box h3,
.solution-box-2 h3 {
    margin-top: 0;
}

.problem-box ul,
.solution-box-2 ul {
    margin: 20px 0;
    padding-left: 25px;
}

.problem-box li,
.solution-box-2 li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.impact {
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: 600;
}

/* Diagram Support */
.diagram-support {
    margin: 40px 0;
}

.diagram-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.feature-card {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--accent-color);
}

.alt-bg .feature-card {
    background-color: white;
}

.feature-card h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.opportunity {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
    border-left: 5px solid var(--secondary-color);
}

/* Triple Explanation */
.triple-explanation {
    margin: 40px 0;
}

.triple-examples {
    margin: 25px 0;
    padding: 25px;
    background-color: var(--light-bg);
    border-radius: 8px;
}

.triple-example {
    margin-bottom: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 5px;
    border-left: 4px solid var(--primary-color);
}

.triple-example:last-child {
    margin-bottom: 0;
}

.triple-example code {
    display: block;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    word-break: break-all;
}

.explanation {
    font-style: italic;
    color: var(--text-color);
    margin: 0;
}

/* Storage Options */
.storage-options {
    margin: 40px 0;
}

.storage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.storage-card {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.alt-bg .storage-card {
    background-color: white;
}

.storage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.storage-card h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.storage-card ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.storage-card li {
    padding: 5px 0;
    color: var(--text-color);
}

.use-case {
    background-color: var(--light-bg);
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 15px;
    font-size: 0.9rem;
    font-style: italic;
}

/* Format Conversion */
.format-conversion {
    margin: 40px 0;
}

.conversion-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
    padding: 30px;
    background-color: var(--light-bg);
    border-radius: 8px;
}

.flow-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.flow-item strong {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
}

.arrow {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: bold;
}

.flexibility {
    margin-top: 25px;
    font-weight: 600;
}

.format-conversion ul {
    margin-top: 15px;
    padding-left: 25px;
}

.format-conversion li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* Query Power */
.query-power {
    margin: 40px 0;
}

.sparql-example {
    background-color: var(--dark-bg);
    color: white;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sparql-example h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.sparql-example pre {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 25px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 15px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sparql-example code {
    font-family: 'Source Code Pro', monospace;
    font-size: 1rem;
    line-height: 1.8;
    color: #e8f5e9;
    font-weight: 500;
}

/* SPARQL Syntax Highlighting */
.sparql-keyword {
    color: #81c784;
    font-weight: 700;
    background: none;
    background-color: transparent;
}

.sparql-variable {
    color: #ffeb3b;
    font-weight: 600;
    background: none;
    background-color: transparent;
}

.sparql-property {
    color: #64b5f6;
    background: none;
    background-color: transparent;
}

.sparql-class {
    color: #ff8a65;
    font-weight: 600;
    background: none;
    background-color: transparent;
}

.sparql-function {
    color: #ba68c8;
    font-weight: 600;
    background: none;
    background-color: transparent;
}

.sparql-string {
    color: #a5d6a7;
    background: none;
    background-color: transparent;
}

.sparql-number {
    color: #ffab91;
    background: none;
    background-color: transparent;
}

.sparql-operator {
    color: #ffffff;
    font-weight: 700;
    background: none;
    background-color: transparent;
}

.query-explanation {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 15px;
    font-size: 1.05rem;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid var(--secondary-color);
}

.power-statement {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-top: 25px;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: 8px;
    border-left: 5px solid var(--secondary-color);
}

/* CTA Section */
.cim-cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--dark-bg), var(--primary-color));
    color: white;
    text-align: center;
}

.cim-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: white;
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.cta-content .lead {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 40px;
}

.future-vision {
    margin: 40px 0;
}

.future-vision h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 25px;
}

.vision-list {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

.vision-list li {
    font-size: 1.2rem;
    padding: 15px;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    border-left: 4px solid var(--secondary-color);
    line-height: 1.7;
}

.closing {
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 40px 0;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.btn-primary,
.btn-secondary {
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

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

.btn-primary:hover {
    background-color: white;
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: white;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
}

/* Code Elements */
code {
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.9em;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile menu */
    .mobile-menu-toggle {
        display: block !important;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--primary-color);
        transition: left 0.3s ease;
        z-index: 999;
        padding-top: 60px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav a {
        display: block;
        padding: 15px 20px;
        color: white;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Quick nav mobile */
    .quick-nav {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .quick-nav-toggle {
        display: flex !important;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .quick-nav-items {
        display: none;
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        gap: 10px;
    }

    .quick-nav-items.active {
        display: flex;
    }

    .quick-nav-btn {
        width: 100%;
        text-align: center;
    }

    /* Header adjustments */
    header h1 {
        font-size: 1.8rem;
    }

    header h2 {
        font-size: 1.2rem;
    }

    /* Section adjustments */
    .cim-section {
        padding: 40px 15px;
    }

    .cim-section h2 {
        font-size: 1.8rem;
    }

    .cim-section h3 {
        font-size: 1.4rem;
    }

    /* Grid adjustments */
    .nature-grid,
    .coverage-grid,
    .comparison-row,
    .benefit-cards,
    .ai-benefits-grid,
    .problem-solution,
    .diagram-features,
    .storage-grid {
        grid-template-columns: 1fr;
    }

    /* Flow adjustments */
    .conversion-flow {
        flex-direction: column;
    }

    .flow-item {
        flex-direction: column;
        text-align: center;
    }

    .arrow {
        transform: rotate(90deg);
    }

    /* Button adjustments */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    header h2 {
        font-size: 1rem;
    }

    .cim-section h2 {
        font-size: 1.5rem;
    }

    .lead,
    .intro-text {
        font-size: 1rem;
    }

    .sparql-example code {
        font-size: 0.75rem;
    }
}
