/* ===========================================
   IDPA FLMI - Consolidated Stylesheet
   Cleaned up: removed duplicate class definitions
   =========================================== */

/* ===========================================
   1. BASE STYLES & TYPOGRAPHY
   =========================================== */

body {
    font-family: 'Agrandir', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #000000;
    text-align: center;
    padding-top: 86px;
}

/* ===========================================
   2. HEADER & NAVIGATION
   =========================================== */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    z-index: 1000;
}

header .logo {
    font-family: 'Agrandir', sans-serif;
    font-size: 46.14px;
    font-weight: bold;
    color: #000000;
    text-transform: none;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin-left: 30px;
}

header nav ul li a {
    text-decoration: none;
    color: #000000;
    font-weight: bold;
    font-size: 18.899px;
    padding-bottom: 5px;
    transition: border-bottom 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    border-bottom: 2px solid #6a11cb;
}

/* Burger Menu */
#burger-menu {
    display: none;
    cursor: pointer;
}

#burger-menu div {
    width: 25px;
    height: 3px;
    background-color: #000000;
    margin: 5px;
    transition: all 0.3s ease;
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

/* ===========================================
   3. MAIN CONTENT & SECTIONS
   =========================================== */

main {
    padding: 0 50px;
}

section {
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

section h1,
section h2,
section h3,
section h4 {
    font-family: 'Agrandir', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
}

section h1 {
    font-size: 208.331px;
    line-height: 197.914px;
    letter-spacing: -0.015em;
    text-transform: none;
    margin: 0;
}

section h2 {
    font-size: 72.094px;
    margin-bottom: 30px;
}

section h3 {
    font-size: 46.14px;
    margin-bottom: 20px;
}

section h4 {
    font-size: 30px;
    margin-bottom: 20px;
}

section p {
    font-size: 18.899px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.page-title {
    font-size: 72.094px;
    margin-bottom: 30px;
}

/* Scroll Margin for Anchor Links */
section,
h2,
h3,
h4,
.tip-box {
    scroll-margin-top: 90px;
}

/* ===========================================
   4. HERO SECTION
   =========================================== */

.hero {
    padding: 0 20px;
    min-height: calc(100vh - 86px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 90px;
    line-height: 1.1;
}

.hero h2 {
    font-size: 46.14px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 700px;
}

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

/* ===========================================
   5. BUTTONS & INTERACTIVE ELEMENTS
   =========================================== */

.button {
    display: inline-block;
    background: linear-gradient(135deg, #a777d1 0%, #4d25fc 100%);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background 0.3s ease;
}

.button:hover {
    background: linear-gradient(135deg, #8e5fb2 0%, #3a1abf 100%);
}

.search-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-bottom: 20px;
    box-sizing: border-box;
    font-size: 16px;
}

/* ===========================================
   6. SPECIAL SECTIONS (DARK, GRADIENT)
   =========================================== */

.dark-section {
    background-color: #2c2c2c;
    color: #fff;
    border-radius: 15px;
    padding: 60px;
}

.dark-section h2,
.dark-section h3,
.dark-section p {
    color: #f0f0f0;
}

.gradient-section {
    background: #f5f5f5;
    color: #333;
    border-radius: 15px;
    padding: 60px;
}

.gradient-section h2 {
    color: #333;
    margin-bottom: 20px;
}

.gradient-section h3 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3em;
    border-bottom: 2px solid rgba(77, 37, 252, 0.3);
    padding-bottom: 10px;
}

.gradient-section p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.gradient-section a {
    color: #4d25fc;
    text-decoration: underline;
}

.gradient-text {
    background: linear-gradient(135deg, #a777d1 0%, #4d25fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Introduction Question Boxes */
.intro-questions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.intro-question-box {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid #4d25fc;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.intro-question-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.intro-question-box h4 {
    color: #333;
    font-size: 1.1em;
    margin-bottom: 10px;
    line-height: 1.4;
}

.intro-question-box p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0;
}

/* ===========================================
   7. TIP BOXES & INFO BOXES
   =========================================== */

.tips {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tip-box {
    background-color: #f4f4f4;
    padding: 15px 30px 30px;
    border-radius: 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.tip-box h3 {
    background: linear-gradient(135deg, #a777d1 0%, #4d25fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tip-box-special {
    background-color: #e0e0e0;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #ccc;
    text-align: left;
}

.tip-box-special h4 {
    font-weight: bold;
    font-size: 23.624px;
}

.prompt-tip-block {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    text-align: left;
}

.prompt-tip-block h5 {
    color: #4d25fc;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.prompt-tip-block p {
    margin-bottom: 15px;
}

.prompt-tip-block pre {
    background-color: #eef;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 0.9em;
    line-height: 1.4;
    border: 1px solid #dee;
}

.prompt-tip-block pre code {
    font-family: 'Consolas', 'Monaco', monospace;
    color: #333;
}

.llm-info-box {
    background-color: #e6e0f8;
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
}

.llm-info-box p {
    color: #663399;
    font-weight: bold;
    margin: 0;
}

.placeholder-box {
    background-color: #ccc;
    border: 1px solid #999;
    border-radius: 10px;
    padding: 50px;
    margin-bottom: 20px;
}

.placeholder-box p {
    margin: 0;
    color: #666;
}

.hinweis-box {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: .25rem;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    text-align: left;
}

/* ===========================================
   8. FOOTER
   =========================================== */

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    margin-top: 50px;
    font-size: 16px;
    color: #000000;
}

footer nav ul {
    list-style: none;
    margin: 0 0 10px 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

footer nav ul li a {
    text-decoration: none;
    color: #000000;
    font-weight: normal;
    font-size: 16px;
    padding-bottom: 5px;
    transition: border-bottom 0.3s ease;
}

footer nav ul li a:hover {
    border-bottom: 2px solid #6a11cb;
}

/* ===========================================
   9. CHAT STYLES
   =========================================== */

.chat-container {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-header {
    text-align: center;
    font-size: clamp(18px, 4vw, 30px);
    margin-top: 10px;
    margin-bottom: 10px;
}

.message {
    padding: 15px 20px;
    border-radius: 20px;
    max-width: 70%;
    line-height: 1.5;
}

.message p {
    margin: 0;
    font-size: 16px;
}

.message-left {
    background-color: #e0e0e0;
    color: #000;
    align-self: flex-start;
    text-align: left;
    border-bottom-left-radius: 5px;
}

.message-right {
    background: linear-gradient(135deg, #a777d1 0%, #4d25fc 100%);
    color: #fff;
    align-self: flex-end;
    text-align: left;
    border-bottom-right-radius: 5px;
}

/* Collapsible Messages */
.collapsible-message summary {
    cursor: pointer;
    outline: none;
    list-style: none;
    position: relative;
    padding-left: 25px;
    display: flex;
    align-items: center;
}

.collapsible-message summary::before {
    content: '+';
    position: absolute;
    left: 0;
    font-size: 1.2em;
    font-weight: bold;
    color: inherit;
    transition: transform 0.2s ease-in-out;
}

.collapsible-message[open] summary::before {
    content: '-';
}

.collapsible-message .collapsible-content-wrapper {
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.collapsible-message .collapsible-content {
    padding-top: 15px;
}

.collapsible-message .collapsible-content p {
    margin: 0 0 10px 0;
    font-size: 16px;
}

/* ===========================================
   10. TABLES
   =========================================== */

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 40px;
    border: 1px solid #ddd;
    border-radius: 15px;
    overflow: hidden;
}

th,
td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

thead {
    background: linear-gradient(135deg, #a777d1 0%, #4d25fc 100%);
}

tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background-color: #f5f5f5;
}

td a {
    color: #4d25fc;
    text-decoration: none;
    font-weight: bold;
}

td a:hover {
    text-decoration: underline;
}

/* ===========================================
   11. TOPIC LINKS & CARDS
   =========================================== */

.topic-links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.topic-link {
    text-decoration: none;
    color: inherit;
    flex: 0 0 calc(50% - 10px);
    /* Two columns with 20px gap */
    max-width: calc(50% - 10px);
    /* Two columns with 20px gap */
    display: flex;
    box-sizing: border-box;
}

.topic-box {
    background-color: #f4f4f4;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #ddd;
    text-align: center;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topic-link:hover .topic-box {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.topic-box h3 {
    margin-top: 0;
    font-size: 24px;
}

.topic-box p {
    font-size: 16px;
}

.learn-more {
    display: inline-block;
    margin-top: 20px;
    font-weight: bold;
    text-decoration: underline;
}

.topic-box-special {
    background: linear-gradient(135deg, #a777d1 0%, #4d25fc 100%);
    color: #fff;
}

.topic-box-special h3,
.topic-box-special p {
    color: #fff;
}

#themen {
    margin-top: 60px;
}

.censored {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
}

/* ===========================================
   12. DIAGRAM BASE STYLES
   =========================================== */

.diagram-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 30px;
    flex-wrap: wrap;
    position: relative;
    font-family: 'Agrandir', sans-serif;
}

.diagram-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
    position: relative;
}

.diagram-node {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #4d25fc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(77, 37, 252, 0.1);
    position: relative;
    z-index: 2;
}

.diagram-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    text-align: center;
}

.summation-node {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #a777d1 0%, #4d25fc 100%);
    color: white;
    font-size: 32px;
    border: 3px solid white;
    box-shadow: 0 0 20px rgba(77, 37, 252, 0.3);
}

.bias-node {
    width: 40px;
    height: 40px;
    font-size: 12px;
    background: #f0f0f0;
    border: 2px solid #4d25fc;
}

.connection-line {
    border-top: 2px solid #ccc;
    width: 50px;
    position: relative;
}

.connection-line.thick {
    border-top-width: 4px;
}

.connection-line.dashed {
    border-top-style: dashed;
}

.weight-label {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #a777d1;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
}

.result-box {
    background: #f8f8f8;
    border: 1px solid #ddd;
    padding: 15px 25px;
    border-radius: 10px;
    font-family: monospace;
    font-weight: bold;
    color: #333;
}

.arrow-right {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid #4d25fc;
    margin: 0 10px;
}

/* ===========================================
   13. NEURAL NETWORK DIAGRAMS
   =========================================== */

.neural-network-section {
    padding: 60px 20px;
    text-align: left;
}

.nn-architecture-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 60px 0;
    padding: 40px;
    background: transparent;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nn-architecture-diagram:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(77, 37, 252, 0.12);
}

.nn-architecture-diagram svg {
    width: 100%;
    height: auto;
    max-width: 800px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}

/* ===========================================
   14. GLASSMORPHISM & PREMIUM CONTAINERS
   =========================================== */

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    border-radius: 20px;
}

.valve-interactive-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 60px 0;
    width: 100%;
    box-sizing: border-box;
    padding: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 240, 255, 0.9) 100%);
    border: 1px solid rgba(77, 37, 252, 0.1);
    box-shadow: 0 10px 30px rgba(77, 37, 252, 0.05);
    border-radius: 20px;
}

.explanation-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid #4d25fc;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.gradient-text-subtle {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===========================================
   15. VALVE INTERACTIVE ELEMENT
   =========================================== */

.valve-interactive-container h4 {
    margin-top: 0;
    margin-bottom: 30px;
}

.valve-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    height: 120px;
    position: relative;
    margin-bottom: 20px;
}

.valve-node {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #4d25fc;
    color: #4d25fc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
    font-size: 0.9em;
    position: relative;
    box-shadow: 0 4px 10px rgba(77, 37, 252, 0.1);
}

.valve-value-label {
    position: absolute;
    bottom: -35px;
    font-size: 0.85em;
    color: #333;
    font-weight: bold;
    background-color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.valve-connection-wrapper {
    flex-grow: 1;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.valve-weight-label {
    position: absolute;
    top: -20px;
    height: auto;
    width: auto;
    background: transparent;
    color: #888;
    border: none;
    box-shadow: none;
    font-weight: normal;
    padding: 0;
    font-size: 0.8em;
    z-index: 5;
    white-space: nowrap;
    line-height: normal;
}

#valve-connection {
    width: 100%;
    height: 2px;
    background-color: #4d25fc;
    transition: all 0.2s ease;
}

.valve-controls {
    margin-top: 10px;
    width: 80%;
    text-align: center;
}

input[type=range].valve-slider {
    width: 100%;
    margin: 10px 0;
    accent-color: #4d25fc;
}

/* ===========================================
   16. INTERVIEW COMPARISON SECTION
   =========================================== */

#interview-vergleich {
    text-align: left;
}

.question-block {
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.question-block h3 {
    margin-top: 0;
    color: #333;
}

.answers-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.answer {
    flex: 1;
    background-color: #e0e0e0;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.answer h4 {
    margin-top: 0;
    color: #4d25fc;
}

.answer p {
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

/* ===========================================
   17. RGB INTERACTIVE ELEMENT
   =========================================== */

.rgb-visual {
    width: 150px;
    height: 150px;
    background-color: rgb(0, 0, 0);
    margin: 0 auto;
    border-radius: 15px;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.1s;
}

.rgb-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.rgb-slider-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rgb-label {
    width: 80px;
    text-align: left;
    font-weight: bold;
}

.rgb-slider-input {
    flex-grow: 1;
    accent-color: #4d25fc;
}

.rgb-value {
    width: 40px;
    text-align: right;
    font-family: monospace;
}

.rgb-vector-display {
    margin-top: 20px;
    font-family: monospace;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    background: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
    border: 1px solid #ddd;
}

/* ===========================================
   18. UNIVERSAL HTML DIAGRAM STYLES
   =========================================== */

.html-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 40px 20px;
    position: relative;
    user-select: none;
    overflow: hidden;
}

.diagram-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    position: relative;
    width: 100%;
}

/* Nodes */
.node {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #333;
    background: white;
    border: 2px solid #ccc;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.node:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.node.circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.node.rect {
    padding: 10px 20px;
    border-radius: 8px;
    min-width: 80px;
}

.node.input {
    border-color: #4d25fc;
    color: #4d25fc;
}

.node.hidden {
    background: linear-gradient(135deg, white 0%, #f0f0f0 100%);
    border-color: #a777d1;
    color: #333;
}

.node.output {
    background: linear-gradient(135deg, #a777d1 0%, #4d25fc 100%);
    border-color: white;
    color: white;
    box-shadow: 0 4px 10px rgba(77, 37, 252, 0.2);
}

.node.highlight {
    background: #e6e0f8;
    border-color: #4d25fc;
}

.layer-label {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    color: #444;
    white-space: nowrap;
}

/* Connections */
.connector-line {
    height: 2px;
    background: #ccc;
    flex-grow: 1;
    min-width: 20px;
}

.connector-arrow {
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #ccc;
}

/* Architecture */
.architecture-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 700px;
    position: relative;
}

.layer-group {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    position: relative;
    padding: 0 20px;
}

/* Bar Charts */
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    height: 150px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.bar-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.bar {
    width: 40px;
    background: #e6e0f8;
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
    position: relative;
}

.bar.active {
    background: #4d25fc;
}

.bar-val {
    font-size: 0.8rem;
    font-weight: bold;
    color: #4d25fc;
}

/* Knob */
.knob-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #ddd;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.knob-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 4px;
    background: #4d25fc;
    transform-origin: left center;
    transform: rotate(-45deg);
    border-radius: 2px;
}

/* Matrix / Grid */
.matrix-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.matrix-cell {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    background: white;
    border: 1px solid #eee;
    border-radius: 4px;
}

.matrix-cell.highlight {
    background: #e6e0f8;
    color: #4d25fc;
    border-color: #4d25fc;
}

.math-symbol {
    font-size: 1.5rem;
    color: #999;
    font-weight: 300;
}

/* ===========================================
   19. RAG DIAGRAM
   =========================================== */

.rag-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: white;
}

.rag-user {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #4d25fc;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: black;
    z-index: 2;
}

.rag-system-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 140px;
    height: 160px;
    background: #e6e0f8;
    border: 2px solid #4d25fc;
    border-radius: 10px;
    padding: 10px;
    position: relative;
    box-sizing: border-box;
}

