﻿.home-chat {
    max-width: 720px;
    margin: 40px auto 0;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0,0,0,.12);
    overflow: hidden;
}

/* Header */
.home-chat-header {
    padding: 22px 24px 18px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.home-chat-title {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #222;
}

.home-chat-subtitle {
    display: block;
    font-size: 13px;
    color: #777;
    margin-top: 6px;
}

/* Body */
.home-chat-body {
    height: 300px; /* REQUIRED */
    overflow-y: auto; /* REQUIRED */
    overflow-x: hidden;
    background: #fafafa;
}

.home-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Messages */
.home-chat-message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.45;
}

    .home-chat-message.user {
        align-self: flex-end;
        background: #eaf2ff;
        color: #000;
        box-shadow: 0 2px 6px rgba(0,0,0,.08);
    }

    .home-chat-message.bot {
        align-self: flex-start;
        background: #ffffff;
        color: #000;
        border: 1px solid #eee;
    }

/* Footer */
.home-chat-footer {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-top: 1px solid #eee;
    background: #fff;
}

.home-chat-input {
    flex: 1;
    height: 42px;
    border-radius: 21px;
    border: 1px solid #ddd;
    padding: 0 16px;
    font-size: 14px;
    outline: none;
}

    .home-chat-input:focus {
        border-color: #ff8a50;
    }

.home-chat-send {
    width: 42px;
    height: 42px;
    margin-left: 10px;
    border-radius: 50%;
    border: none;
    background: #ff8a50;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .home-chat-send:hover {
        background: #ff7030;
    }

.ai-hero {
    position: relative;
    padding: 5px 20px 10px;
    text-align: center;
    overflow: hidden;
    background: #ffffff;
}

/* Hero Content */
.ai-hero-content {
    position: relative;
    z-index: 2;
}

.ai-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 18px;
    background: #ff8a50;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    box-shadow: 0 12px 30px rgba(255,138,80,.45);
}

.ai-hero h1 {
    font-size: 42px;
    font-weight: 600;
    color: #ff8a50;
    margin-bottom: 12px;
}

.ai-hero p {
    font-size: 18px;
    color: #6f7780;
}

/* ===============================
   Floating Bubbles
   =============================== */

.ai-bubbles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

    .ai-bubbles span {
        position: absolute;
        display: block;
        width: 120px;
        height: 120px;
        background: rgba(255,138,80,0.08);
        border-radius: 50%;
        animation: bubbleFloat 20s infinite ease-in-out;
    }

        /* Bubble positions */
        .ai-bubbles span:nth-child(1) {
            left: 10%;
            top: 20%;
            width: 140px;
            height: 140px;
            animation-duration: 26s;
        }

        .ai-bubbles span:nth-child(2) {
            right: 12%;
            top: 30%;
            width: 90px;
            height: 90px;
            animation-duration: 22s;
        }

        .ai-bubbles span:nth-child(3) {
            left: 18%;
            bottom: 15%;
            width: 110px;
            height: 110px;
            animation-duration: 28s;
        }

        .ai-bubbles span:nth-child(4) {
            right: 20%;
            bottom: 20%;
            width: 70px;
            height: 70px;
            animation-duration: 24s;
        }

        .ai-bubbles span:nth-child(5) {
            left: 45%;
            top: 10%;
            width: 60px;
            height: 60px;
            animation-duration: 30s;
        }

/* Animation */
@keyframes bubbleFloat {
    0% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-30px) translateX(20px);
    }

    100% {
        transform: translateY(0) translateX(0);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .ai-hero {
        padding: 60px 15px 40px;
    }

        .ai-hero h1 {
            font-size: 32px;
        }

        .ai-hero p {
            font-size: 16px;
        }
}
