 /* Base styles that match your existing website */
        :root {
            --primary-color: #212529;
            --secondary-color: #495057;
            --accent-color: #6c757d;
            --highlight-color: #00ccff;
            --success-color: #4CAF50;
            --warning-color: #FFC107;
            --danger-color: #F44336;
            --text-color: #333333;
            --light-bg: #f8f9fa;
            --dark-bg: #212529;
            --border-radius: 4px;
            --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            --transition-speed: 0.3s;
        }

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

        body {
            font-family: "Times New Roman", Times, serif;
            font-style: italic;
            line-height: 1.6;
            color: var(--text-color);
            background-color: var(--light-bg);
            position: relative;
        }

        .cyber-visualization {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            pointer-events: none;
            opacity: 0.35;
        }

        .binary-bg {
            position: absolute;
            width: 100%;
            height: 100%;
            bottom: 0;
            left: 0;
            background-size: cover;
            opacity: 0.015;
            z-index: 0;
            pointer-events: none;
            background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MDAiIGhlaWdodD0iNDAwIiB2aWV3Qm94PSIwIDAgNDAwIDQwMCI+CiAgPHN0eWxlPgogICAgdGV4dCB7IGZvbnQtZmFtaWx5OiBtb25vc3BhY2U7IGZvbnQtc2l6ZTogMTBweDsgZmlsbDogIzMzMzsgfQogIDwvc3R5bGU+CiAgPGcgaWQ9ImJpbmFyeSI+CiAgICA8dGV4dCB4PSIxMCIgeT0iMTAiPjAxMTAwMTAxPC90ZXh0PgogICAgPHRleHQgeD0iNjAiIHk9IjEwIj4xMTAwMTExMDwvdGV4dD4KICAgIDx0ZXh0IHg9IjExMCIgeT0iMTAiPjAxMDAxMDExPC90ZXh0PgogICAgPHRleHQgeD0iMTYwIiB5PSIxMCI+MTEwMTAxMDA8L3RleHQ+CiAgICA8dGV4dCB4PSIyMTAiIHk9IjEwIj4wMTEwMTEwMTwvdGV4dD4KICAgIDx0ZXh0IHg9IjI2MCIgeT0iMTAiPjExMTAxMDAxPC90ZXh0PgogICAgPHRleHQgeD0iMzEwIiB5PSIxMCI+MDExMDAwMTA8L3RleHQ+CiAgICA8dGV4dCB4PSIzNjAiIHk9IjEwIj4xMDAxMDExMTwvdGV4dD4KICAgIAogICAgPHRleHQgeD0iMTAiIHk9IjMwIj4xMDExMDAxMDwvdGV4dD4KICAgIDx0ZXh0IHg9IjYwIiB5PSIzMCI+MDAxMDExMDE8L3RleHQ+CiAgICA8dGV4dCB4PSIxMTAiIHk9IjMwIj4xMTAxMDAwMTwvdGV4dD4KICAgIDx0ZXh0IHg9IjE2MCIgeT0iMzAiPjAxMDExMTAwPC90ZXh0PgogICAgPHRleHQgeD0iMjEwIiB5PSIzMCI+MDEwMDAxMTE8L3RleHQ+CiAgICA8dGV4dCB4PSIyNjAiIHk9IjMwIj4xMTAxMDExMDwvdGV4dD4KICAgIDx0ZXh0IHg9IjMxMCIgeT0iMzAiPjAxMDAxMDAwPC90ZXh0PgogICAgPHRleHQgeD0iMzYwIiB5PSIzMCI+MTExMDAxMDE8L3RleHQ+CiAgPC9nPgo8L3N2Zz4=');
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
            position: relative;
            z-index: 1;
        }

        /* Cyber Design Elements */
        .cyber-accent {
            position: relative;
        }

        .cyber-accent::before {
            content: "";
            position: absolute;
            height: 2px;
            width: 60px;
            background-color: var(--secondary-color);
            bottom: -12px;
            left: 0;
        }

        .cyber-accent::after {
            content: "";
            position: absolute;
            height: 2px;
            width: 30px;
            background-color: #adb5bd;
            bottom: -12px;
            left: 70px;
        }

        .cyber-line {
            position: absolute;
            width: 1px;
            background-color: rgba(73, 80, 87, 0.1);
            z-index: 0;
        }

        .cyber-line-left {
            left: 15%;
            top: 0;
            height: 100%;
        }

        .cyber-line-right {
            right: 15%;
            top: 0;
            height: 100%;
        }

        .cyber-dots {
            position: absolute;
            top: 40px;
            right: 40px;
            width: 180px;
            height: 180px;
            z-index: 0;
            opacity: 0.08;
        }

        .cyber-dots::before {
            content: "";
            position: absolute;
            width: 100%;
            height: 100%;
            background-image: radial-gradient(var(--secondary-color) 2px, transparent 2px);
            background-size: 18px 18px;
        }

        /* Header styles */
        header {
            background-color: var(--primary-color);
            color: white;
            padding: 15px 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        header:after {
            content: "";
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 24px;
            font-weight: bold;
            display: flex;
            align-items: center;
        }

        .logo i {
            margin-right: 10px;
            color: #adb5bd;
        }

        .nav-links {
            display: flex;
            list-style: none;
        }

        .nav-links li {
            margin-left: 30px;
        }

        .nav-links a {
            color: white;
            font-weight: 500;
            position: relative;
            text-decoration: none;
        }

        .nav-links a:after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 1px;
            background-color: white;
            transition: width 0.3s;
        }

        .nav-links a:hover {
            color: white;
        }

        .nav-links a:hover:after {
            width: 100%;
        }

        .mobile-menu-btn {
            display: none;
            cursor: pointer;
            font-size: 24px;
        }

        /* Main content section */
        .main-content {
            padding: 60px 0;
            position: relative;
        }

        .page-title {
            font-size: 36px;
            margin-bottom: 35px;
            color: var(--primary-color);
            position: relative;
            display: inline-block;
            z-index: 1;
        }

        .page-subtitle {
            font-size: 18px;
            color: var(--secondary-color);
            max-width: 800px;
            margin-bottom: 40px;
        }

        /* Card styles */
        .card {
            background-color: white;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--box-shadow);
            margin-bottom: 30px;
            transition: transform 0.3s, box-shadow 0.3s;
            position: relative;
            border-top: 3px solid transparent;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
            border-top-color: var(--secondary-color);
        }

        .card:after {
            content: "{ code }";
            position: absolute;
            bottom: 10px;
            right: 10px;
            font-size: 12px;
            color: rgba(0, 0, 0, 0.1);
            font-family: monospace;
        }

        .card-header {
            background-color: var(--primary-color);
            color: white;
            padding: 15px 20px;
            font-weight: 600;
            font-size: 1.2rem;
        }

        .card-body {
            padding: 25px;
        }

        /* Layout */
        .grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
        }

        @media (max-width: 992px) {
            .grid {
                grid-template-columns: 1fr;
            }
        }

        /* Form elements */
        .form-group {
            margin-bottom: 20px;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--secondary-color);
        }

        .form-control {
            width: 100%;
            padding: 12px;
            border: 1px solid #e1e1e1;
            border-radius: var(--border-radius);
            font-family: inherit;
            font-style: italic;
            font-size: 16px;
            transition: border-color var(--transition-speed);
        }

        .form-control:focus {
            outline: none;
            border-color: var(--secondary-color);
        }

        textarea.form-control {
            min-height: 150px;
            resize: vertical;
        }

        .btn {
            display: inline-block;
            padding: 12px 25px;
            background-color: var(--secondary-color);
            color: white;
            border: none;
            border-radius: var(--border-radius);
            font-family: inherit;
            font-style: italic;
            font-size: 16px;
            cursor: pointer;
            transition: background-color var(--transition-speed);
            text-align: center;
        }

        .btn:hover {
            background-color: var(--primary-color);
        }

        .radio-group {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
        }

        .radio-item {
            display: flex;
            align-items: center;
            cursor: pointer;
        }

        .radio-item input {
            margin-right: 8px;
        }

        /* Algorithm tabs */
        .algorithm-tabs {
            display: flex;
            margin-bottom: 30px;
            border-bottom: 1px solid #dee2e6;
            overflow-x: auto;
            padding-bottom: 5px;
        }

        .algorithm-tab {
            padding: 10px 20px;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            color: var(--text-color);
            white-space: nowrap;
            transition: all 0.3s ease;
        }

        .algorithm-tab:hover {
            color: var(--secondary-color);
        }

        .algorithm-tab.active {
            border-bottom-color: var(--secondary-color);
            color: var(--secondary-color);
            font-weight: bold;
        }

        .algorithm-content {
            display: none;
        }

        .algorithm-content.active {
            display: block;
            animation: fadeIn 0.3s ease-in-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        /* Output area */
        .output-container {
            margin-top: 20px;
            border: 1px solid #e1e1e1;
            border-radius: var(--border-radius);
            padding: 15px;
            background-color: #f9f9f9;
            font-family: monospace;
            min-height: 120px;
            font-style: normal;
        }

        .output-container pre {
            white-space: pre-wrap;
            margin: 0;
        }

        /* Visualization styles */
        .visualization-step {
            margin-bottom: 25px;
            padding: 20px;
            background-color: #f8f9fa;
            border-radius: var(--border-radius);
            border-left: 3px solid var(--secondary-color);
        }

        .step-title {
            font-weight: 600;
            margin-bottom: 10px;
            color: var(--primary-color);
        }

        .text-to-binary {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin: 20px 0;
        }

        .char-block {
            text-align: center;
            margin-bottom: 10px;
            animation: fadeIn 0.5s ease-in;
        }

        .char-original {
            font-size: 1.5rem;
            padding: 8px;
            background-color: #f1f3f5;
            border-radius: 4px;
            margin-bottom: 5px;
            min-width: 2.5rem;
            display: inline-block;
        }

        .char-binary {
            font-family: monospace;
            font-style: normal;
            font-size: 0.9rem;
            background-color: #e9ecef;
            padding: 4px;
            border-radius: 2px;
            letter-spacing: 1px;
        }

        .code-block {
            background-color: #f1f3f5;
            border-radius: var(--border-radius);
            padding: 15px;
            margin: 15px 0;
            font-family: monospace;
            font-style: normal;
            font-size: 0.9rem;
            overflow: auto;
        }

        .animation-container {
            height: 200px;
            background-color: #f1f3f5;
            border-radius: var(--border-radius);
            position: relative;
            overflow: hidden;
            margin: 20px 0;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .security-level {
            display: inline-block;
            padding: 5px 10px;
            border-radius: 3px;
            font-size: 14px;
            margin-top: 15px;
        }

        .security-high {
            background-color: rgba(76, 175, 80, 0.2);
            color: #2e7d32;
        }

        .security-medium {
            background-color: rgba(255, 193, 7, 0.2);
            color: #c79100;
        }

        .security-low {
            background-color: rgba(244, 67, 54, 0.2);
            color: #c62828;
        }

        .algorithm-info {
            margin-bottom: 30px;
            padding: 20px;
            background-color: #f8f9fa;
            border-left: 4px solid var(--secondary-color);
            border-radius: 0 var(--border-radius) var(--border-radius) 0;
        }

        /* Footer */
        footer {
            background-color: var(--dark-bg);
            color: white;
            padding: 60px 0 30px;
            margin-top: 60px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            margin-bottom: 40px;
        }

        .footer-about h3 {
            font-size: 24px;
            margin-bottom: 20px;
            color: white;
        }

        .footer-about p {
            margin-bottom: 20px;
            opacity: 0.8;
            line-height: 1.7;
        }

        .social-links {
            display: flex;
            gap: 15px;
        }

        .social-link {
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            transition: background-color 0.3s;
            text-decoration: none;
        }

        .social-link:hover {
            background-color: rgba(255, 255, 255, 0.2);
            color: white;
        }

        .footer-links h3 {
            font-size: 24px;
            margin-bottom: 20px;
            color: white;
        }

        .quick-links {
            list-style: none;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        .quick-links a {
            color: rgba(255, 255, 255, 0.8);
            transition: color 0.3s;
            display: flex;
            align-items: center;
            text-decoration: none;
        }

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

        .quick-links a i {
            margin-right: 10px;
            font-size: 14px;
        }

        .copyright {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 14px;
            opacity: 0.7;
        }

        /* Responsive design */
        @media (max-width: 992px) {
            .footer-content {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .grid {
                grid-template-columns: 1fr;
            }

            .mobile-menu-btn {
                display: block;
            }

            .nav-links {
                position: fixed;
                top: 70px;
                left: 0;
                width: 100%;
                flex-direction: column;
                background-color: var(--primary-color);
                padding: 20px;
                transform: translateY(-150%);
                transition: transform 0.3s;
                z-index: 1000;
            }

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

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

            .algorithm-tabs {
                flex-wrap: wrap;
            }

            .algorithm-tab {
                padding: 8px 15px;
                font-size: 14px;
            }
        }