/* CSS Variables for Light and Dark Themes */
:root {
    /* Light Theme Colors */ #ffffffcb
    --bg-body-light: #eceaeab0; 
    --text-primary-light: #111827;
    --text-secondary-light: #4B5563;
    --accent-blue-light: #2563EB;
    --border-light: #E5E7EB;
    --card-bg-light: #FFFFFF;
    --header-bg-light: rgba(255, 255, 255, 0.8); /* Frosted glass */
    --box-shadow-light: rgba(0, 0, 0, 0.05);
    --gradient-start-light: #2563EB;
    --gradient-end-light: #9333EA;
}

.dark-theme {
    /* Dark Theme Colors */
    --bg-body-light: #111827; /* main bg */
    --text-primary-light: #FFFFFF;
    --text-secondary-light: #D1D5DB;
    --accent-blue-light: #60A5FA;
    --border-light: #374151;
    --card-bg-light: #1F2937; /* A darker gray for cards in dark mode */
    --header-bg-light: rgba(17, 24, 39, 0.8); /* Frosted glass dark */
    --box-shadow-light: rgba(255, 255, 255, 0.05);
    --gradient-start-light: #60A5FA;
    --gradient-end-light: #4b27b6; /* Lighter purple for dark mode */
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    line-height: 1.6;
    color: var(--text-primary-light);
    background-color: var(--bg-body-light);
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1400px; /* max-w-7xl */
    margin: 0 auto;
    padding: 0 1rem; /* px-4 */
}

@media (min-width: 640px) { /* sm */
    .container {
        padding: 0 1.5rem; /* sm:px-6 */
    }
}

@media (min-width: 1024px) { /* lg */
    .container {
        padding: 0 2rem; /* lg:px-8 */
    }
}

a {
    color: var(--accent-blue-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1a4fbe; /* A slightly darker blue */
}

ul {
    list-style: none;
}

/* Headings */
h1 {
    font-size: 3.5rem; /* Increased from 3rem */
    font-weight: 700; /* font-bold */
    line-height: 1.1;
}

@media (min-width: 768px) { /* md */
    h1 {
        font-size: 5rem; /* Increased from 4.5rem */
    }
}

h2 {
    font-size: 3rem; /* Increased from 2.5rem */
    font-weight: 700; /* font-bold */
    line-height: 1.2;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary-light);
}

@media (min-width: 768px) { /* md */
    h2 {
        font-size: 3.5rem; /* Increased from 3rem */
    }
}

h3 {
    font-size: 2rem; /* Increased from 1.75rem */
    font-weight: 600; /* font-semibold */
    color: var(--text-primary-light);
}
h4 {
    font-size: 1.4rem; /* Increased from 1.25rem */
    font-weight: 600; /* font-semibold */
    color: var(--text-primary-light);
}

p {
    font-size: 1.05rem; /* Slightly increased from 1rem */
    color: var(--text-secondary-light);
    line-height: 1.6;
}

.subtitle {
    font-size: 1.35rem; /* Increased from 1.25rem */
    font-weight: 400; /* font-normal */
    color: var(--text-secondary-light);
    margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600; /* font-semibold */
    border-radius: 0.75rem; /* rounded-xl */
    padding: 1rem 2rem; /* px-8 py-4 */
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    text-align: center;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-lg */
}

.btn-primary {
    background-color: var(--accent-blue-light);
    color: var(--bg-body-light); /* White in light, adjusted in dark */
}

.btn-primary:hover {
    transform: scale(1.05); /* hover:scale-105 */
    background-color: #1a4fbe; /* Darker blue */
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--accent-blue-light); /* border-2 */
    color: var(--accent-blue-light);
    box-shadow: none;
}

.btn-secondary:hover {
    transform: scale(1.05);
    background-color: var(--accent-blue-light);
    color: var(--bg-body-light);
}

.btn-sm {
    padding: 0.6rem 1.2rem; /* px-4 py-2 */
    border-radius: 0.5rem; /* rounded-lg */
    font-size: 0.95rem; /* Slightly increased from 0.875rem */
    box-shadow: none;
}
.btn-sm.btn-primary:hover {
     transform: none; /* No scale for smaller buttons hover */
}
.btn-sm.btn-secondary:hover {
     transform: none; /* No scale for smaller buttons hover */
}


