/* Industries Page Specific Styles */

/* ============================================================================
   AI REVOLUTION CHAT INTERFACE
   ============================================================================ */

.ai-revolution-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.chat-interface {
    max-width: 500px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.chat-time {
    font-size: 0.875rem;
    opacity: 0.9;
}

.chat-messages {
    padding: 1.5rem;
    min-height: 400px;
    max-height: 450px;
    overflow-y: auto;
    background: #f8f9fa;
}

.conversation-group {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.conversation-group.active {
    opacity: 1;
    transform: translateY(0);
}

.message {
    margin-bottom: 1rem;
    display: none;
    opacity: 0;
    flex-direction: column;
    transition: all 0.4s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.sent {
    align-items: flex-end;
}

.message.received {
    align-items: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
}

.message.sent .message-content {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-bottom-right-radius: 4px;
}

.message.received .message-content {
    background: white;
    color: var(--dark-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    padding: 0 0.5rem;
}

.message-source {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-top: 0.25rem;
    padding: 0 0.5rem;
}

/* Typing Animation */
.typing-indicator {
    opacity: 0;
}

.typing-indicator.typing {
    opacity: 1;
}

.typing-indicator::after {
    content: '|';
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.chat-input {
    padding: 1rem 1.5rem;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.typing-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.typing-dots {
    display: flex;
    gap: 2px;
}

.typing-dots span {
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing-bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Revolution Quote Styling */
.revolution-quote {
    position: relative;
    padding: 2rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.revolution-quote .lead {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--dark-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
    position: relative;
}

.revolution-quote .lead::before,
.revolution-quote .lead::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: Georgia, serif;
    position: absolute;
}

.revolution-quote .lead::before {
    top: -10px;
    left: -20px;
}

.revolution-quote .lead::after {
    bottom: -40px;
    right: -10px;
}

.quote-attribution {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

.attribution-line {
    height: 2px;
    width: 40px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 1px;
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */

@media (max-width: 768px) {
    .ai-revolution-section {
        padding: 60px 0;
    }
    
    .chat-interface {
        margin: 0 1rem;
        border-radius: 15px;
    }
    
    .chat-messages {
        min-height: 350px;
        max-height: 400px;
        padding: 1rem;
    }
    
    .message-content {
        max-width: 90%;
        padding: 0.6rem 0.875rem;
    }
    
    .revolution-quote {
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    .revolution-quote .lead {
        font-size: 1.1rem;
    }
    
    .revolution-quote .lead::before,
    .revolution-quote .lead::after {
        font-size: 2rem;
    }
    
    .quote-attribution {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .attribution-line {
        width: 30px;
    }
}