/* ═══════════════════════════════════════════════════════════════
   KEYBOARD MONKEY HACK - DARK MYSTERIOUS THEME
   "thats banannas" - Very avant-garde, not SEO friendly
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=VT323&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Rubik+Glitch&display=swap');

:root {
    --void-black: #050505;
    --deep-purple: #1a0b2e;
    --neon-green: #39ff14;
    --toxic-yellow: #ccff00;
    --blood-red: #ff003c;
    --electric-blue: #00f0ff;
    --magenta: #ff00ff;
    --amber: #ffbf00;
    --terminal-green: #0f0;
    --glitch-white: #f0f0f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background: var(--neon-green);
    color: var(--void-black);
    text-shadow: none;
}

body {
    background-color: var(--void-black);
    color: var(--glitch-white);
    font-family: 'Space Mono', monospace;
    overflow-x: hidden;
    cursor: crosshair;
    min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════════════
   GLITCH EFFECTS & ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

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

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
    52% { opacity: 0.1; }
    54% { opacity: 1; }
}

@keyframes pulse-glow {
    0%, 100% { text-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green); }
    50% { text-shadow: 0 0 20px var(--neon-green), 0 0 40px var(--neon-green), 0 0 60px var(--neon-green); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

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

/* ═══════════════════════════════════════════════════════════════
   SCANLINE OVERLAY
   ═══════════════════════════════════════════════════════════════ */

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9999;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(57, 255, 20, 0.1);
    animation: scanline 8s linear infinite;
    pointer-events: none;
    z-index: 9998;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER & NAVIGATION
   ═══════════════════════════════════════════════════════════════ */

.main-header {
    position: relative;
    padding: 2rem;
    border-bottom: 1px solid rgba(57, 255, 20, 0.3);
    background: linear-gradient(180deg, rgba(26, 11, 46, 0.8) 0%, rgba(5, 5, 5, 0) 100%);
    overflow: hidden;
}

.main-header::before {
    content: "01001000 01000001 01000011 01001011";
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 0.7rem;
    color: rgba(57, 255, 20, 0.3);
    font-family: 'VT323', monospace;
    letter-spacing: 2px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
}

.logo-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--neon-green) 0%, var(--electric-blue) 50%, var(--magenta) 100%);
    opacity: 0.15;
    mix-blend-mode: overlay;
    border-radius: 10px;
    animation: pulse-glow 3s ease-in-out infinite;
}

.logo-img {
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(57, 255, 20, 0.5));
    transition: all 0.3s ease;
}

.logo-img:hover {
    filter: drop-shadow(0 0 40px rgba(57, 255, 20, 0.8)) drop-shadow(0 0 60px rgba(0, 240, 255, 0.4));
    transform: scale(1.02);
}

.slogan-img {
    max-width: 300px;
    height: auto;
    opacity: 0.9;
    position: relative;
}

.slogan-wrapper {
    position: relative;
    display: inline-block;
}

.slogan-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--toxic-yellow), var(--amber));
    opacity: 0.2;
    mix-blend-mode: overlay;
    border-radius: 5px;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION - GLITCH STYLE
   ═══════════════════════════════════════════════════════════════ */

.main-nav {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-link {
    position: relative;
    padding: 0.8rem 1.5rem;
    color: var(--glitch-white);
    text-decoration: none;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    border: 1px solid rgba(57, 255, 20, 0.3);
    background: rgba(26, 11, 46, 0.5);
    transition: all 0.3s ease;
    overflow: hidden;
}

.nav-link::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0.8rem 1.5rem;
    color: var(--blood-red);
    opacity: 0;
    transform: translateX(-3px);
    transition: all 0.2s;
}

.nav-link:hover {
    background: rgba(57, 255, 20, 0.1);
    border-color: var(--neon-green);
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
    animation: glitch 0.3s infinite;
}

.nav-link:hover::before {
    opacity: 0.8;
    transform: translateX(3px);
}

.nav-link.active {
    background: rgba(57, 255, 20, 0.2);
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════════ */

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
}

.section-title {
    font-family: 'Rubik Glitch', cursive;
    font-size: 3rem;
    color: var(--neon-green);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(57, 255, 20, 0.5);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: "_";
    animation: blink 1s step-end infinite;
}

/* ═══════════════════════════════════════════════════════════════
   TERMINAL BOXES
   ═══════════════════════════════════════════════════════════════ */

