@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;600;900&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --bg-color: #0B162A;
    /* Chicago Bears Navy */
    --accent-color: #C83803;
    /* Chicago Bears Orange */
    --secondary-color: #FFFFFF;
    --keyword-color: #C83803;
    --string-color: #FFFFFF;
    --func-color: #FF6B35;
    --text-color: #FFFFFF;
    --surface: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.05);
    --desc-color: rgba(255, 255, 255, 0.5);
    --scanline-opacity: 0.1;
}

body.light-mode {
    --bg-color: #F8F9FA;
    --accent-color: #C83803;
    --secondary-color: #0B162A;
    --keyword-color: #C83803;
    --string-color: #0B162A;
    --func-color: #2D3748;
    --text-color: #1A202C;
    --surface: rgba(0, 0, 0, 0.03);
    --border: rgba(0, 0, 0, 0.1);
    --desc-color: rgba(11, 22, 42, 0.6);
    --scanline-opacity: 0.05;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.5s ease, color 0.5s ease;
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

canvas {
    display: block;
    opacity: 0.15;
}

.main-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 3rem;
    background: var(--surface);
    backdrop-filter: blur(15px);
    border-radius: 32px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Theme Toggle Button */
#theme-toggle {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-color);
    padding: 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(10px);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    background: var(--accent-color);
    color: white;
}

#theme-toggle svg {
    width: 24px;
    height: 24px;
}

h1 {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: -2px;
    text-transform: lowercase;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    line-height: 1;
    position: relative;
}

.token {
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    position: relative;
}

.keyword {
    color: var(--keyword-color);
    text-shadow: 0 0 20px rgba(200, 56, 3, 0.4);
}

.string {
    color: var(--string-color);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.func {
    color: var(--func-color);
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

.punctuation {
    color: var(--text-color);
    opacity: 0.6;
}

h1 span:hover {
    transform: scale(1.1) rotate(1deg);
    filter: brightness(1.4) contrast(1.2);
    letter-spacing: 2px;
}

.description {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--desc-color);
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
}

.description::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--accent-color);
    opacity: 0.5;
}

/* Retro Terminal Scanlines */
body::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, var(--scanline-opacity)) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
    z-index: 100;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        filter: blur(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 2rem;
        width: 90%;
        max-width: 500px;
    }

    h1 {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1.5rem;
        border-radius: 20px;
    }

    h1 {
        font-size: 2.2rem;
        gap: 0.2rem;
    }

    .description {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    #theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    #theme-toggle svg {
        width: 20px;
        height: 20px;
    }
}