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

    body {
        overflow-x: hidden;
        font-family: "Geist Mono", monospace;
        color: white;
    }

    #canvas {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: -1;
    }

    .initial-logo {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 150px;
        opacity: 1;
        z-index: 10;
        animation: fadeOutLogo 2s ease-out 1s forwards;
    }

    @keyframes fadeOutLogo {
        0% {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
        100% {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.5);
        }
    }

    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 1.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        /* background: rgba(255, 255, 255, 0.1); */
        /* backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
        z-index: 100;
        opacity: 0;
        transform: translateY(-20px);
        animation: fadeIn 1s ease-out forwards;
    }

    .navbar .logo {
        width: 40px;
    }

    .navbar-center {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    .navbar-title {
        font-size: 1.2rem;
        font-weight: 500;
        letter-spacing: 0.1em;
    }

    .navbar-subtitle {
        font-size: 0.8rem;
        opacity: 0.8;
        margin-top: 0.2rem;
    }

    .navbar-links {
        display: flex;
        gap: 2rem;
    }

    .navbar-links a {
        color: white;
        text-decoration: none;
        font-weight: 500;
        opacity: 0.8;
        transition: opacity 0.3s;
    }

    .navbar-links a:hover {
        opacity: 1;
    }

   
    .container {
        max-width: 1200px;
        margin: 120px auto 0;
        padding: 0 2rem;
    }

    .category-title {
        font-size: 0.8rem;
        font-weight: 500;
        letter-spacing: 0.1em;
        margin-bottom: 1rem;
        opacity: 1;
        text-transform: uppercase;
        animation: fadeIn 1s ease-out forwards;


    }

    .card-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1rem;
        margin-bottom: 4rem;
        opacity: 0;
        transform: translateY(20px);
        animation: fadeIn 1s ease-out forwards;
    }

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

    .card {
        padding: 2rem;
        transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
        text-decoration: none;
        color: white;
        display: block;
        background: rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 5px;
    }

    .card:hover {
        background: rgba(0, 0, 0, 0.182);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(68, 124, 255, 0.269);
        border-color: rgba(255, 255, 255, 0.3);
    }
    .card h4 {
        font-weight: 500;
    }
    .card h2 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        font-weight: 400;
    }

    .card p {
        opacity: 0.8;
        font-size: 0.9rem;
        line-height: 1.6;
    }

    button.cloud-button {
        cursor: pointer;
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        padding: 10px 20px;
        font-family: 'Geist Mono', monospace;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 5px;
        cursor: pointer;
        transition: background 0.3s;
        opacity: 0;
        animation: fadeIn 1s ease-out 1s forwards;
    }

    button.cloud-button:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .tool-container {
        max-width: 1000px;
        margin: 7rem auto;
        padding: 2rem;
        background: rgba(0, 0, 0, 0.215);
        border-radius: 10px;
        animation: fadeIn 1s ease-out forwards;
        box-shadow: inset 0 -4px 4px rgba(0, 0, 0, 0.1), inset 0 4px 4px rgba(255, 255, 255, 0.1), inset -4px 0 10px rgba(0, 0, 0, 0.1), inset 4px 0 10px rgba(255, 255, 255, 0.1);
    }

    .tool-header {
        margin-bottom: 2rem;
        text-align: left;
    }

    .tool-header h1 {
        font-size: 2rem;
        font-weight: 400;
        margin-bottom: 0.5rem;
    }

    .tool-header p {
        opacity: 0.7;
    }

    .tool-content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    textarea {
        width: 100%;
        height: 200px;
        padding: 1rem;
        background: rgb(255, 255, 255);
        border: 1px solid rgba(58, 67, 145, 0.364);
        box-shadow: inset 0 0 2px rgb(0, 0, 0);
        border-radius: 8px;
        color: rgb(0, 0, 0);
        font-family: 'Geist Mono', monospace;
        resize: vertical;
    }

    textarea:focus {
        outline: none;
        border-color: rgba(58, 67, 145, 0.364);
    }

    .buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    button {
        padding: 0.75rem 1rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 5px;
        color: white;
        font-family: 'Geist Mono', monospace;
        cursor: pointer;
        transition: all 0.2s;
    }

    .utility-buttons {
        display: flex;
        flex-direction: row;
        justify-content: center;
        margin-top: 1rem;
        flex: 1;
        gap: 1rem;
    }

    button:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

    .home-link {
        position: fixed;
        top: 1.5rem;
        left: 1.5rem;
        padding: 0.5rem 1rem;
        background: rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 5px;
        color: white;
        text-decoration: none;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        transition: all 0.2s;
    }

    .home-link:hover {
        background: rgba(0, 0, 0, 0.2);
    }

    hr {
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .stats-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .stat-box {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 1rem;
        text-align: center;
        transition: all 0.3s;
    }

    .stat-box:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-3px);
    }

    .stat-value {
        font-size: 2rem;
        font-weight: 500;
        margin-bottom: 0.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
        opacity: 0.7;
    }

    .extra-stats {
        margin-top: 1.5rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 1.5rem;
    }

    .extra-stats h3 {
        margin-bottom: 1rem;
        font-weight: 400;
        opacity: 0.9;
    }

    .extra-stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }

    .extra-stat {
        display: flex;
        justify-content: space-between;
        margin-bottom: 0.5rem;
    }

    .extra-stat-label {
        opacity: 0.7;
    }


    hr {
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin: 1rem 0;
    }
    .text-editor {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .editor-pane {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    .editor-label {
        font-weight: 400;
        opacity: 0.6;
    }

    .format-options {
        display: flex;
        flex-direction: column;
        margin-top: 1.5rem;
        gap: 2rem;
    }

    .format-option-group {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .format-option-group h3 {
        font-weight: 400;
    }

    .format-buttons {
        display: flex;
        flex-direction: row;
        gap: 1rem;
    }

    @media screen and (max-width: 768px) {
        .card-grid {
            grid-template-columns: 1fr;
            padding: 1.5rem;
        }
        
        .navbar-links {
            gap: 1rem;
        }
        .tool-container {
            padding: 1rem;
        }

        .buttons {
            flex-direction: column;
        }
    }

    /* New styles from text-cipher.html */
    .cipher-container {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    @media (min-width: 768px) {
        .cipher-container {
            flex-direction: row;
        }
    }

    .text-panel {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .panel-label {
        font-size: 0.9rem;
        opacity: 0.7;
        margin-bottom: 0.5rem;
        font-weight: 400;
    }

    .controls {
        margin-top: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .controls-row {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
    }

    .section-titles {
        font-size: 0.9rem;
        opacity: 0.7;
        margin-bottom: 0.5rem;
        font-weight: 400;
    }
    
    .section-title {
        flex: 1;
        font-size: 0.9rem;
        opacity: 0.7;

    }

    .controls-row .controls-section {
        flex: 1;
    }

    @media (max-width: 768px) {
        .controls-row {
            flex-direction: column;
        }
        
        .section-titles {
            display: none;
        }
        
        .controls-section {
            position: relative;
            margin-bottom: 1rem;
        }
        
        .controls-section::before {
            content: attr(data-title);
            position: absolute;
            top: -1.5rem;
            left: 0;
            font-size: 0.9rem;
            font-weight: 500;
            opacity: 0.9;
        }
    }

    .controls-section {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 1.25rem 1.5rem;
    }

    .controls-section h3 {
        font-size: 1rem;
        font-weight: 400;
        margin-bottom: 1.2rem;
        opacity: 0.9;
    }

    .cipher-options {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .cipher-option {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
    }

    .cipher-option input[type="radio"] {
        appearance: none;
        -webkit-appearance: none;
        width: 1.2rem;
        height: 1.2rem;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        background: transparent;
        position: relative;
        cursor: pointer;
    }

    .cipher-option input[type="radio"]:checked::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 0.6rem;
        height: 0.6rem;
        background: white;
        border-radius: 50%;
    }

    .cipher-option label {
        cursor: pointer;
    }

    .settings-group {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .setting-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .setting-label {
        opacity: 0.8;
        width: 150px; 
        display: inline-block;
    }

    .setting-input-container {
        display: flex;
        justify-content: flex-end;
        min-width: 30px;
    }

    .setting-input {
        flex: 1;
        padding: 0.5rem 0.8rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 4px;
        color: white;
        font-family: 'Geist Mono', monospace;
        border-right: 1rem solid transparent;
    }

    .setting-input:focus {
        outline: none;
        border-color: rgba(255, 255, 255, 0.4);
    }

    .action-buttons {
        display: flex;
        gap: 1rem;
        margin-top: 1rem;
    }

    button.primary {
        background: rgba(58, 67, 145, 0.364);
        color: white;
    }

    button.primary:hover {
        background: rgba(58, 67, 145, 0.6);
    }

    .button-icon {
        margin-right: 5px;
    }

    /* Text Diff Checker Styles */
    .diff-container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    @media (min-width: 768px) {
        .diff-container {
            flex-direction: row;
        }
    }

    .diff-results {
        margin-top: 1.5rem;
        padding: 1rem;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .diff-results h3 {
        margin-bottom: 1rem;
        font-size: 1rem;
        font-weight: 500;
    }

    .diff-output {
        font-family: 'Geist Mono', monospace;
        white-space: pre-wrap;
        word-break: break-word;
        padding: 1rem;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 4px;
        min-height: 100px;
        max-height: 300px;
        overflow-y: auto;
    }

    .diff-line {
        padding: 2px 5px;
        margin: 2px 0;
        border-radius: 3px;
    }

    .diff-equal {
        color: rgba(255, 255, 255, 0.8);
    }

    .diff-add {
        color: #4caf50;
        background-color: rgba(76, 175, 80, 0.1);
        border-radius: 3px;
        display: inline-block;
        padding: 0 2px;
    }

    .diff-delete {
        color: #f44336;
        background-color: rgba(244, 67, 54, 0.1);
        border-radius: 3px;
        display: inline-block;
        padding: 0 2px;
    }

    .diff-stats {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    /* Color Picker Styles */
    .color-swatch {
        position: relative;
        transition: transform 0.2s, box-shadow 0.2s;
        width: 60px;
        height: 60px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        cursor: pointer;
    }
    
    .color-swatch:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .color-swatch::after {
        content: "Click to copy";
        position: absolute;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        opacity: 0;
        transition: opacity 0.2s;
        pointer-events: none;
        white-space: nowrap;
    }
    
    .color-swatch:hover::after {
        opacity: 1;
    }
    
    .color-info {
        font-family: 'Geist Mono', monospace;
        font-size: 0.8rem;
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 10px;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 8px;
    }
    
    .color-info-container {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    #color-palette {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    #palette-container {
        margin-top: 2rem;
        display: none;
    }
    
    #palette-container.visible {
        display: block;
    }
    
    #palette-container h3 {
        margin-bottom: 1rem;
    }
    
    #palette-buttons {
        margin-top: 20px;
        display: none;
    }
    
    @media (max-width: 768px) {
        .color-info-container > * {
            flex-basis: 100%;
        }
    }
    
    /* Image Stroke Expander Tool Styles */
    .stroke-expander-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .image-input-section {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .image-upload {
        position: relative;
        margin-bottom: 1rem;
    }

    .image-upload label {
        display: inline-block;
        padding: 10px 20px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 5px;
        color: white;
        cursor: pointer;
        transition: background 0.3s;
    }

    .image-upload label:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .image-upload input[type="file"] {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        border: 0;
    }

    .image-preview-container, 
    .result-preview-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 5px;
        padding: 1rem;
    }

    #original-preview, 
    #result-preview {
        width: 100%;
        max-height: 400px;
        object-fit: contain;
        border-radius: 3px;
        background: #1a1a1a;
    }

    @media (min-width: 768px) {
        .stroke-expander-container {
            flex-direction: row;
            flex-wrap: wrap;
        }
        
        .image-input-section,
        .controls-section {
            flex: 1;
            min-width: 300px;
        }
        
        .result-preview-container {
            width: 100%;
        }
    }

    .checkbox-container {
        display: flex;
        align-items: center;
    }

    .setting-checkbox {
        margin-right: 8px;
        cursor: pointer;
    }

    .checkbox-container label {
        cursor: pointer;
        font-size: 0.9rem;
    }

    /* New layout for image stroke expander */
    .stroke-expander-layout {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 30px;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }

    .left-panel {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .right-panel {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .image-upload-section {
        display: flex;
        flex-direction: column;
    }

    .image-upload-section label {
        margin-bottom: 10px;
        font-weight: 500;
    }

    #blend-value {
        opacity: 0.8;
        margin-left: 0.5rem;
        font-size: 0.8rem;
        align-self: center;
    }

    .settings-label, 
    .preview-label {
        font-size: 1.1rem;
        font-weight: 500;
        margin-bottom: 8px;
    }

    .settings-container {
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        padding: 20px;
    }

    .square-preview-container {
        aspect-ratio: 1/1;
        border-radius: 8px;
        background-color: rgba(0, 0, 0, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: relative;
        min-height: 400px;
    }

    .square-preview-container canvas {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        width: 100%;
        height: 100%;
    }
    
    .square-preview-container::before {
        content: "Upload an image to start";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: rgba(255, 255, 255, 0.5);
        font-size: 1rem;
        text-align: center;
        opacity: 0;
        transition: opacity 0.3s;
        pointer-events: none;
    }
    
    .square-preview-container:empty::before {
        opacity: 1;
    }

    /* Mobile responsive layout */
    @media (max-width: 768px) {
        .stroke-expander-layout {
            flex-direction: column;
        }

        .right-panel {
            order: 2;
        }

        .left-panel {
            order: 1;
        }
    }

    .image-upload-section label.utility-buttons {
        display: inline-block;
        padding: 0.75rem 1rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 5px;
        color: white;
        font-family: 'Geist Mono', monospace;
        cursor: pointer;
        transition: all 0.2s;
        text-align: center;
    }

    .image-upload-section label.utility-buttons:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }
    