/* ++++++++++++++++++++++++++++ BACK TO HOME BTN +++++++++++++++++++++++ */

.back-to-home{
    width:95%;
    margin:0 auto;
}

.back-to-home-arrow{
    color:var(--dark-color);
    transform: rotate(180deg);
    cursor: pointer;
}

/* Modern Chatbot Container */
.chatbot-container {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
}

.chatbot-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.chatbot-intro h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.chatbot-intro h1 span {
    color: var(--primary-color);
}

.chatbot-intro p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--dark-color);
}

.chatbot-features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    width: 30%;
    min-width: 300px;
    margin-bottom: 1.5rem;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
}

.feature-icon i {
    color: white;
    font-size: 1.2rem;
}

.feature-text h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: var(--dark-color);
}

.feature-text p {
    font-size: 0.85rem;
    color: #666;
}

.chatbot-box-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Main Chatbot Card */
.main-card {
    width: 100%;
    max-width: 800px;
    min-height: 500px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.main-title {
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
}

.main-title .bot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-title .bot-avatar img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.main-title span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Chat Messages */
.msger-chat {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    max-height: 400px;
}

.msg {
    display: flex;
    margin-bottom: 1rem;
}

.left-msg {
    flex-direction: row;
}

.right-msg {
    flex-direction: row-reverse;
}

.msg-img {
    width: 40px;
    height: 40px;
    margin: 0 10px;
    background: #ddd;
    border-radius: 50%;
    overflow: hidden;
}

.msg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.msg-bubble {
    max-width: 70%;
    padding: 15px;
    border-radius: 15px;
}

.left-msg .msg-bubble {
    background: #f1f0f0;
    border-bottom-left-radius: 0;
}

.right-msg .msg-bubble {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 0;
}

.msg-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.msg-info-name {
    font-weight: bold;
    font-size: 0.9rem;
}

.msg-info-time {
    font-size: 0.7rem;
    color: #888;
}

.right-msg .msg-info-time {
    color: rgba(255, 255, 255, 0.7);
}

.msger-inputarea {
    display: flex;
    padding: 15px;
    border-top: 1px solid #ddd;
}

.msger-input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 25px;
    background: #f1f0f0;
    font-family: 'Poppins', sans-serif;
}

.msger-input:focus {
    outline: none;
}

.msger-send-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    margin-left: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.msger-send-btn:hover {
    background: #6a48cf;
}

/* Fade in animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-section {
    animation: fadeIn 0.8s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .feature {
        width: 100%;
        min-width: auto;
    }
    
    .msg-bubble {
        max-width: 85%;
    }
}