/* Section common styling */
section {
    padding: 6rem 0;
}
.section-description {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
    font-size: 1.35rem; /* Slightly increased for main descriptions */
}


/* Navigation Bar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--header-bg-light);
    backdrop-filter: blur(8px); /* Frosted glass effect */
    box-shadow: 0 2px 10px var(--box-shadow-light);
    padding: 0.75rem 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.5rem; /* Consistent height */
}

.navbar .logo {
    display: flex;
    align-items: center;
    font-size: 1.6rem; /* Slightly increased */
    font-weight: 700;
    color: var(--text-primary-light);
}

.navbar .logo img {
    height: 45px; /* Slightly increased */
    margin-right: 10px;
}

.dark-theme .navbar .logo img {
    filter: invert(1); /* Apply invert only in dark theme */
}

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

.nav-links a {
    color: var(--text-primary-light);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0; /* clickable area */
}

.nav-links a:hover {
    color: var(--accent-blue-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-primary-light);
    font-size: 1.35rem; /* Slightly increased */
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.theme-toggle-btn:hover {
    background-color: var(--border-light);
}

.menu-toggle {
    display: none; /* Hidden by default for desktop */
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    width: 25px; /* Adjust as needed */
    height: 20px; /* Adjust as needed */
    justify-content: center;
    align-items: center;
    z-index: 1001; /* Ensure it's above other content when open */
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary-light);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Mobile Nav */
@media (max-width: 1023px) { /* lg breakpoint for nav */
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--bg-body-light); /* Or a slightly transparent overlay */
        padding-top: 6rem; /* Space for fixed header */
        align-items: center;
        justify-content: flex-start;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.6rem; /* Slightly increased */
        padding: 1rem 0;
    }

    .menu-toggle {
        display: flex;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    color: var(--text-primary-light);
    text-align: center;
    padding: 8rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.hero-background-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bg-body-light); /* Default background for hero */
    z-index: 1;
    transition: background-image 1s ease-in-out;
}
 .dark-theme .hero-background-slideshow {
    background-color: var(--bg-body-light); /* Default background for hero */
 }


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* Subtle overlay */
    z-index: 2;
}

.hero-content {
    position: relative;
    max-width: 900px;
    padding: 0 1rem;
    z-index: 3;
}

.hero-content h1 {
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-primary-light);
}
.hero-content h1 span {
    color: var(--accent-blue-light);
}

.hero-content .subtitle {
    margin-bottom: 3rem;
    color: var(--text-secondary-light);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 4rem;
    justify-content: center;
    align-items: center;
}
@media (min-width: 640px) { /* sm */
    .hero-buttons {
        flex-direction: row;
    }
}

.platform-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* grid-cols-2 */
    gap: 1.5rem;
    margin-top: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 768px) { /* md */
    .platform-icons {
        grid-template-columns: repeat(4, 1fr); /* md:grid-cols-4 */
    }
}

