/* ===============================================
   NGOSHA DESIGN SYSTEM
   Shared tokens, animations, and component styles
   Used by all landing pages and module pages
   (c) 2026 Ngosha Multimedia | Dodoma, Tanzania
   =============================================== */

:root {
    --ngosha-primary: #8BC34A;
    --ngosha-primary-dark: #7CB342;
    --ngosha-secondary: #1a1a2e;
    --ngosha-accent: #f8b500;
    --ngosha-text: #1e293b;
    --ngosha-text-muted: #64748b;
    --ngosha-bg: #f8fafc;
    --ngosha-radius-sm: 8px;
    --ngosha-radius-md: 16px;
    --ngosha-radius-lg: 24px;
    --ngosha-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --ngosha-shadow-md: 0 10px 40px rgba(0, 0, 0, 0.06);
    --ngosha-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
}

* {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    color: var(--ngosha-text);
}

/* ====== SCROLL REVEAL ANIMATIONS ====== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-stagger>.reveal:nth-child(1) {
    transition-delay: 0s;
}

.reveal-stagger>.reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal-stagger>.reveal:nth-child(3) {
    transition-delay: 0.15s;
}

.reveal-stagger>.reveal:nth-child(4) {
    transition-delay: 0.2s;
}

.reveal-stagger>.reveal:nth-child(5) {
    transition-delay: 0.25s;
}

.reveal-stagger>.reveal:nth-child(6) {
    transition-delay: 0.3s;
}

.reveal-stagger>.reveal:nth-child(7) {
    transition-delay: 0.35s;
}

.reveal-stagger>.reveal:nth-child(8) {
    transition-delay: 0.4s;
}

/* ====== NAVBAR ====== */
.ngosha-nav {
    transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.ngosha-nav.scrolled {
    background: #fff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.ngosha-nav.scrolled .nav-link {
    color: var(--ngosha-text) !important;
}

.ngosha-nav.scrolled .navbar-brand {
    color: var(--ngosha-text) !important;
}

/* ====== SECTION BADGE ====== */
.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.15), rgba(139, 195, 74, 0.05));
    color: var(--ngosha-primary);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 18px;
    border-radius: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* ====== TYPING ANIMATION (GLOBAL) ====== */
.typing-container {
    position: relative;
    z-index: 10;
    display: inline-block;
}

.typing-text {
    color: #00f2ff;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: clamp(1.8rem, 6vw, 3.8rem);
    font-weight: 900;
    /* Extra bold */
    letter-spacing: 2px;
    border-right: 4px solid #00f2ff;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    padding-right: 12px;
    margin-bottom: 20px;
    min-height: 1.2em;
}

@keyframes mc-typing-premium {
    0% {
        width: 0;
    }

    5%,
    15% {
        width: 0;
    }

    /* Pause at start */
    85%,
    95% {
        width: 100%;
    }

    /* Pause at end */
    100% {
        width: 100%;
    }
}

@keyframes mc-blink-premium {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: #38bdf8
    }
}

/* ====== GALACTIC BUTTONS ====== */
@keyframes galacticPulse {
    0% {
        box-shadow: 0 0 10px rgba(99, 102, 241, 0.4), 0 0 20px rgba(14, 165, 233, 0.2);
    }

    50% {
        box-shadow: 0 0 25px rgba(99, 102, 241, 0.8), 0 0 45px rgba(14, 165, 233, 0.6);
        transform: scale(1.02);
    }

    100% {
        box-shadow: 0 0 10px rgba(99, 102, 241, 0.4), 0 0 20px rgba(14, 165, 233, 0.2);
    }
}

.btn-galactic {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    color: #c7d2fe;
    border: 2px solid #818cf8;
    border-radius: 50px;
    animation: galacticPulse 2.5s infinite;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-galactic:hover {
    background: linear-gradient(135deg, #312e81, #4f46e5);
    color: #fff !important;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.8), 0 0 20px rgba(99, 102, 241, 0.5);
    border-color: #a5b4fc;
}

.btn-galactic-outline {
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
    border: 2px solid #38bdf8;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    animation: galacticPulse 3s infinite reverse;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-galactic-outline:hover {
    background: rgba(14, 165, 233, 0.4);
    color: #fff !important;
    border-color: #7dd3fc;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.7), 0 0 20px rgba(56, 189, 248, 0.5);
}

/* ====== HERO LAYOUT ====== */
.hero-home {
    background: url('../img/michongo-bg.png') center/cover no-repeat !important;
    position: relative;
    height: 70vh;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Absolute vertical centering */
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 !important;
    /* Remove any offsetting padding */
}

.hero-home::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.25);
    /* Professional 25% overlay for 75% image visibility */
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-title-main {
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    color: #1e3a8a;
    margin-top: 2rem;
}

.hero-desc-main {
    max-width: 900px;
    margin: 1.5rem auto;
    color: #475569;
    font-size: 1.2rem;
    font-weight: 600;
}

.ngosha-hero {
    position: relative;
    min-height: 70vh;
    /* Standardized height */
    height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Absolute vertical centering */
    text-align: center;
    overflow: hidden;
    padding: 0 !important;
}

.ngosha-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 80px;
    background: #fff;
    clip-path: ellipse(55% 100% at 50% 100%);
    z-index: 2;
}

