@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@300;400;600;700&display=swap');

body {
    font-family: 'Source Code Pro', monospace;
    background-color: #0a0a0a;
    color: #e0e0e0;
    overflow-x: hidden;
}

.glitch {
    position: relative;
    color: #00ff41;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(32px, 9999px, 76px, 0); }
    25% { clip: rect(54px, 9999px, 99px, 0); }
    50% { clip: rect(12px, 9999px, 55px, 0); }
    75% { clip: rect(87px, 9999px, 23px, 0); }
    100% { clip: rect(3px, 9999px, 91px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(91px, 9999px, 13px, 0); }
    25% { clip: rect(65px, 9999px, 45px, 0); }
    50% { clip: rect(87px, 9999px, 29px, 0); }
    75% { clip: rect(12px, 9999px, 76px, 0); }
    100% { clip: rect(54px, 9999px, 98px, 0); }
}

.terminal {
    border-left: 3px solid #00ff41;
    padding-left: 1rem;
    position: relative;
}

.terminal::before {
    content: ">";
    position: absolute;
    left: -0.8rem;
    color: #00ff41;
}

.typewriter {
    overflow: hidden;
    border-right: .15em solid #00ff41;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation: 
        typing-erasing 8s steps(40, end) infinite,
        blink-caret .75s step-end infinite;
}

@keyframes typing-erasing {
    0% { width: 0 }
    50% { width: 100% }
    80% { width: 100% }
    100% { width: 0 }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #00ff41; }
}

.hacker-card {
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.hacker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 65, 0.1);
    border-color: #00ff41;
}

.terminal-window {
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

.terminal-body {
    line-height: 1.5;
}

.terminal-line {
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.terminal-input {
    caret-color: #00ff41;
}

.terminal-input::placeholder {
    color: #4a5568;
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
    pointer-events: none;
}