    :root {
        --primary-color: #1a1a1a;
        --text-color: #1a1a1a;
        --accent-color: #005fcc;
        --border-color: #cccccc;
        --background-color: #ffffff;
    }

    body {
        background: var(--background-color);
        color: var(--text-color);
        font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
        margin: 0;
        padding: 0;
        transition: background 0.3s, color 0.3s;
    }

    @media (prefers-color-scheme: dark) {
        :root {
            --primary-color: #e0e0e0;
            --text-color: #e0e0e0;
            --accent-color: #4da6ff;
            --border-color: #444444;
            --background-color: #121212;
        }
    }

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

    body {
        line-height: 1.6;
    }

    .container {
        max-width: 800px;
        margin: 0 auto;
        padding: 2rem;
        position: relative;
        min-height: 100vh;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: var(--background-color);
        padding: 1rem 2rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
    }

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

    .dropdown {
        position: relative;
        display: inline-block;
    }

    .dropdown-content {
        display: none;
        position: absolute;
        right: 0;
        background-color: #f9f9f9;
        min-width: 160px;
        box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
        z-index: 1;
    }

    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }

    .dropdown-content a:hover {
        background-color: #f1f1f1
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    @media (prefers-color-scheme: dark) {
        .dropdown-content {
            background-color: var(--background-color);
            border: 1px solid var(--border-color);
        }

        .dropdown-content a {
            color: var(--text-color);
        }

        .nav .dropdown-content a:hover {
            background-color: var(--accent-color);
            color: var(--primary-color);
        }
    }

    .back-button {
        background: none;
        border: none;
        color: #666;
        cursor: pointer;
        font-size: 1rem;
        padding: 0.5rem 0;
        margin-bottom: 1rem;
        display: inline-block;
        transition: color 0.2s;
    }

    .back-button:hover {
        color: #000;
    }

    .back-button svg {
        width: 16px;
        height: 16px;
    }

    .content {
        margin-top: 4rem;
        position: relative;
        overflow: hidden;
    }

    .page {
        display: none;
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    }

    .page.active {
        display: block;
        opacity: 1;
        transform: translateX(0);
    }

    .page:not(.active) {
        position: absolute;
        width: 100%;
        transition: transform 0.3s ease-in-out;
    }

    .page.slide-in {
        transform: translateX(0);
    }

    .page.slide-out {
        transform: translateX(-100%);
    }

    .page.slide-in-from-right {
        transform: translateX(100%);
    }

    .page.slide-in-from-right.active {
        transform: translateX(0);
    }

    h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        color: var(--primary-color);
    }

    h2 {
        font-size: 1.8rem;
        margin: 2rem 0 1rem;
        color: var(--primary-color);
    }

    p {
        margin-bottom: 1.5rem;
    }

    a {
        color: var(--accent-color);
        text-decoration: none;
    }

    a:hover {
        text-decoration: underline;
    }

    .post-list {
        list-style: none;
        padding: 0;
        margin-top: 2rem;
    }

    .post-list li {
        margin-bottom: 1rem;
    }

    .post-list a {
        font-size: 1.2rem;
        color: var(--primary-color);
        text-decoration: none;
        transition: color 0.2s;
    }

    .post-list a:hover {
        color: var(--accent-color);
    }

    .post-date {
        color: #666;
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }

    img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 1rem 0;
    }

    iframe {
        border: 1px solid var(--border-color);
        border-radius: 8px;
        width: 100%;
        height: 500px;
        /* Or a more appropriate default height */
    }

    pre {
        background-color: var(--code-background);
        padding: 1rem;
        border-radius: 4px;
        overflow-x: auto;
        margin: 1rem 0;
    }

    code {
        font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
        font-size: 0.9em;
    }

    blockquote {
        border-left: 4px solid var(--accent-color);
        padding-left: 1rem;
        margin: 1rem 0;
        color: #666;
    }

    @media (max-width: 768px) {
        .container {
            padding: 1rem;
        }

        h1 {
            font-size: 2rem;
        }

        .nav {
            padding: 1rem;
        }
    }

    .about-content {
        max-width: 800px;
        margin: 0 auto;
        padding: 2rem;
    }

    .header {
        background-color: var(--primary-color);
        color: var(--text-color);
        padding: 1rem;
        text-align: center;
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .header h1 {
        margin: 0;
        font-size: 1.5rem;
    }

    .header a {
        color: var(--text-color);
        text-decoration: none;
    }

    .header a:hover {
        color: var(--accent-color);
    }

    .nav {
        margin-top: 0.5rem;
    }

    .nav a {
        color: var(--text-color);
        text-decoration: none;
        margin: 0 0.5rem;
        font-size: 0.9rem;
    }

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

    .content {
        max-width: 800px;
        margin: 0 auto;
        padding: 2rem 1rem;
    }

    .post-list {
        list-style: none;
        padding: 0;
    }

    .post-item {
        margin-bottom: 2rem;
        padding: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 4px;
        transition: transform 0.2s ease;
    }

    .post-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .post-item h2 {
        margin: 0 0 0.5rem 0;
        font-size: 1.5rem;
    }

    .post-item a {
        color: var(--text-color);
        text-decoration: none;
    }

    .post-item a:hover {
        color: var(--accent-color);
    }

    .post-date {
        color: var(--secondary-color);
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .post-content {
        margin-top: 1rem;
    }

    .post-content h1 {
        margin: 0 0 1rem 0;
        font-size: 2rem;
    }

    .post-content img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 1rem 0;
    }

    .post-content pre {
        background-color: var(--code-background);
        padding: 1rem;
        border-radius: 4px;
        overflow-x: auto;
    }

    .post-content code {
        background-color: var(--code-background);
        padding: 0.2rem 0.4rem;
        border-radius: 3px;
        font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
        font-size: 0.9em;
    }

    .back-button {
        background: none;
        border: none;
        color: var(--secondary-color);
        cursor: pointer;
        font-size: 1rem;
        padding: 0.5rem 0;
        margin-bottom: 1rem;
        display: inline-block;
        transition: color 0.2s ease;
    }

    .back-button:hover {
        color: var(--text-color);
    }

    .about-content {
        max-width: 600px;
        margin: 0 auto;
        padding: 1rem;
    }

    @media (max-width: 600px) {
        .header h1 {
            font-size: 1.2rem;
        }

        .nav a {
            font-size: 0.8rem;
            margin: 0 0.3rem;
        }

        .content {
            padding: 1rem;
        }

        .post-item h2 {
            font-size: 1.2rem;
        }

        .post-content h1 {
            font-size: 1.5rem;
        }
    }

    /* QR Tool Styles */
    #qr-output {
        margin-top: 1em;
        padding: 1em;
        border: 1px solid #ccc;
        background-color: #fff;
        display: inline-block;
    }

    #qr-output svg {
        display: block;
    }

    .controls {
        margin-bottom: 1em;
    }

    .controls input,
    .controls button {
        margin-right: 0.5em;
        margin-bottom: 0.5em;
    }

    /* AES-ECB Tool Styles */
    .image-container {
        display: flex;
        flex-direction: column;
        gap: 1em;
        margin-top: 1em;
    }

    .image-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    canvas {
        max-width: 100%;
        max-height: 80vh;
        object-fit: contain;
    }

    .file-input-label {
        cursor: pointer;
        background-color: #f0f0f0;
        color: #333;
        padding: 8px 12px;
        border-radius: 4px;
        display: inline-block;
    }

    .file-input-label:hover {
        background-color: #e0e0e0;
    }

    #image-input {
        display: none;
    }

    /* Timing Attack Demo Styles */
    #secret {
        font-family: monospace;
        font-size: 1.2em;
        color: green;
    }

    #progress {
        font-style: italic;
    }

    #charts-container {
        display: block;
    }

    .chart-container {
        display: flex;
        align-items: flex-end;
        width: 100%;
        height: 200px;
        border: 1px solid #ccc;
        padding: 10px;
        margin-top: 1em;
        margin-right: 1em;
    }

    .bar {
        flex-grow: 1;
        background-color: steelblue;
        margin: 0 1px;
        position: relative;
        text-align: center;
        color: white;
        font-size: 10px;
    }

    .bar .label {
        position: absolute;
        bottom: -15px;
        width: 100%;
        text-align: center;
        font-size: 12px;
        color: black;
    }

    @media (prefers-color-scheme: dark) {
        #secret {
            color: #4caf50;
        }

        .bar .label {
            color: #fff;
        }
    }

    /* Vibe Coded Compiler Styles */
    .vibe-compiler .section {
        margin: 20px 0;
        padding: 15px;
        background: transparent;
        border: 1px solid var(--border-color);
        border-radius: 5px;
    }

    .vibe-compiler label {
        display: block;
        margin-bottom: 5px;
        color: var(--primary-color);
        font-weight: bold;
    }

    .vibe-compiler select,
    .vibe-compiler textarea,
    .vibe-compiler input,
    .vibe-compiler button {
        font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
        font-size: 14px;
        margin: 5px 0;
    }

    .vibe-compiler select {
        width: 100%;
        padding: 8px;
        background: var(--background-color);
        color: var(--text-color);
        border: 1px solid var(--border-color);
        border-radius: 3px;
    }

    .vibe-compiler textarea {
        width: 100%;
        background: var(--code-background);
        color: var(--text-color);
        border: 1px solid var(--border-color);
        border-radius: 3px;
        padding: 10px;
        box-sizing: border-box;
    }

    .vibe-compiler input {
        width: 100%;
        padding: 8px;
        background: var(--background-color);
        color: var(--text-color);
        border: 1px solid var(--border-color);
        border-radius: 3px;
        box-sizing: border-box;
    }

    .vibe-compiler button {
        padding: 10px 20px;
        background: var(--accent-color);
        color: white;
        border: none;
        border-radius: 3px;
        cursor: pointer;
        font-weight: bold;
    }

    .vibe-compiler button:hover {
        opacity: 0.9;
    }

    .vibe-compiler button:disabled {
        background: var(--border-color);
        cursor: not-allowed;
    }

    .vibe-compiler .output {
        background: var(--code-background);
        color: var(--text-color);
        min-height: 100px;
        max-height: 300px;
        overflow-y: auto;
        white-space: pre-wrap;
        word-wrap: break-word;
        border: 1px solid var(--border-color);
        border-radius: 3px;
        padding: 10px;
    }

    .vibe-compiler .error {
        color: #d32f2f;
    }

    @media (prefers-color-scheme: dark) {
        .vibe-compiler .error {
            color: #f48771;
        }
    }

    .vibe-compiler .success {
        color: #388e3c;
    }

    @media (prefers-color-scheme: dark) {
        .vibe-compiler .success {
            color: #4ec9b0;
        }
    }

    .vibe-compiler #runSection {
        display: none;
    }

    .vibe-compiler #compilerSection {
        display: none;
    }

    .vibe-compiler #compilerSection h3 {
        color: var(--accent-color);
        margin-top: 0;
    }