/* ============================================================================== */
/* Spark AI Assistant - FINAL Professional UI Stylesheet                        */
/* ============================================================================== */

body, html {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    background-color: #0d1117;
    color: #c9d1d9;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100vh;
    padding-bottom: 5vh;
    box-sizing: border-box;
}

#subtitle-container {
    position: absolute;
    bottom: 220px;
    width: 100%;
    text-align: center;
    min-height: 50px;
}

#subtitle-text {
    font-size: 1.8em;
    margin: 0;
    padding: 0 20px;
    text-shadow: 0 0 10px rgba(88, 166, 255, 0.5);
    opacity: 0;
    transition: opacity 0.5s ease;
}

#interaction-orb {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, #238636 0%, #165324 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: none;
    box-shadow: 0 0 20px rgba(46, 160, 67, 0.4);
    animation: breathe 4s infinite ease-in-out; /* Breathing effect for idle state */
}

#interaction-orb.listening {
    background: radial-gradient(ellipse at center, #d73a49 0%, #8a2430 100%);
    box-shadow: 0 0 30px rgba(215, 58, 73, 0.7);
    animation: none;
}

#interaction-orb.speaking {
    background: radial-gradient(ellipse at center, #58a6ff 0%, #3081f7 100%);
    box-shadow: 0 0 30px rgba(88, 166, 255, 0.7);
    animation: none;
}

@keyframes breathe {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    70% { transform: scale(1.15); opacity: 0; }
    100% { transform: scale(0.95); opacity: 0.7; }
}