:root {
    --color-bg: #f9f9f9;
    --color-text: #000000;
    --color-muted: #6e6e6e;
    --color-dark: #1e1e1e;
    --color-border: #f1f1f1;
    --color-border-soft: #efefef;
    --color-pill: #e8e3eb;
    --shadow-card: 0.45375rem 0.45375rem 0.75625rem rgba(144, 0, 163, 0.05), 0.1134375rem 0.1134375rem 0.15125rem rgba(52, 0, 77, 0.05);
    --shadow-strong: 0.45375rem 0.625rem 0.75625rem rgba(144, 0, 163, 0.03), 0.1134375rem 0.1134375rem 0.15125rem rgba(52, 0, 77, 0.03);
    --hero-width: 90rem;
    --hero-height: 59.375rem;
    --font-body: "GoogleSansRegular", "Inter", system-ui, -apple-system, sans-serif;
    --font-brand: "KamerikBold", "Google Sans", "Inter", sans-serif;
}

html {
    font-size: 16px;
    /* Prevent horizontal scrolling */
    overflow-x: hidden;
    width: 100%;
}

@font-face {
    font-family: 'GoogleSansRegular';
    src: url('./assets//fonts/GoogleSans-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'GoogleSansMedium';
    src: url('./assets//fonts/GoogleSans-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'KamerikBold';
    src: url('./assets//fonts/Kamerik-105-W-Bold.ttf') format('truetype');
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: linear-gradient(180deg, rgba(228, 216, 240, 0.3) 4.4632%, rgba(249, 249, 249, 0) 100%), linear-gradient(90deg, var(--color-bg) 0%, var(--color-bg) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    /* Prevent bounce scrolling on iOS */
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100vw;
}

.stage {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    overflow-x: hidden;
}

.canvas {
    position: relative;
    width: 100%;
    max-width: 1200px;
    padding: 1rem 0;
}

.lines {
    position: absolute;
    left: 4.25rem;
    top: 0;
    width: calc(100% - 8.5rem);
    height: 100%;
    pointer-events: none;
    opacity: 0.9;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 0, rgba(0, 0, 0, 0) 100%), linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 0, rgba(0, 0, 0, 0) 100%), linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 0, rgba(0, 0, 0, 0) 100%), linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 0, rgba(0, 0, 0, 0) 100%);
    background-size: 0.0625rem 100%, 0.0625rem 100%, 0.0625rem 100%, 0.0625rem 100%;
    background-position: 0 0, calc(33.333% - 0.03125rem) 0, calc(66.666% - 0.03125rem) 0, 100% 0;
    background-repeat: no-repeat;
}

.city {
    position: absolute;
    left: calc(50% + 3.375rem);
    top: 0.45rem;
    width: 86.4rem;
    height: 57.6rem;
    transform: translateX(-50%);
    opacity: 0.1;
    object-fit: cover;
    pointer-events: none;
}

header {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.language-selector {
    position: relative;
}

.lang-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 2rem;
    background: #ffffff;
    color: var(--color-text);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-body);
    outline: none;
}

    .lang-select:hover {
        border-color: var(--color-dark);
    }

.logo {
    display: inline-flex;
}

    .logo img {
        height: 1.5rem;
        width: auto;
    }

.session {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 2rem;
    background: var(--color-dark);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'GoogleSansMedium';
}

    .session:after {
        content: ' ';
        display: block;
        height: 0.5rem;
        width: 0.5rem;
        background-image: url(./assets/arrow.svg);
        background-size: cover;
        background-repeat: no-repeat;
    }

.welcome {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.welcome-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 1.5rem;
    padding: 0.5rem 1rem;
    box-shadow: var(--shadow-strong);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

    .welcome-inner img {
        width: 1.2rem;
        height: 1.2rem;
        object-fit: contain;
    }

    .welcome-inner strong {
        font-family: var(--font-brand);
        font-weight: 700;
        letter-spacing: 0.02em;
    }

.title {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.title-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.title h1 {
    margin: 0;
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 400;
    color: var(--color-text);
    text-align: center;
}

.gradient {
    background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.3) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.with-ai {
    background: linear-gradient(90deg, #000000 0%, rgba(0, 0, 0, 0.3) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.uae-flag,
.ai-icon {
    width: 2rem;
    height: 2rem;
    position: relative;
    flex-shrink: 0;
}

.uae-flag {
    transform: rotate(-10deg);
}

.uae-card, .ai-card {
    position: absolute;
    inset: 0;
    border-radius: 0.5rem;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.uae-inner-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url(./assets/uae.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 1.2rem;
    height: 1.2rem;
}

.ai-icon {
    transform: rotate(10deg);
}

.ai-inner-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url(./assets/ai.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 1rem;
    height: 1rem;
}

.subtitle {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.7);
    text-align: center;
}

.subtitle-small {
    display: block;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.6);
}

.services-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 1.5rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(249, 249, 249, 0.95));
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    cursor: pointer;
}

    .service-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
        border-color: var(--color-dark);
    }

    .service-item:focus {
        outline: 2px solid var(--color-dark);
        outline-offset: 2px;
    }

