/* ==========================================================================
   VIVEK AI VOICE - CUSTOM STYLESHEET
   ========================================================================== */

/* --- HERO VOICE ORB ANIMATION --- */
.hero-voice-visualizer {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-orb-container {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(10, 91, 255, 0.25) 0%, rgba(255, 138, 0, 0.15) 70%, transparent 100%);
}

.voice-orb {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #3B82F6 50%, var(--secondary) 100%);
    box-shadow: 0 0 40px rgba(10, 91, 255, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.4);
    animation: orbPulse 3s infinite ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.voice-orb svg {
    width: 48px;
    height: 48px;
    fill: #ffffff;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.orb-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(10, 91, 255, 0.3);
    animation: ringExpand 3s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.orb-ring-1 {
    width: 180px;
    height: 180px;
    animation-delay: 0s;
}

.orb-ring-2 {
    width: 220px;
    height: 220px;
    animation-delay: 1s;
    border-color: rgba(255, 138, 0, 0.25);
}

.orb-ring-3 {
    width: 260px;
    height: 260px;
    animation-delay: 2s;
    border-color: rgba(10, 91, 255, 0.15);
}

@keyframes orbPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 40px rgba(10, 91, 255, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 60px rgba(255, 138, 0, 0.6), inset 0 0 25px rgba(255, 255, 255, 0.6);
    }
}

@keyframes ringExpand {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* --- DEMO CARD STYLES --- */
.demo-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--card-shadow);
    padding: 36px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.demo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.demo-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.demo-title-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(10, 91, 255, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
}

.status-pill.ready {
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pill.listening {
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    animation: pulseBorder 1.5s infinite;
}

.status-pill.thinking {
    background: rgba(245, 158, 11, 0.12);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-pill.speaking {
    background: rgba(10, 91, 255, 0.12);
    color: var(--primary);
    border: 1px solid rgba(10, 91, 255, 0.3);
}

.status-pill.error {
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
}

.status-pill.listening .status-dot {
    animation: blinkDot 0.8s infinite alternate;
}

@keyframes blinkDot {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

@keyframes pulseBorder {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* --- MIC BUTTON & INTERACTIVE CONTROLLER --- */
.mic-control-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 0 20px 0;
}

.big-mic-btn {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: none;
    outline: none;
    background: linear-gradient(135deg, var(--primary) 0%, #1D4ED8 100%);
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(10, 91, 255, 0.35);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.big-mic-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 16px 40px rgba(10, 91, 255, 0.5);
}

.big-mic-btn.is-listening {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    box-shadow: 0 0 35px rgba(239, 68, 68, 0.6);
    animation: micRipple 1.5s infinite;
}

.big-mic-btn.is-thinking {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.6);
}

.big-mic-btn.is-speaking {
    background: linear-gradient(135deg, var(--secondary) 0%, #D97706 100%);
    box-shadow: 0 0 35px rgba(255, 138, 0, 0.6);
}

@keyframes micRipple {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 25px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.mic-instruction {
    margin-top: 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

/* --- LIVE WAVEFORM EQUALIZER --- */
.waveform-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 48px;
    margin: 16px 0;
}

.wave-bar {
    width: 6px;
    height: 12px;
    background: var(--primary);
    border-radius: 4px;
    transition: height 0.15s ease;
}

.waveform-container.active .wave-bar {
    animation: waveAnim 1s ease-in-out infinite alternate;
}

.waveform-container.active .wave-bar:nth-child(1) { animation-delay: 0.1s; }
.waveform-container.active .wave-bar:nth-child(2) { animation-delay: 0.3s; }
.waveform-container.active .wave-bar:nth-child(3) { animation-delay: 0.2s; }
.waveform-container.active .wave-bar:nth-child(4) { animation-delay: 0.4s; }
.waveform-container.active .wave-bar:nth-child(5) { animation-delay: 0.15s; }
.waveform-container.active .wave-bar:nth-child(6) { animation-delay: 0.35s; }
.waveform-container.active .wave-bar:nth-child(7) { animation-delay: 0.25s; }

@keyframes waveAnim {
    0% { height: 8px; background: var(--primary); }
    100% { height: 42px; background: var(--secondary); }
}

/* --- PROMPT CHIPS --- */
.prompt-chips-wrapper {
    margin: 20px 0;
}

.chips-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.prompt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.prompt-chip {
    background: rgba(10, 91, 255, 0.06);
    border: 1px solid rgba(10, 91, 255, 0.15);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.prompt-chip:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* --- TRANSCRIPT CHAT PANEL --- */
.transcript-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 20px;
    max-height: 280px;
    min-height: 160px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
    scroll-behavior: smooth;
}

.chat-bubble {
    display: flex;
    flex-direction: column;
    max-width: 82%;
    animation: fadeIn 0.3s ease-out;
}

.chat-bubble.user {
    align-self: flex-end;
    align-items: flex-end;
}

.chat-bubble.ai {
    align-self: flex-start;
    align-items: flex-start;
}

.chat-sender {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    color: var(--text-tertiary);
}

.chat-content {
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.chat-bubble.user .chat-content {
    background: var(--primary);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.chat-bubble.ai .chat-content {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
}

.chat-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.chat-action-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.chat-action-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* --- FALLBACK TEXT INPUT --- */
.fallback-input-group {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.fallback-input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
}

.fallback-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 91, 255, 0.15);
}

/* --- FEATURE CARDS & GRID --- */
.feature-grid-8 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.feature-card-modern {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 28px 24px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow);
    border-color: rgba(10, 91, 255, 0.3);
}

.feature-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(10, 91, 255, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

/* --- HOW IT WORKS STEPS --- */
.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.step-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 30px 20px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 6px 16px rgba(10, 91, 255, 0.3);
}

/* --- ARCHITECTURE DIAGRAM --- */
.arch-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 36px;
    margin: 40px 0;
}

.arch-node {
    flex: 1;
    min-width: 180px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.arch-arrow {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: bold;
}

/* --- ROADMAP TIMELINE --- */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.roadmap-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
    position: relative;
}

.roadmap-card.active {
    border-color: var(--primary);
    background: rgba(10, 91, 255, 0.04);
}

.roadmap-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.roadmap-card.active .roadmap-badge {
    background: var(--primary);
    color: #ffffff;
}

.roadmap-card.upcoming .roadmap-badge {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 992px) {
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .arch-diagram {
        flex-direction: column;
    }
    .arch-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 600px) {
    .steps-container {
        grid-template-columns: 1fr;
    }
    .demo-card {
        padding: 20px;
    }
    .big-mic-btn {
        width: 90px;
        height: 90px;
        font-size: 2rem;
    }
}