.ngosha-hero .container {
    position: relative;
    z-index: 3;
}

.hero-badge {
    display: inline-block;
    /* Removed backdrop-filter to prevent text blur */
    background: rgba(255, 255, 255, 0.95);
    color: #1e3a8a;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-weight: 800;
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 560px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
    font-size: 0.9rem;
}

.hero-trust span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ====== FEATURE CARDS ====== */
.feature-card {
    background: #fff;
    border-radius: var(--ngosha-radius-md);
    padding: 35px 25px;
    border: 1px solid #f0f0f0;
    transition: all 0.35s ease;
    height: 100%;
}

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

.feature-icon {
    width: 65px;
    height: 65px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 18px;
}

.feature-card h5 {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--ngosha-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ====== PRICING CARDS ====== */
.pricing-card {
    background: #fff;
    border-radius: var(--ngosha-radius-lg);
    padding: 40px 30px;
    border: 2px solid #f0f0f0;
    transition: all 0.35s ease;
    position: relative;
    height: 100%;
}

.pricing-card:hover {
    box-shadow: var(--ngosha-shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary, var(--ngosha-primary));
    transform: scale(1.03);
    box-shadow: 0 25px 60px rgba(139, 195, 74, 0.15);
}

.pricing-card .popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary, var(--ngosha-primary));
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 5px 20px;
    border-radius: 50px;
    letter-spacing: 1px;
}

.pricing-card .price {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--primary, var(--ngosha-primary));
}

.pricing-card .price small {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ngosha-text-muted);
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.pricing-card ul li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--ngosha-text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-card ul li i {
    color: var(--primary, var(--ngosha-primary));
}

/* ====== STATS SECTION ====== */
.stats-section {
    background: linear-gradient(135deg, var(--ngosha-secondary), #0f0f1a);
    position: relative;
}

.stat-item {
    text-align: center;
    padding: 30px 15px;
}

.stat-number {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 2.8rem;
    color: var(--ngosha-primary);
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-top: 5px;
}

/* ====== CTA SECTION ====== */
.cta-section {
    background: linear-gradient(135deg, var(--ngosha-secondary), #0f0f1a);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(139, 195, 74, 0.05);
}

/* ====== FAQ ====== */
.faq-accordion .accordion-item {
    border: none;
    margin-bottom: 12px;
    border-radius: var(--ngosha-radius-md) !important;
    overflow: hidden;
    box-shadow: var(--ngosha-shadow-sm);
}

.faq-accordion .accordion-button {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 18px 25px;
    background: #fff;
    color: var(--ngosha-text);
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.08), rgba(139, 195, 74, 0.02));
    color: var(--primary, var(--ngosha-primary));
    box-shadow: none;
}

.faq-accordion .accordion-body {
    padding: 0 25px 20px;
    font-size: 0.9rem;
    color: var(--ngosha-text-muted);
    line-height: 1.7;
}

/* ====== PRODUCT CARDS (main index) ====== */
.product-card {
    background: #fff;
    border-radius: var(--ngosha-radius-md);
    padding: 30px 22px;
    border: 1px solid #f0f0f0;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

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

.product-card .product-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
    transition: all 0.35s ease;
}

.product-card .product-icon i {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover .product-icon i {
    transform: scale(1.15) rotate(5deg);
}

.product-card:hover .product-icon {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-card h5 {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.product-card p {
    color: var(--ngosha-text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.product-card .price-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.1), rgba(139, 195, 74, 0.05));
    color: var(--ngosha-primary);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 5px 14px;
    border-radius: 50px;
    margin-top: 8px;
}

.product-card .price-tag.free {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    color: #10b981;
}

/* ====== FOOTER ====== */
.ngosha-footer {
    background: var(--ngosha-secondary);
    color: rgba(255, 255, 255, 0.7);
}

.ngosha-footer h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.ngosha-footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.ngosha-footer a:hover {
    color: var(--ngosha-primary);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--ngosha-primary);
    transform: translateY(-3px);
}

/* ====== BUTTONS ====== */
.btn-ngosha {
    background: var(--primary, var(--ngosha-primary));
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 12px;
    transition: all 0.3s;
}

.btn-ngosha:hover {
    background: var(--primary-dark, var(--ngosha-primary-dark));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 195, 74, 0.3);
}

.btn-ngosha-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 12px;
    transition: all 0.3s;
}

.btn-ngosha-outline:hover {
    background: #fff;
    color: var(--ngosha-text);
    border-color: #fff;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }
}

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

    .hero-desc {
        font-size: 1rem;
    }

    .hero-trust {
        gap: 12px;
        font-size: 0.8rem;
    }

    .ngosha-hero {
        min-height: auto;
        padding: 120px 0 100px;
    }

    .ngosha-hero::after {
        height: 40px;
    }

    .stat-number {
        font-size: 1.8rem;
    }
}