.platform-card {
    background-color: var(--card-bg-light);
    padding: 1.5rem;
    border-radius: 1rem; /* rounded-xl */
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s;
    border: 1px solid var(--border-light);
}
.platform-card:hover {
    transform: translateY(-5px); /* lifts up slightly */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* more prominent shadow */
}
.platform-card i {
    font-size: 3.2rem; /* Slightly increased from 3rem */
    margin-bottom: 0.5rem;
    color: var(--accent-blue-light); /* Example: WhatsApp green, Telegram blue, etc. */
}
.platform-card .icon-whatsapp { color: #25D366; }
.platform-card .icon-telegram { color: #0088CC; }
.platform-card .icon-web { color: #FFD700; } /* Gold color */
.platform-card .icon-mobile { color: #FF69B4; } /* Hot Pink color */

.platform-card h4 {
    font-size: 1.15rem; /* Slightly increased from 1rem */
    font-weight: 600;
    color: var(--text-primary-light);
}

.automation-banner {
    background: linear-gradient(to right, var(--gradient-start-light), var(--gradient-end-light));
    color: white;
    padding: 3rem 1rem;
    text-align: center;
    border-radius: 1.5rem; /* rounded-3xl */
    margin-top: 6rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.automation-banner h3 {
    color: white;
    font-size: 2.25rem; /* Slightly increased from 2rem */
    margin-bottom: 1rem;
}
.automation-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.35rem; /* Slightly increased from 1.1rem */
}
.automation-banner .stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}
.automation-banner .stat-item {
    font-size: 1.45rem; /* Slightly increased from 1.25rem */
    font-weight: 600;
}


/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* grid-cols-1 */
    gap: 2rem;
    margin-top: 3rem;
}
@media (min-width: 768px) { /* md */
    .features-grid {
        grid-template-columns: repeat(2, 1fr); /* md:grid-cols-2 */
    }
}
@media (min-width: 1024px) { /* lg */
    .features-grid {
        grid-template-columns: repeat(3, 1fr); /* lg:grid-cols-3 */
    }
}

.feature-card {
    background-color: var(--card-bg-light);
    padding: 2rem;
    border-radius: 1.5rem; /* rounded-2xl */
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s;
}
.feature-card:hover {
    transform: translateY(-8px); /* hover:-translate-y-2 */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* hover:shadow-xl */
    border-color: var(--accent-blue-light);
}
.feature-card i {
    font-size: 3.75rem; /* Slightly increased from 3.5rem */
    color: var(--accent-blue-light);
    margin-bottom: 1rem;
}
.feature-card h3 {
    font-size: 1.5rem; /* Slightly increased from 1.25rem */
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary-light);
}
.feature-card p {
    font-size: 1.25rem; /* Slightly increased from 0.95rem */
    color: var(--text-secondary-light);
}

.africa-principles-banner {
    background-color: var(--bg-body-light); /* Will be dark in dark mode */
    color: var(--text-primary-light);
    padding: 3rem 1rem;
    text-align: center;
    margin-top: 6rem;
    border-top: 1px solid var(--border-light);
}
.africa-principles-banner h3 {
    font-size: 2.25rem; /* Slightly increased from 2rem */
    margin-bottom: 2rem;
    color: var(--text-primary-light);
}
.principles-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}
@media (min-width: 640px) { /* sm */
    .principles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) { /* lg */
    .principles-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.principle-item {
    background-color: var(--card-bg-light);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 5px var(--box-shadow-light);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.principle-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px var(--box-shadow-light);
}
.principle-item i {
    font-size: 2.75rem; /* Slightly increased from 2.5rem */
    color: var(--accent-blue-light);
    margin-bottom: 0.75rem;
}
.principle-item h4 {
    font-size: 1.35rem; /* Kept same, generally good */
    font-weight: 600;
    color: var(--text-primary-light);
}
.principle-item p {
    font-size: 1.25rem; /* Kept same, generally good */
    color: var(--text-secondary-light);
}


/* Demo Showcase Section */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* grid-cols-1 */
    gap: 1.5rem; /* Reduced from 2.5rem */
    margin-top: 3rem;
}
@media (min-width: 1024px) { /* lg */
    .demo-grid {
        grid-template-columns: repeat(2, 1fr); /* lg:grid-cols-2 */
    }
}

.demo-card {
    background-color: var(--card-bg-light);
    border-radius: 1.5rem; /* rounded-2xl */
    border: 1px solid var(--border-light);
    box-shadow: 0 5px 15px var(--box-shadow-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s;
}
.demo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px var(--box-shadow-light);
}
.demo-card-header {
    padding: 1.75rem; /* Slightly increased */
}
.demo-card-header i {
    font-size: 2.5rem; /* Slightly increased from 2.25rem */
    color: var(--accent-blue-light);
    margin-bottom: 0.75rem; /* Adjusted margin */
}
.demo-card-header h3 {
    font-size: 1.5rem; /* Slightly increased from 1.2rem */
    font-weight: 600;
    margin-bottom: 0.6rem; /* Adjusted margin */
    color: var(--text-primary-light);
}
.demo-card-header p {
    font-size: 1.25rem; /* Slightly increased from 0.8rem */
    color: var(--text-secondary-light);
    margin-bottom: 0.8rem; /* Adjusted margin */
}
.demo-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem; /* Increased gap between tags */
    margin-top: 0.8rem; /* Adjusted margin */
}
.tag-badge {
    background-color: var(--border-light);
    color: var(--text-secondary-light);
    font-size: 1.00rem; /* Increased from 0.65rem */
    padding: 0.25rem 0.65rem; /* Increased padding */
    border-radius: 9999px; /* rounded-full */
    font-weight: 500;
}
.dark-theme .tag-badge {
    background-color: var(--border-light);
    color: var(--text-secondary-light);
}

