:root{
  --bg:#0b0e12; --panel:#12161d; --muted:#a0a7b3; --text:#e8ecf1;
  --primary:#e53935; --primary-700:#c62828; --accent:#2dd4bf;
  
  /* Chatbot Defaults */
  --chat-header-bg: #1e2430;
  --chat-bot-bg: #1f2531;
  --chat-bot-text: #e8ecf1;
  --chat-user-bg: #e53935;
  --chat-user-text: #ffffff;
}

/* Bootstrap Overrides for Dark Theme */
[data-bs-theme="dark"] {
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text);
    --bs-primary: var(--primary);
    --bs-primary-rgb: 229, 57, 53;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Custom Components that Bootstrap doesn't cover fully or we want to keep specific */

/* Navbar Customization */
.navbar {
    background: rgba(11,14,18,.8);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid #1e2430;
}
.navbar-brand img {
    height: 40px;
    width: auto;
}
.nav-link {
    color: var(--muted) !important;
}
.nav-link:hover, .nav-link.active {
    color: var(--text) !important;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(229,57,53,.08), transparent 40%);
}
.hero-logo {
    max-width: 220px;
    opacity: .95;
    filter: drop-shadow(0 10px 30px rgba(229,57,53,.25));
}

/* Cards */
.card {
    background: var(--panel);
    border: 1px solid #1e2430;
    border-radius: 14px;
}
.card-body {
    padding: 1.5rem;
}
.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}
.card p {
    color: #cbd2dc;
    margin-bottom: 0;
}

/* Stats */
.stat-card {
    background: var(--panel);
    border: 1px solid #1e2430;
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
}
.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
}
.stat-label {
    color: #cbd2dc;
}

/* List Check */
.list-check {
    list-style: none;
    padding: 0;
    color: #cbd2dc;
}
.list-check li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}
.list-check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Contact Form */
.form-control {
    background: #0c1016;
    border: 1px solid #2a303b;
    color: var(--text);
}
.form-control:focus {
    background: #0c1016;
    border-color: var(--primary);
    color: var(--text);
    box-shadow: 0 0 0 0.25rem rgba(229, 57, 53, 0.25);
}

/* Chatbot Styles (Keep mostly as is) */
.chatbot-container {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 1050;
}
.chatbot-toggle {
    width: 56px;
    height: 56px;
    background: #ffffff;
    color: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}
.chatbot-toggle:hover {
    transform: scale(1.1);
}
.chatbot-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    height: 450px;
    background: var(--panel);
    border: 1px solid #1e2430;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1060;
}
.chat-window.open {
    display: flex;
}
.chat-header {
    padding: 1rem;
    background: var(--chat-header-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2a303b;
}
.header-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.chat-header .btn {
    line-height: 1;
}
.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.message {
    display: flex;
    gap: 0.5rem;
    max-width: 85%;
}
.message.bot { align-self: flex-start; }
.message.user { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.msg-bubble {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
}
.message.bot .msg-bubble { background: var(--chat-bot-bg); color: var(--chat-bot-text); border-bottom-left-radius: 2px; }
.message.user .msg-bubble { background: var(--chat-user-bg); color: var(--chat-user-text); border-bottom-right-radius: 2px; }

.chat-input-area {
    padding: 0.75rem;
    border-top: 1px solid #1e2430;
    display: flex;
    gap: 0.5rem;
}
.chat-input-area .form-control {
    background: #0c1016;
    border: 1px solid #2a303b;
    color: var(--text);
}
.chat-input-area .form-control::placeholder {
    color: #8f97a5;
}
.chat-input-area .form-control:focus {
    background: #0c1016;
    border-color: var(--primary);
    color: var(--text);
    box-shadow: 0 0 0 0.15rem rgba(229, 57, 53, 0.2);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1040;
    background: #25d366;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.whatsapp-float svg { width: 30px; height: 30px; display: block; }

/* Mobile adjustments handled by Bootstrap mostly, but chat needs care */
@media (max-width: 576px) {
    .chat-window {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        z-index: 2000;
    }
    .chatbot-container { bottom: 100px; right: 16px; }
    .whatsapp-float { bottom: 20px; right: 16px; }
}
