/* Advanced AI Chatbot Styles */

/* Chatbot Container */
.chatbot-container {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 400px;
    height: 600px;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-2xl);
    z-index: 998;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: all var(--transition-cubic);
    animation: fadeInUp 0.4s ease;
}

.chatbot-container.active {
    display: flex;
    animation: messageSlideIn 0.4s ease;
}

/* Chatbot Header */
.chatbot-header {
    background: var(--gradient-professional);
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
    padding: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.chatbot-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    animation: shimmer 3s ease-in-out infinite;
}

.chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.chatbot-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.chatbot-title h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.chatbot-status {
    font-size: 0.85rem;
    opacity: 0.9;
    position: relative;
    padding-left: 15px;
}

.chatbot-status::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.chatbot-controls {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.chatbot-voice-toggle,
.chatbot-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    color: white;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-voice-toggle:hover,
.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Chatbot Messages */
.chatbot-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(15, 15, 35, 0.5);
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 3px;
}

/* Chat Messages */
.chatbot-message {
    max-width: 85%;
    padding: 1rem 1.2rem;
    border-radius: var(--border-radius-lg);
    animation: messageSlideIn 0.3s ease;
    position: relative;
    word-wrap: break-word;
    line-height: 1.5;
}

.chatbot-message.user {
    background: var(--gradient-primary);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 8px;
    box-shadow: var(--shadow-md);
}

.chatbot-message.bot {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    margin-right: auto;
    border-bottom-left-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.chatbot-message.advanced {
    background: rgba(99, 102, 241, 0.1);
}

.chatbot-message p {
    margin: 0;
    font-size: 0.95rem;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.2rem;
    max-width: 85%;
    margin-right: auto;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    border-bottom-left-radius: 8px;
}

.typing-animation {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Rich Content */
.rich-content {
    margin: 1rem 0;
    padding: 1rem;
    background: linear-gradient(145deg, #f9f9f9, #ffffff);
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rich-content h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rich-content h4::before {
    content: "✨";
    font-size: 1.2rem;
}

.rich-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.rich-item {
    padding: 0.8rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    cursor: pointer;
}

.rich-item:hover {
    border-color: #3498db;
    box-shadow: 0 3px 12px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

/* Project Item Styles */
.project-item .item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.project-item h5 {
    margin: 0;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
}

.project-item .status {
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 12px;
    font-weight: 500;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.project-item p {
    margin: 0.5rem 0 0 0;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Skills Showcase Styles */
.skill-categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-category {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.category-header h5 {
    margin: 0;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
}

.skill-level {
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skill-level.expert {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.skill-level.advanced {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.skill-level.intermediate {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    padding: 0.3rem 0.8rem;
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    color: #2c3e50;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #d0d0d0;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    transform: scale(1.05);
}

/* Contact Item Styles */
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: #3498db;
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.2);
}

.contact-item.primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-color: #2980b9;
}

.contact-item.primary:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-item.primary .contact-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.contact-info strong {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.contact-item.primary .contact-info strong {
    color: white;
}

.contact-info span {
    font-size: 0.9rem;
    color: #666;
}

.contact-item.primary .contact-info span {
    color: rgba(255, 255, 255, 0.9);
}

/* Rich CTA Button */
.rich-cta {
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.rich-cta:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Enhanced Suggestions */
.chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.suggestion-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.suggestion-btn:hover {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(52, 152, 219, 0.3);
}

/* Advanced Message Styling */
.chatbot-message.bot.advanced {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.chatbot-message.bot.advanced p {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chatbot-container {
        width: calc(100vw - 20px);
        height: calc(100vh - 140px);
        bottom: 100px;
        right: 10px;
        left: 10px;
    }
    
    .chatbot-header {
        padding: 1rem;
    }
    
    .chatbot-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .chatbot-title h3 {
        font-size: 1rem;
    }
    
    .chatbot-status {
        font-size: 0.8rem;
    }
    
    .chatbot-messages {
        padding: 1rem;
    }
    
    .chatbot-input-container {
        padding: 1rem;
    }
    
    .chatbot-input input {
        font-size: 0.9rem;
    }
    
    .voice-input-btn,
    .send-btn {
        width: 32px;
        height: 32px;
    }
    
    .chatbot-features {
        gap: 0.5rem;
    }
    
    .feature-tag {
        font-size: 0.7rem;
    }
    
    .chatbot-toggle {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
        font-size: 1.5rem;
    }
    
    .chatbot-notification {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .rich-content {
        padding: 0.8rem;
    }
    
    .skill-categories {
        gap: 0.8rem;
    }
    
    .skill-category {
        padding: 0.8rem;
    }
    
    .contact-item {
        padding: 0.8rem;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .rich-cta {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Animation for Rich Content */
@keyframes slideInRich {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rich-content {
    animation: slideInRich 0.4s ease-out;
}

/* Enhanced Feature Tags */
.feature-tag {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}

.feature-tag i {
    font-size: 0.9rem;
}

/* Status Enhancement */
.chatbot-status {
    color: #28a745;
    font-weight: 600;
    font-size: 0.8rem;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    border: 1px solid #c3e6cb;
}

/* Features */
.chatbot-features {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.feature-tag i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Toggle Button */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: var(--gradient-professional);
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: all var(--transition-cubic);
    z-index: 999;
    overflow: hidden;
}

.chatbot-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.6);
}

.chatbot-toggle:active {
    transform: scale(0.95);
}

.chatbot-toggle-content {
    position: relative;
    z-index: 2;
}

.chatbot-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse-ring 2s ease-in-out infinite;
}

.chatbot-notification {
    position: absolute;
    top: -45px;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px) scale(0.8);
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.chatbot-toggle:hover .chatbot-notification {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Animations */
@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
} 