@import url('https://fonts.googleapis.com/css2?family=DotGothic16&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kaisei+Tokumin:wght@800&display=swap');

:root {
    --color-bg: #F0F0F0;
    --color-text: #001f3f;
    --color-neon: #FFFF00;
    /* The references yellow */
    --color-accent: #FF3333;
    /* Red badge color */
    --color-secondary: #CCCCFF;
    /* Light Periwinkle */
    --border-thick: 4px solid #001f3f;
    --shadow-hard: 8px 8px 0px 0px #001f3f;
    --shadow-hover: 12px 12px 0px 0px #001f3f;
}

.font-pixel {
    font-family: 'DotGothic16', sans-serif;
}

.font-gyosho {
    font-family: 'Kaisei Tokumin', serif;
    font-weight: 800;
    /* Real ExtraBold */
    letter-spacing: 0.1em;
    /* Add some breathing room for the heavy font */
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'Space Mono', monospace;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
.font-display {
    font-family: 'Archivo Black', sans-serif;
    text-transform: uppercase;
}

/* Neo-Brutalist Components */
.neo-box {
    background-color: #FFFFFF;
    border: var(--border-thick);
    box-shadow: var(--shadow-hard);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.neo-box:hover {
    transform: translate(-4px, -4px);
    box-shadow: var(--shadow-hover);
}

.neo-box.no-hover:hover {
    transform: none;
    box-shadow: var(--shadow-hard);
}

.neo-btn {
    background-color: var(--color-neon);
    border: var(--border-thick);
    box-shadow: 4px 4px 0px 0px #000000;
    font-family: 'Archivo Black', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.1s;
}

.neo-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px 0px #000000;
}

.neo-badge {
    background-color: var(--color-accent);
    color: white;
    padding: 0.2rem 1rem;
    border: var(--border-thick);
    display: inline-block;
    font-weight: bold;
    transform: rotate(-2deg);
}

/* Marquee / Infinite Scroll */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    border-top: var(--border-thick);
    border-bottom: var(--border-thick);
    background: #000;
    color: #fff;
    white-space: nowrap;
    padding: 1rem 0;
}

.marquee-wrapper.neon {
    background: var(--color-neon);
    color: #000;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    /* padding-left: 100%; Removed to allow immediate display */
}

.marquee-inner {
    display: inline-block;
    padding-right: 50px;
    font-size: 2rem;
    /* Mobile default */
    line-height: 1;
}

@media (min-width: 768px) {
    .marquee-inner {
        font-size: 4rem;
    }
}

@keyframes marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }

    /* Changed to -50% for seamless loop if content is duplicated */
}

@keyframes marquee-reverse {
    0% {
        transform: translate3d(-50%, 0, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

.marquee-content.reverse {
    animation: marquee-reverse 20s linear infinite;
}

.marquee-img-container {
    display: inline-flex;
    gap: 1rem;
    align-items: center;
}

.marquee-img {
    height: 120px;
    /* Default for mobile */
    width: 160px;
    /* Fixed width to prevent "huge" images */
    object-fit: cover;
    /* Centers content */
    border: var(--border-thick);
    box-shadow: 4px 4px 0px 0px #000;
    transition: transform 0.2s;
    background: white;
}

@media (min-width: 768px) {
    .marquee-img {
        height: 200px;
        width: 280px;
        /* Fixed width for desktop */
    }
}

.marquee-img:hover {
    transform: scale(1.05);
}

/* Glitch / Kinetic Text Effect */
.glitch-hover:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: var(--color-accent);
}

@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)
    }
}

/* Grid Layouts */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    padding: 24px;
}

/* Custom Cursor Logic */
body,
a,
button,
input,
.cursor-pointer {
    cursor: none !important;
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background-color: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Hover state for links/buttons */
body.hovering .custom-cursor {
    width: 48px;
    height: 48px;
    background-color: #3333FF;
    /* Blue for visibility on neon */
    mix-blend-mode: normal;
    /* Optional: reset blend mode on hover if needed, or keep diff */
    opacity: 0.8;
}