:root {
    --bg-color: #050505;
    --text-color: #f0f0f0;
    --grid-color: rgba(255, 255, 255, 0.1);

    /* --- THE VOLTAGE PALETTE --- */
    --accent-lime: #ccff00;
    --accent-cyan: #00f3ff;
    --accent-magenta: #ff00ea;
    --accent-orange: #ff5500;

    /* Default accent is lime */
    --accent: var(--accent-lime);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Archivo', sans-serif;
    overflow-x: hidden;
    cursor: none;
}

/* --- UTILITY CLASSES FOR COLORS --- */
.text-lime { color: var(--accent-lime); }
.text-cyan { color: var(--accent-cyan); }
.text-magenta { color: var(--accent-magenta); }
.text-orange { color: var(--accent-orange); }

.border-lime { border-color: var(--accent-lime); }
.border-cyan { border-color: var(--accent-cyan); }
.border-magenta { border-color: var(--accent-magenta); }
.border-orange { border-color: var(--accent-orange); }

.bg-lime { background-color: var(--accent-lime); }
.bg-cyan { background-color: var(--accent-cyan); }
.bg-magenta { background-color: var(--accent-magenta); }
.bg-orange { background-color: var(--accent-orange); }

/* Hover Borders */
.hover-border-lime:hover { border-color: var(--accent-lime); }
.hover-border-cyan:hover { border-color: var(--accent-cyan); }
.hover-border-magenta:hover { border-color: var(--accent-magenta); }
.hover-border-orange:hover { border-color: var(--accent-orange); }

/* Gradients */
.text-gradient {
    background: linear-gradient(90deg, var(--accent-lime), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- CUSTOM CURSOR --- */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--text-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}
#cursor.hovered {
    width: 50px;
    height: 50px;
    background-color: white;
    border-color: transparent;
    mix-blend-mode: exclusion;
}

/* --- VISUAL FX --- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.05;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAA5OTkAAABERERmZmYzMzNMTExVVVUis8OIAAAAB3RSTlMAMwA1MzMzM7O0s14AAABUSURBVDjLxZExDQAxDEX9+xg4yIEDIIFCS6FPOxO1s9Gv9w55/2cUkyRJMkmSJJMkSTJJkiSTJEkySZIkkyRJMkmSJJMkSTJJkiSTJEkySZIkkyRJMk/yA3PrX2wEAAAAAElFTkSuQmCC');
}

/* Typography Utils */
.font-mono { font-family: 'Space Mono', monospace; }

.text-stroke {
    -webkit-text-stroke: 1px rgba(255,255,255,0.5);
    color: transparent;
    transition: all 0.3s ease;
}
.text-stroke:hover {
    -webkit-text-stroke: 1px var(--accent);
    color: var(--accent);
}

/* Grid Layouts */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--accent); }

/* --- GLITCH FX --- */
.glitch-wrapper { position: relative; display: inline-block; }
.glitch-wrapper::before, .glitch-wrapper::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}
.glitch-wrapper::before {
    left: 2px;
    text-shadow: -1px 0 var(--accent-magenta);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}
.glitch-wrapper::after {
    left: -2px;
    text-shadow: -1px 0 var(--accent-cyan);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}
@keyframes glitch-anim {
    0% { clip: rect(34px, 9999px, 11px, 0); }
    20% { clip: rect(68px, 9999px, 95px, 0); }
    40% { clip: rect(16px, 9999px, 3px, 0); }
    60% { clip: rect(72px, 9999px, 32px, 0); }
    80% { clip: rect(9px, 9999px, 46px, 0); }
    100% { clip: rect(56px, 9999px, 98px, 0); }
}
@keyframes glitch-anim2 {
    0% { clip: rect(2px, 9999px, 81px, 0); }
    20% { clip: rect(63px, 9999px, 15px, 0); }
    40% { clip: rect(36px, 9999px, 88px, 0); }
    60% { clip: rect(12px, 9999px, 5px, 0); }
    80% { clip: rect(89px, 9999px, 36px, 0); }
    100% { clip: rect(26px, 9999px, 68px, 0); }
}

/* --- FOOTER LINKS --- */
.footer-link { position: relative; }
.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}
.footer-link:hover::after { width: 100%; }

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: absolute;
}

/* --- CHAT CSS --- */
.chat-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 20px;
    margin-top: 2rem;
    font-family: 'Space Mono', monospace;
}
.chat-container::-webkit-scrollbar { width: 4px; }
.chat-container::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

.chat-message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
    opacity: 0; /* Animated in with GSAP */
}
.bot-message { justify-content: flex-start; }
.user-message { justify-content: flex-end; }

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #222;
    border: 1px solid #444;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 10px;
}
.avatar-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid var(--bg-color);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.message-bubble {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    max-width: 85%;
    font-size: 13px;
    line-height: 1.5;
    color: #ddd;
}
.user-message .message-bubble {
    background: var(--accent-lime);
    color: black;
    border: none;
    font-weight: bold;
}

.chat-link { color: var(--accent); text-decoration: underline; }

.chat-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
}
.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 14px;
    color: white;
    font-family: 'Space Mono', monospace;
    outline: none;
    transition: all 0.3s ease;
}
.chat-input:focus { border-color: var(--accent); background: rgba(255, 255, 255, 0.1); }
.chat-input:disabled { opacity: 0.5; cursor: not-allowed; }

.chat-send-button {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: var(--accent);
    border: none;
    color: black;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.chat-send-button:hover { transform: scale(1.05); }

.service-option-btn {
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 4px;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Space Mono', monospace;
}
.service-option-btn:hover {
    background: linear-gradient(90deg, var(--accent-lime), var(--accent-cyan));
    color: black;
    border-color: transparent;
}
.chat-skip-button {
    position: absolute;
    right: 60px;
    font-size: 10px;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}
.chat-skip-button:hover { color: white; }

/* Canvas z-index */
#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
}
