@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0b1035;
    --primary-blue: #2a52be;
    --primary-gradient: linear-gradient(180deg, #0c113a 0%, #1a2c72 100%);
    --text-white: #ffffff;
    --text-light: #d1d5db;
    --bg-color: #f8f9fc;
    --card-bg: #ffffff;
    
    --blue-icon-bg: #eef4ff;
    --blue-icon: #4a7dff;
    --orange-icon-bg: #fff4e8;
    --orange-icon: #ff9f43;
    --green-icon-bg: #e8fdf3;
    --green-icon: #2ecc71;
    --purple-icon-bg: #f3efff;
    --purple-icon: #8e44ad;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #e0e0e0; 
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden; /* Prevent body scroll, container will scroll */
}

/* --- App Container --- */
.app-container {
    background-color: var(--bg-color);
    width: 100%;
    max-width: 480px; 
    height: 100vh; /* Fixed height for scrolling */
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Allow inner scroll */
}

/* Hide scrollbar for clean look */
.app-container::-webkit-scrollbar {
    width: 0px; 
    background: transparent;
}

/* --- OVERLAY & SIDEBAR STYLES --- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -300px; /* Hidden by default */
    width: 280px;
    height: 100%;
    background-color: #151b3d; /* Dark blue from image */
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    box-shadow: 5px 0 15px rgba(0,0,0,0.3);
}

