:root {
    --rb-navy: #001A30;
    --rb-red: #E10600;
    --rb-yellow: #FFC72C;
    --pixel-black: #000000;
    --pixel-white: #FFFFFF;
    --pixel-gray: #AAAAAA;
    --terminal-green: #39ff14;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Press Start 2P', cursive;
}

body {
    background-color: var(--rb-navy);
    color: var(--pixel-white);
    overflow-x: hidden;
}

.navbar {
    padding: 1.5rem 5%;
    background-color: var(--pixel-black);
    border-bottom: 4px solid var(--rb-yellow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-btn { color: white; text-decoration: none; font-size: 0.7rem; }
.back-btn:hover { color: var(--rb-yellow); }

.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.project-header { text-align: center; margin-bottom: 3rem; }
.glitch-text { font-size: 1.8rem; text-shadow: 4px 4px var(--rb-red); }
.yellow { color: var(--rb-yellow); }
.red-bg { background-color: var(--rb-red); }
.yellow-bg { background-color: var(--rb-yellow); color: black; }
.navy-bg { background-color: #002b52; }

.main-stats-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.monitor-frame {
    background-color: var(--pixel-gray);
    padding: 15px;
    border: 6px solid var(--pixel-black);
    box-shadow: 10px 10px 0px var(--pixel-black);
}

.screen {
    background-color: var(--pixel-black);
    width: 100%;
    aspect-ratio: 16/9;
    border: 4px inset #444;
    position: relative;
    overflow: hidden;
}

.screen img {
    width: 100%; height: 100%; object-fit: cover;
}

.scanline {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
}

.thumbnail-grid {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.thumb {
    flex: 1;
    background: var(--pixel-black);
    border: 2px solid var(--pixel-white);
    padding: 10px;
    font-size: 0.5rem;
    text-align: center;
    cursor: pointer;
}

.thumb.active { background: var(--rb-yellow); color: black; border-color: black; }

.pixel-box { background: var(--pixel-black); margin-bottom: 1.5rem; box-shadow: 6px 6px 0px black; }
.border-red { border: 4px solid var(--rb-red); }
.border-yellow { border: 4px solid var(--rb-yellow); }

.box-title { padding: 0.8rem; font-size: 0.7rem; }
.stats-list { list-style: none; padding: 1.2rem; }
.stats-list li { font-size: 0.65rem; margin-bottom: 0.8rem; }

.terminal-text {
    padding: 1.2rem; font-size: 0.6rem; color: var(--terminal-green);
    line-height: 1.8; min-height: 150px;
}

.stage-controls { display: flex; gap: 1rem; }
.btn-action {
    flex: 1; text-align: center; padding: 1rem; text-decoration: none;
    font-size: 0.7rem; color: white; border: 4px solid white;
    box-shadow: 4px 4px 0px black;
}

.btn-action:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0px black; filter: brightness(1.2); }

.technical-deep-dive {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 4rem;
}

.sub-pixel-title { font-size: 0.9rem; color: var(--rb-yellow); margin-bottom: 1.5rem; }

.skills-grid {
    display: flex; flex-wrap: wrap; gap: 10px;
}

.pixel-tag {
    flex-grow: 1; text-align: center; padding: 0.8rem;
    background: var(--pixel-black); border: 2px solid white; font-size: 0.55rem;
}

.arch-card {
    background: var(--pixel-black); border: 4px solid var(--pixel-gray);
    padding: 1.5rem; font-size: 0.6rem; line-height: 1.8; color: var(--pixel-gray);
}

.pixel-table {
    width: 100%; border-collapse: collapse; border: 4px solid var(--rb-yellow);
    background: var(--pixel-black);
}

.pixel-table th, .pixel-table td {
    padding: 1rem; border: 2px solid #333; font-size: 0.6rem; text-align: left;
}

.pixel-table th { background: var(--rb-red); color: white; }

@media (max-width: 900px) {
    .main-stats-grid, .technical-deep-dive { grid-template-columns: 1fr; }
}

.readable-description {
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.6);
    max-height: 400px; 
    overflow-y: auto;  
    border: 2px inset #333;
}

.desc-section {
    margin-bottom: 2rem;
}

.desc-section:last-child {
    margin-bottom: 0;
}

.desc-section h4 {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.desc-section p {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.55rem;
    line-height: 2;
    color: var(--pixel-gray);
    text-transform: none;
}

.bullet-points {
    list-style: none;
    padding-left: 0;
}

.bullet-points li {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.55rem;
    color: var(--pixel-gray);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 2;
    text-transform: none;
}

.bullet-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 8px;
    height: 8px;
    background-color: var(--rb-red);
    box-shadow: 2px 2px 0px #000;
}

.readable-description::-webkit-scrollbar {
    width: 10px;
}
.readable-description::-webkit-scrollbar-track {
    background: #000;
}
.readable-description::-webkit-scrollbar-thumb {
    background: var(--pixel-gray);
    border: 2px solid #000;
}

.factual-box {
    margin-top: 2rem;
    background-color: var(--pixel-black);
    border: 2px solid var(--pixel-gray);
    padding: 1.5rem;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.5);
}

.module-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.module-list li {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.55rem;
    color: var(--pixel-white);
    line-height: 1.8;
    margin-bottom: 1rem;
    text-transform: none;
}

.module-list li:last-child { margin-bottom: 0; }

.red-bracket {
    color: var(--rb-red);
    margin-right: 8px;
}

.figma-embed {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.scanline {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
    z-index: 2;
    pointer-events: none;
}