:root {
    --primary-color: #00bf63;
    /* Royal Blue from image */
    --secondary-color: #eff6ff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --bs-focus-ring-color: rgba(16, 185, 129, 0.25);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: #f8fafc;
    overflow-x: hidden;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* --- Components --- */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
}

.btn-primary:hover,
.btn-outline-primary:hover {
    background-color: #009e51;
    border-color: #009e51;
}

.section-padding {
    padding: 80px 0;
}

.badge-soft {
    background-color: rgba(0, 191, 99, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    padding-top: 120px;
    padding-bottom: 60px;
    text-align: center;
}

.hero-headline {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: -webkit-linear-gradient(#1e293b, #334155);
    -webkit-background-clip: text;
}

.dashboard-preview {
    margin-top: 50px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-lg);
    border: 8px solid white;
    width: 100%;
    max-width: 1000px;
}

/* --- Cards (Features & Benefits) --- */
.feature-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius-md);
    border: 1px solid #e2e8f0;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.icon-square {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 191, 99, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* --- Pricing --- */
.pricing-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    border: 1px solid #e2e8f0;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.pro {
    border: 2px solid var(--primary-color);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
    transform: scale(1.02);
    z-index: 2;
}

.price-tag {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.price-period {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 400;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.feature-list li {
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: start;
}

.feature-list li i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 3px;
}

/* --- CTA Section --- */
.cta-box {
    background-color: rgba(0, 191, 99, 0.1);
    color: var(--primary-color);
    border-radius: var(--border-radius-lg);
    padding: 60px;
    text-align: center;
}

/* --- Navbar --- */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.5rem;
    }

    .pricing-card.pro {
        transform: scale(1);
        margin: 20px 0;
    }
}

/* Override Bootstrap active accordion style */
.accordion-button:not(.collapsed) {
    background-color: transparent !important;
    color: var(--text-dark) !important;
    /* Keeps text dark instead of blue */
    box-shadow: none !important;
    /* Removes the blue glow */
}

/* Remove the blue focus ring when clicking */
.accordion-button:focus {
    box-shadow: none !important;
    border-color: rgba(0, 0, 0, 0.125);
}

.modal-video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.modal-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.form-control:focus,
.form-select:focus,
.btn-check:focus+.btn,
.form-check-input:focus {
    /* Sets the border to the primary color when focused (or your desired accent color) */
    border-color: #10b981;

    /* Applies the box-shadow using the custom variable defined in :root */
    box-shadow: 0 0 0 0.25rem var(--bs-focus-ring-color);
}


/* Preloader CSS (Add to index2.css) */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8fafc;
    /* Use your body background color for a seamless transition */
    z-index: 9999;
    /* Ensure it stays on top of all other elements */
    display: flex;
    /* Use flexbox to center content */
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out;
    /* Smooth fade-out effect */
}

/* Optional: Styling for the spinner (Bootstrap class is used, but for reference) */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* Class to hide the preloader */
.hide-preloader {
    opacity: 0;
    visibility: hidden;
}


/* ------ dark mode --------- */
/* ========================================= */
/* --- DARK MODE STYLES (Time-Based) --- */
/* ========================================= */

.dark-mode {
    /* Main Background & Text Colors */
    --text-dark: #f8fafc;
    /* Light text for body */
    --text-muted: #94a3b8;
    /* Lighter muted text */
    --bg-light: #1e293b;
    /* New light background areas */
    --bg-white: #0f172a;
    /* New white background areas (darker) */
    --border-color: #334155;
    /* Darker borders */

    background-color: #0f172a;
    /* Dark background for the body */
    color: var(--text-dark);
}

/* Override Body/Global Backgrounds */
.dark-mode body {
    background-color: #0f172a;
}

/* Navbar */
.dark-mode .navbar {
    background: rgba(15, 23, 42, 0.9);
    /* Darker, slightly transparent background */
    border-color: var(--border-color) !important;
}

.dark-mode .navbar-nav .nav-link {
    color: var(--text-muted);
}

.dark-mode .navbar-nav .nav-link.active {
    color: var(--primary-color);
    /* Keep primary color for active link */
}

/* Section Backgrounds */
.dark-mode .section-padding {
    background-color: var(--bg-white);
}

.dark-mode .bg-white {
    background-color: var(--bg-white) !important;
}

.dark-mode .bg-light {
    background-color: var(--bg-light) !important;
}

/* Hero Section Gradient - Update this for dark mode */
.dark-mode .hero-section {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.dark-mode .hero-headline {
    /* Ensure the gradient works with the dark background */
    background: -webkit-linear-gradient(#f8fafc, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Cards (Feature & Pricing) */
.dark-mode .feature-card,
.dark-mode .pricing-card,
.dark-mode .accordion-item {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.dark-mode .feature-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Pricing Card Pro Border */
.dark-mode .pricing-card.pro {
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

/* Text and Links */
.dark-mode .text-muted,
.dark-mode .feature-list li {
    color: var(--text-muted) !important;
}

.dark-mode .feature-list li i {
    color: var(--primary-color);
}

.dark-mode a.text-muted,
.dark-mode .footer a {
    color: var(--text-muted) !important;
}

.dark-mode a.text-muted:hover,
.dark-mode .footer a:hover {
    color: var(--text-dark) !important;
}

/* CTA Box */
.dark-mode .cta-box {
    background-color: #1e293b;
    color: var(--text-dark);
}

.dark-mode .cta-box .opacity-75 {
    color: var(--text-muted) !important;
}

/* Dashboard Image Border */
.dark-mode .dashboard-preview {
    border: 8px solid #0f172a;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Accordion */
.dark-mode .accordion-flush {
    background: var(--bg-white) !important;
    border: none;
    box-shadow: none;
}

.dark-mode .accordion-item {
    border-color: var(--border-color);
}

.dark-mode .accordion-button {
    background-color: var(--bg-light) !important;
    color: var(--text-dark) !important;
}


.dark-mode .contact-form-container {
    background-color: var(--bg-light);
    /* Darker container background */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.dark-mode .form-label {
    color: var(--text-dark);
    /* Ensure labels are visible */
}

/* Optional: To make the input fields themselves blend better */
.dark-mode .form-control,
.dark-mode .form-control:focus,
.dark-mode .form-control:active {
    background-color: #0f172a;
    /* Even darker input background */
    color: var(--text-dark);
    border-color: #334155;
}


.dark-mode .policy-content h1,
.dark-mode .policy-content h2 {
    /* Adjust header color for dark mode */
    color: var(--primary-color) !important;
}

.dark-mode .policy-content p,
.dark-mode .policy-content ul,
.dark-mode .policy-content li {
    /* Use a light/muted text color */
    color: var(--text-muted) !important;
}

.dark-mode .policy-content strong {
    color: var(--text-dark);
    /* Highlight bold text */
}

/* Ensure the main container/section remains dark */
.dark-mode .section-padding {
    background-color: var(--bg-white);
    /* #0f172a from previous recommendation */
}