.sidebar.open {
    transform: translateX(300px); /* Slide in */
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar-header .logo-text h1 {
    color: white;
    font-size: 14px;
}

.sidebar-header .logo-text p {
    color: #a0a5c0;
    font-size: 10px;
}

.close-btn {
    background: none;
    border: none;
    color: #a0a5c0;
    font-size: 20px;
    cursor: pointer;
}

.sidebar-links {
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-grow: 1;
    overflow-y: auto;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    color: #a0a5c0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    transition: 0.2s;
}

.nav-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.nav-link:hover, .nav-link.active {
    background-color: #1e2a5e; /* Lighter blue highlight */
    color: white;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.sidebar-lang {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    padding: 10px 15px;
    border-radius: 8px;
    color: #a0a5c0;
    font-size: 13px;
    margin-bottom: 20px;
    cursor: pointer;
}

.sidebar-promo {
    background: #1e2a5e;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.promo-robot {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a7dff;
    font-size: 20px;
}

.promo-text h4 {
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.promo-text p {
    color: #a0a5c0;
    font-size: 10px;
    margin-top: 2px;
}

.promo-text span {
    color: white;
    font-size: 11px;
    font-weight: 600;
}
/* --------------------------------- */


/* --- Header --- */
.header {
    background-color: var(--card-bg);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #3b82f6 50%, #8b5cf6 50%);
    border-radius: 50%; 
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.logo-text h1 {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
}

.logo-text p {
    font-size: 10px;
    color: #666;
    font-weight: 500;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #444;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    background: var(--primary-gradient);
    background-image: 
        radial-gradient(circle at 80% 20%, rgba(77, 121, 255, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(77, 121, 255, 0.1) 0%, transparent 40%),
        linear-gradient(180deg, #0c113a 0%, #1a2c72 100%);
    padding: 30px 20px 0 20px;
    color: var(--text-white);
    position: relative;
    display: flex;
    flex-direction: column;
}

.main-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 90%;
}

.language-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.pill {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pill.active, .pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
}

/* --- Illustration Area --- */
.illustration-area {
    position: relative;
    height: 160px;
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.robot-container {
    width: 100px;
    height: 110px;
    position: relative;
    z-index: 2;
    margin-bottom: 15px;
    margin-left: 10px;
}

.robot-body {
    width: 80px;
    height: 85px;
    background: linear-gradient(180deg, #ffffff 0%, #cce0ff 100%);
    border-radius: 35px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.robot-face {
    width: 60px;
    height: 50px;
    background: #0f1738;
    border-radius: 25px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.eyes {
    display: flex;
    gap: 8px;
}

.eye {
    width: 8px;
    height: 8px;
    background-color: #00e5ff;
    border-radius: 50%;
    box-shadow: 0 0 8px #00e5ff;
}

.mouth {
    position: absolute;
    bottom: 10px;
    width: 12px;
    height: 4px;
    background-color: #00e5ff;
    border-radius: 4px;
    box-shadow: 0 0 5px #00e5ff;
}

.robot-antenna {
    width: 4px;
    height: 12px;
    background: #cce0ff;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
}

.robot-antenna::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -3px;
    width: 10px;
    height: 10px;
    background: #00e5ff;
    border-radius: 50%;
    box-shadow: 0 0 8px #00e5ff;
}

.robot-ear {
    width: 8px;
    height: 20px;
    background: #a0bfff;
    position: absolute;
    top: 30px;
    border-radius: 4px;
}
.robot-ear.left { left: -6px; }
.robot-ear.right { right: -6px; }

.robot-chest {
    position: absolute;
    bottom: 10px;
    width: 20px;
    height: 10px;
    background: #00e5ff;
    border-radius: 10px;
    opacity: 0.5;
    transform: rotate(45deg);
}

.notification-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: #ff4d4d;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    border: 2px solid #1a2c72;
    z-index: 3;
}

.speech-bubble {
    background: white;
    color: #111;
    padding: 15px;
    border-radius: 15px;
    border-bottom-left-radius: 2px;
    font-size: 12px;
    line-height: 1.4;
    max-width: 200px;
    margin-bottom: 40px;
    margin-right: 10px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 2;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px; 
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-top-color: white;
    border-right: 0;
    border-bottom: 0;
}

.mic-float-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00e5ff;
    z-index: 5;
}

.waveform-bg {
    position: absolute;
    bottom: 50px;
    left: 20px;
    width: 100px;
    height: 40px;
    background-image: repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,0.1) 2px, rgba(255,255,255,0.1) 4px);
    mask-image: linear-gradient(to right, black, transparent);
    -webkit-mask-image: linear-gradient(to right, black, transparent);
    opacity: 0.5;
}

/* --- Grids & Cards --- */
.menu-grid {
    background-color: var(--bg-color);
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    z-index: 5;
}

.grid-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px 15px;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: row; 
    align-items: center; 
    justify-content: flex-start;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #edf2f7;
}

.grid-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.grid-card span {
    font-size: 12px;
    font-weight: 600;
    color: #444;
    line-height: 1.2;
}

.icon-box.blue { background: var(--blue-icon-bg); color: var(--blue-icon); }
.icon-box.orange { background: var(--orange-icon-bg); color: var(--orange-icon); }
.icon-box.green { background: var(--green-icon-bg); color: var(--green-icon); }
.icon-box.purple { background: var(--purple-icon-bg); color: var(--purple-icon); }


/* --- FEATURES SECTION --- */
.features-section {
    background-color: var(--bg-color);
    padding: 20px;
    padding-bottom: 40px;
}

.section-title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin-bottom: 15px;
}

.mt-20 {
    margin-top: 25px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    border: 1px solid #f0f2f5;
}

.f-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-bottom: 12px;
}

.light-blue { background: #f0f4ff; color: #4a7dff; }
.light-green { background: #effaf3; color: #2ecc71; }
.light-red { background: #fff1f0; color: #ff6b6b; }
.light-cyan { background: #e8f8f5; color: #00b8a9; }
.light-purple { background: #f5efff; color: #8e44ad; }
.light-violet { background: #f8efff; color: #9b59b6; }

.feature-card h4 {
    font-size: 12px;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
}

.feature-card p {
    font-size: 10px;
    color: #777;
}

.help-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.help-item {
    background: var(--card-bg);
    padding: 12px 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    border: 1px solid #f0f2f5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.h-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.h-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.h-icon.blue { background: #f0f4ff; color: #4a7dff; }
.h-icon.cyan { background: #e8f8f5; color: #00b8a9; }

.help-item span {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.h-arrow {
    font-size: 12px;
    color: #999;
}


/* --- Responsive adjustments for Desktop --- */
@media (min-width: 768px) {
    body {
        background-color: #1a1a1a; 
        align-items: center; 
    }

    .app-container {
        max-width: 400px; 
        height: 90vh; 
        max-height: 850px;
        border-radius: 30px; 
        border: 8px solid #333; 
        box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    }

    .main-title { font-size: 24px; }
    
    .grid-card {
        padding: 15px;
        flex-direction: column; 
        align-items: flex-start;
        gap: 10px;
    }
    
    /* Adjust sidebar position for the desktop phone frame */
    .sidebar {
        position: absolute; /* Absolute inside the phone frame */
        left: -100%;
        height: 100%;
    }
    
    .sidebar.open {
        transform: translateX(100%);
    }

    .overlay {
        position: absolute;
        border-radius: 22px; /* Match phone inner radius */
    }
}