.demo-card-image {
    overflow: hidden;
    border-radius: 0 0 1.5rem 1.5rem; /* Rounded bottom */
    flex-grow: 1;
    display: flex; /* Make it a flex container */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    background-color: var(--border-light); /* Add a background color to see empty space */
    padding: 1.5rem; /* Increased padding around the image */
}
.dark-theme .demo-card-image {
    background-color: var(--border-light); /* Darker background for dark mode */
}
.demo-card-image img {
    width: 100%; /* Will respect max-width */
    max-width: 85%; /* Slightly increased image size */
    height: auto;
    display: block;
    object-fit: contain; /* Use contain to ensure the whole image fits, adding padding if aspect ratio mismatch */
    transition: transform 0.4s ease;
    cursor: pointer;
}
.demo-card-image img:hover {
    transform: scale(1.08); /* Slightly increased zoom on hover for smaller image */
}

/* Lightbox Styles */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 10000; /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 0.75rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}


.trust-banner {
    background: linear-gradient(to right, var(--gradient-start-light), var(--gradient-end-light));
    color: white;
    padding: 4rem 1rem;
    text-align: center;
    border-radius: 1.5rem;
    margin-top: 6rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.trust-banner h3 {
    color: white;
    font-size: 2.5rem; /* Increased from 2.25rem */
    margin-bottom: 1.5rem;
}
.trust-banner .metrics-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}
.trust-banner .metric-item {
    font-size: 1.6rem; /* Increased from 1.5rem */
    font-weight: 700;
}
.trust-banner .metric-item span {
    display: block;
    font-size: 0.95rem; /* Slightly increased from 0.9rem */
    font-weight: 400;
    opacity: 0.8;
    margin-top: 0.25rem;
}