.terminal-box {
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid var(--neon-green);
    border-radius: 5px;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.1);
}

.terminal-box::before {
    content: "● ● ●";
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--neon-green);
    font-size: 0.8rem;
    letter-spacing: 5px;
}

.terminal-header {
    background: rgba(57, 255, 20, 0.1);
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(57, 255, 20, 0.3);
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    color: var(--neon-green);
    display: flex;
    align-items: center;
    gap: 10px;
}

.terminal-header::before {
    content: ">";
    color: var(--blood-red);
    font-weight: bold;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'Space Mono', monospace;
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════════
   CODE REPO CARDS
   ═══════════════════════════════════════════════════════════════ */

.repo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.repo-card {
    background: linear-gradient(135deg, rgba(26, 11, 46, 0.8) 0%, rgba(5, 5, 5, 0.9) 100%);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.repo-card::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--neon-green), var(--electric-blue), var(--magenta), var(--neon-green));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
    border-radius: 10px;
}

.repo-card:hover::before {
    opacity: 0.5;
}

.repo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.2);
}

.repo-title {
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    color: var(--electric-blue);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.repo-title::before {
    content: "\26A1";
}

.repo-desc {
    color: rgba(240, 240, 240, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.repo-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--toxic-yellow);
    font-family: 'VT323', monospace;
}

.repo-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ═══════════════════════════════════════════════════════════════
   CODE SNIPPETS
   ═══════════════════════════════════════════════════════════════ */

.snippet-container {
    background: #0d0d0d;
    border-left: 3px solid var(--magenta);
    margin: 1.5rem 0;
    position: relative;
}

.snippet-header {
    background: rgba(255, 0, 255, 0.1);
    padding: 0.5rem 1rem;
    font-family: 'VT323', monospace;
    color: var(--magenta);
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.snippet-lang {
    background: var(--magenta);
    color: var(--void-black);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
}

pre {
    padding: 1.5rem;
    overflow-x: auto;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

code {
    color: var(--glitch-white);
}

.code-keyword { color: var(--blood-red); }
.code-string { color: var(--toxic-yellow); }
.code-comment { color: #666; font-style: italic; }
.code-function { color: var(--electric-blue); }
.code-number { color: var(--magenta); }

/* ═══════════════════════════════════════════════════════════════
   GLITCH TEXT
   ═══════════════════════════════════════════════════════════════ */

.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    color: var(--blood-red);
    animation: glitch-1 2s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch-text::after {
    color: var(--electric-blue);
    animation: glitch-2 3s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(3px, -3px); }
    40% { transform: translate(3px, 3px); }
    60% { transform: translate(-3px, -3px); }
    80% { transform: translate(-3px, 3px); }
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

.main-footer {
    border-top: 1px solid rgba(57, 255, 20, 0.3);
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(0deg, rgba(26, 11, 46, 0.8) 0%, rgba(5, 5, 5, 0) 100%);
    margin-top: 4rem;
    position: relative;
}

.main-footer::before {
    content: "/* SYSTEM SHUTDOWN SEQUENCE INITIATED */";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--void-black);
    padding: 0 1rem;
    color: var(--blood-red);
    font-family: 'VT323', monospace;
    font-size: 0.8rem;
}

.footer-text {
    font-family: 'VT323', monospace;
    color: rgba(240, 240, 240, 0.5);
    font-size: 1rem;
    letter-spacing: 2px;
}

.footer-glitch {
    color: var(--neon-green);
    animation: flicker 4s infinite;
}

/* ═══════════════════════════════════════════════════════════════
   EASTER EGGS & SECRETS
   ═══════════════════════════════════════════════════════════════ */

.secret-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: help;
    z-index: 100;
    opacity: 0.1;
    transition: opacity 0.3s;
}

.secret-trigger:hover {
    opacity: 1;
}

.secret-trigger::after {
    content: "\1F435";
    font-size: 1.5rem;
}

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

/* ═══════════════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--void-black);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-green);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--electric-blue);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .logo-img {
        max-width: 280px;
    }

    .slogan-img {
        max-width: 200px;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.6rem 1rem;
    }

    .repo-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════
   KONAMI CODE EASTER EGG
   ═══════════════════════════════════════════════════════════════ */

.konami-active {
    animation: rainbow 2s linear infinite;
}

@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}
