@keyframes glitch {
    0% {
        text-shadow: 2px 0 #0f0, -2px 0 #f00;
        transform: translate(0);
    }
    25% {
        text-shadow: -2px 0 #0f0, 2px 0 #f00;
        transform: translate(1px);
    }
    50% {
        text-shadow: 2px 0 #0f0, -2px 0 #f00;
        transform: translate(-1px);
    }
    75% {
        text-shadow: -2px 0 #0f0, 2px 0 #f00;
        transform: translate(2px);
    }
    100% {
        text-shadow: 2px 0 #0f0, -2px 0 #f00;
        transform: translate(0);
    }
}

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

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -48%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.matrix-character {
    position: absolute;
    color: #0f0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 14px;
    animation: matrix 10s linear infinite;
}

.hacker-text {
    font-family: 'Courier New', monospace;
    color: #0f0;

    animation: glitch 3s infinite;
}

.hacker-input {
    background: #000 !important;
    border: 1px solid #0f0 !important;
    color: #0f0 !important;
    font-family: 'Courier New', monospace !important;
    transition: all 0.3s ease;
}

.hacker-input:focus {
    box-shadow: 0 0 15px #0f0;
    outline: none;
}

.hacker-button {
    background: #000 !important;
    border: 1px solid #0f0 !important;
    color: #0f0 !important;
    font-family: 'Courier New', monospace !important;
    text-shadow: 0 0 5px #0f0 !important;
    transition: all 0.3s ease;
}

.hacker-button:hover {
    background: #0f0 !important;
    color: #000 !important;
    box-shadow: 0 0 15px #0f0;
}

#access-denied {
    color: #f00;
    text-shadow: 0 0 5px #f00;
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-404 {
    font-size: 120px;
    margin: 0;
    color: #1a1a1a;
    font-family: 'Segoe UI', sans-serif;
}

.error-text {
    font-size: 24px;
    margin: 10px 0;
    color: #1a1a1a;
    font-family: 'Segoe UI', sans-serif;
}

.error-details {
    font-size: 14px;
    margin: 5px 0;
    color: #666;
    font-family: 'Segoe UI', sans-serif;
}

.win11-terminal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    height: 500px;
    background: rgba(32, 32, 32, 0.95);
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    font-family: 'Cascadia Code', 'Consolas', monospace;
    animation: fadeIn 0.3s ease;
}

.terminal-header {
    background: #2d2d2d;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.terminal-title {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.terminal-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.terminal-minimize { background: #f1c40f; }
.terminal-maximize { background: #27ae60; }
.terminal-close { background: #e74c3c; }

.terminal-content {
    padding: 20px;
    height: calc(100% - 60px);
    overflow-y: auto;
    color: #fff;
}

.terminal-line {
    margin: 8px 0;
    display: flex;
    align-items: flex-start;
}

.terminal-prompt {
    color: #0af;
    margin-right: 10px;
    user-select: none;
}

.terminal-input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    margin: 0;
    width: 100%;
}

.terminal-input:focus {
    outline: none;
}

.terminal-output {
    color: #0f0;
    margin: 5px 0 5px 20px;
}

.terminal-error {
    color: #f00;
    margin: 5px 0 5px 20px;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: #fff;
    margin-left: 5px;
    animation: cursor 1s infinite;
}

.hidden {
    display: none;
}
