/* Demo Section Styles */
.demo-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.demo-text {
    color: white;
}

.demo-text h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.demo-text p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.demo-text ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.demo-text ul li {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.demo-text ul li::before {
    content: "✓";
    display: inline-block;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
}

/* Smartphone Container */
.smartphone {
    width: 400px;
    height: 800px;
    background: #000;
    border-radius: 45px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
    padding: 14px;
    position: relative;
    margin: 0 auto;
}

.smartphone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 170px;
    height: 32px;
    background: #000;
    border-radius: 0 0 22px 22px;
    z-index: 10;
}

.smartphone-screen {
    width: 100%;
    height: 100%;
    background: #e5ddd5;
    border-radius: 35px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* WhatsApp Header */
.whatsapp-header {
    background: #075e54;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: white;
    flex-shrink: 0;
    min-height: 70px;
    box-sizing: border-box;
}

.whatsapp-back {
    font-size: 20px;
    cursor: pointer;
}

.whatsapp-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.whatsapp-info {
    flex: 1;
}

.whatsapp-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
}

.whatsapp-status {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
    color: #e8f5e9;
}

.whatsapp-icons {
    display: flex;
    gap: 20px;
    font-size: 20px;
}

/* Chat Container */
.whatsapp-chat {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 18px;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d9d9d9' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    box-sizing: border-box;
}

/* Chat Messages */
.chat-message {
    margin-bottom: 8px;
    display: flex;
    animation: slideIn 0.3s ease-out;
}

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

.chat-message.received {
    justify-content: flex-start;
}

.chat-message.sent {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 80%;
    padding: 10px 14px 6px 14px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
}

.chat-message.received .message-bubble {
    background: white;
    border-radius: 0 8px 8px 8px;
}

.chat-message.sent .message-bubble {
    background: #dcf8c6;
    border-radius: 8px 0 8px 8px;
}

.message-text {
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 6px 0;
    color: #303030;
    word-break: break-word;
}

.message-time {
    font-size: 11px;
    color: #667781;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.message-checkmarks {
    color: #53bdeb;
    font-size: 14px;
}

/* WhatsApp Input */
.whatsapp-input-area {
    background: #f0f0f0;
    padding: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
    min-height: 65px;
    box-sizing: border-box;
}

.input-icons {
    display: flex;
    gap: 8px;
    color: #667781;
    font-size: 20px;
    flex-shrink: 0;
}

.whatsapp-input {
    flex: 1;
    background: white;
    border: none;
    border-radius: 22px;
    padding: 12px 18px;
    font-size: 15px;
    outline: none;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    min-width: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.whatsapp-input:disabled {
    opacity: 0.6;
    background: #f5f5f5;
    cursor: not-allowed;
}

.send-button {
    background: #075e54;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.3s ease, opacity 0.3s ease, transform 0.1s ease;
    flex-shrink: 0;
}

.send-button:hover:not(:disabled) {
    background: #064e47;
}

.send-button:active:not(:disabled) {
    transform: scale(0.95);
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #075e54;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #667781;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

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

/* Responsive Design */
@media (max-width: 968px) {
    .demo-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .demo-text {
        text-align: center;
    }
    
    .demo-text h2 {
        font-size: 2.5rem;
    }
    
    .demo-text ul li {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .smartphone {
        width: 340px;
        height: 680px;
        border-radius: 38px;
        padding: 12px;
    }
    
    .demo-section {
        padding: 4rem 1rem;
    }
    
    .demo-text h2 {
        font-size: 2rem;
    }
    
    .demo-text p {
        font-size: 1.1rem;
    }
}
