/* WhatsApp Demo Container */
.whatsapp-demo-container {
    padding: 20px;
}

.phone-container {
    background: white;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 6px solid #000;
    max-width: 320px;
    height: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Phone Side Buttons */
.phone-container:before,
.phone-container:after {
    content: '';
    position: absolute;
    background: #000;
    width: 3px;
}

/* Volume buttons (left side) */
.phone-container:before {
    left: -9px;
    top: 80px;
    height: 100px;
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
}

/* Power button (right side) */
.phone-container:after {
    right: -9px;
    top: 120px;
    height: 50px;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
}

.phone-notch {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 28px;
    background-color: #000;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 100;
}

.notch-content {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background-color: rgba(68, 68, 68, 0.5);
    border-radius: 50%;
}

.phone-header {
    padding-top: 35px;
    background: #075e54;
}

.phone-status-bar {
    height: 24px;
    background: #075e54;
    margin: -15px -15px 10px;
}

.chat-header {
    background: #075e54;
    color: white;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.chat-contact {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #075e54;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.contact-info {
    flex: 1;
}

.contact-name {
    font-weight: 600;
    font-size: 16px;
}

.contact-status {
    font-size: 12px;
    opacity: 0.8;
}

.chat-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
    font-size: 18px;
}

.chat-actions i {
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.chat-actions i:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #e5ddd5;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23999' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    display: flex;
    flex-direction: column;
    min-height: 0;
    scroll-behavior: smooth;
}

/* Custom scrollbar for chat messages */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.message {
    max-width: 80%;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    position: relative;
    word-wrap: break-word;
}

.message-content {
    font-size: 14px;
    line-height: 1.4;
}

.message.received {
    background: white;
    margin-right: auto;
    color: #000;
}

.message.sent {
    background: #dcf8c6;
    margin-left: auto;
    color: #000;
}

.message .time {
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.45);
    margin-left: 8px;
    display: inline-block;
    vertical-align: bottom;
}

.message.sent .time {
    color: rgba(0, 0, 0, 0.45);
}

.message.received .time {
    color: rgba(0, 0, 0, 0.45);
}

.chat-input {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 0 0 20px 20px;
    gap: 8px;
}

.chat-input .emoji-button {
    color: #8696a0;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    font-size: 20px;
}

.chat-input input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    margin-right: 8px;
    background: #fff;
    color: #333;
    font-size: 15px;
}

.chat-input input::placeholder {
    color: #8696a0;
}

.chat-input button {
    background: none;
    border: none;
    color: #8696a0;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-input button i {
    font-size: 20px;
}

.chat-input button:hover {
    color: #00a884;
}

.message-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0;
    padding: 0 10px;
}

.message-button {
    background: #075e54;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    max-width: 200px;
}

.message-button:hover {
    background: #f3c93b;
    color: #042827;
}

.message-button:active {
    background: #e0b834;
    color: #042827;
}

.whatsapp-button {
    background: #f3c93b;
    border: none;
    border-radius: 15px;
    padding: 6px 12px;
    color: #042827;
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s;
    width: auto;
    max-width: 200px;
}

.whatsapp-button:hover {
    background-color: #e0b834;
}

.whatsapp-button:active {
    background-color: #d1aa2f;
}

/* App Cards */
.app-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.app-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.app-icon {
    width: 60px;
    height: 60px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.app-icon i {
    font-size: 24px;
    color: #000;
}

.app-card h3 {
    color: #000;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-align: center;
}

.app-category {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.app-description {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.featured-apps {
    padding-top: 60px;
}

.section-title {
    color: white;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.btn {
    display: inline-block;
    font-weight: 500;
    text-transform: capitalize;
    transition: all 0.35s ease-in-out;
    overflow: hidden;
    border-radius: 7px;
    border: 2px solid transparent;
    -webkit-box-shadow: inherit;
    box-shadow: none !important;
    font-size: 16px;
    letter-spacing: 0;
    padding: 13px 30px;
    background: #E7EDF8;
    position: relative;
    z-index: 1;
    color: #000;
}

.btn-get-started {
    color: #000 !important;
    font-weight: 600;
}

.btn-get-started:hover {
    color: #000 !important;
}

.btn-primary {
    color: #1e3e3d;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    color: #1e3e3d;
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* WhatsApp Button */
.proceed-whatsapp {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    background-color: #f3c93b;
    color: #042827;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid #f3c93b;
}

.proceed-whatsapp:hover {
    background-color: white;
    color: #042827;
    transform: translateY(-2px);
    border-color: white;
}

.proceed-whatsapp:hover i {
    animation: bounce 0.8s infinite;
    color: #042827;
}

.proceed-whatsapp .btn-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.proceed-whatsapp:hover .btn-icon {
    filter: brightness(0) saturate(100%) invert(83%) sepia(23%) saturate(1095%) hue-rotate(338deg) brightness(101%) contrast(92%);
}

.proceed-whatsapp i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.proceed-whatsapp:hover i {
    animation: bounce 0.8s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(3px);
    }
}

/* Logo */
.logo-container {
    margin-bottom: 2rem;
}

.sema-logo {
    height: 60px;
    width: auto;
    display: inline-block;
}

@media (max-width: 991px) {
    .logo-container {
        text-align: center;
    }
    
    .sema-logo {
        height: 50px;
    }
}

/* Logo alignment for desktop */
@media (min-width: 992px) {
    .hero-text .logo {
        margin-left: -45px;
        position: relative;
        height: 100px !important;
    }
}

/* Bottom Sheet */
.bottom-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    z-index: 1000;
}

.bottom-sheet.active {
    transform: translateY(0);
}

.bottom-sheet-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-weight: 600;
}

.bottom-sheet-content {
    max-height: 300px;
    overflow-y: auto;
}

.bottom-sheet-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.bottom-sheet-item:hover {
    background: #f5f5f5;
}

/* USSD Overlay */
.ussd-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.ussd-overlay.active {
    display: flex;
}

.ussd-modal {
    background: black;
    color: white;
    width: 90%;
    max-width: 300px;
    border-radius: 10px;
    overflow: hidden;
}

.ussd-header {
    background: #333;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

.ussd-content {
    padding: 20px;
    font-family: monospace;
}

.ussd-amount {
    font-size: 1.2em;
    margin: 10px 0;
}

.ussd-pin-input {
    margin: 10px 0;
    text-align: center;
}

.ussd-pin-field {
    background: transparent;
    border: none;
    color: white;
    font-family: monospace;
    font-size: 1.2em;
    letter-spacing: 5px;
    text-align: center;
    width: 100px;
}

.ussd-timer {
    text-align: right;
    font-size: 0.8em;
    margin-top: 10px;
}

.ussd-status {
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

@media (max-width: 991px) {
    .hero-text {
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .whatsapp-demo-container {
        max-width: 360px;
        margin: 0 auto;
    }
}

/* Main Styles */
html {
    scroll-behavior: smooth;
}

body {
    background: #042827;
    color: #1a1a1a;
}

.container {
    background-color: #042827;
}

footer {
    background-color: #042827 !important;
}

footer .container {
    background-color: #042827;
}

element {
    background-color: #042827;
}