.rag-system-label {
    font-weight: bold;
    font-size: 14px;
    color: black;
}

.rag-db {
    width: 60px;
    height: 60px;
    background: white;
    border: 2px solid #4d25fc;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: black;
    position: relative;
    margin-bottom: 10px;
}

.rag-db::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -2px;
    right: -2px;
    height: 10px;
    border: 2px solid #4d25fc;
    background: white;
    border-radius: 50%;
}

.rag-llm {
    width: 80px;
    height: 90px;
    background: #a777d1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.rag-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: black;
    font-size: 12px;
    gap: 2px;
    min-width: 60px;
}

.rag-arrow-line {
    width: 100%;
    height: 2px;
    background: #4d25fc;
    position: relative;
}

.rag-arrow-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #4d25fc;
}

/* ===========================================
   20. TEMPERATURE DIAGRAM
   =========================================== */

.temp-scale-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    font-family: 'Agrandir', sans-serif;
    padding: 20px 0;
}

.temp-bar {
    height: 20px;
    width: 100%;
    background: linear-gradient(90deg, #4d25fc 0%, #ff4d4d 100%);
    border-radius: 10px;
    margin: 10px 0;
}

.temp-header-row {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.temp-desc-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: black;
}

.temp-text-left {
    color: #4d25fc;
    text-align: left;
}

.temp-text-right {
    color: #ff4d4d;
    text-align: right;
}

/* ===========================================
   21. AGENT ARCHITECTURE DIAGRAM
   =========================================== */

.agent-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 20px;
}

