/* Global Design System */
:root {
    --primary: #3157a2;
    --primary-dark: #25427a;
    --whatsapp: #25d366;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
}

html {
    scroll-padding-top: 80px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background: #fff;
    overflow-x: hidden;
}

/* Global Section Styling */
section {
    padding: 80px 0;
}

section.p-0 {
    padding: 0 !important;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
}

/* Navbar Enhancement */
.navbar {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1020;
    padding: 0.5rem 0;
    margin-bottom: 0 !important;
}

.nav-link {
    color: #000 !important;
    font-weight: 700;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.btn-signup {
    background: linear-gradient(135deg, #3b82f6 0%, #1a4db2 100%) !important;
    color: #FFFFFF !important;
    border-radius: 50px !important;
    padding: 11px 26px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    font-family: inherit;
    border: none !important;
    box-shadow: 0 4px 14px rgba(26, 77, 178, 0.35);
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    text-decoration: none !important;
}

.btn-signup:hover {
    background: linear-gradient(135deg, #2563eb 0%, #163d96 100%) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(26, 77, 178, 0.45);
}

/* Hero Section & Slider */
.slider-bg {
    background-color: #fbfcfe;
    border-bottom: 1px solid #f1f5f9;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    color: #000;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

/* Carousel Indicators (Lines) */
.carousel-indicators.custom-indicators {
    bottom: 30px;
    justify-content: center;
    margin-bottom: 0;
}

.carousel-indicators.custom-indicators [data-bs-target] {
    width: 30px;
    height: 4px;
    border-radius: 10px;
    background-color: #cbd5e1;
    border: none;
    opacity: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 5px;
}

.carousel-indicators.custom-indicators .active {
    width: 50px;
    background-color: var(--primary);
}

/* Custom Input Group (Hero) */
.input-group-custom {
    background: white;
    border-radius: 100px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    max-width: 600px;
}

.input-group-custom .form-control {
    border: none !important;
    box-shadow: none !important;
    padding-left: 20px;
    font-weight: 500;
}

.input-group-custom .btn-custom {
    background: var(--primary);
    color: white;
    border-radius: 100px !important;
    padding: 12px 30px;
    font-weight: 700;
}

/* Section Headlines (Gradient) */
.section-title-center {
    font-size: 2.5rem;
    text-align: center;
    background: linear-gradient(to top, #4c87ff 0%, #000000 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title-left {
    font-size: 2.5rem;
    background: linear-gradient(to top, #4c87ff 0%, #000000 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Metric / Counter */
.fw-900 {
    font-weight: 900 !important;
}

.counter {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 5px;
}

/* Mobile Metrics Optimization */
@media (max-width: 576px) {
    .row.g-4.mt-5 h2 {
        font-size: 1.5rem !important;
        margin-bottom: 5px !important;
    }

    .row.g-4.mt-5 p {
        font-size: 0.65rem !important;
        line-height: 1.2;
    }

    .row.g-4.mt-5 .p-3 {
        padding: 10px 5px !important;
    }
}

/* Feature Cards */
.feature-card {
    background: #fff;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
}

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

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Tab/Capsule Styling */
.tab-capsule {
    display: inline-flex;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    padding: 5px;
    background: #fff;
}

.tab-capsule .nav-link {
    border-radius: 100px;
    padding: 10px 30px;
    color: #64748b;
}

.tab-capsule .nav-link.active {
    background: linear-gradient(90deg, #3157a2, #7c3aed);
    color: white !important;
}

/* Branded Print Tabs */
.nav-tabs {
    border-bottom: none;
}

.nav-tabs .nav-link {
    border: none;
    color: #64748b;
    font-weight: 700;
    padding-bottom: 15px;
    margin-bottom: 0;
}

.nav-tabs .nav-link.active {
    color: #000;
    border-bottom: 3px solid var(--primary);
}

/* Demo Form / Video Area */
.demo-section {
    background: #fdfdfd;
}

.play-trigger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    cursor: pointer;
    box-shadow: 0 0 0 20px rgba(49, 87, 162, 0.1);
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(49, 87, 162, 0.4);
    }

    100% {
        box-shadow: 0 0 0 30px rgba(49, 87, 162, 0);
    }
}

.demo-form {
    background: #fff;
    border-radius: 30px;
    border: 1px solid #f1f5f9;
}

.btn-otp {
    background: var(--primary);
    color: white;
}

/* Footer Section */
.footer {
    background-color: #0c121e !important;
    color: #fff;
    padding: 80px 0;
}

/* ========================
   Floating Controls Stack (Right Side)
======================== */
.floating-stack {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    z-index: 9999;
}

/* 1. Need Help Bubble */
.need-help-container {
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.5s ease;
}

.need-help-bubble {
    background: #ffffff;
    padding: 10px 22px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    font-size: 14px;
    font-weight: 700;
    color: #000;
    border: 1px solid #25d366;
    /* Green border from ref */
    cursor: pointer;
    transition: all 0.3s ease;
}

.need-help-bubble:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.2);
}

.close-help {
    width: 20px;
    height: 20px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    border: none;
    line-height: 1;
    transition: opacity 0.2s;
}

.close-help:hover {
    opacity: 0.8;
}

/* 2. WhatsApp Button */
.whatsapp-float {
    width: 58px;
    height: 58px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* 3. Chatbot Toggle */
.chatbot-toggle {
    width: 58px;
    height: 58px;
    background: #ffffff;
    color: #3157a2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    border: 1px solid #f2f5f9;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

/* Chatbot Container Positioning (Right) */
.chatbot-container {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 360px;
    max-height: 520px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.18);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 10001;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.chatbot-container.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}



/* Bot UI Styling Refresh */
.chatbot-header {
    background: #3157a2;
    color: #fff;
    padding: 18px 24px;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #fbfcfe;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msg {
    max-width: 82%;
    padding: 11px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.msg.user {
    background: #3157a2;
    color: #fff;
    align-self: flex-end;
}

.msg.bot {
    background: #eff3f9;
    color: #333;
    align-self: flex-start;
}

.chatbot-input {
    padding: 12px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
    background: #fff;
}

.chatbot-input input {
    flex: 1;
    border: none;
    outline: none;
    background: #f8fafc;
    padding: 10px 15px;
    border-radius: 10px;
}

.chatbot-input button {
    background: #3157a2;
    color: white;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
}

.chatbot-options {
    padding: 10px;
    display: flex;
    gap: 8px;
    background: #f1f5f9;
}

.chatbot-options button {
    background: #fff;
    border: 1px solid #ddd;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.chatbot-options button.active {
    background: #3157a2;
    color: #fff;
    border-color: #3157a2;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .section-title-center,
    .section-title-left {
        font-size: 1.8rem;
    }

    .row.g-4.mt-5 {
        margin-top: 1rem !important;
    }

    .chatbot-container {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 80px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
}