/* AI Assistants Section */
.ai-assistants-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
@media (min-width: 640px) { /* sm */
    .ai-assistants-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) { /* lg */
    .ai-assistants-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.assistant-card {
    background-color: var(--card-bg-light);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s;
    position: relative; /* For icon pop-out effect */
}
.assistant-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 44px 6px -2px rgba(0, 0, 0, 0.05);
}
.assistant-card i {
    font-size: 3.75rem; /* Slightly increased from 3.5rem */
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}
.assistant-card:hover i {
    transform: scale(1.1); /* Icon pops out */
}
/* Specific icon colors (unchanged, as they are distinct and functional) */
.assistant-card .icon-sales { color: #f56565; }
.assistant-card .icon-support { color: #38b2ac; }
.assistant-card .icon-logistics { color: #4299e1; }
.assistant-card .icon-documents { color: #ed8936; }
.assistant-card .icon-healthcare { color: #9f7aea; }
.assistant-card .icon-education { color: #ecc94b; }
.assistant-card .icon-finance { color: #48bb78; }
.assistant-card .icon-project { color: #e53e3e; }

.assistant-card h4 {
    font-size: 1.5rem; /* Slightly increased from 1.25rem */
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary-light);
}
.assistant-card p {
    font-size: 1.3rem; /* Slightly increased from 0.95rem */
    color: var(--text-secondary-light);
}

.customization-card {
    background-color: var(--card-bg-light);
    padding: 2.75rem; /* Slightly increased */
    border-radius: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 5px 15px var(--box-shadow-light);
    margin-top: 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.customization-card h3 {
    font-size: 2.25rem; /* Slightly increased from 2rem */
    margin-bottom: 1.75rem; /* Adjusted */
    color: var(--text-primary-light);
}
.customization-points {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}
@media (min-width: 768px) {
    .customization-points {
        grid-template-columns: repeat(3, 1fr);
    }
}
.customization-point-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.customization-point-item .icon-circle {
    width: 75px; /* Slightly increased */
    height: 75px; /* Slightly increased */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background-color: var(--accent-blue-light);
}
.customization-point-item .icon-circle i {
    font-size: 2.25rem; /* Slightly increased */
    color: white;
}
.customization-point-item h4 {
    font-size: 1.5rem; /* Slightly increased from 1.2rem */
    color: var(--text-primary-light);
    margin-bottom: 0.5rem;
}
.customization-point-item p {
    font-size: 1.25rem; /* Kept same, generally good */
    color: var(--text-secondary-light);
}
/* Specific icon circle colors (unchanged) */
.icon-circle.scalable { background-color: #38b2ac; }
.icon-circle.local { background-color: #4299e1; }
.icon-circle.setup { background-color: #ed8936; }


/* Pricing Section */
.pricing-plans-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* grid-cols-1 */
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch; /* Make cards same height */
}
@media (min-width: 768px) { /* md */
    .pricing-plans-grid {
        grid-template-columns: repeat(3, 1fr); /* md:grid-cols-3 */
    }
}

.pricing-card {
    background-color: var(--card-bg-light);
    padding: 2.5rem;
    border-radius: 1.5rem; /* rounded-2xl */
    border: 1px solid var(--border-light);
    box-shadow: 0 5px 15px var(--box-shadow-light);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s;
    text-align: center;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px var(--box-shadow-light);
}

.pricing-card .popular-tag {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-blue-light);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 1.1rem; /* Slightly increased */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card h3 {
    font-size: 2.0rem; /* Slightly increased from 1.75rem */
    margin-top: 1rem; /* Adjust for tag if present */
    margin-bottom: 1rem;
    color: var(--text-primary-light);
}

.pricing-card .price {
    font-size: 3.75rem; /* Slightly increased from 3.5rem */
    font-weight: 700;
    color: var(--accent-blue-light);
    margin-bottom: 0.5rem;
}
.pricing-card .price span {
    font-size: 1.65rem; /* Slightly increased from 1.5rem */
    font-weight: 400;
    color: var(--text-secondary-light);
}

.pricing-card .price-description {
    font-size: 1.25rem; /* Slightly increased from 0.9rem */
    color: var(--text-secondary-light);
    margin-bottom: 2rem;
}

.pricing-card ul {
    text-align: left;
    margin-bottom: 2rem;
    flex-grow: 1; /* Pushes button to bottom */
}
.pricing-card ul li {
    font-size: 1.15rem; /* Slightly increased from 1rem */
    color: var(--text-primary-light);
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.75rem;
}
.pricing-card ul li::before {
    content: "\f00c"; /* Font Awesome checkmark icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent-blue-light);
    position: absolute;
    left: 0;
    top: 0;
}

.pricing-card .btn {
    width: 100%;
    margin-top: auto; /* Push to bottom */
}

.pricing-card.featured {
    border-color: var(--accent-blue-light);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-10px);
    border-width: 3px;
}
.pricing-card.featured:hover {
    transform: translateY(-12px);
}

.finance-addons-banner {
    background: linear-gradient(to right, var(--gradient-start-light), var(--gradient-end-light));
    color: white;
    padding: 3.5rem 1.5rem; /* Slightly increased padding */
    text-align: center;
    border-radius: 1.5rem;
    margin-top: 5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.finance-addons-banner h3 {
    color: white;
    font-size: 2.25rem; /* Slightly increased from 2rem */
    margin-bottom: 1.75rem; /* Adjusted */
}
.finance-addons-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.35rem; /* Slightly increased from 1.1rem */
}
.finance-addons-banner .addon-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.75rem; /* Increased gap */
    margin-top: 2.25rem; /* Adjusted margin */
}
.finance-addons-banner .addon-item {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.85rem 1.35rem; /* Slightly increased padding */
    border-radius: 9999px;
    font-weight: 500;
    font-size: 1.5rem; /* Increased from 0.95rem */
}

.enterprise-cta {
    background-color: var(--card-bg-light);
    padding: 3.5rem; /* Slightly increased padding */
    border-radius: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 5px 15px var(--box-shadow-light);
    text-align: center;
    margin-top: 4rem;
}
.enterprise-cta h3 {
    font-size: 2.25rem; /* Slightly increased from 2rem */
    margin-bottom: 1.75rem; /* Adjusted */
    color: var(--text-primary-light);
}
.enterprise-cta p {
    font-size: 1.25rem; /* Slightly increased from 1.1rem */
    margin-bottom: 2.25rem; /* Adjusted */
}


/* Footer */
.footer {
    background-color: var(--text-primary-light); /* Dark background for footer */
    color: white; /* Ensure text is white for dark footer */
    padding: 4rem 0 1.5rem;
}
.dark-theme .footer {
    background-color: #000; /* Even darker in dark mode for contrast */
}


.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}
@media (min-width: 768px) { /* md */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) { /* lg */
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-col .logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}
.footer-col .logo img {
    height: 45px; /* Consistent with navbar logo */
    margin-right: 10px;
    /* In light mode, the logo is dark. Footer is dark. So invert for light mode on dark footer. */
    filter: invert(1);
}
.dark-theme .footer-col .logo img {
    /* In dark mode, the logo is already inverted to white. Footer is dark. No need to invert again. */
    filter: none; /* No invert filter needed in dark theme if the image is already white/light */
}


.footer-col .logo h4 {
    color: white;
    font-size: 1.6rem; /* Consistent with navbar logo */
    font-weight: 700;
}
.footer-col p {
    font-size: 0.95rem; /* Slightly increased from 0.9rem */
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}
.footer-col h5 {
    font-size: 1.2rem; /* Slightly increased from 1.1rem */
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: white;
}
.footer-col ul li {
    margin-bottom: 0.75rem;
}
.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem; /* Slightly increased from 0.9rem */
}
.footer-col ul li a:hover {
    color: var(--accent-blue-light);
}
.footer-col .contact-info div {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem; /* Slightly increased from 0.9rem */
    color: rgba(255, 255, 255, 0.8);
}
.footer-col .contact-info i {
    margin-right: 0.75rem;
    color: var(--accent-blue-light);
    font-size: 1.2rem; /* Slightly increased from 1.1rem */
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem; /* Slightly increased from 0.85rem */
    color: rgba(255, 255, 255, 0.7);
}
.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0.5rem;
}
.footer-bottom a:hover {
    color: var(--accent-blue-light);
}

/* AI Assistant Pop-up Styles */
.ai-popup-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(45deg, var(--gradient-start-light), var(--gradient-end-light));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 9999;
    /* Add animation for jerky movement when closed */
    animation: shake-robot 2s ease-in-out infinite; /* Adjust timing as needed */
    /* position: relative; */ /* Needed for absolute positioning of tooltip */
}
.ai-popup-toggle:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
    animation-play-state: paused; /* Pause animation on hover */
}

/* Custom Tooltip Text for Robot Icon */
.ai-popup-tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: 240px; /* Increased width to accommodate larger text */
    background-color: #333; /* Dark background */
    color: #fff; /* White text */
    text-align: center;
    border-radius: 6px;
    padding: 10px 12px; /* Increased padding */
    position: absolute;
    z-index: 10002; /* Higher than toggle, lower than modal */
    bottom: 100%; /* Position above the button */
    right: 50%; /* Center horizontally with transform */
    transform: translateX(50%) translateY(-15px); /* Adjusted for positioning and initial offset */
    white-space: normal; /* Allow text to wrap */
    font-size: 1.1rem; /* Increased from 1rem */
    font-weight: bold; /* Make it bold */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth transition */
}

.ai-popup-tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%; /* At the bottom of the tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent; /* Pointing down arrow */
}

.ai-popup-toggle:hover .ai-popup-tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(50%) translateY(-25px); /* Move up slightly on hover */
}

