/* Custom Variable Colors */

:root {
    /* PRIMARY PALETTE */
    /* Darker green for text readability */
    --brand-green: #2e7d32;
    /* Your signature Lime for buttons/accents (The "Pop") */
    --brand-lime: #9fb908;

    /* NEUTRALS */
    --brand-dark: #212934;
    --brand-white: #ffffff;
    --brand-grey: #f8f9fa;
    --brand-sleekgrey: #6c757d;
    /* Darkened for visibility */

    /* SECONDARY ACCENTS */
    --brand-feather: #77c9d4;
    --brand-soft: #71abaa;
    --brand-marine: #57bc92;
    --brand-forest: #467370;

    /* UTILITY */
    --soft-green: rgba(159, 185, 8, 0.1);
    /* Based on Brand Lime for consistency */
}

.services-section {
    background: radial-gradient(circle at top left, #ffffff, #f8f9fa);
}

.bg-soft-success {
    background-color: var(--soft-green);
    letter-spacing: 1px;
    font-size: 0.8rem;
}

/* Modern Card Design */
.service-card-modern {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.service-card-modern.featured {
    background: var(--brand-green);
    box-shadow: 0 20px 40px rgba(33, 41, 52, 0.2);
}

/* Icon Wrapper Styling */
.icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--soft-green);
    color: var(--brand-green);
    border-radius: 15px;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.featured .icon-wrapper {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Hover States */
.service-card-modern:hover {
    transform: translateY(-15px);
    border-color: var(--brand-grey);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border-bottom: 5px solid var(--brand-green);
}

.service-card-modern:hover .icon-wrapper {
    transform: rotateY(360deg);
    background: var(--brand-grey);
    color: var(--brand-green);
}

/* The Animated Glow Effect */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(89, 171, 110, 0.15) 0%, transparent 80%);

    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.service-card-modern:hover .card-glow {
    opacity: 1;
}


.services-section {
    background-color: var(--brand-grey);
    background-image:
        linear-gradient(rgba(89, 171, 110, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(89, 171, 110, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    position: relative;

}

/* Add a subtle fade to the grid so it isn't overwhelming */
/* .services-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent, var(--brand-grey) 100%);
    pointer-events: none;
} */


/* Premium Shimmer Sweep Animation */
@keyframes shimmerSweep {
    0% {
        transform: translateX(-150%) skewX(-25deg);
    }

    100% {
        transform: translateX(150%) skewX(-25deg);
    }
}

.service-card-modern {
    position: relative;
    background: var(--brand-white);
    /* ... rest of your existing card styles ... */
    overflow: hidden;
    /* Critical to contain the shimmer */

}

/* The Shimmer Layer */
.shimmer-sweep {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.3),
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: skewX(-25deg) translateX(-150%);
    pointer-events: none;
    z-index: 2;
}

/* Trigger Shimmer on Hover */
.service-card-modern:hover .shimmer-sweep {
    animation: shimmerSweep 0.8s ease-in-out;
}

/* Refined Featured Card for Shimmer Visibility */
.service-card-modern.featured {
    background: var(--brand-dark);
    /* Using dark for better shimmer contrast */
    border: none;
    box-shadow: 0 20px 40px rgba(14, 113, 65, 0.2);

}

.service-card-modern.featured .shimmer-sweep {
    background: linear-gradient(to right,
            transparent,
            rgba(14, 113, 65, 0.2),
            rgba(93, 150, 137, 0.2),
            rgba(14, 113, 65, 0.2),
            transparent);

}

/* ============================================
   CAROUSEL VIDEO BACKGROUND STYLES
   ============================================ */

#template-mo-s3lab-hero-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.carousel-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    opacity: 0.9;
    filter: brightness(0.7) contrast(1.1);
}

.carousel-content-overlay {
    position: relative;
    z-index: 2;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0.5) 100%);
}

/* Text Content Highlighting in Carousel */
.carousel-item .text-align-left,
.carousel-item .text-align-center,
.carousel-item .text-center {
    /* background: rgba(107, 95, 154, 0.92); */

    padding: 30px 25px;
    border-radius: 25px;
    /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); */
    backdrop-filter: blur(2px);

}

.carousel-item h1 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.5px;
}

.carousel-item .lead,
.carousel-item p {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    color: #333;
    line-height: 1.8;
}

.carousel-item .text-success {
    font-weight: 700;
    color: #9fb908 !important;
}

.carousel-item .text-turgoise {
    font-weight: 700;
    color: #0dcaf0 !important;
}


/* ============================================
   RESPONSIVE NAVBAR STYLES
   ============================================ */

/* Header Navigation */
.navbar {
    padding: 0.5rem 0;
}

.navbar-brand {
    margin-right: auto;
    padding: 0;
}

.navbar-brand img {
    max-width: 100%;
    height: auto;
}

/* Navigation Links */
.nav-link {
    padding: 0.5rem 1rem !important;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.nav-link:hover {
    color: var(--brand-green) !important;
}

.nav-link.active {
    color: var(--brand-green) !important;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: var(--soft-green);
    color: var(--brand-green);
}

/* Hamburger Menu */
.navbar-toggler {
    padding: 0.5rem 0.75rem;
    border: none !important;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Responsive Adjustments */
@media (max-width: 991px) {
    .navbar-collapse {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .navbar-nav {
        flex-direction: column;
    }

    .nav-item {
        margin-bottom: 0.5rem;
    }

    .nav-link {
        padding: 0.75rem 0 !important;
        margin: 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 0.5rem;
        box-shadow: none;
        background-color: var(--brand-grey);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .dropdown-toggle::after {
        display: none;
    }

    .nav-link.dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-link.dropdown-toggle::after {
        display: inline-block;
        margin-left: 0.5rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 60px !important;
    }

    .nav-link {
        padding: 0.6rem 0 !important;
        font-size: 0.9rem;
    }

    .navbar-toggler {
        padding: 0.25rem 0.5rem;
    }

    .dropdown-menu {
        margin-top: 0.25rem;
    }

    .dropdown-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Responsive video adjustments */
@media (max-width: 768px) {
    .carousel-content-overlay {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    }

    .carousel-video {
        opacity: 0.9;
    }

    .carousel-item .text-align-left,
    .carousel-item .text-align-center {
        padding: 20px 15px;
        background: rgba(255, 255, 255, 0.95);
    }
}