/* AI Logo Animation */
.ai-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(110, 142, 251, 0.4);
    position: relative;
    z-index: 1;
}

.pulse-animation {
    animation: ai-pulse 2s infinite;
}

.ai-logo-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    border-radius: 50%;
    z-index: 0;
}

.ai-particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particle-float 4s ease-in-out infinite;
}

/* AI Assistant UI */
.ai-assistant-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(110, 142, 251, 0.2);
}

.ai-assistant-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: rgba(110, 142, 251, 0.5);
}

.ai-assistant-header {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    position: relative;
    overflow: hidden;
}

.ai-assistant-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.6;
    animation: ai-pulse 3s infinite;
}

.ai-assistant-icon {
    font-size: 24px;
    margin-right: 10px;
    animation: ai-float 3s ease-in-out infinite;
}

.ai-assistant-body {
    padding: 20px;
}

.ai-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    font-size: 24px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(110, 142, 251, 0.4);
}

/* Voice Assistant Styles */
.voice-assistant-mic-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.voice-assistant-mic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border-radius: 50%;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(110, 142, 251, 0.4);
    z-index: 2;
    cursor: pointer;
    animation: ai-pulse-mic 2s infinite;
}

.voice-assistant-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(110, 142, 251, 0.3);
    animation: ai-wave 2s infinite;
}

.voice-assistant-wave:nth-child(2) {
    animation-delay: 0.3s;
}

.voice-assistant-wave:nth-child(3) {
    animation-delay: 0.6s;
}

/* Social Icons Animation */
.social-icon {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: rgba(110, 142, 251, 0.8);
    transform: translateY(-3px);
}

/* Footer Enhancements */
.footer-links li a {
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    transform: translateX(5px);
    color: #a777e3 !important;
}

.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(110, 142, 251, 0.2);
    color: #fff;
}

/* AI Assistant Chat Interface */
.ai-chat-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    max-width: 90vw;
    height: 500px;
    max-height: 70vh;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    transition: all 0.3s ease;
}

.ai-chat-container.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.ai-chat-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
}

.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border-radius: 15px 15px 0 0;
}

.header-actions {
    display: flex;
    align-items: center;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4CAF50;
    display: inline-block;
}

.status-indicator.online {
    background-color: #4CAF50;
}

.status-indicator.away {
    background-color: #FFC107;
}

.status-indicator.offline {
    background-color: #F44336;
}

.ai-chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-date-divider {
    text-align: center;
    margin: 10px 0;
    position: relative;
}

.chat-date-divider span {
    background: #f8f9fa;
    padding: 0 10px;
    font-size: 12px;
    color: #6c757d;
    position: relative;
    z-index: 1;
}

.chat-date-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dee2e6;
    z-index: 0;
}

.ai-message {
    display: flex;
    margin-bottom: 15px;
    max-width: 80%;
}

.ai-message-assistant {
    align-self: flex-start;
}

.ai-message-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.ai-message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 8px;
    flex-shrink: 0;
}

.ai-message-assistant .ai-message-avatar {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
}

.ai-message-user .ai-message-avatar {
    background: #e9ecef;
    color: #495057;
}

.ai-message-content {
    padding: 10px 15px;
    border-radius: 18px;
    position: relative;
}

.ai-message-assistant .ai-message-content {
    background: #f1f3f5;
    border-top-left-radius: 4px;
}

.ai-message-user .ai-message-content {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border-top-right-radius: 4px;
}

.ai-message-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 12px;
}

.ai-message-sender {
    font-weight: bold;
}

.ai-message-time {
    opacity: 0.7;
}

.ai-message-actions {
    display: flex;
    gap: 5px;
    margin-top: 5px;
    justify-content: flex-end;
}

.action-btn {
    padding: 2px 5px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 4px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-message-user .action-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.ai-chat-footer {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-top: 1px solid #dee2e6;
}

.ai-chat-input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    background: #f1f3f5;
    margin: 0 10px;
    outline: none;
    transition: all 0.3s ease;
}

.ai-chat-input:focus {
    background: #e9ecef;
    box-shadow: 0 0 0 2px rgba(110, 142, 251, 0.2);
}

.ai-feature-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.ai-feature-btn:hover {
    background: #f1f3f5;
    color: #6e8efb;
}

.ai-send-btn {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(110, 142, 251, 0.3);
}

.ai-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(110, 142, 251, 0.4);
}

.typing-indicator .typing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.typing span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #adb5bd;
    display: inline-block;
    animation: ai-typing 1.4s infinite both;
}

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

.typing span:nth-child(3) {
    animation-delay: 0.4s;
}

.ai-assistant-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(110, 142, 251, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.ai-assistant-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(110, 142, 251, 0.5);
}

.ai-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(110, 142, 251, 0.4);
}

.user-avatar {
    background: #e9ecef;
    color: #495057;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #F44336;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
}

/* Animations */
@keyframes ai-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(110, 142, 251, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(110, 142, 251, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(110, 142, 251, 0);
    }
}

@keyframes ai-pulse-border {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    70% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes ai-float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes ai-wave {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@keyframes ai-pulse-mic {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes ai-typing {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-10px) translateX(10px);
    }
    50% {
        transform: translateY(5px) translateX(-5px);
    }
    75% {
        transform: translateY(10px) translateX(5px);
    }
}

/* Feature hover effect */
.feature-hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* AI Assistant Chat in Hero Section */
.ai-assistant-chat {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    margin-top: 20px;
}

.ai-assistant-chat.active {
    opacity: 1;
    transform: translateY(0);
}

.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
}

.ai-chat-messages {
    height: 250px;
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
}

.ai-chat-input-container {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-top: 1px solid #dee2e6;
}

.ai-feature-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    transition: all 0.2s ease;
}

.ai-feature-btn:hover {
    color: #6e8efb;
}

.ai-message-assistant {
    display: flex;
    margin-bottom: 15px;
}

.ai-message-user {
    display: flex;
    flex-direction: row-reverse;
    margin-bottom: 15px;
}

.ai-message-content {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    position: relative;
}

.ai-message-assistant .ai-message-content {
    background: #f1f3f5;
    border-top-left-radius: 4px;
    margin-left: 10px;
}

.ai-message-user .ai-message-content {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border-top-right-radius: 4px;
    margin-right: 10px;
}

.ai-message-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 12px;
}

.ai-message-sender {
    font-weight: bold;
}

.ai-message-time {
    opacity: 0.7;
}

.ai-message-actions {
    display: flex;
    gap: 5px;
    margin-top: 5px;
    justify-content: flex-end;
}

.action-btn {
    padding: 2px 5px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 4px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-message-user .action-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}