.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Section Styles */
.content-section {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.content-section:hover {
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.4);
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    animation: shimmer 3s infinite linear;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

h2::before {
    content: '▸';
    color: var(--secondary-color);
    font-size: 1.5rem;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--secondary-color);
    padding-left: 1rem;
    border-left: 3px solid var(--secondary-color);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: rgba(236, 236, 236, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.feature-card h4 {
    color: var(--primary-light);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}


/* Code Blocks */
.code-block {
    background: rgba(208, 208, 208, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.95rem;
    overflow-x: auto;
    position: relative;
}

.code-block::before {
    content: 'MATRIX';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 1px;
}

pre {
    color: var(--secondary-color);
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Math Formulas */
.math-formula {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(34, 211, 238, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.math-formula::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.03) 50%, transparent 70%);
    animation: shine 3s infinite;
}

/* Step Indicator */
.step {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: rgb(0, 0, 0);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

/* FAQ Section */
.faq-item {
    background: rgb(249 249 249 / 30%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.faq-item:hover {
    border-color: var(--secondary-color);
}

.faq-question {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.faq-question::before {
    content: 'Q: ';
    color: var(--primary-light);
    font-weight: 800;
}

.faq-answer {
    color: var(--text-secondary);
    padding-left: 1.5rem;
}

.faq-answer::before {
    content: 'A: ';
    color: var(--success-color);
    font-weight: 600;
    margin-left: -1.5rem;
    margin-right: 0.5rem;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.1), rgba(99, 102, 241, 0.1));
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.highlight-box strong {
    color: var(--accent-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes shine {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .content-section {
        padding: 1.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}



        .table-of-contents {
            background: white;
            padding: 2rem;
            margin: 2rem auto;
            max-width: 1200px;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        
        .table-of-contents h2 {
            text-align: center;
            color: #2c3e50;
            margin-bottom: 1.5rem;
        }
        
        .toc-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-top: 1.5rem;
        }
        
        .toc-item {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 1rem;
            text-align: center;
            border-radius: 8px;
            text-decoration: none;
            transition: transform 0.3s, box-shadow 0.3s;
            font-weight: 500;
        }
        
        .toc-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
        }
        
        h2 {
            color: #2c3e50;
            margin-bottom: 1.5rem;
            padding-bottom: 0.5rem;
            border-bottom: 3px solid #667eea;
            font-size: 2rem;
        }
        
        h3 {
            color: #34495e;
            margin: 2rem 0 1rem;
            font-size: 1.5rem;
        }
        
        h4 {
            color: #495057;
            margin: 1.5rem 0 0.5rem;
            font-size: 1.2rem;
        }
        
        .intro-box {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            padding: 2rem;
            border-radius: 10px;
            border-left: 5px solid #667eea;
            margin-bottom: 2rem;
        }
        
        .cta-box {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 2.5rem;
            border-radius: 15px;
            text-align: center;
            margin: 3rem auto;
            max-width: 800px;
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
        }
        
        .cta-box h3 {
            font-size: 2rem;
            margin-bottom: 1rem;
            color: white;
        }
        
        .cta-button {
            background: white;
            color: #667eea;
            padding: 1rem 2.5rem;
            border: none;
            border-radius: 50px;
            font-size: 1.1rem;
            cursor: pointer;
            font-weight: bold;
            transition: transform 0.3s, box-shadow 0.3s;
            margin-top: 1rem;
        }
        
        .cta-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }
        
        .definition-box {
            background: #f8f9fa;
            border: 2px solid #dee2e6;
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
        }
        
        .definition-box h4 {
            color: #667eea;
            margin-top: 0;
        }
        
        .example-box {
            background: #fff;
            border: 2px solid #667eea;
            border-radius: 8px;
            padding: 1.5rem;
            margin: 2rem 0;
        }
        
        .example-header {
            background: #667eea;
            color: white;
            padding: 0.5rem 1rem;
            margin: -1.5rem -1.5rem 1rem;
            border-radius: 6px 6px 0 0;
            font-weight: bold;
        }
        
        .math-container {
            background: #f8f9fa;
            padding: 1.5rem;
            border-radius: 8px;
            margin: 1rem 0;
            overflow-x: auto;
            text-align: center;
        }
        
        math {
            font-size: 1.1em;
            display: inline-block;
            margin: 0.5rem;
        }
        
        .theorem-box {
            background: #fef9e7;
            border-left: 5px solid #f39c12;
            padding: 1.5rem;
            margin: 2rem 0;
        }
        
        .theorem-box h4 {
            color: #e67e22;
            margin-top: 0;
        }
        
        .comparison-table {
            width: 100%;
            border-collapse: collapse;
            margin: 2rem 0;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .comparison-table th {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 1rem;
            font-weight: 600;
        }
        
        .comparison-table td {
            padding: 0.8rem;
            border: 1px solid #dee2e6;
            text-align: center;
            background: white;
        }
        
        .comparison-table tr:nth-child(even) td {
            background: #f8f9fa;
        }
        
        .properties-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }
        
        .property-card {
            background: white;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 1.5rem;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            transition: transform 0.3s, box-shadow 0.3s;
        }
        
        .property-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }
        
        .property-card h4 {
            color: #667eea;
            margin-top: 0;
        }
        
        .application-section {
            background: #f0f4f8;
            padding: 2rem;
            border-radius: 10px;
            margin: 2rem 0;
        }
        
        .application-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin-top: 1.5rem;
        }
        
        .app-card {
            background: white;
            padding: 1.5rem;
            border-radius: 8px;
            border-top: 4px solid #667eea;
        }
        
        .app-card h4 {
            color: #667eea;
            margin-top: 0;
        }
        
        
        
        .steps-list {
            counter-reset: step-counter;
            list-style: none;
            margin-left: 0;
        }
        
        .steps-list li {
            counter-increment: step-counter;
            position: relative;
            padding-left: 3rem;
            margin-bottom: 1rem;
        }
        
        .steps-list li::before {
            content: counter(step-counter);
            position: absolute;
            left: 0;
            top: 0;
            background: #667eea;
            color: white;
            width: 2rem;
            height: 2rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }

        #properties{
            overflow: auto;
        }
            
        .note {
            background: #e8f4fd;
            border-left: 4px solid #3498db;
            padding: 1rem;
            margin: 1rem 0;
            font-style: italic;
        }
        
        .warning {
            background: #fef5e7;
            border-left: 4px solid #f39c12;
            padding: 1rem;
            margin: 1rem 0;
        }
        
        @media (max-width: 768px) {
            
            math {
                font-size: 0.9em;
            }
            
            .toc-grid {
                grid-template-columns: 1fr;
            }
        }