.service-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.service-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.3;
}

.cta-text {
    position: relative;
    margin: 0 auto 2rem;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.7);
    text-align: center;
    max-width: 600px;
}

    .cta-text strong {
        font-weight: 600;
        color: var(--color-dark);
    }

.prompt {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.prompt-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 1.5rem;
    padding: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.prompt-input-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-height: 3rem;
}

.prompt-icon {
    width: 1.25rem;
    height: 1.125rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
    object-fit: cover;
}

.prompt-textarea {
    flex: 1;
    border: none;
    outline: none;
    resize: none;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text);
    font-weight: 400;
    font-family: var(--font-body);
    background: transparent;
    min-height: 1.5rem;
    max-height: 10rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

    .prompt-textarea::-webkit-scrollbar {
        width: 0.25rem;
    }

    .prompt-textarea::-webkit-scrollbar-track {
        background: transparent;
    }

    .prompt-textarea::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 0.125rem;
    }

    .prompt-textarea::placeholder {
        color: var(--color-muted);
    }

.prompt-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.prompt-actions-left {
    display: flex;
    align-items: center;
}

.prompt-actions-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 2rem;
    border: 1px solid var(--color-border-soft);
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

    .action-btn:after {
        content: '';
        display: block;
        width: 1.2rem;
        height: 1.2rem;
        background-repeat: no-repeat;
        background-size: cover;
    }

    .action-btn.dark {
        background: var(--color-dark);
        border-color: var(--color-dark);
    }

    .action-btn.add:after {
        background-image: url('./assets/add.svg');
    }

    .action-btn.voice:after {
        background-image: url('./assets/voice.svg');
    }

    .action-btn.send:after {
        background-image: url('./assets/send.svg');
    }

.contact-info {
    position: relative;
    text-align: center;
    margin: 2rem auto;
    max-width: 600px;
}

.contact-text {
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

.contact-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: 2rem;
    background: #ffffff;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

    .contact-link:hover {
        border-color: var(--color-dark);
        background: var(--color-dark);
        color: #ffffff;
    }

    .contact-link svg {
        flex-shrink: 0;
        width: 1rem;
        height: 1rem;
    }

    .contact-link.whatsapp {
        background: #25D366;
        border-color: #25D366;
        color: #ffffff;
    }

    .contact-link.whatsapp:hover {
        background: #1EBE57;
        border-color: #1EBE57;
    }

/* ===== Conversation Area ===== */
.conversation-area {
    display: none;
    width: 100%;
    max-width: 900px;
    margin: 2rem auto;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 1.5rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.conversation-area.active {
    display: flex;
    flex-direction: column;
}

.conversation-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(249, 249, 249, 0.95), rgba(255, 255, 255, 0.95));
}

.conversation-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
}

.conversation-messages {
    flex: 1;
    padding: 1.5rem;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    gap: 0.75rem;
    max-width: 80%;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-content {
    padding: 0.875rem 1.125rem;
    border-radius: 1.125rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.message.assistant .message-content {
    background: var(--color-border);
    color: var(--color-text);
}

.message.user .message-content {
    background: var(--color-dark);
    color: #ffffff;
}

.typing-indicator .message-content {
    display: flex;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
}

.typing-indicator .dot {
    width: 0.5rem;
    height: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator .dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-0.5rem);
    }
}

.conversation-input {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
}

.landing-content {
    display: block;
}

.landing-content.hidden {
    display: none;
}

/* ===== Clear/New Chat Button ===== */
.clear-btn {
    border: 1px solid var(--color-dark);
    background: #fff;
    color: var(--color-dark);
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-family: var(--font-body);
}

    .clear-btn:hover {
        background: var(--color-dark);
        color: #fff;
    }

/* ===== Chat Window Styles ===== */
.chat-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(800px, 95vw);
    height: min(700px, 90vh);
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-window[hidden] {
    display: none;
}

.chat-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(135deg, rgba(249, 249, 249, 0.95), rgba(255, 255, 255, 1));
}

.chat-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    font-family: var(--font-brand);
}

.chat-close-btn {
    width: 2rem;
    height: 2rem;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}

.chat-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f9f9f9;
}

.chat-messages::-webkit-scrollbar {
    width: 0.5rem;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.25rem;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    max-width: 85%;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message.assistant {
    align-self: flex-start;
}

.chat-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.chat-message.user .chat-avatar {
    background: var(--color-dark);
    color: #ffffff;
}

.chat-message.assistant .chat-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.chat-bubble {
    padding: 0.875rem 1.125rem;
    border-radius: 1rem;
    line-height: 1.5;
    font-size: 0.95rem;
    word-wrap: break-word;
}

.chat-message.user .chat-bubble {
    background: var(--color-dark);
    color: #ffffff;
    border-bottom-right-radius: 0.25rem;
}

.chat-message.assistant .chat-bubble {
    background: #ffffff;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-bottom-left-radius: 0.25rem;
}

.chat-loading {
    display: flex;
    gap: 0.375rem;
    padding: 0.875rem 1.125rem;
}

.chat-loading-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    animation: loadingBounce 1.4s infinite ease-in-out both;
}

