body {
    background-color: #252525;
    color: #ffd527;
    text-emphasis-color: #ffd527;
    font-family: 'Kode Mono', monospace;
    margin: 0;
    padding: 0;
    line-height: 0.7;
    width: 100svw;
    height: 100svh;
}

::selection {
    background: #ffd527;
    color: #252525;
    text-shadow: none;
}

::-moz-selection {
    background: #ffd527;
    color: #252525;
    text-shadow: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.glitch {
    font-size: 2.5rem;
    position: relative;
    color: #ffd527;
    text-shadow: 0 0 5px rgba(255, 213, 39, 0.5);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #252525;
}

.glitch::before {
    left: 3px;
    text-shadow: -3px 0 #ffee00;
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -3px;
    text-shadow: -3px 0 #ffff99;
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

.glitch-subtitle {
    font-size: 2rem;
    position: relative;
    margin-bottom: 30px;
    padding-left: 10px;
}

.glitch-subtitle::before,
.glitch-subtitle::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 10px;
    width: 100%;
    height: 100%;
    background: #252525;
}

.glitch-subtitle::before {
    left: 7px;
    text-shadow: -2px 0 #ffee00;
    animation: glitch-anim-1 3s infinite linear alternate-reverse;
}

.glitch-subtitle::after {
    left: 37px;
    text-shadow: -2px 0 #ffff99;
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #252525;
    opacity: 0;
}

.glitch-text:hover::before {
    left: 2px;
    text-shadow: -2px 0 #ffee00;
    opacity: 0.8;
    animation: glitch-anim-1 1s infinite linear alternate-reverse;
}

.glitch-text:hover::after {
    left: -2px;
    text-shadow: -2px 0 #ffff99;
    opacity: 0.8;
    animation: glitch-anim-2 1s infinite linear alternate-reverse;
}

.glitch-link {
    text-decoration: none;
    color: #ffd527;
    position: relative;
    display: inline-block;
}

.glitch-link:hover {
    color: #ffee00;
}

.nav-links a {
    position: relative;
    display: inline-block;
    padding: 5px 10px;
    text-decoration: none;
    color: #ffd527;
}

.nav-links a::before,
.nav-links a::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #252525;
    visibility: visible;
    opacity: 0.8;
}

.nav-links a::before {
    color: #ffee00;
    right: 1px;
    top: -2px;
    text-shadow: 2px 1 #ffee00;
    clip: rect(0, 900px, 0, 0);
    animation: nav-glitch-top 11s infinite linear alternate-reverse;
}

.nav-links a::after {
    color: #c0b300;
    right: 1px;
    top: 4px;
    text-shadow: 2px 1 #ffee00;
    clip: rect(0, 900px, 0, 0);
    animation: nav-glitch-bottom 3s infinite linear alternate-reverse;
}

@keyframes nav-glitch-top {
    0%, 100% { clip: rect(5px, 9999px, 25px, 0); }
    10% { clip: rect(8px, 9999px, 2px, 0); }
    20% { clip: rect(3px, 9999px, 7px, 0); }
    30% { clip: rect(7px, 9999px, 3px, 0); }
    40% { clip: rect(2px, 9999px, 8px, 0); }
    50% { clip: rect(6px, 9999px, 4px, 0); }
    60% { clip: rect(1px, 9999px, 9px, 0); }
    70% { clip: rect(4px, 9999px, 6px, 0); }
    80% { clip: rect(9px, 9999px, 1px, 0); }
    90% { clip: rect(0px, 9999px, 0px, 0); }
}

@keyframes nav-glitch-bottom {
    0%, 100% { clip: rect(25px, 9999px, 45px, 0); }
    10% { clip: rect(8px, 9999px, 2px, 0); }
    20% { clip: rect(3px, 9999px, 7px, 0); }
    30% { clip: rect(7px, 9999px, 3px, 0); }
    40% { clip: rect(2px, 9999px, 8px, 0); }
    50% { clip: rect(6px, 9999px, 4px, 0); }
    60% { clip: rect(1px, 9999px, 9px, 0); }
    70% { clip: rect(4px, 9999px, 6px, 0); }
    80% { clip: rect(9px, 9999px, 1px, 0); }
    90% { clip: rect(0px, 9999px, 5px, 0); }
}

