/* Custom Styling for Vector Inside Web v4 */

/* Custom scrollbar matching terminal aesthetic */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #000000;
    border-left: 1px solid #333333;
}
::-webkit-scrollbar-thumb {
    background: #333333;
    border: 1px solid #000000;
}
::-webkit-scrollbar-thumb:hover {
    background: #E7F900;
}

body {
    background-color: #000000;
    color: #e2e2e2;
    cursor: crosshair;
}

/* scanline scan animation */
.scanline {
    width: 100%;
    height: 2px;
    background: rgba(231, 249, 0, 0.1);
    position: fixed;
    top: 0;
    z-index: 100;
    pointer-events: none;
    animation: scan 8s linear infinite;
}
@keyframes scan {
    0% { top: 0%; }
    100% { top: 100%; }
}

/* Glitch animation for hover */
.glitch-hover:hover {
    animation: glitch 0.25s steps(2) infinite;
}
@keyframes glitch {
    0% { transform: translate(1px, -1px); filter: hue-rotate(90deg); }
    50% { transform: translate(-1px, 1px); filter: hue-rotate(180deg); }
    100% { transform: translate(0, 0); }
}

/* ==========================================================================
   ADVANCED LIQUID GLASS SYSTEM
   Simulates light refraction, high blur, and physics-based fluid transitions.
   ========================================================================== */

/* Standard Glass Container */
.liquid-glass {
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.1), 
        inset 0 -1px 2px rgba(0, 0, 0, 0.4),
        0 12px 32px rgba(0, 0, 0, 0.5);
    transition: 
        background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover State - Refraction flare with Vector Voltage brand color */
.liquid-glass:hover {
    background: rgba(231, 249, 0, 0.03);
    border-color: rgba(231, 249, 0, 0.35);
    box-shadow: 
        inset 0 1px 2px rgba(231, 249, 0, 0.25),
        inset 0 -1px 1px rgba(255, 255, 255, 0.02),
        0 16px 36px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(231, 249, 0, 0.08);
    transform: translateY(-2px);
}

/* Action Button with Liquid Glass aesthetic */
.liquid-glass-button {
    background: rgba(231, 249, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        inset 0 1.5px 0.5px rgba(255, 255, 255, 0.45), 
        inset 0 -2px 1px rgba(0, 0, 0, 0.2),
        0 4px 15px rgba(231, 249, 0, 0.15);
    transition: 
        background-color 0.3s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.liquid-glass-button:hover {
    background: rgba(231, 249, 0, 1);
    box-shadow: 
        inset 0 1.5px 0.5px rgba(255, 255, 255, 0.6),
        0 0 25px rgba(231, 249, 0, 0.45),
        0 8px 20px rgba(231, 249, 0, 0.25);
    transform: translateY(-1px);
}

.liquid-glass-button:active {
    transform: translateY(1px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 2px 5px rgba(231, 249, 0, 0.2);
}

/* Telemetry fill styling */
.telemetria-bar-track {
    background-color: #0c0f0f;
    border: 1px solid #333333;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
}

.telemetria-bar-fill-after {
    transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.viz-bar-fill {
    transition: height 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Glitch animation for section title (changes to white every 7 seconds) */
@keyframes title-glitch {
    0%, 94%, 96%, 100% {
        color: #E7F900;
        text-shadow: none;
    }
    95% {
        color: #ffffff;
        text-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
    }
    97% {
        color: #ffffff;
        text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
    }
}
.glitch-title {
    animation: title-glitch 7s infinite;
}

/* Slogan per-letter blur fade-in animation on page load */
.blur-char {
    filter: blur(8px);
    opacity: 0;
    animation: blur-fade-in 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes blur-fade-in {
    0% {
        opacity: 0;
        filter: blur(8px);
        transform: translateY(2px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

/* Floating Chatbot Sentinel (FAB) */
.floating-chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 120px;
    height: 120px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    perspective: 1000px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.floating-chatbot:hover {
    transform: scale(1.08);
}

.floating-chatbot img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    animation: chatbot-sun-pulse 4.5s ease-in-out infinite;
    transition: filter 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.floating-chatbot:hover img {
    filter: drop-shadow(0 0 35px rgba(231, 249, 0, 0.9)) brightness(1.1);
}

@keyframes chatbot-sun-pulse {
    0% {
        transform: translateY(0) rotateX(-6deg);
        filter: drop-shadow(0 0 15px rgba(231, 249, 0, 0.45));
    }
    50% {
        transform: translateY(-10px) rotateX(6deg);
        filter: drop-shadow(0 0 35px rgba(231, 249, 0, 0.85));
    }
    100% {
        transform: translateY(0) rotateX(-6deg);
        filter: drop-shadow(0 0 15px rgba(231, 249, 0, 0.45));
    }
}