.ai-chat-window {
    position: fixed;
    width: 380px; /* Increased width for better chat experience */
    height: 500px; /* Increased height */
    background-color: var(--card-bg-light);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    transform: translateY(100%) scale(0.8); /* Start hidden and smaller */
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    transform-origin: bottom right; /* Set transform origin for better scaling effect */
}

/* Pause animation when chat window is active */
.ai-chat-window.active + .ai-popup-toggle { /* Selects the toggle when window is active */
    animation-play-state: paused;
}


/* Default positioning for desktop/larger screens (over 600px wide) */
@media (min-width: 601px) {
    .ai-chat-window {
        bottom: 2rem;
        right: 2rem;
        left: unset; /* Ensure left property is not set for larger screens */
    }
}

.ai-chat-window.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

/* Chat Header styles */
.chat-header {
    display: flex;
    align-items: center; /* Vertically center items */
    justify-content: space-between; /* Space out title and close button */
    padding: 0.85rem 1.1rem; /* Slightly increased padding */
    background: linear-gradient(to right, var(--gradient-start-light), var(--gradient-end-light));
    color: white;
    border-top-left-radius: 1rem; /* Match window border-radius */
    border-top-right-radius: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.chat-header .chat-header-logo {
    height: 30px; /* Slightly increased logo size */
    margin-right: 10px; /* Slightly increased margin */
    vertical-align: middle; /* Align with text */
}

.dark-theme .chat-header-logo {
    filter: invert(1); /* Apply invert only in dark theme */
}


.chat-header h5 {
    color: white; /* Ensure title is white */
    margin: 0; /* Remove default margin */
    flex-grow: 1; /* Allow title to take available space */
    font-size: 1.1rem; /* Slightly increased for chat header title */
}

.chat-header .close-chat-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.3rem; /* Slightly increased */
    cursor: pointer;
    padding: 0.3rem; /* Slightly increased padding */
    border-radius: 50%;
    transition: background-color 0.2s ease;
}
.chat-header .close-chat-btn:hover {
    background-color: rgba(255,255,255,0.2);
}

