:root {
    --bg-deep: #050510;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.team-chat-scroll {
    scrollbar-width: thin;
    scrollbar-color: #FFCC00 #28283d;
}
.team-chat-scroll::-webkit-scrollbar {
    width: 6px;
}
.team-chat-scroll::-webkit-scrollbar-track {
    background: #28283d;
}
.team-chat-scroll::-webkit-scrollbar-thumb {
    background: #FFCC00;
}

.bg-blueprint-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/robot-head-blueprint.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.08;
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: screen;
}

.bg-circuit-board {
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 204, 0, 0.05) 1px, transparent 0);
    background-size: 20px 20px;
}

.hazard-stripes {
    background: repeating-linear-gradient(
        45deg,
        #FFCC00,
        #FFCC00 10px,
        #050510 10px,
        #050510 20px
    );
}

/* Glitch Animation for Logo */
@keyframes logo-glitch {
    0% { transform: translate(0); text-shadow: none; }
    20% { transform: translate(-2px, 2px); text-shadow: 2px 0 #FF3300, -2px 0 #00FF41; }
    40% { transform: translate(-2px, -2px); text-shadow: -2px 0 #FF3300, 2px 0 #00FF41; }
    60% { transform: translate(2px, 2px); text-shadow: 2px 0 #FF3300, -2px 0 #00FF41; }
    80% { transform: translate(2px, -2px); text-shadow: -2px 0 #FF3300, 2px 0 #00FF41; }
    100% { transform: translate(0); text-shadow: none; }
}
.logo-glitch-hover:hover {
    animation: logo-glitch 0.2s infinite;
}

@keyframes jitter {
    0% { transform: translateY(0); }
    25% { transform: translateY(-1px); }
    50% { transform: translateY(1px); }
    75% { transform: translateY(-0.5px); }
    100% { transform: translateY(0); }
}
.jitter-text {
    animation: jitter 0.1s infinite;
}

@keyframes badge-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
    55% { opacity: 1; }
    60% { opacity: 0.1; }
    65% { opacity: 1; }
}
.flicker-badge {
    animation: badge-flicker 4s infinite;
}

@keyframes screen-shake {
    0% { transform: translate(0,0); }
    10% { transform: translate(-2px, -2px); }
    20% { transform: translate(2px, 1px); }
    30% { transform: translate(-1px, 2px); }
    40% { transform: translate(1px, -1px); }
    50% { transform: translate(-2px, 1px); }
    100% { transform: translate(0,0); }
}
.shake-trigger:hover {
    animation: screen-shake 0.3s infinite;
}

.sidebar-icon-glitch:hover {
    filter: drop-shadow(2px 0px 0px #FF3300) drop-shadow(-2px 0px 0px #00FF41);
    transition: filter 0.1s;
}

.peeling-tape {
    position: absolute;
    width: 60px;
    height: 20px;
    background: #4A4A4A;
    opacity: 0.8;
    transform: rotate(-45deg);
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    pointer-events: none;
}
.peeling-tape::after {
    content: "";
    position: absolute;
    bottom: 0; right: 0;
    width: 10px; height: 10px;
    background: rgba(0,0,0,0.2);
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
}

.glitch-flicker {
    animation: flicker 2s infinite;
}

@keyframes flicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% { opacity: 1; }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% { opacity: 0.4; }
}

.risk-it-btn:hover {
    animation: shake 0.2s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.duct-tape {
    background: #4A4A4A;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}
.duct-tape::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,0.05) 2px, rgba(255,255,255,0.05) 4px);
}

.sticker-card {
    box-shadow: 5px 5px 0px 0px #FFCC00;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10 L20 10 L20 20 L30 20 L30 30' stroke='rgba(255,204,0,0.05)' fill='none'/%3E%3Crect x='45' y='45' width='10' height='10' stroke='rgba(255,204,0,0.03)' fill='none'/%3E%3C/svg%3E");
}

.blinking-cursor::after {
    content: "_";
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

#bg-canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    opacity: 0.3;
}

.card-circuit {
    background-image: url('images/robot-head-blueprint.png');
    background-size: 200%;
    background-position: center;
    background-blend-mode: overlay;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-track {
    animation: marquee 20s linear infinite;
}

/* Terminal-style form inputs (Contacts page) */
.terminal-input {
    background: transparent;
    border: none;
    border-bottom: 2px solid #4e4632;
    color: #ffedc3;
    font-family: 'JetBrains Mono', monospace;
    padding: 8px 0;
    width: 100%;
}
.terminal-input:focus {
    outline: none;
    border-color: #FFCC00;
}
.terminal-input::placeholder {
    color: #9a9078;
    opacity: 0.6;
    font-style: italic;
}