.agent-boss {
    background: linear-gradient(135deg, #a777d1 0%, #4d25fc 100%);
    color: white;
    padding: 18px 40px;
    border-radius: 30px;
    font-weight: 800;
    position: relative;
    box-shadow: 0 10px 30px rgba(77, 37, 252, 0.25);
    z-index: 2;
    font-size: 1.1em;
}

.agent-connectors {
    position: relative;
    height: 50px;
    width: 100%;
    max-width: 700px;
    margin-bottom: 0;
}

/* Vertical line from boss down to horizontal bar */
.agent-connectors::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 25px;
    background: #4d25fc;
}

/* Horizontal bar - spans from first node center to last node center */
.agent-connectors::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: #4d25fc;
}

.agent-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 700px;
    gap: 20px;
    z-index: 2;
    position: relative;
}

.agent-node {
    background: white;
    border: 1px solid rgba(77, 37, 252, 0.1);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    flex: 1;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Vertical line from horizontal bar down to each node */
.agent-node::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 25px;
    background: #4d25fc;
    z-index: 1;
}

.agent-icon {
    font-size: 24px;
    margin-bottom: 10px;
    background: #f0f0f0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #4d25fc;
}

.agent-title {
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
    color: #333;
}

.agent-sub {
    font-size: 12px;
    color: #888;
    font-style: italic;
    background: transparent;
}