.chat-messages {
    flex-grow: 1;
    padding: 1.1rem; /* Slightly increased padding */
    overflow-y: auto;
    background-color: var(--bg-body-light);
    display: flex;
    flex-direction: column;
    gap: 0.85rem; /* Slightly increased gap */
    border-bottom: 1px solid var(--border-light);
    /* Ensure scroll behavior and padding */
    -webkit-overflow-scrolling: touch; /* For smoother scrolling on iOS */
}

.message {
    max-width: 85%;
    padding: 0.9rem 1.1rem; /* Increased padding for better look */
    border-radius: 1.3rem; /* More rounded corners for messages */
    line-height: 1.5; /* Increased line height for readability */
    font-size: 1rem; /* Increased from 0.95rem */
    word-wrap: break-word; /* Ensure long words wrap */
    box-sizing: border-box; /* Include padding in element's total width and height */
    position: relative; /* For pointy corners if pseudo-elements are used */
    animation: fadeInMessage 0.3s ease-out; /* Add fade-in animation */
}

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

.user-message {
    background-color: var(--accent-blue-light);
    color: white;
    align-self: flex-end; /* Align to the right */
    border-bottom-right-radius: 0.25rem; /* Slightly larger radius for the "point" */
    margin-right: 5px; /* Small margin to differentiate from window edge */
}

.assistant-message {
    background-color: var(--border-light);
    color: var(--text-primary-light);
    align-self: flex-start; /* Align to the left */
    border-bottom-left-radius: 0.25rem; /* Slightly larger radius for the "point" */
    margin-left: 5px; /* Small margin to differentiate from window edge */
}
.dark-theme .assistant-message {
    background-color: #2D3748; /* Darker grey for dark mode */
    color: var(--text-primary-light);
}

