/********** Template CSS **********/
:root {
    --primary: #2C9113;        /* Main Green */
    --secondary: #66C44A;      /* Light Green */
    --light: #EAF6E7;          /* Lightest Green Background */
    --dark: #0F2F08;           /* Dark Green */
}


/*** Spinner ***/
.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes sk-rotateplane {
    0% { -webkit-transform: perspective(120px) }
    50% { -webkit-transform: perspective(120px) rotateY(180deg) }
    100% { -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg) }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
    }
    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
    }
    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Heading ***/
h1, h2, .fw-bold { font-weight: 800 !important; }
h3, h4, .fw-semi-bold { font-weight: 700 !important; }
h5, h6, .fw-medium { font-weight: 600 !important; }


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
    box-shadow: inset 0 0 0 50px transparent;
}

.btn-primary { background-color: var(--primary); border-color: var(--primary); }
.btn-secondary { background-color: var(--secondary); border-color: var(--secondary); }

.btn-primary:hover { box-shadow: inset 0 0 0 0 var(--primary); }
.btn-secondary:hover { box-shadow: inset 0 0 0 0 var(--secondary); }

.btn-square { width: 36px; height: 36px; }
.btn-sm-square { width: 30px; height: 30px; }
.btn-lg-square { width: 48px; height: 48px; }

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}


/*** Navbar ***/
.navbar-dark .navbar-nav .nav-link {
    font-family: 'Nunito', sans-serif;
    position: relative;
    margin-left: 25px;
    padding: 35px 0;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--dark);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-dark .navbar-brand h1 { color: #FFFFFF; }

.navbar-dark .navbar-toggler {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-dark { position: relative; background: #FFFFFF; }

    .navbar-dark .navbar-nav .nav-link,
    .navbar-dark .navbar-nav .nav-link.show,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        color: var(--dark);
    }

    .navbar-dark .navbar-brand h1 { color: var(--primary); }
}

@media (min-width: 992px) {
    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0; left: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        z-index: 999;
    }

    .sticky-top.navbar-dark { position: fixed; background: #FFFFFF; }

    .navbar-dark .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-dark .navbar-nav .nav-link:hover::before,
    .navbar-dark .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-dark .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .sticky-top.navbar-dark .navbar-brand h1 { color: var(--primary); }
}


/*** Carousel ***/
.carousel-caption {
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 47, 8, .75);
    z-index: 1;
}


/*** Section Title ***/


@keyframes section-title-run {
    0% {left: 0; }
    50% { left : 145px; }
    100% { left: 0; }
}


/*** Service ***/
.service-item {
    position: relative;
    height: 300px;
    padding: 0 30px;
    transition: .5s;
}

.service-item .service-icon {
    margin-bottom: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 2px;
    transform: rotate(-45deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
    background: var(--secondary);
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--primary);
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #FFFFFF !important;
    box-shadow: 0 0 25px rgba(44, 145, 19, .25);
}


/*** Team ***/
.team-item:hover {
    box-shadow: 0 0 25px rgba(44, 145, 19, .25);
}

.team-item:hover .team-social {
    background: rgba(15, 47, 8, .75);
}


/*** Miscellaneous ***/
.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
    background: var(--primary);
    color: #fff;
}

.bg-header {
    background: linear-gradient(rgba(15, 47, 8, .75), rgba(15, 47, 8, .75)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.link-animated a { transition: .5s; }
.link-animated a:hover { padding-left: 10px; color: var(--primary); }

@media (min-width: 767.98px) {
    .footer-about {
        margin-bottom: -75px;
        background: var(--light);
    }
}

/* ===== SERVICES MEGA MENU ONLY ===== */

.navbar .dropdown-menu.services-megamenu {
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    background: #ffffff;
    min-width: 860px;
}

/* Align to right on large screens */
@media (min-width: 992px) {
    .navbar .dropdown-menu.services-megamenu {
        left: auto;
        right: 0;
    }
}

/* Column spacing */
.services-megamenu .row {
    margin: 0;
}

/* Section Headings */
.services-megamenu h6 {
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    border-bottom: 2px solid #198754;
    padding-bottom: 6px;
    margin-bottom: 10px;
}

/* Links styling */
.services-megamenu a.dropdown-item {
    padding: 6px 8px;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

/* Hover effect */
.services-megamenu a.dropdown-item:hover {
    background: linear-gradient(90deg, #198754, #198754);
    color: #ffffff;
    transform: translateX(3px);
}

/* Spacing / border between columns */
.services-megamenu .col-lg-4 {
    border-right: 1px solid #eee;
}

/* Remove border from last column */
.services-megamenu .col-lg-4:last-child {
    border-right: none;
}

/* Responsive Design */
@media (max-width: 991px) {
    .navbar .dropdown-menu.services-megamenu {
        min-width: 100%;
        box-shadow: none;
        padding: 10px;
    }

    .services-megamenu .col-lg-4 {
        border-right: none;
        margin-bottom: 10px;
    }
}

/* Dropdown animation */
.services-megamenu {
    animation: servicesFadeIn 0.3s ease-in-out;
}

@keyframes servicesFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (min-width: 992px) {
    .nav-item.dropdown:hover > .dropdown-menu.services-megamenu {
        display: block;
        margin-top: 0;
    }
}