.chat-loading-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.chat-loading-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loadingBounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.chat-input-container {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    background: #ffffff;
}

.chat-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    background: #f9f9f9;
    border: 1px solid var(--color-border);
    border-radius: 1.25rem;
    padding: 0.75rem 1rem;
}

.chat-textarea {
    flex: 1;
    border: none;
    outline: none;
    resize: none;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text);
    font-family: var(--font-body);
    background: transparent;
    min-height: 1.5rem;
    max-height: 8rem;
    overflow-y: auto;
}

.chat-textarea::placeholder {
    color: var(--color-muted);
}

.chat-send-btn {
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    background: var(--color-dark);
    color: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.chat-send-btn svg {
    width: 1rem;
    height: 1rem;
}

@media (max-width: 768px) {
    /* Hide large background image to prevent horizontal scrolling on mobile */
    .city {
        display: none;
    }

    .lines {
        left: 0;
        width: 100%;
    }

    /* Mobile: Chat expands from bottom instead of modal */
    .chat-window {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 85vh;
        max-height: 85vh;
        border-radius: 1rem 1rem 0 0;
        transform: none;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    }

    .chat-header {
        padding: 0.875rem 1rem;
    }

    .chat-header h2 {
        font-size: 1rem;
    }

    .chat-close-btn {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 1.5rem;
    }

    .chat-messages {
        padding: 1rem;
        gap: 0.75rem;
        /* Ensure proper scrolling on mobile */
        -webkit-overflow-scrolling: touch;
    }

    .chat-message {
        max-width: 85%;
    }

    .chat-avatar {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.75rem;
    }

    .chat-bubble {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .chat-input-container {
        padding: 0.75rem 1rem;
        /* Account for iOS bottom safe area (home indicator) */
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    }

    .chat-input-wrapper {
        padding: 0.625rem 0.875rem;
    }

    .chat-textarea {
        font-size: 0.875rem;
        min-height: 1.25rem;
        max-height: 6rem;
    }

    .chat-send-btn {
        width: 2rem;
        height: 2rem;
    }

    .chat-send-btn svg {
        width: 0.875rem;
        height: 0.875rem;
    }

    .title h1 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stage {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .mobile--hidden {
        display: none;
    }

    .mobile--visible {
        display: block;
    }

    /* Even smaller fonts for very small screens */
    .title h1 {
        font-size: 1.5rem;
    }

    .title-row {
        gap: 0.25rem;
    }

    .header-right {
        gap: 0.5rem;
    }

    .lang-select {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .session {
        padding: 0.625rem 1rem;
        font-size: 0.75rem;
    }

    .session span {
        display: none;
    }

    .session:after {
        margin-left: 0;
    }

    .welcome-inner {
        font-size: 0.7rem;
        padding: 0.375rem 0.75rem;
        gap: 0.375rem;
    }

    .welcome-inner img {
        width: 1rem;
        height: 1rem;
    }

    .subtitle {
        font-size: 0.8rem;
        padding: 0 0.5rem;
    }

    .subtitle-small {
        font-size: 0.7rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .service-item {
        padding: 0.625rem 0.875rem;
    }

    .service-icon {
        font-size: 1rem;
    }

    .service-text {
        font-size: 0.75rem;
    }

    .cta-text {
        font-size: 0.8rem;
        padding: 0 0.5rem;
    }

    .prompt-textarea {
        font-size: 0.875rem;
    }

    .contact-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .contact-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    /* Mobile chat adjustments for very small screens */
    .chat-window {
        height: 90vh;
        max-height: 90vh;
    }

    .chat-header h2 {
        font-size: 0.9rem;
    }

    .chat-messages {
        padding: 0.75rem;
        gap: 0.625rem;
    }

    .chat-message {
        gap: 0.5rem;
    }

    .chat-avatar {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.7rem;
    }

    .chat-bubble {
        padding: 0.625rem 0.875rem;
        font-size: 0.8rem;
        border-radius: 0.875rem;
    }

    .chat-message.user .chat-bubble {
        border-bottom-right-radius: 0.25rem;
    }

    .chat-message.assistant .chat-bubble {
        border-bottom-left-radius: 0.25rem;
    }

    .chat-input-container {
        padding: 0.625rem 0.875rem;
        padding-bottom: max(0.625rem, env(safe-area-inset-bottom));
    }

    .chat-input-wrapper {
        padding: 0.5rem 0.75rem;
    }

    .chat-textarea {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .chat-send-btn {
        width: 1.75rem;
        height: 1.75rem;
    }
}