.chat-input-area {
    display: flex;
    padding: 0.85rem 1.1rem; /* Adjusted padding */
    gap: 0.85rem; /* Adjusted gap */
    background-color: var(--card-bg-light);
    border-top: 1px solid var(--border-light); /* Clear separation */
    align-items: center; /* Vertically align input and button */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05); /* Subtle shadow at the top of input area */
}
.chat-input-area input[type="text"] {
    flex-grow: 1;
    padding: 0.9rem 1.3rem; /* Adjusted padding for a taller input */
    border: 1px solid var(--border-light);
    border-radius: 0.8rem; /* Consistent border-radius */
    font-size: 1rem; /* Increased from 0.95rem */
    background-color: var(--bg-body-light); /* Match chat messages bg */
    color: var(--text-primary-light);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.chat-input-area input[type="text"]:focus {
    border-color: var(--accent-blue-light);
    box-shadow: 0 0 0 2px rgba(var(--accent-blue-light), 0.2);
}
.chat-input-area button {
    background-color: var(--accent-blue-light);
    color: white;
    border: none;
    border-radius: 0.8rem; /* Consistent border-radius */
    padding: 0.9rem 1.1rem; /* Adjusted padding to match input height */
    cursor: pointer;
    font-size: 1.1rem; /* Increased from 1rem */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.chat-input-area button:hover {
    background-color: #1a4fbe;
    transform: scale(1.05);
}

.chat-loading {
    text-align: center;
    padding: 0.6rem 1.1rem; /* Adjusted padding */
    font-size: 0.95rem; /* Increased from 0.85rem */
    color: var(--text-secondary-light);
    background-color: var(--bg-body-light);
    border-top: 1px solid var(--border-light);
}

/* New Keyframes for Robot Shake Animation */
@keyframes shake-robot {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    10% {
        transform: translateY(-3px) rotate(1deg);
    }
    20% {
        transform: translateY(0) rotate(-1deg);
    }
    30% {
        transform: translateY(-2px) rotate(0.5deg);
    }
    40% {
        transform: translateY(0) rotate(-0.5deg);
    }
    50% {
        transform: translateY(-1px) rotate(0.2deg);
    }
    60% {
        transform: translateY(0) rotate(-0.2deg);
    }
    70%, 90% {
        transform: translateY(0) rotate(0deg); /* Pause for a bit */
    }
}

/* Responsive adjustments for chat window for smaller mobile screens */
@media (max-width: 600px) {
    .ai-chat-window {
        width: calc(100% - 2rem); /* Full width minus margins */
        height: 70vh; /* Take more vertical space on small screens */
        bottom: 1rem;
        right: 1rem;
        left: 1rem; /* Center horizontally by setting left and right */
        border-radius: 1rem;
    }
    .ai-popup-toggle {
        bottom: 1rem;
        right: 1rem;
    }
}

/* Contact Modal Styles */
.contact-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10001; /* Sit on top (higher than other pop-ups) */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    backdrop-filter: blur(5px); /* Frosted glass effect */
    display: flex; /* Use flexbox for centering */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-modal.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal-content {
    background-color: var(--card-bg-light);
    margin: auto;
    padding: 2.75rem; /* Increased padding */
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    position: relative;
    max-width: 550px; /* Increased max-width */
    width: 90%; /* Responsive width */
    text-align: center;
    transform: translateY(20px); /* Start slightly below center */
    transition: transform 0.3s ease-out;
}

.contact-modal.active .contact-modal-content {
    transform: translateY(0); /* Animate to center */
}

.contact-modal-close-btn {
    color: var(--text-secondary-light);
    position: absolute;
    top: 1.2rem; /* Adjusted position */
    right: 1.4rem; /* Adjusted position */
    font-size: 2.2rem; /* Slightly increased */
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.contact-modal-close-btn:hover,
.contact-modal-close-btn:focus {
    color: var(--accent-blue-light);
    text-decoration: none;
}

.contact-modal-title {
    font-size: 2rem; /* Increased from 1.75rem */
    font-weight: 700;
    color: var(--text-primary-light);
    margin-bottom: 1.25rem; /* Adjusted margin */
}

.contact-modal-description {
    font-size: 1.2rem; /* Increased from 1.1rem */
    color: var(--text-secondary-light);
    margin-bottom: 1.75rem; /* Adjusted margin */
}

.contact-info-modal {
    background-color: var(--bg-body-light); /* Lighter background for the info block */
    padding: 1.75rem; /* Increased padding */
    border-radius: 0.85rem; /* Slightly more rounded */
    margin-bottom: 1.75rem; /* Adjusted margin */
    border: 1px solid var(--border-light);
}

.contact-info-modal p {
    font-size: 1.1rem; /* Increased from 1rem */
    color: var(--text-primary-light);
    margin-bottom: 0.6rem; /* Adjusted margin */
    display: flex;
    align-items: center;
    justify-content: center; /* Center text within the info block */
}

.contact-info-modal p:last-child {
    margin-bottom: 0;
}

.contact-info-modal i {
    color: var(--accent-blue-light);
    margin-right: 0.85rem; /* Adjusted margin */
    font-size: 1.2rem; /* Slightly increased */
}

.contact-modal-footer {
    font-size: 1.05rem; /* Increased from 0.95rem */
    color: var(--text-secondary-light);
    line-height: 1.5;
}

/* Responsive adjustments for modal on smaller screens */
@media (max-width: 600px) {
    .contact-modal-content {
        max-width: 95%;
        padding: 1.75rem; /* Slightly increased padding */
    }
    .contact-modal-title {
        font-size: 1.75rem; /* Increased from 1.5rem */
    }
    .contact-modal-description {
        font-size: 1.1rem; /* Increased from 1.0rem */
    }
}
