/* Chat Testimonial Screen */
.chat-testimonial-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.chat-container {
    max-width: 450px;
    margin: 0 auto;
    background: #0d1410;
    /* Dark WhatsApp-like bg */
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    position: relative;
}

/* Chat Header */
.chat-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
}

.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #555;
    overflow: hidden;
    flex-shrink: 0;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-info h4 {
    color: #fff;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.chat-info span {
    color: var(--accent-color);
    font-size: 0.8rem;
}

/* Chat Messages */
.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 85%;
    font-size: 0.95rem;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
    line-height: 1.4;
}

.message.received {
    background: #202c33;
    /* Dark received bubble */
    color: #e9edef;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.message.sent {
    background: #005c4b;
    /* Dark sent bubble (WhatsApp Green) */
    color: #e9edef;
    align-self: flex-end;
    border-top-right-radius: 0;
}

.message-time {
    display: block;
    text-align: right;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
}

/* Animation Delays */
.message:nth-child(1) {
    animation-delay: 0.2s;
}

.message:nth-child(2) {
    animation-delay: 1.5s;
}

.message:nth-child(3) {
    animation-delay: 3.0s;
}

.message:nth-child(4) {
    animation-delay: 4.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input Mockup */
.chat-input-mock {
    margin-top: 20px;
    background: #202c33;
    border-radius: 30px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-input-placeholder {
    width: 60%;
    height: 10px;
    background: #333;
    border-radius: 5px;
}

.chat-send-btn {
    width: 35px;
    height: 35px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #000;
}

/* Small Chat Variance for Hero */
.small-chat {
    font-size: 0.8rem;
    padding: 15px;
    background: rgba(13, 20, 16, 0.85);
    /* More transparent for hero */
}

.small-chat .chat-header {
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.small-chat .chat-avatar {
    width: 40px;
    height: 40px;
}

.small-chat .message {
    padding: 8px 12px;
    font-size: 0.85rem;
}