:root {
    --bg-color: #ffffff;
    --text-color: #1f1f1f;
    --card-bg: #f0f4f9;
    --input-bg: #f0f4f9;
    --accent-blue: #0b57d0;
    --modal-bg: rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
}

/* --- TOP NAVIGATION --- */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    z-index: 10;
}

/* LOGO DESIGN */
.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f1f1f;
    letter-spacing: -0.5px;
}
.dot { color: var(--accent-blue); }

/* CONTACT BUTTON */
.contact-btn {
    background: #1f1f1f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}
.contact-btn:hover { background: #333; }

/* CHAT CONTAINER */
.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    scrollbar-width: none;
}
.chat-container::-webkit-scrollbar { display: none; }

/* HERO SECTION */
.hero-section {
    margin-top: 8vh;
    transition: opacity 0.5s;
}

.gradient-text {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    margin: 0;
    letter-spacing: -1px;
    line-height: 1.2;
    background: linear-gradient(74deg, #4285f4 0%, #9b72cb 9%, #d96570 20%, #1f1f1f 24%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-bottom: 10px;
}

.sub-text {
    font-size: 3.5rem;
    color: #c4c7c5;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -1px;
    line-height: 1;
}

/* CARDS GRID */
.cards-grid {
    display: flex;
    gap: 15px;
    margin-top: 60px;
    overflow-x: auto;
    padding-bottom: 10px;
}
.card {
    background: var(--card-bg);
    min-width: 180px;
    height: 180px;
    border-radius: 12px;
    padding: 15px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    flex: 1;
}
.card:hover { background: #e2e7eb; }
.card p { margin: 0; font-size: 1rem; color: #1f1f1f; line-height: 1.4; }
.card-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* INPUT AREA */
.input-area-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, white 80%, transparent);
    padding: 20px 20px 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.input-box {
    background: var(--input-bg);
    width: 100%;
    max-width: 800px;
    border-radius: 30px;
    padding: 12px 20px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    border: 1px solid transparent;
    transition: background 0.2s, box-shadow 0.2s;
}
.input-box:focus-within {
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #e0e0e0;
}
.input-field-container { flex: 1; }
textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    resize: none;
    max-height: 200px;
    padding-top: 10px;
    padding-bottom: 10px;
}
.input-actions { display: flex; gap: 5px; padding-bottom: 5px; }
.action-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 10px;
    border-radius: 50%;
    color: #444746;
    transition: background 0.2s;
}
.action-btn:hover { background: #e0e5eb; }
.send-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 10px;
    border-radius: 50%;
    color: #444746;
    transition: all 0.2s;
}
textarea:valid + .input-actions .send-btn, .send-btn.active {
    color: var(--accent-blue);
    background: #d3e3fd;
}
.disclaimer {
    font-size: 0.75rem;
    color: #888;
    text-align: center;
    margin-top: 10px;
    line-height: 1.4;
}
.disclaimer a { color: #444; text-decoration: none; font-weight: 500; }

/* CHAT BUBBLES */
.chat-row { display: flex; gap: 15px; margin-bottom: 30px; line-height: 1.6; }
.user-msg { margin-left: auto; max-width: 80%; background: #f0f4f9; padding: 12px 20px; border-radius: 20px 20px 5px 20px; }
.ai-msg { width: 100%; }
.ai-icon { width: 30px; height: 30px; color: var(--accent-blue); margin-top: 5px; }
.loading-dots span { animation: bounce 1.4s infinite ease-in-out both; font-size: 2rem; margin: 0 2px; }
.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }
.markdown-body h1, .markdown-body h2 { font-size: 1.2rem; margin-top: 10px; }
.markdown-body p { margin-bottom: 10px; }

/* --- CONTACT MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--modal-bg);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: slideUp 0.3s ease;
}

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

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.modal-content h2 { margin-top: 0; color: #1f1f1f; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
}

/* Captcha Style Box */
.captcha-box {
    background: #f9f9f9;
    border: 1px solid #d3d3d3;
    padding: 15px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    width: fit-content;
    min-width: 200px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0; width: 0;
}

.checkmark {
    height: 24px;
    width: 24px;
    background-color: #fff;
    border: 2px solid #c1c1c1;
    border-radius: 2px;
    margin-right: 12px;
    position: relative;
}

.custom-checkbox:hover input ~ .checkmark { border-color: #b2b2b2; }

/* Tick Mark */
.custom-checkbox input:checked ~ .checkmark:after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid #009d00;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.submit-btn {
    width: 100%;
    background: #1f1f1f;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}
.submit-btn:hover { background: #000; }


/* Thinking Animation */
.thinking-text {
    color: #666;
    font-style: italic;
    font-size: 0.95rem;
    margin-top: 8px;
    animation: pulseText 1.5s infinite ease-in-out;
}

@keyframes pulseText {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Stop Button Styling */
.fa-stop {
    font-size: 0.9rem;
    color: var(--accent-blue);
}