@import url("https://fonts.googleapis.com/css2?family=Anton&family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;0,700&display=swap");

@tailwind base;
@tailwind components;
@tailwind utilities;

body {
    margin: 0;
    background-color: #000000;
    color: #ffffff;
    font-family: "IBM Plex Mono", monospace;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background-color: #ff00aa;
    color: #000000;
}

/* ===== RGB ANIMATED COLORS ===== */
@keyframes rgb-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes rgb-hue {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

/* Solid RGB background (animated gradient) */
.rgb-bg {
    background: linear-gradient(90deg,
            #ff003c,
            #ff8a00,
            #ffe600,
            #29ff7a,
            #00d4ff,
            #6a00ff,
            #ff00aa,
            #ff003c);
    background-size: 400% 100%;
    animation: rgb-shift 8s linear infinite;
    color: #000;
}

.rgb-bg:hover {
    animation-duration: 3s;
}

/* RGB text via background-clip */
.rgb-text {
    background: linear-gradient(90deg,
            #ff003c,
            #ff8a00,
            #ffe600,
            #29ff7a,
            #00d4ff,
            #6a00ff,
            #ff00aa,
            #ff003c);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: rgb-shift 8s linear infinite;
}

/* RGB border using gradient */
.rgb-border {
    position: relative;
    background: #000;
}

.rgb-border::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(90deg,
            #ff003c,
            #ff8a00,
            #ffe600,
            #29ff7a,
            #00d4ff,
            #6a00ff,
            #ff00aa,
            #ff003c);
    background-size: 400% 100%;
    animation: rgb-shift 8s linear infinite;
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.font-display {
    font-family: "Anton", sans-serif;
    letter-spacing: -0.01em;
}

.font-mono {
    font-family: "IBM Plex Mono", monospace;
}

/* Grain overlay */
.grain::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
    opacity: 0.08;
    mix-blend-mode: overlay;
    z-index: 1;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 60, 0.6);
    }

    33% {
        box-shadow: 0 0 0 12px rgba(0, 212, 255, 0);
    }

    66% {
        box-shadow: 0 0 0 18px rgba(106, 0, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 170, 0);
    }
}

.pulse-glow {
    animation: pulse-glow 1.8s ease-out infinite;
}

@keyframes ticker-blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.blink {
    animation: ticker-blink 1s steps(1) infinite;
}

/* Eye isotype subtle blink + pupil dilation */
@keyframes eye-blink {

    0%,
    92%,
    100% {
        transform: scaleY(1);
    }

    95% {
        transform: scaleY(0.08);
    }
}

.eye-animated {
    transform-origin: center;
    animation: eye-blink 5s ease-in-out infinite;
}

/* Hide scrollbar on marquee */
.marquee-row::-webkit-scrollbar {
    display: none;
}

@layer base {
    :root {
        --background: 0 0% 0%;
        --foreground: 0 0% 100%;
        --card: 0 0% 4%;
        --card-foreground: 0 0% 100%;
        --popover: 0 0% 0%;
        --popover-foreground: 0 0% 100%;
        --primary: 100 100% 54%;
        --primary-foreground: 0 0% 0%;
        --secondary: 0 0% 9%;
        --secondary-foreground: 0 0% 100%;
        --muted: 0 0% 9%;
        --muted-foreground: 0 0% 63%;
        --accent: 100 100% 54%;
        --accent-foreground: 0 0% 0%;
        --destructive: 0 84% 60%;
        --destructive-foreground: 0 0% 100%;
        --border: 0 0% 15%;
        --input: 0 0% 15%;
        --ring: 100 100% 54%;
        --radius: 0px;
    }
}

@layer base {
    * {
        @apply border-border;
    }

    body {
        @apply bg-background text-foreground;
    }
}

@layer base {
    [data-debug-wrapper="true"] {
        display: contents !important;
    }
}