/* [CODE_BLOCK_4] - The Glitch Effect */
/* Applied to your name in the Hero section */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--secondary-neon);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--primary-neon);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    20% { clip: rect(62px, 9999px, 42px, 0); }
    40% { clip: rect(10px, 9999px, 86px, 0); }
    60% { clip: rect(57px, 9999px, 12px, 0); }
    80% { clip: rect(82px, 9999px, 64px, 0); }
    100% { clip: rect(40px, 9999px, 91px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(2px, 9999px, 54px, 0); }
    40% { clip: rect(78px, 9999px, 23px, 0); }
    60% { clip: rect(19px, 9999px, 70px, 0); }
    80% { clip: rect(45px, 9999px, 88px, 0); }
    100% { clip: rect(12px, 9999px, 31px, 0); }
}

/* [CODE_BLOCK_5] - The Neon Pulse */
/* For badges and active project buttons */
@keyframes neon-pulse {
    0%, 100% {
        box-shadow: 0 0 5px var(--primary-neon), 0 0 10px var(--primary-neon);
    }
    50% {
        box-shadow: 0 0 20px var(--primary-neon), 0 0 30px var(--primary-neon);
    }
}

.badge {
    animation: neon-pulse 3s infinite;
}

/* [CODE_BLOCK_6] - Scanning Line Effect */
/* Creates a vintage CRT terminal feel over the whole site */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 9999;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* [CODE_BLOCK_7] - Smooth Reveal */
/* Applied to sections as you scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}



/* [CODE_BLOCK_29] - Resume Animation Styles */
.hidden { display: none; }

.terminal-container {
    padding: 50px;
    font-family: 'Courier New', monospace;
    color: var(--primary-neon);
    background: #000;
    height: 100vh;
}

.progress-bar {
    width: 300px;
    height: 20px;
    border: 1px solid var(--primary-neon);
    margin: 20px 0;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--primary-neon);
    transition: width 1.5s ease-in-out;
}

#terminal-text {
    white-space: pre-wrap;
    margin-bottom: 20px;
}

/* [CODE_BLOCK_40] - Archive Scan & Glow Animation */
.archive-item {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-left: 2px solid transparent;
    transition: all 0.4s ease;
}

.archive-item:hover {
    background: linear-gradient(90deg, rgba(0, 255, 65, 0.1) 0%, transparent 100%);
    border-left: 2px solid var(--primary-neon);
    transform: scale(1.02);
}

.status-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    color: var(--primary-neon);
    opacity: 0.7;
}

/* The Scanning Overlay */
.archive-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.2), transparent);
    transition: 0.5s;
}

.archive-item:hover::after {
    left: 100%;
}