/* The Orb Container 
   We use a blur filter here to merge the internal shapes together
*/
.orb-container {
    position: relative;
    width: 300px;
    height: 300px;
    filter: blur(40px);
    /* This contrast trick helps sharpen the edges after the blur if you want a solid blob,
       but for a Siri look, we keep it soft (no contrast filter). */
    transition: transform 0.5s ease-out, filter 0.5s ease;
}

/* Shared styles for the internal glow blobs 
*/
.glow-blob {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    mix-blend-mode: screen; /* Crucial for the light mixing effect */
    opacity: 0.8;
    will-change: transform, border-radius;
}

/* Individual Colors & Animations 
   We offset times and directions to create "chaos" / fluid motion
*/
.blob-1 {
    background: radial-gradient(circle at 30% 30%, #4facfe, #00f2fe);
    animation: moveShape1 8s infinite alternate ease-in-out, rotate 10s linear infinite;
}

.blob-2 {
    background: radial-gradient(circle at 70% 30%, #f093fb, #f5576c);
    animation: moveShape2 7s infinite alternate-reverse ease-in-out, rotate 12s linear infinite reverse;
}

.blob-3 {
    background: radial-gradient(circle at 50% 80%, #43e97b, #38f9d7);
    opacity: 0.6;
    animation: moveShape3 6s infinite alternate ease-in-out, rotate 8s linear infinite;
}

/* Core White Center (The "Soul" of the orb)
*/
.orb-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 60%);
    mix-blend-mode: overlay;
    z-index: 10;
}

/* ANIMATIONS 
*/
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes moveShape1 {
    0% { transform: translate(10%, -10%) scale(0.9); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    100% { transform: translate(-10%, 10%) scale(1.1); border-radius: 60% 40% 30% 70% / 60% 50% 40% 50%; }
}

@keyframes moveShape2 {
    0% { transform: translate(-10%, -5%) scale(1.1); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    100% { transform: translate(10%, 5%) scale(0.9); border-radius: 30% 70% 70% 30% / 30% 30% 60% 70%; }
}

@keyframes moveShape3 {
    0% { transform: translate(0%, 10%) scale(0.95); border-radius: 50% 50% 40% 60% / 50% 50% 60% 40%; }
    100% { transform: translate(0%, -10%) scale(1.05); border-radius: 40% 60% 60% 40% / 40% 60% 40% 60%; }
}

/* LISTENING STATE 
   When active, everything moves faster and scales up
*/
.active-state .orb-container {
    transform: scale(1.2);
    filter: blur(30px); /* Sharpen slightly when active */
}

.active-state .blob-1 { animation-duration: 2s, 3s; }
.active-state .blob-2 { animation-duration: 2.5s, 4s; }
.active-state .blob-3 { animation-duration: 2.2s, 3.5s; }


/* UI Elements Fade In */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}
@keyframes fadeIn {
    to { opacity: 1; }
}