:root {
    /* Rangi kuu (Kijani iliyokolea) */
    --primary-color: #43943D;

    /* Rangi ya ziada (Kijani hafifu) */
    --secondary-color: #E9F7E9;
    
    /* Unaweza pia kuongeza rangi nyingine zinazoendana nazo */
    --white: #ffffff;
    --green: #43943D;
    --darkred: #BA1343;
    --darkred2: rgba(186, 19, 67, 1.0);
    --greendark: #136900;
    --greenlight: rgba(67, 148, 61, 0.2);
    --dark-text: #2c3e50;
}



.iconcolor {color: #BA1343 !important;}
.team-title {font-size: 10px !important;}
.team-title2 {font-size: 12px !important;}
.team-title3 {font-size: 18px !important;}
.btn-light {color: var(--greendark) !important;}
.btn-light:hover {color: var(--darkred) !important;}

.btn-back-top {background: var(--greendark); color: var(--white);}
.digital {background: rgba(67, 148, 61, 0.93) !important;}
.#digital-i {color: var(--darkred) !important; font-size: 20px;}
.digital-green2 {background: rgba(67, 148, 61, 0.2); !important; color:var(--green) !important;}
.digital-green3 {color:var(--green) !important;}
.digital-green {background: rgba(67, 148, 61, 0.2); !important; color:var(--green) !important; border:1px solid var(--green) !important }
/* Default color */
.navbar-nav .nav-link {color: #333;transition: 0.3s ease;}
.navbar-nav .nav-link:hover {color: var(--greendark) !important;}
.navbar-nav .nav-link.active {color:  var(--darkred) !important;}
.topbar {color: var(--white) !important;}
.topbarTop1 {background: var(--green); color: var(--white);}
.topbarTop2 {background: var(--greenlight) !important;}
.topbar_small {color: var(--greendark) !important;}
.topbar_small1 {color: black; font-size: 14px;}
.topbar_icon {background: var(--greendark); color: var(--white)}

.footer_title {color: var(--darkred) !important;}
.footer_title2 {color: var(--greendark) !important;}
.fluid-bottom {background: #111 !important; padding: 5px !important; font-size: 10px !important;;}

/* #################################### Topbar Start ################################# */
    /* 1. Unique Class kwa ajili ya Topbar yenye Animation */
    .topbar-animated-entry {background-color: #43943D !important;color: #ffffff !important;overflow: hidden;
        /* Hapa tunaiambia ianze ikiwa imejificha na isichukue nafasi (height 0) */
        max-height: 0;opacity: 0;padding-top: 0 !important;padding-bottom: 0 !important; animation: slideInFromTop 2s ease-out 2s forwards;}
    /* 2. Logic ya Animation */
    @keyframes slideInFromTop {
        0% {max-height: 0;opacity: 0;transform: translateY(-100%);}
        100% {max-height: 100px; opacity: 1;transform: translateY(0);padding-top: 0.5rem !important;padding-bottom: 0.5rem !important;}}

    /* Styles za ziada za muonekano */
    .topbar-link {color: rgba(255, 255, 255, 0.7) !important;text-decoration: none;transition: 0.3s;}
    .topbar-link:hover {color: #ffffff !important;}
    .v-line {border-left: 1px solid rgba(255, 255, 255, 0.3);height: 15px;margin: 0 15px;}
/* ############################## Topbar End ####################################### */

/*  ############################## Brand Start ####################################### */
 /* 1. Base Styles kwa ajili ya section nzima */
    .topbarTop2 {
        background-color: #ffffff !important; /* Background nyeupe ili logo ionekane vizuri */
        border-bottom: 1px solid #f1f1f1;
    }

    /* 2. Definition ya Animations */
    @keyframes slideFromLeft {
        from { transform: translateX(-50px); opacity: 0; }
        to { transform: translateX(0); opacity: 1; }
    }

    @keyframes slideFromRight {
        from { transform: translateX(50px); opacity: 0; }
        to { transform: translateX(0); opacity: 1; }
    }

    @keyframes fadeInScale {
        from { transform: scale(0.8); opacity: 0; }
        to { transform: scale(1); opacity: 1; }}

    /* 3. Kutumia Animations kwenye vipengele (Staggered Effect) */
    .animate-logo { opacity: 0; animation: slideFromLeft 1s ease-out 0.5s forwards;}
    .animate-phone { opacity: 0; animation: fadeInScale 1s ease-out 1s forwards;}
    .animate-email { opacity: 0; animation: slideFromRight 1s ease-out 1.5s forwards;}
    /* Styles za rangi ulizochagua awali */
    .topbar_icon { background-color: #43943D !important; color: white !important; transition: 0.3s;}    
    .topbar_icon:hover { transform: rotate(15deg); background-color: #2c3e50 !important; /* Inabadilika rangi ukigusa */}
    .topbar_small { color: #666666; }
    .topbar_small1 { color: #43943D; font-weight: 700; }
/*  ############################## Brand End ####################################### */

/* ############################## Navbar Start ####################################### */
  /* ================= ANIMATIONS ================= */

/* 1. Navbar background slide */
@keyframes navbarSlideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 2. Content fade up */
@keyframes navContentUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= DEFAULT (DESKTOP) ================= */

.bg-green-light {
    background-color: #E9F7E9 !important;

    /* FULL WIDTH FIX */
    width: 100%;
    
    animation: navbarSlideIn 1.2s ease-out 1.5s forwards;
    opacity: 0;
    transform: translateY(-100%);
}

/* LINKS ANIMATION */
.navbar-nav .nav-link,
.nav-item.dropdown {
    opacity: 0;
    animation: navContentUp 0.8s ease-out forwards;
}

/* Desktop delays */
.navbar-nav .nav-item:nth-child(1) { animation-delay: 2.2s; }
.navbar-nav .nav-item:nth-child(2) { animation-delay: 2.4s; }
.navbar-nav .nav-item:nth-child(3) { animation-delay: 2.6s; }
.navbar-nav .nav-item:nth-child(4) { animation-delay: 2.8s; }
.navbar-nav .nav-item:nth-child(5) { animation-delay: 3.0s; }

/* SOCIAL ICONS */
.social-icons-animate a {
    opacity: 0;
    animation: navContentUp 0.6s ease-out forwards;
}

.social-icons-animate a:nth-child(1) { animation-delay: 3.2s; }
.social-icons-animate a:nth-child(2) { animation-delay: 3.4s; }
.social-icons-animate a:nth-child(3) { animation-delay: 3.6s; }
.social-icons-animate a:nth-child(4) { animation-delay: 3.8s; }
.social-icons-animate a:nth-child(5) { animation-delay: 4.0s; }
.social-icons-animate a:nth-child(6) { animation-delay: 4.2s; }

/* ================= TABLET (<= 900px) ================= */

@media screen and (max-width: 900px) {
	.home-title {font-size: 26px !important;}
	.home-desc {font-size: 15px !important;}
	.home-btn {font-size: 14px !important; padding: 15px !important;}

    .bg-green-light {background-color: #ffffff !important; width: 100%;
        animation: navbarSlideIn 1s ease-out 0.5s forwards;opacity: 0;transform: translateY(-100%);}

    /* Faster animations (mobile feeling) */
    .navbar-nav .nav-link,
    .nav-item.dropdown {
        animation: navContentUp 0.6s ease-out forwards;
    }

    /* Shorter delays (isiwe slow sana kwenye mobile) */
    .navbar-nav .nav-item:nth-child(1) { animation-delay: 1s; }
    .navbar-nav .nav-item:nth-child(2) { animation-delay: 1.1s; }
    .navbar-nav .nav-item:nth-child(3) { animation-delay: 1.2s; }
    .navbar-nav .nav-item:nth-child(4) { animation-delay: 1.3s; }
    .navbar-nav .nav-item:nth-child(5) { animation-delay: 1.4s; }

    /* Social icons faster */
    .social-icons-animate a:nth-child(1) { animation-delay: 1.5s; }
    .social-icons-animate a:nth-child(2) { animation-delay: 1.6s; }
    .social-icons-animate a:nth-child(3) { animation-delay: 1.7s; }
    .social-icons-animate a:nth-child(4) { animation-delay: 1.8s; }
    .social-icons-animate a:nth-child(5) { animation-delay: 1.9s; }
    .social-icons-animate a:nth-child(6) { animation-delay: 2.0s; }
}

/* ================= MOBILE (<= 600px) ================= */

@media screen and (max-width: 600px) {

    .bg-green-light {
        padding: 10px;
    }

    /* Ondoa delays nyingi mobile iwe fast */
    .navbar-nav .nav-link,
    .nav-item.dropdown,
    .social-icons-animate a {
        animation-delay: 0.3s !important;
    }
}

/* ================= HOVER ================= */

.social-icons-animate a:hover {
    transform: translateY(-5px) !important;
    transition: 0.3s ease;
    box-shadow: 0 5px 15px rgba(67, 148, 61, 0.3);
}
/* ############################## Navbar End ####################################### */


/* ############################## Features Start ####################################### */
    .transition-all {
        transition: all 0.4s ease;
        background: #ffffff;
    }

    .feature-item:hover {
        background: #f8fff7; /* Kijani hafifu sana */
        transform: translateY(-15px) scale(1.02);
        box-shadow: 0 1rem 3rem rgba(67, 148, 61, 0.15) !important;
        z-index: 1;
        border-color: #43943D !important;
    }

    .pulse-green {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 80px;
        height: 80px;
        background: #e9f5e8;
        border-radius: 50%;
        transition: 0.4s;
    }

    .feature-item:hover .pulse-green {
        background: #43943D;
        animation: pulse-animation 1.5s infinite;
    }

    .pulse-green i {color: #136900 !important}
    .feature-item:hover .pulse-green i {
        color: #ffffff !important;
    }

    @keyframes pulse-animation {
        0% { box-shadow: 0 0 0 0px rgba(67, 148, 61, 0.4); }
        100% { box-shadow: 0 0 0 20px rgba(67, 148, 61, 0); }
    }

    /* Kuhakikisha gridi inakaa sawa kwenye simu */
    @media (max-width: 991.98px) {
        .feature-item {
            border: 1px solid #dee2e6 !important;
        }
    }
/* ############################## Features End ####################################### */



/* ############################## About Start  ####################################### */

    .pulse-animation {
        animation: pulse 2s infinite;
    }
    @keyframes pulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.05); }
        100% { transform: scale(1); }
    }
    .shadow-hover:hover {
        transform: translateY(-10px);
        transition: 0.3s;
        box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
    }
    .slide-btn:hover i {
        transform: translateX(5px);
        transition: 0.3s;
    }
    .about-fact {
        width: 120px;
        height: 120px;
        transition: 0.5s;
    }
    .bg-success {
        background-color: #43943D !important;
    }

/* ############################## About End ####################################### */




/* ############################## Carousel Start  ####################################### */
    /* Mitindo ya Vishale (Arrows) */
    .carousel-control-prev, .carousel-control-next {
        width: 10%;
    }
    .carousel-control-prev-icon, .carousel-control-next-icon {
        width: 3.5rem;
        height: 3.5rem;
        background-color: rgba(67, 148, 61, 0.2);
        border: 1px solid #43943D;
        border-radius: 50%;
        background-size: 60%;
        transition: 0.5s;
    }
    .carousel-control-prev-icon:hover, .carousel-control-next-icon:hover {
        background-color: #43943D;
        box-shadow: 0 0 15px rgba(67, 148, 61, 0.5);
    }

    /* Giza kidogo juu ya picha (Overlay) */
    .carousel-item::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background: rgba(0, 0, 0, .45); /* Imekolezwa kidogo ili maandishi yasomeke zaidi */
    }

    .carousel-caption {
        z-index: 2;
        padding-bottom: 150px;
    }

    /* Mitindo ya Maandishi */
    .display-1 {
        font-weight: 800 !important;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    }

    /* Rangi ya Kijani kwa vitufe */
    .btn-primary-tiba {
        background-color: #43943D;
        border: none;
        color: white;
        font-weight: 600;
        border-radius: 50px;
        transition: 0.5s;
    }
    .btn-primary-tiba:hover {
        background-color: #357a31;
        transform: scale(1.05);
        color: white;
    }
/* ############################## Carousel End  ####################################### */


/* ############################## Team Start  ####################################### */
    .team-img-container {
        transition: 0.5s;
        overflow: hidden;
    }
    .team-img-container:hover img {
        transform: scale(1.05);
        transition: 0.5s;
    }
    .social-btn {
        transition: 0.3s;
    }
    .social-btn:hover {
        transform: translateY(-5px);
        background-color: #43943D !important;
        color: white !important;
        border-color: #43943D !important;
    }
    .pulse-animation {
        animation: pulse-shadow 2s infinite;
    }
    @keyframes pulse-shadow {
        0% { box-shadow: 0 0 0 0px rgba(67, 148, 61, 0.4); }
        100% { box-shadow: 0 0 0 15px rgba(67, 148, 61, 0); }
    }
    /* Rangi ya Kijani ya TibaSalama */
    .btn-primary {
        background-color: #43943D !important;
        border-color: #43943D !important;
    }
    .text-primary {
        color: #43943D !important;
    }
    /* ############################## Team End  ####################################### */


/* ############################## MENU SETTINGS START ####################################### */
/* 1. Define Gradient Moja (Hii inarahisisha kazi) */
:root {
    --page-header-gradient: linear-gradient(rgba(3, 27, 78, .3), rgba(3, 27, 78, .5), rgba(3, 27, 78, .6), rgba(3, 27, 78, .7), rgba(3, 27, 78, .8), rgba(3, 27, 78, 1));
}

/* 2. Sifa za Pamoja (Common Styles) */
.about, .services, .contact, .Error, .feature, .team, .testimonial, .appoinment {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    width: 100% !important;
    min-height: 400px; /* Ongeza hii kuhakikisha background inaonekana */
}

/* 3. Picha maalum kwa kila Class (Hapa tumeweka !important) */
.about       { background: var(--page-header-gradient), url(../img/page/1.png) !important; }
.services    { background: var(--page-header-gradient), url(../img/page/4.png) !important; }
.contact     { background: var(--page-header-gradient), url(../img/page/3.png) !important; }
.Error       { background: var(--page-header-gradient), url(../img/page/4.png) !important; }
.feature     { background: var(--page-header-gradient), url(../img/page/5.png) !important; }
.team        { background: var(--page-header-gradient), url(../img/page/6.png) !important; }
.testimonial { background: var(--page-header-gradient), url(../img/page/7.png) !important; }
.appoinment  { background: var(--page-header-gradient), url(../img/page/8.png) !important; }
/* ############################## MENU SETTINGS END ####################################### */


