.about-chatbot-wrapper {
    position: relative;
    width: 80%;
    max-width: 900px;
}

.about-chatbot-interface {
    width: 100%;
    height: 70vh;
    max-height: 70vh;
    background: rgba(20, 25, 40, 0.95);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    display: flex;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    transition: all 0.5s ease;
}

.about-chatbot-interface::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    background: linear-gradient(45deg, #ff0080, #00ffff, #ff0080);
    background-size: 200% 200%;
    border-radius: var(--radius-xl);
    z-index: -1;
    animation: borderGlow 6s ease-in-out infinite;
    opacity: 0.2;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 100%; }
    50% { background-position: 100% 50%; }
}

/* Chat Container — full width now */
.about-chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header with inline profile */
.about-chat-header {
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 15, 25, 0.5);
}

.about-header-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.about-photo-frame {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid var(--border-subtle);
    flex-shrink: 0;
}

.about-profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-header-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.about-profile-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

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

.about-status-indicator {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    background: rgba(0, 255, 0, 0.06);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: var(--radius-lg);
    font-size: 0.7rem;
}

.about-status-dot {
    width: 6px;
    height: 6px;
    background: #00ff00;
    border-radius: var(--radius-full);
    animation: statusPulse 3s infinite;
}

.about-status-text {
    color: #00ff00;
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Chat Messages */
.about-chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: rgba(15, 20, 35, 0.9);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.about-chat-messages::-webkit-scrollbar { display: none; }

.about-message {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    opacity: 0;
    transform: translateY(15px);
    animation: slideIn 0.5s ease forwards;
}

.about-user-message { align-items: flex-end; }

.about-user-message .about-message-content {
    background: linear-gradient(135deg, #00bfbf, #0066cc);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 var(--radius-lg);
    max-width: 70%;
    font-size: 0.9rem;
    color: #0a0a2e;
    font-weight: 600;
}

.about-ai-message { align-items: flex-start; }

.about-ai-message .about-message-content {
    background: rgba(30, 35, 50, 0.8);
    border: 1px solid var(--border-subtle);
    padding: 1rem 1.2rem;
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 0;
    max-width: 80%;
    font-size: 0.9rem;
}

.about-message-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.about-user-message .about-message-time { text-align: right; }

/* Typing Indicator */
.about-typing-indicator {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    padding: 0.4rem 0;
}

.about-typing-indicator span {
    width: 5px;
    height: 5px;
    background: var(--primary);
    border-radius: var(--radius-full);
    animation: typing 1.4s ease-in-out infinite;
}

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

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
    30% { transform: translateY(-8px); opacity: 1; }
}

@keyframes slideIn {
    to { opacity: 1; transform: translateY(0); }
}

.about-ai-response {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    line-height: 1.6;
}

.about-philosophy-quote {
    background: rgba(0, 255, 255, 0.06);
    border-left: 2px solid var(--primary);
    padding: 0.8rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    text-align: center;
}

.about-quote-mark {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
}

.about-chat-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.about-action-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-action-btn.primary {
    background: linear-gradient(135deg, #00ffff, #0080ff);
    color: #000;
}

.about-action-btn.secondary {
    background: rgba(255, 0, 128, 0.08);
    border: 1px solid rgba(255, 0, 128, 0.2);
    color: var(--secondary);
}

.about-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--glow-subtle);
}

.about-action-btn.secondary:hover {
    background: rgba(255, 0, 128, 0.15);
}

/* Chat Input */
.about-chat-input {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
    background: rgba(10, 15, 25, 0.5);
}

.about-chat-input-field {
    padding: 0.7rem 1rem;
    border: none;
    width: 100%;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    outline: none;
    color: #fff;
    transition: background 0.3s ease;
}

.about-chat-input-field::placeholder {
    color: var(--text-secondary);
}

.about-chat-send-btn {
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: var(--radius-xl);
    background: rgba(0, 255, 255, 0.1);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.about-chat-send-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: scale(1.05);
}

.about-chat-send-btn:active {
    transform: scale(0.95);
}

/* Toggle Button — centered on the bottom-right corner of the chatbot */
.about-chatbot-toggle {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #ff0080, #00ffff);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 8px 20px var(--glow-medium);
    transition: all 0.3s ease;
}

.about-chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px var(--glow-medium);
}

.about-toggle-icon {
    font-size: 1.2rem;
    animation: bounce 3s infinite;
}

.about-toggle-glow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #ff0080, #00ffff);
    border-radius: var(--radius-full);
    z-index: -1;
    animation: togglePulse 3s infinite;
    opacity: 0.3;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
    60% { transform: translateY(-3px); }
}

@keyframes togglePulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

.about-highlight {
    color: var(--primary);
    font-weight: 600;
}

.about-chatbot-interface.hidden {
    transform: translateY(100vh);
    opacity: 0;
    visibility: hidden;
}