@keyframes glitch-anim-1 {
    0% { clip: rect(32px, 9999px, 78px, 0); }
    20% { clip: rect(13px, 9999px, 97px, 0); }
    40% { clip: rect(54px, 9999px, 119px, 0); }
    60% { clip: rect(12px, 9999px, 89px, 0); }
    80% { clip: rect(88px, 9999px, 132px, 0); }
    100% { clip: rect(23px, 9999px, 105px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 119px, 0); }
    20% { clip: rect(42px, 9999px, 135px, 0); }
    40% { clip: rect(87px, 9999px, 110px, 0); }
    60% { clip: rect(15px, 9999px, 95px, 0); }
    80% { clip: rect(68px, 9999px, 148px, 0); }
    100% { clip: rect(29px, 9999px, 84px, 0); }
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 0;
    border-bottom: 1px solid #ffd527;
    margin-bottom: 20px;
}

.subject-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0 20px;
}

.subject-list li {
    position: relative;
    margin-bottom: 15px;
    padding-left: 25px;
    transition: all 0.3s ease;
}

.subject-list li::before {
    content: ">";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #ffd527;
    font-weight: bold;
    transition: all 0.3s ease;
}

.subject-list li:hover {
    transform: translateX(5px);
}

.subject-list li:hover::before {
    color: #ffee00;
    transform: translateY(-50%) translateX(3px);
    text-shadow: 0 0 5px #ffee00;
}

.subject-link {
    color: #ffd527;
    text-decoration: none;
    font-size: 1.2rem;
    display: inline-block;
    padding: 8px 15px;
    transition: all 0.3s ease;
    position: relative;
}

.subject-link:hover {
    color: #ffee00;
    transform: translateX(5px);
}

.subject-link:hover::before,
.subject-link:hover::after {
    animation: glitch-anim-1 0.5s infinite linear alternate-reverse;
}

.subject-list li:hover {
    transform: translateX(10px);
}

.subject-list li:hover::before {
    transform: translateY(-50%) translateX(8px);
    animation: arrow-pulse 0.5s infinite alternate;
}

