    :root {
        /* Light theme: use previous dark mode colors */
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --text-primary: #f1f5f9;
        --text-secondary: #cbd5e1;
        --accent: #ff0606;
        --accent-hover: #3b82f6;
        --border: #334155;
        --shadow: rgba(0, 0, 0, 0.3);
        --theme-toggle-bg: #334155;
        --theme-toggle-thumb: #0f172a;
    }

    .dark-mode {
        /* Dark theme: pure black and white */
        --bg-primary: #000000;
        --bg-secondary: #111111;
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --accent: #ff0606;
        --accent-hover: #cccccc;
        --border: #222222;
        --shadow: rgba(0, 0, 0, 0.7);
        --theme-toggle-bg: #222222;
        --theme-toggle-thumb: #000000;
    }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            transition: background-color 0.3s, color 0.3s;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: var(--bg-primary);
            color: var(--text-primary);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px;
            background-image: 
                radial-gradient(circle at 25% 25%, rgba(66, 153, 225, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 75% 75%, rgba(66, 153, 225, 0.1) 0%, transparent 40%);
        }

        .container {
            display: flex;
            flex-direction: column;
            align-items: center;
            max-width: 1200px;
            width: 100%;
            gap: 30px;
        }

        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            padding: 20px;
            background-color: var(--bg-secondary);
            border-radius: 16px;
            box-shadow: 0 4px 6px var(--shadow);
            border: 1px solid var(--border);
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo-icon {
            width: 36px;
            height: 36px;
            background: linear-gradient(135deg, var(--accent), #4c51bf);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
        }

        .theme-toggle {
            position: relative;
            width: 60px;
            height: 30px;
        }

        .theme-toggle input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .theme-toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: var(--theme-toggle-bg);
            border-radius: 30px;
            transition: .4s;
        }

        .theme-toggle-slider:before {
            position: absolute;
            content: "";
            height: 22px;
            width: 22px;
            left: 4px;
            bottom: 4px;
            background-color: var(--theme-toggle-thumb);
            border-radius: 50%;
            transition: .4s;
        }

        input:checked + .theme-toggle-slider {
            background-color: var(--theme-toggle-bg);
        }

        input:checked + .theme-toggle-slider:before {
            transform: translateX(30px);
        }

        .content {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            gap: 40px;
            width: 100%;
        }

        .image-container {
            width: auto;
            height: auto;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 10px 15px -3px var(--shadow);
            border: 1px solid var(--border);
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-secondary);
            flex: 1;
            min-width: 300px;
            max-width: 600px;
            height: 400px;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 10px 15px -3px var(--shadow);
            border: 1px solid var(--border);
            position: relative;
        }

        .image-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .image-container:hover img {
            transform: scale(1.05);
        }

        .info {
            flex: 1;
            min-width: 300px;
            max-width: 500px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .error-code {
            font-size: 8rem;
            font-weight: 800;
            background: linear-gradient(135deg, var(--accent), #4c51bf);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            line-height: 1;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .error-title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .error-message {
            font-size: 1.2rem;
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .server-time {
            background-color: var(--bg-secondary);
            padding: 15px;
            border-radius: 12px;
            font-family: 'Courier New', monospace;
            font-size: 1.3rem;
            font-weight: 600;
            text-align: center;
            box-shadow: 0 4px 6px var(--shadow);
            border: 1px solid var(--border);
            margin: 10px 0;
        }

        .server-time-label {
            font-size: 0.9rem;
            color: var(--text-secondary);
            margin-bottom: 5px;
        }

        .actions {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-top: 20px;
        }

        .btn {
            padding: 14px 28px;
            border-radius: 12px;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
            display: flex;
            align-items: center;
            gap: 8px;
        }



        .btn-secondary {
            background-color: var(--bg-secondary);
            color: var(--text-primary);
            border: 1px solid var(--border);
        }

        .btn-secondary:hover {
            background-color: var(--border);
            transform: translateY(-2px);
        }

        footer {
            width: 100%;
            text-align: center;
            padding: 20px;
            color: var(--text-secondary);
            font-size: 0.9rem;
            margin-top: 20px;
        }

        .tech-grid {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                linear-gradient(rgba(66, 153, 225, 0.1) 1px, transparent 1px),
                linear-gradient(90deg, rgba(66, 153, 225, 0.1) 1px, transparent 1px);
            background-size: 30px 30px;
            pointer-events: none;
        }

        .binary-animation {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            pointer-events: none;
            opacity: 0.1;
        }

        .binary-code {
            position: absolute;
            color: var(--accent);
            font-family: 'Courier New', monospace;
            font-size: 16px;
            white-space: nowrap;
            font-weight: bold;      animation: moveBinary 20s linear infinite;
        }

        @keyframes moveBinary {
            0% { transform: translateY(-100%); }
            100% { transform: translateY(100vh); }
        }

        @media (max-width: 768px) {
            .content {
                flex-direction: column;
            }
            
            .error-code {
                font-size: 6rem;
            }
            
            .error-title {
                font-size: 2rem;
            }
            
            .image-container {
                height: 300px;
            }
        }

        @media (max-width: 480px) {
            .error-code {
                font-size: 5rem;
            }
            
            .error-title {
                font-size: 1.8rem;
            }
            
            .actions {
                flex-direction: column;
            }
            
            .btn {
                width: 100%;
                justify-content: center;
            }
        }

        /* Slide animation for theme change */
        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .slide-in {
            animation: slideIn 0.5s ease-out forwards;
        }

        .terminal-text {
            background-color: var(--bg-secondary);
            padding: 20px;
            border-radius: 12px;
            font-family: 'Courier New', monospace;
            font-size: 0.9rem;
            margin-top: 15px;
            border: 1px solid var(--border);
            box-shadow: 0 4px 6px var(--shadow);
        }

        .terminal-line {
            margin-bottom: 8px;
        }

        .terminal-prompt {
            color: #48bb78;
        }

        .terminal-command {
            color: var(--accent);
        }

        .terminal-error {
            color: #f56565;
        }


        #help-float-btn {
            display: block;
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 9999;
            background: var(--border);
            color: #fff;
            border: none;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            box-shadow: 0 4px 12px rgba(67,97,238,0.2);
            font-size: 2rem;
            cursor: pointer;
            transition: background 0.2s;
            outline: 1.8px solid rgb(2, 249, 18);
            overflow: visible;
        }
        #help-float-btn .unique-pulse {
            position: absolute;
            left: 50%;
            top: 50%;
            width: 80px;
            height: 80px;
            pointer-events: none;
            transform: translate(-50%, -50%);
            border-radius: 50%;
            background: radial-gradient(circle at 60% 40%, #43a04755 60%, transparent 100%);
            opacity: 0.7;
            z-index: 1;
            animation: unique-pulse-anim 1.7s cubic-bezier(.4,0,.2,1) infinite;
        }
        @keyframes unique-pulse-anim {
            0% {
                transform: translate(-50%, -50%) scale(0.85) rotate(0deg);
                opacity: 0.7;
                filter: blur(0.5px) brightness(1.1);
            }
            40% {
                filter: blur(2px) brightness(1.3);
                opacity: 0.9;
            }
            60% {
                transform: translate(-50%, -50%) scale(1.13) rotate(7deg);
                filter: blur(3px) brightness(1.5);
                opacity: 0.5;
            }
            80% {
                transform: translate(-50%, -50%) scale(1.22) rotate(-6deg);
                filter: blur(1.5px) brightness(1.2);
                opacity: 0.3;
            }
            100% {
                transform: translate(-50%, -50%) scale(0.85) rotate(0deg);
                opacity: 0.7;
                filter: blur(0.5px) brightness(1.1);
            }
        }

/* (Assuming you have a section for header styles, add this at the end of your CSS file or within your responsive section) */

/* Responsive fix for header slider on mobile */
@media (max-width: 600px) {
    header.slide-in {
        width: 100vw;
        min-width: 0;
        box-sizing: border-box;
        padding-left: 6px;
        padding-right: 6px;
        overflow-x: hidden;
    }
    .logo {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.2rem;
    }
    .logo-icon {
        font-size: 1.2rem !important;
        width: 36px !important;
        height: 36px !important;
    }
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 2rem;
    border-radius: 15px;
    max-width: 90vw;
    width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* Choice button styles */
.choice-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.choice-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
    min-width: 120px;
}

.choice-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 6, 6, 0.3);
}

/* Spinner animation */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile responsiveness for modal */
@media (max-width: 480px) {
    .modal-content {
        width: 95vw;
        padding: 1.5rem;
    }
    
    .choice-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .choice-btn {
        width: 100%;
    }
}
