/* 
   Global CSS Variables & Reset 
   Theme: Marathon
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    /* --- Palette --- */
    --color-bg: #020617;
    /* Previously dark-900 */
    --color-bg-alt: #0f172a;
    /* Slightly lighter dark */

    --color-primary: #FACC15;
    /* Previously neon-400 */
    --color-primary-hover: #EAB308;
    /* Previously neon-500 */

    --color-text-main: #ffffff;
    --color-text-muted: #94a3b8;
    /* Slate 400 */
    --color-text-dim: #64748b;
    /* Slate 500 */

    --color-brand-blue: #0284c7;
    --color-brand-indigo: #4f46e5;

    /* --- Typography --- */
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Space Grotesk", sans-serif;

    /* Backwards compatibility aliases (to make refactor easier) */
    --dark-900: var(--color-bg);
    --neon-400: var(--color-primary);
    --neon-500: var(--color-primary-hover);
    --font-body: var(--font-sans);
    --font-mono: "Inter", monospace;
    /* Fallback for now */
}

/* --- Base Reset --- */
* {
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--color-bg);
    color: var(--color-text-main);
    overflow-x: hidden;
    font-family: var(--font-sans);
    margin: 0;
}

body::selection {
    background: var(--color-primary);
    color: var(--color-bg);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-alt);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* --- Shared Utilities --- */
.hidden {
    display: none;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Glass & Effects */
.glass-panel {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.text-stroke {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    color: transparent;
}

.text-stroke-hover:hover {
    -webkit-text-stroke: 0px;
    color: var(--color-primary);
}

/* --- Shared Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* Delays */
.delay-100 {
    animation-delay: 100ms;
    transition-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
    transition-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
    transition-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
    transition-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
    transition-delay: 500ms;
}