@keyframes arrow-pulse {
    0% { opacity: 1; }
    100% { opacity: 0.7; text-shadow: 0 0 10px #ffee00; }
}

.subject-link {
    color: #ffd527;
    text-decoration: none;
    font-size: 1.2rem;
    display: inline-block;
    padding: 8px 15px;
    transition: all 0.3s ease;
    position: relative;
}

.subject-link:hover {
    color: #ffee00;
    transform: translateX(10px);
}

.no-files {
    color: #ff5555;
    font-style: italic;
    padding-left: 30px;
    position: relative;
}

.subject-link.glitch-text:hover {
    animation: file-pulse 0.5s infinite alternate;
}

@keyframes file-pulse {
    0% { text-shadow: 0 0 5px #ffd527; }
    100% { text-shadow: 0 0 15px #ffee00; }
}

.ascii-art-container {
    position: fixed;
    right: 28%;
    top: 430px;
    transform: translateY(-50%);
    padding: 20px;
    box-sizing: border-box;
    pointer-events: none;
    user-select: none;
    z-index: 2;
    max-width: 300px;
    display: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease, visibility 0.8s linear;
}

@media (min-width: 900px) {
    .ascii-art-container {
        display: block;
    }
}

.ascii-art {
    color: #ffd527;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.2;
    margin: 0;
    white-space: pre;
    text-shadow: 
        0 0 5px rgba(255, 213, 39, 0.7),
        0 0 10px rgba(255, 213, 39, 0.3);
    animation: ascii-pulse 2s infinite alternate;
    width: 100%;
}

@media (max-width: 1025px) {
    .ascii-art-container {
        opacity: 0;
        visibility: hidden;
        transition: opacity 1s ease-in-out, visibility 2s;
    }
}

@keyframes ascii-pulse {
    0%, 100% {
        text-shadow: 
            0 0 5px rgba(255, 213, 39, 0.7),
            0 0 10px rgba(255, 213, 39, 0.3);
    }
    50% {
        text-shadow: 
            0 0 10px rgba(255, 213, 39, 0.9),
            0 0 20px rgba(255, 213, 39, 0.5),
            0 0 30px rgba(255, 213, 39, 0.2);
    }
}

.manifesto {
    padding: 2x;
    line-height: 1.3
}

.manifesto p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem
}

.subtle-glitch {
    position: relative;
    display: inline-block;
    padding: 0 5px;
}

.subtle-glitch::before,
.subtle-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #252525;
    opacity: 0;
}

.subtle-glitch::before {
    left: 1px;
    text-shadow: -1px 0 #ffee00;
    animation: subtle-glitch-1 8s infinite linear alternate-reverse;
}

.subtle-glitch::after {
    left: -1px;
    text-shadow: -1px 0 #ffff99;
    animation: subtle-glitch-2 7s infinite linear alternate-reverse;
}

@keyframes subtle-glitch-1 {
    0% { opacity: 0; clip: rect(5px, 9999px, 15px, 0); }
    1% { opacity: 0.1; }
    2% { opacity: 0; clip: rect(2px, 9999px, 12px, 0); }
    3% { opacity: 0.1; }
    98% { opacity: 0; }
    100% { opacity: 0; clip: rect(10px, 9999px, 20px, 0); }
}

@keyframes subtle-glitch-2 {
    0% { opacity: 0; clip: rect(15px, 9999px, 25px, 0); }
    1% { opacity: 0.05; }
    2% { opacity: 0; clip: rect(12px, 9999px, 22px, 0); }
    3% { opacity: 0.05; }
    98% { opacity: 0; }
    100% { opacity: 0; clip: rect(20px, 9999px, 30px, 0); }
}

.manifesto br {
    display: block;
    content: "";
    margin-top: 1.5rem;
}

/* Project Grid Styles */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    line-height: 1.1rem;
}

.project-card {
    background: rgba(30, 30, 30, 0.7);
    padding: 1.5rem;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-link {
    font-size: 1.5rem;
    color: #ffd527;
    text-decoration: none;
    position: relative;
}

.glitch-separator {
    height: 2px;
    background: #333;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
}

.glitch-separator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffd527;
    animation: separator-glitch 10s infinite linear;
    opacity: 0.3;
}

.project-desc {
    color: #aaa;
    margin-top: 0.5rem;
}

@keyframes separator-glitch {
    0% { transform: translateX(-100%); }
    10% { transform: translateX(0); opacity: 0.5; }
    20% { transform: translateX(-10%); }
    30% { transform: translateX(5%); }
    40% { transform: translateX(-15%); }
    50% { transform: translateX(10%); opacity: 0.8; }
    60% { transform: translateX(-5%); }
    70% { transform: translateX(15%); }
    80% { transform: translateX(-8%); }
    90% { transform: translateX(2%); opacity: 0.5; }
    100% { transform: translateX(100%); }
}

.error-notification {
    position: fixed;
    top: 20;
    width: 100%;
    color: #ffd527;
    text-align: center;
    padding: 0.5rem 0;
    font-weight: bold;
    font-size: 3rem;
    z-index: 1000;
    animation: ascii-pulse 2s infinite alternate;
    user-select: none;
}

.ascii-art-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 2rem 0;
    user-select: none;
}

.ascii-art-2 {
    margin-top: 25vh;
    text-align: center;
    color: #ffd527;
    font-size: 14px;
    line-height: 1.2;
    white-space: pre;
    text-shadow: 
        0 0 5px rgba(255, 213, 39, 0.7),
        0 0 10px rgba(255, 213, 39, 0.3);
    animation: ascii-pulse 2s infinite alternate;
    width: 100%;
}