/* ===========================================
   22. RESPONSIVE STYLES
   =========================================== */

/* Mobile Navigation */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    .nav-links {
        position: fixed;
        right: 0px;
        top: 0px;
        height: 100vh;
        background: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 999;
    }

    .nav-links ul {
        flex-direction: column;
        text-align: center;
        width: 100%;
        padding: 0;
    }

    .nav-links li {
        margin: 20px 0;
        opacity: 0;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    #burger-menu {
        display: block;
        position: relative;
        z-index: 1001;
    }

    main {
        padding: 0 20px;
    }

    section {
        padding: 40px 10px;
    }

    .hero {
        padding-top: 0;
        padding-bottom: 0;
    }

    section h1 {
        font-size: 100px;
        line-height: 1.1;
    }

    section h2 {
        font-size: 50px;
    }

    section h3 {
        font-size: 30px;
    }

    section p {
        font-size: 16px;
    }

    .hero h1 {
        font-size: 60px;
    }

    .hero h2 {
        font-size: 30px;
    }

    .search-input {
        padding: 10px;
        font-size: 14px;
    }

    .dark-section,
    .gradient-section {
        padding: 40px;
    }

    .message {
        max-width: 90%;
        padding: 10px 15px;
    }

    .chat-container {
        padding: 0;
    }

    .table-responsive-wrapper {
        overflow-x: auto;
    }

    .answers-container {
        flex-direction: column;
    }

    .answer {
        word-break: break-word;
    }

    .topic-link {
        flex: 0 0 calc(100% - 10px);
        max-width: calc(100% - 10px);
    }
}

