.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.header p {
    font-size: 1.2rem;
    max-width: 600px;
    line-height: 1.6;
}

.open-chat-btn {
    background: white;
    color: #6e8efb;
    border: none;
    padding: 16px 32px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.open-chat-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Chat Container */
.chat-container {
    width: 90%;
    max-width: 400px;
    height: 500px;
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active .chat-container {
    transform: scale(1);
}

.chat-header {
    background: linear-gradient(90deg, #6e8efb, #a777e3);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header h2 {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #4cd964;
    border-radius: 50%;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.close-btn:hover {
    transform: rotate(90deg);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f5f7fb;
    display: flex;
    flex-direction: column;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 20px;
    margin-bottom: 15px;
    position: relative;
    line-height: 1.5;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message {
    background-color: #e6e9f2;
    border-top-left-radius: 5px;
    color: #333;
    align-self: flex-start;
}

.user-message {
    background: linear-gradient(90deg, #6e8efb, #a777e3);
    color: white;
    border-top-right-radius: 5px;
    align-self: flex-end;
    margin-left: auto;
}

.timestamp {
    font-size: 0.7rem;
    margin-top: 5px;
    opacity: 0.7;
    text-align: right;
}

.chat-input {
    display: flex;
    padding: 15px;
    background-color: #fff;
    border-top: 1px solid #e6e6e6;
}

.chat-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e6e6e6;
    border-radius: 30px;
    outline: none;
    font-size: 1rem;
}

.chat-input button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(90deg, #6e8efb, #a777e3);
    color: white;
    margin-left: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.chat-input button:hover {
    transform: scale(1.05);
}

.typing-indicator {
    display: none;
    padding: 10px;
    text-align: left;
    color: #888;
    font-style: italic;
}

.typing-indicator.active {
    display: block;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
    max-width: 900px;
}

.feature {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    width: 250px;
    text-align: center;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.feature h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.2rem;
    }

    .features {
        flex-direction: column;
        align-items: center;
    }
}
