/* --- Global Styles & Variables --- */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-color: #f8fafc;
    --text-color: #0f172a;
    --card-bg: #ffffff;
    --chat-user: #2563eb;
    --chat-bot: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 6rem 5%;
    background: linear-gradient(135deg, #e0e7ff 0%, #f8fafc 100%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 2rem;
}

.cta-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.cta-btn:hover {
    background-color: var(--primary-hover);
}

/* --- Solutions Grid --- */
.solutions-section {
    padding: 5rem 5%;
    text-align: center;
}

.solutions-section h2 {
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* --- Chatbot UI --- */
.chatbot-section {
    padding: 5rem 5%;
    background-color: #e0e7ff;
    text-align: center;
}

.chatbot-section h2 {
    margin-bottom: 1rem;
}

.chat-container {
    max-width: 800px;
    margin: 2rem auto 0;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-window {
    height: 400px;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.message {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
}

.system-msg {
    background-color: var(--chat-bot);
    color: var(--text-color);
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.user-msg {
    background-color: var(--chat-user);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.chat-input-area {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
}

.chat-input-area input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    outline: none;
    font-size: 1rem;
}

.chat-input-area input:focus {
    border-color: var(--primary-color);
}

.chat-input-area button {
    padding: 0 1.5rem;
    margin-left: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.chat-input-area button:hover {
    background-color: var(--primary-hover);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--text-color);
    color: white;
}