@media (max-width: 500px) {
    body {
        padding-top: 80px;
    }

    section h1 {
        font-size: 80px;
    }

    section h2 {
        font-size: 40px;
    }

    section h3 {
        font-size: 25px;
    }

    .hero h1 {
        font-size: 50px;
    }

    .hero h2 {
        font-size: 25px;
    }

    .search-input {
        padding: 8px;
        font-size: 13px;
    }

    header {
        padding: 10px 15px;
    }

    .message {
        max-width: 95%;
        padding: 8px 12px;
    }

    .topic-link {
        flex: 0 0 calc(100% - 10px);
        max-width: calc(100% - 10px);
    }
}

@media (max-width: 400px) {
    section h1 {
        font-size: 60px;
    }

    section h2 {
        font-size: 35px;
    }

    section h3 {
        font-size: 22px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero h2 {
        font-size: 20px;
    }

    .search-input {
        padding: 6px;
        font-size: 12px;
    }

    .topic-link {
        flex: 0 0 calc(100% - 10px);
        max-width: calc(100% - 10px);
    }
}





.intro-network-diagram .architecture-container {
    max-width: 280px;
    /* Scaled width (700 * 0.4) */
    margin: 0 auto;
    height: 120px;
    /* Scaled height aligned with SVG (4 * (20 + 10)) */
    overflow: visible;
    /* Prevent clipping */
}

.intro-network-diagram .layer-group {
    padding: 0 !important;
    /* Remove global padding to fit scaled columns */
    gap: 10px;
    /* Vert alignment gap */
    width: 100%;
    /* Ensure column takes grid width */
}

.intro-network-diagram .node {
    border-width: 1.5px;
    font-size: 0.6em;
}

.intro-network-diagram .node.circle {
    width: 20px;
    height: 20px;
}

.intro-network-diagram .layer-label {
    font-size: 0.6em;
    /* Readable size */
    bottom: -25px;
    white-space: nowrap;
    /* No wrapping preferred if space allows */
    width: auto;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    height: auto;
}