/* --- CSS Reset & Variables --- */
:root {
    --color-primary: #2ecc71; /* Green */
    --color-primary-hover: #27ae60;
    --color-blue: #2b3e4b; /* Blue */
    --color-dark: #1a2b3c;
    --color-darker: #111b26;
    --color-text: #555;
    --color-light: #f4f4f4;
    --color-white: #ffffff;
    --font-main: 'Roboto', sans-serif;
    --transition: 0.3s ease;
}
/* ====================================================
   STICKY NAVBAR STYLES
   ==================================================== */
.navbar.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050; /* Super high so it stays above everything */
    background-color: var(--color-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Soft shadow to separate it from content */
    animation: slideDown 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Smooth slide-down animation */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--color-darker);
    color: #a0aab5;
    font-size: 16px;
    padding: 18px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info span {
    margin-right: 20px;
}

.top-info i, .top-links a:hover, .social-icons a:hover i {
    color: var(--color-primary);
}

.top-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icons a {
    margin-right: 12px;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* --- Main Navbar --- */


.navbar {
    background-color: var(--color-white);
    height: 90px;
}

.nav-inner {
    display: flex;
    align-items: center; 
    height: 100%;
}

/* Logo with Vertical Separator Line */

.logo {
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    height: 100%; 
    padding-right: 3px;
    margin-right: 5px; 
    border-right: 1px solid #eaeeee; 
    text-decoration: none;
    line-height: 1; 
}

/* The Image - Pushed Up */
.brand-logo-img {
    width: 100px; 
    height: auto;
    margin-top: -2px; 
    margin-bottom: 10px; 
    object-fit: contain;
}

/* The Company Name - Below Logo */
.logo-text {
    font-size: 12px;
    font-weight: 800;
    color:#227431f5;
    letter-spacing: 0.5px;
    text-align: center;
    white-space: nowrap; 
    
}

/* Remove fixed dimensions from the navbar link hit-area to avoid clipping */
.nav-inner {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-menu {
    display: flex;
    height: 100%;
    /* flex-grow: 1;  */
}
.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 15px;
    height: 100%; /* NEW: Ensures dropdown sits perfectly below the navbar edge */
}
.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-dark);
    padding: 35px 0; 
    position: relative;
    transition: color 0.3s ease;
}

.nav-link i {
    font-size: 12px;
    margin-left: 5px;
}

/* Active Nav Item Indicator */
.nav-item.active .nav-link,
.nav-item:hover .nav-link {
    color: var(--color-primary);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    align-items: center;
}


/* ====================================================
   DROPDOWN SUBMENU STYLING (Slide-in Animation)
   ==================================================== */
/* ====================================================
   DROPDOWN SUBMENU STYLING (Slide-in Animation & Columns)
   ==================================================== */
.dropdown {
    position: absolute;
    top: 100%; /* Drops exactly below the nav item */
    left: 0;
    width: max-content; /* NEW: Adapts width automatically if multiple columns form */
    min-width: 250px; /* Slightly wider for a cleaner look */
    background-color: var(--color-white);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    border-top: 3px solid var(--color-primary); 
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 99;
    padding: 10px 0; 
    border-radius: 0 0 4px 4px;

    /* --- NEW: Multi-Column Logic --- */
    display: grid;
    grid-template-rows: repeat(5, auto); /* Caps column at 5 items */
    grid-auto-flow: column; /* Forces item 6+ into a new column */
    grid-auto-columns: 240px; /* Defines width of every column */
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* List Items inside Dropdown */
.dropdown li {
    margin: 0 25px; /* Keeps the bottom borders inset from the edges */
    border-bottom: 1px solid #eaeeee; /* Default light gray border */
    transition: border-color 0.3s ease;
}

/* Removes border from the last item in EACH column (every 5th item), plus the absolute last item */
.dropdown li:nth-child(5n),
.dropdown li:last-child {
    border-bottom: none;
}
@media (min-width: 992px) {
    .dropdown {
        display: grid;
        grid-template-rows: repeat(5, auto);
        grid-auto-flow: column;
        grid-auto-columns: 240px;
    }
}
/* Links inside Dropdown */
.dropdown a {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 500;
    color: #7f8c8d; /* Default gray text */
    position: relative;
    transition: all 0.3s ease;
}

/* The Animated FontAwesome Arrow (Starts Hidden) */
.dropdown a::before {
    content: '\f061'; /* Unicode for FontAwesome Arrow-Right */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-15px); /* Start hidden to the left */
    opacity: 0; /* Invisible initially */
    color: var(--color-primary);
    font-size: 13px;
    transition: all 0.3s ease;
}

/* --- Hover State Triggers --- */

/* 1. Change text color and push text right */
.dropdown li:hover a,
.dropdown li.active a {
    color: var(--color-primary);
    padding-left: 22px; /* Makes room for the sliding arrow */
}

/* 2. Fade in and slide arrow to the right */
.dropdown li:hover a::before,
.dropdown li.active a::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0); 
}

/* 3. Change bottom border line to green */
.dropdown li:hover,
.dropdown li.active {
    border-bottom-color: var(--color-primary);
}
/* --- Nav Right & Quote Button --- */
.nav-right {
    display: flex;
    align-items: center;
    height: 100%;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--color-dark);
    cursor: pointer;
    margin-right: 20px;
}

.cart-btn {
    position: relative;
    margin-right: 30px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* Slide-in Blue Request Button */
.btn-quote {
    background-color: var(--color-primary);
    
    /* 1. Use align-self to stretch to the max height of the flex container */
    align-self: stretch; 
    
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: var(--color-white);
    font-weight: 700;
    font-size: 15px;
    position: relative;
    overflow: hidden; 
    
    /* 2. Negative margins pull the button OUT of the parent's padding */
    margin-top: -8px;   
    margin-bottom: -8px; 
    margin-right: -20px;  /*right */
    
    z-index: 1;
}
/* --- Fix Mobile Sidebar Z-Index Stacking --- */
.sidebar-overlay {
    z-index: 10000 !important; /* Just above the 9999 header */
}

.mobile-sidebar {
    z-index: 10001 !important; /* The highest element on the page */
}
.btn-quote .btn-text {
    position: relative;
    z-index: 2; 
    display: flex;
    align-items: center;
    gap: 4px;
}

/* The Blue Slide Hover Effect */
.btn-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--color-blue);
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
}

.btn-quote:hover::before {
    left: 0; 
}
.brand-logo-img {
    object-fit: contain;
    display: block;
}
.mobile-sidebar-footer{
    margin-bottom: 70px;
}

/* --- Hero Slider Section --- */

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    background-color: var(--color-darker);
}

.slider-wrapper {
    position: relative; /* Changed from flex */
    height: 100%;
    width: 100%; 

}

/* --- Main Header (Top-Bar + Navbar) --- */
.header {
    position: fixed; /* Glues the entire block to the top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999; /* Super high z-index to stay above everything */
    box-shadow: 0 5px 20px rgba(0,0,0,0.08); /* Adds a permanent soft shadow */
}

/* Because the header is fixed, we must push the slide content down so it doesn't overlap */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding-top: 150px; /* Pushes content below the tall fixed header */
    
    opacity: 0; 
    visibility: hidden;
    z-index: 0;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

/* The active slide becomes visible and sits on top */
.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Gradients acting as placeholder images to guarantee visibility */
.bg-slide-1 {
    background: linear-gradient(rgba(17, 27, 38, 0.7), rgba(17, 27, 38, 0.8)), url('../image/bg2.png') center/cover;
}
.bg-slide-2 {
    background: linear-gradient(rgba(17, 27, 38, 0.7), rgba(17, 27, 38, 0.8)), url('../image/bg1.png') center/cover;
}
.bg-slide-3 {
    background: linear-gradient(rgba(17, 27, 38, 0.7), rgba(17, 27, 38, 0.8)), url('../image/bg3.png') center/cover;
}
.hero-container {
    width: 100%;
    position: relative;
}

.hero-content {
    max-width: 650px;
    color: var(--color-white);
    margin-left: 80px;
}

.hero-content h1 {
    font-size: 65px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 40px;
    color: #cbd5e1;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.hero-icons {
    display: flex;
    gap: 15px;
    font-size: 35px;
    color: var(--color-primary);
}

.btn-services {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 16px 32px;
    font-weight: 500;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-services:hover {
    background-color: var(--color-blue); /* Consistent blue hover */
}

/* Floating Mission Card */

.mission-card {
    position: absolute;
    right: 10%; /* Changed from 10% to 0 for better grid alignment */
    top: 55%;
    transform: translateY(-50%);
    background: var(--color-white);
    padding: 30px 20px;
    border-radius: 8px;
    width: 280px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-top: 4px solid var(--color-primary);
    z-index: 10;
}
.mission-icon {
    font-size: 40px;
    color: var(--color-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.mission-card h3 {
    color: var(--color-dark);
    margin-bottom: 15px;
    font-size: 20px;
}

.mission-card p {
    font-size: 15px;
    margin-bottom: 25px;
    color: var(--color-text);
}

.btn-round {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-round:hover {
    background-color: var(--color-dark);
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 40px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.slider-arrow:hover {
    color: var(--color-white);
}

.slider-arrow.prev { left: 30px; }
.slider-arrow.next { right: 30px; }

/* --- Mobile Menu (Sidebar) --- */

.mobile-item {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mobile-link-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f4f4f4;
    font-weight: 500;
    color: var(--color-dark);
    width: 100%; /* Ensures it takes up the full sidebar width */
    cursor: pointer;
}

/* Active state for the wrapper */
.mobile-item.active .mobile-link-wrapper {
    color: var(--color-primary);
}

.mobile-dropdown {
    display: none; 
    padding-left: 15px;
    padding-top: 5px;
    padding-bottom: 10px;
    width: 100%;
}

.mobile-dropdown.show {
    display: block; 
}

/* 5. The individual links inside the dropdown */
.mobile-dropdown li a {
    display: block;
    padding: 10px;
    font-size: 14px;
    color: var(--color-text); 
    transition: color 0.3s ease;
}

/* Optional hover/active state for dropdown links */
.mobile-dropdown li.active,
.mobile-dropdown li:hover {
    background-color: #f1fcf8;
    border-radius: 4px;
}

.mobile-dropdown li.active a,
.mobile-dropdown li:hover a {
    color: var(--color-primary);
}


.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-dark);
    cursor: pointer;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background-color: var(--color-white);
    z-index: 2000;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-sidebar.open {
    right: 0;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-dark);
    cursor: pointer;
}

.mobile-menu {
    padding: 20px;
    flex-grow: 1;
}

.mobile-sidebar-footer {
    padding: 20px;
    margin-bottom: 30px;
}

.btn-quote-mobile {
    display: block;
    text-align: center;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 15px;
    border-radius: 4px;
    font-weight: 500;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    display: none;
}

.sidebar-overlay.open {
    display: block;
}

/* ====================================================
   RESPONSIVE MEDIA QUERIES
   ==================================================== */
@media (max-width: 1199px) {
    /* 1. Hide the desktop links because 11 links will NEVER fit here cleanly */
    .nav-menu { display: none !important; }
    
    /* 2. Show the hamburger toggle icon earlier to save the layout */
    .mobile-toggle { display: block; margin-left: 20px; }

    /* 3. Hide the top-bar to save screen real estate */
    .top-bar { display: none; }

    /* 4. Fix the Quote Button to fit perfectly next to the hamburger */
    .nav-right { width: auto; justify-content: flex-end; flex-grow: 1; }
    .btn-quote {
        margin-right: 0;
        margin-top: 0;
        margin-bottom: 0;
        height: 45px;
        align-self: center; 
        border-radius: 4px;
    }
}
@media (max-width: 1450px) {
    /* Aggressively shrink margins and fonts so all 11 links fit */
    .nav-item { margin: 0 5px; }
    .nav-link { 
        font-size: 12px; 
        letter-spacing: -0.2px; 
    }
    .brand-logo-img { width: 90px; }
    .logo-text { font-size: 10px; }
    
    /* Shrink the Quote button */
    .btn-quote { 
        padding: 0 12px; 
        font-size: 13px; 
    }
    /* Shrink logo margins */
    .logo { 
        padding-right: 5px; 
        margin-right: 5px; 
    }
}
@media (max-width: 1399px) {
    /* Because your menu has 11 links, we must shrink margins early so it fits */
    .nav-item { margin: 0 7px; }
    .nav-link { font-size: 12px; }
    .brand-logo-img { width: 90px; }
    .logo-text { font-size: 10px; }
    .btn-quote { padding: 0 12px; font-size: 12px; }
}
@media (max-width: 1100px) {
    .nav-menu { display: none; }
    .btn-quote { display: none; }
    .mobile-toggle { display: block; margin-left: auto; } 
    
    .hero-section { 
        height: 100vh; 
        min-height: 800px; 
    }
    
    .slide { 
        flex-direction: column; 
        justify-content: center; 
        text-align: center; 
        padding-top: 160px; /* Extra padding for stacked mobile header */
    }

    .hero-content {
        margin-left: 0;
        padding: 0 20px;
    }
    
    .hero-content h1 { font-size: 45px; }
    
    .hero-actions { 
        justify-content: center; 
        flex-direction: column; 
        gap: 20px; 
    }
    
    .mission-card {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin: 30px auto 0;
        width: 90%;
        max-width: 400px;
        padding: 30px 20px;
        z-index: 10;
    }
    
    .slider-arrow { display: none; }
}

@media (max-width: 768px) {
    /* CRITICAL: Force Top-Bar to display and stick on mobile */
    .top-bar { 
        display: block !important; 
        padding: 8px 10px; 
        font-size: 12px; 
    }
    
    .top-bar-inner {
        flex-direction: column; /* Stacks the top bar info neatly */
        gap: 5px;
        text-align: center;
        justify-content: center;
    }
    
    .top-info span { margin-right: 8px; display: inline-block; }
    .top-links { justify-content: center; }

    .navbar { height: 75px; }
    
    .logo { padding-right: 0; margin-right: 0; border-right: none; }
    .brand-logo-img { width: 100px; margin-top: -2px; margin-bottom: 2px; }
    .logo-text { font-size: 10px; }
    
    .hero-content h1 { 
        font-size: 32px; 
        margin-top: 0;  
    }
    
    .hero-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .mission-card {
        padding: 20px 15px;
        margin-top: 25px;
    }
    
    .mission-card h3 { font-size: 18px; margin-bottom: 10px; }
    .mission-card p { font-size: 13px; margin-bottom: 15px; }
}
/* --- About/Pioneers Section --- */
.about-section {
    padding: 50px 0;
    background-color: var(--color-white);
    overflow: hidden; /* prevents animation overflow issues */
}

.about-container {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 1300px; 
    margin: 0 auto;
    padding: 0 20px;
}

/* Image & Badge Area */

.about-image-wrapper {
    flex: 1;
    position: relative;
    max-width: 500px;
}

/* Increased height properly without distorting the image */
.about-image-wrapper .main-img {
    width: 95%;
    height: 550px; /* Increased height here */
    object-fit: cover; /* Ensures the image fills the height without squishing */
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    display: block;
}

.floating-badge {
    position: absolute;
    top: 80px; /* Pushed down slightly to balance the taller image */
    left: -40px; 
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(46, 204, 113, 0.3);
    min-width: 160px;
    z-index: 2; /* Ensures it stays above the image */
}

.badge-icon {
    position: relative;
    font-size: 35px;
    margin-bottom: 10px;
    display: inline-block;
}

.badge-icon .sub-icon {
    position: absolute;
    bottom: -5px;
    right: -10px;
    font-size: 16px;
}

.floating-badge .counter {
    display: block;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.floating-badge .badge-text {
    font-size: 14px;
    font-weight: 500;
}

/* Content Area */
.about-content {
    flex: 1.2;
}

.section-tag {
    background-color: #e8f8f1; /* Very light green */
    color: var(--color-primary);
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.section-title {
    font-size: 36px;
    font-weight: 900;
    color: var(--color-dark);
    line-height: 1.2;
    margin-bottom: 25px;
}

.lead-text {
    font-size: 16px;
    font-weight: 700; /* Bold as per design */
    color: var(--color-dark);
    margin-bottom: 30px;
    line-height: 1.6;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.about-text-col p, .list-intro {
    font-size: 15px;
    color: #77838f;
    line-height: 1.7;
}

.list-intro {
    margin-bottom: 15px;
}

.feature-list li {
    font-size: 14px;
    color: #77838f;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.feature-list li i {
    color: var(--color-primary);
    font-size: 16px;
}

/* Slide-in Button (Dark to Green) */
.btn-dark-slide {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 16px 35px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-dark-slide .btn-text {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-dark-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary); /* Slides in green */
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
}

.btn-dark-slide:hover::before {
    left: 0;
}

/* --- Scroll Reveal Animations --- */
.reveal-left, .reveal-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* --- Responsive adjustments --- */
@media (max-width: 991px) {
    .about-container {
        flex-direction: column;
    }

    .about-image-wrapper {
        margin-left: 40px; /* Space for the left-hanging badge */
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr; /* Stacks the two text columns */
        gap: 20px;
    }
    
    .floating-badge {
        left: -20px;
        padding: 20px;
        min-width: 120px;
    }
    .about-image-wrapper .main-img {
        height: 450px; 
    }
    
    .floating-badge {
        top: 40px; /* Adjust badge position for smaller image */
    }
    
    .floating-badge .counter {
        font-size: 28px;
    }
}

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

/* --- CSS Variables --- */
:root {
    --color-bg-dark: #273646; /* Dark slate blue */
    --color-primary: #2ecc71; /* Green */
    --color-white: #ffffff;
    --color-text-light: #a6b4c2; /* Light grey text */
    --color-card-text: #2c3e50; /* Dark heading in cards */
    --color-card-desc: #7f8c8d; /* Grey text in cards */
    --color-btn-dark: #2c3e50; /* Dark circle button */
    --font-main: 'Roboto', sans-serif;
    --transition-speed: 0.4s;
}

/* --- General Reset --- */
body {
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

/* --- Section Styling --- */
.value-section {
    background-color: var(--color-bg-dark);
    position: relative;
    padding: 50px 0;
    color: var(--color-white);
    overflow: hidden;
}

/* Max Width 1300px constraint as requested */
.custom-container {
    max-width: 1300px !important;
    margin: 0 auto;
}

/* --- Typography --- */
.subheading {
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 700;
    text-transform: capitalize;
    display: block;
    margin-bottom: 15px;
}

.main-heading {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
}

.description-text {
    color: var(--color-text-light);
    font-size: 16px;
    line-height: 1.8;
}

/* --- Top Buttons (Slide-in Hover Effect) --- */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-slide {
    position: relative;
    padding: 14px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-speed) ease;
}

.btn-slide .btn-text {
    position: relative;
    z-index: 2; /* Keeps text above sliding background */
}

/* The white slide-in background */
.btn-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Start off-screen to the left */
    width: 100%;
    height: 100%;
    background-color: var(--color-white);
    transition: left var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
}

.btn-slide:hover::before {
    left: 0; /* Slide in on hover */
}

.btn-slide:hover {
    color: var(--color-bg-dark) !important; /* Text turns dark on white background */
    border-color: var(--color-white) !important;
}

/* Specific Top Button Styles */
.btn-green {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 1px solid var(--color-primary);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
}

/* --- Cards Area --- */
.cards-row {
    margin-top: 60px;
}

.value-card {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

/* Composite Icons */
.card-icon {
    position: relative;
    color: var(--color-primary);
    font-size: 50px;
    margin-bottom: 25px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leaf-icon {
    position: absolute;
    font-size: 20px;
    top: -5px;
    right: 5px;
    background: var(--color-white);
}

.leaf-icon-house {
    position: absolute;
    font-size: 20px;
    top: 20px;
}

.card-title {
    color: var(--color-card-text);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 15px;
}

.card-desc {
    color: var(--color-card-desc);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 30px;
    flex-grow: 1; /* Pushes button to bottom */
}

/* --- Card Hover Action Button --- */
.card-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-btn-dark);
    color: var(--color-white);
    height: 40px;
    width: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

/* Hidden text styling */
.btn-hidden-text {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    width: 0;
    transition: all 0.4s ease;
}

/* Hover State (Expands to Green Pill) */
.card-action-btn:hover, 
.card-action-btn.hover-active { /* hover-active class used to demo state in image 4 */
    background-color: var(--color-primary);
    width: 140px;
    border-radius: 25px;
    padding: 0 15px;
}

.card-action-btn:hover i,
.card-action-btn.hover-active i {
    margin-left: 8px; /* Add space between text and icon */
}

.card-action-btn:hover .btn-hidden-text,
.card-action-btn.hover-active .btn-hidden-text {
    opacity: 1;
    width: auto;
}

.card-action-btn:hover, .card-action-btn:focus {
    color: var(--color-white);
}

/* --- Bottom Progress Indicator --- */
.progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.progress-line {
    display: block;
    width: 30px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.progress-line.active, 
.progress-line:hover {
    background-color: var(--color-primary);
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    .main-heading { font-size: 36px; }
    .action-buttons { margin-bottom: 30px; }
}

@media (max-width: 767px) {
    .value-section { padding: 30px 0; }
    .main-heading { font-size: 28px; }
    .action-buttons { flex-direction: column; }
    .btn-slide { width: 100%; }
}

/* --- Slider Layout --- */
.slider-viewport {
    width: 100%;
    overflow: hidden; /* Hides cards outside the view */
    padding: 10px 0; /* Prevents box-shadow cutoff */
}

.cards-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    gap: 24px; /* Space between cards */
}

.card-slide {
    /* Default: 4 cards visible. Calculation accounts for the 24px gap */
    flex: 0 0 calc((100% - (24px * 3)) / 4);
    min-width: calc((100% - (24px * 3)) / 4);
}

/* Responsive Slider Adjustments */
@media (max-width: 1199px) {
    .card-slide {
        /* 3 cards visible */
        flex: 0 0 calc((100% - (24px * 2)) / 3);
        min-width: calc((100% - (24px * 2)) / 3);
    }
}

@media (max-width: 991px) {
    .card-slide {
        /* 2 cards visible */
        flex: 0 0 calc((100% - 24px) / 2);
        min-width: calc((100% - 24px) / 2);
    }
}

@media (max-width: 767px) {
    .card-slide {
        /* 1 card visible */
        flex: 0 0 100%;
        min-width: 100%;
    }
}

/* --- Google Fonts & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

:root {
    --color-primary: #2ecc71; /* Green */
    --color-dark-navy: #1f3245;
    --color-btn-dark: #2c3e50;
    --color-text-gray: #7f8c8d;
    --color-border-light: #eaeeee;
    --color-bg-light: #f8f9fa;
    --color-white: #ffffff;
    --font-main: 'Roboto', sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-white);
    margin: 0;
    padding: 0;
}

.custom-container {
    max-width: 1300px !important;
    margin: 0 auto;
}

/* ====================================================
   1. DARK SECTION (Value Section) - TOP LAYER
   ==================================================== */
.value-section {
    position: relative;
    padding-top: 50px;
    padding-bottom: 0 !important; /* Forces dark bg to end so image can hang out */
    color: var(--color-white);
    
    /* CRITICAL FIXES FOR OVERLAP: */
    z-index: 99 !important;
    overflow: visible !important; 

    background-image: linear-gradient(rgba(26, 43, 60, 0.9), rgba(26, 43, 60, 0.9)), url('../image/OIP.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Prevent Bootstrap grids from accidentally clipping the image */
.value-section .custom-container,
.value-section .cta-row {
    overflow: visible !important;
}

.cta-row {
    margin-top: 80px; 
    align-items: center;
}

/* Add space below the text so the dark section doesn't end immediately under it */
.cta-text-column {
    padding-bottom: 120px; 
}

.cta-main-text {
    color: var(--color-white);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 450px;
}

.highlight-green {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.highlight-green:hover {
    color: var(--color-white);
}

/* --- The Overlapping Image --- */
.video-image-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden; 
   
    
    margin-bottom: -100px !important; 
    
    box-shadow: 0 20px 50px rgba(57, 80, 104, 0.847);
    cursor: pointer;
    z-index: 100 !important;
    display: block;
}

.video-bg-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.video-image-wrapper:hover .video-bg-img {
    transform: scale(1.03);
}

/* Play Button Overlay */
.video-play-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2;
}

.play-icon-box {
    background-color: var(--color-white);
    color: var(--color-dark-navy);
    width: 65px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.video-image-wrapper:hover .play-icon-box {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.play-text {
    color: var(--color-white);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}


/* ====================================================
   2. WHITE SECTION (Services Section) - BOTTOM LAYER
   ==================================================== */
.bg-light-gray {
    background-color: var(--color-bg-light);
}

.services-section {
    position: relative;
    background-color: var(--color-bg-light);
    
    /* CRITICAL FIXES FOR LAYERING AND SPACING: */
    margin-top: -50px; /* Tucks this section slightly under the dark one to prevent gaps */
    padding-top: 220px !important; /* Massive padding to push the heading down safely below the hanging image */
    padding-bottom: 30px;
    z-index: 1 !important; /* Sits underneath the dark section */
    overflow: hidden; 
}

.subheading-green {
    color: var(--color-primary);
    font-size: 15px;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.main-heading-dark {
    color: var(--color-dark-navy);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.3;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* Force perfect centering for the headings */
.services-section .text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


/* ====================================================
   3. SERVICES SLIDER CARDS
   ==================================================== */
.services-slider-viewport {
    width: 100%;
    overflow: hidden;
    padding-top: 50px; 
    padding-bottom: 20px; 
}

.services-track {
    display: flex;
    gap: 30px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-slide {
    flex: 0 0 calc((100% - 60px) / 3); 
    min-width: calc((100% - 60px) / 3);
}

.service-card {
    background-color: var(--color-white);
    border-radius: 5px;
    padding: 40px;
    position: relative;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-bottom: 3px solid var(--color-primary);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon-wrapper {
    position: absolute;
    top: -45px;
    left: 40px;
    background-color: var(--color-bg-light);
    padding: 10px;
}

.service-icon {
    font-size: 55px;
    color: var(--color-primary);
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.service-card:hover .service-icon {
    transform: rotate(360deg);
}

.service-title {
    color: var(--color-dark-navy);
    font-size: 22px;
    font-weight: 800;
    margin-top: 20px;
    line-height: 1.4;
}

.service-divider {
    border-color: var(--color-border-light);
    margin: 25px 0;
    opacity: 1;
}

.service-desc {
    color: var(--color-text-gray);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.service-list {
    list-style: none;
    padding: 0;
    margin-bottom: 35px;
}

.service-list li {
    color: var(--color-text-gray);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-list li i {
    color: var(--color-dark-navy); 
    font-size: 18px;
}

/* Read More Button - Slide Animation */
.btn-read-more {
    background-color: var(--color-btn-dark);
    color: var(--color-white);
    padding: 14px 25px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-read-more .btn-text {
    position: relative;
    z-index: 2; 
}

.btn-read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; 
    width: 100%;
    height: 100%;
    background-color: var(--color-primary); 
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
}

.btn-read-more:hover::before {
    left: 0;
}

.btn-read-more:hover {
    color: var(--color-white);
}

/* Footer & Controls */
.footer-note {
    color: var(--color-text-gray);
    font-size: 15px;
  
}

.footer-link {
    color: var(--color-dark-navy);
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-primary);
}

.custom-slider-controls {
    display: flex;
    gap: 8px;
}

.slider-line {
    width: 30px;
    height: 4px;
    margin-bottom: 15px;
    background-color: #cbd5e1;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease, width 0.3s ease;
}
/* --- Footer Area: Text Centered, Dots Right --- */
.dots-right-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 15px; 
}


@media (min-width: 768px) {
    .dots-right-wrapper {
        position: absolute;
        right: 15px; 
        top: 50%;
        transform: translateY(-50%); 
        margin-top: 0;
        width: auto;
    }
    
}
.slider-line.active {
    background-color: var(--color-primary); 
}


/* ====================================================
   4. RESPONSIVE MEDIA QUERIES
   ==================================================== */
@media (max-width: 1199px) {
    .service-slide {
        flex: 0 0 calc((100% - 30px) / 2); 
        min-width: calc((100% - 30px) / 2);
    }
    .testimonial-controls-wrapper { right: 30px;}
    .nav-arrow { font-size: 22px; }
}

@media (max-width: 991px) {
    /* Adjust Overlap for Tablets */
    .cta-text-column {
        padding-bottom: 50px; 
    }
    .video-image-wrapper {
        margin-bottom: -80px !important; 
    }
    .services-section {
        padding-top: 50px !important; 
    }
}

@media (max-width: 767px) {
    .main-heading-dark { font-size: 32px; }
    
    .service-slide {
        flex: 0 0 100%; 
        min-width: 100%;
    }

    /* Stack Image neatly on Mobile (Remove Overlap) */
    .cta-text-column {
        padding-bottom: 0;
        text-align: center;
    }
    .cta-main-text {
        margin: 0 auto 20px;
    }
    .video-image-wrapper {
        margin-bottom: 0 !important; 
        margin-top: 30px;
    }
    .services-section {
        margin-top: 0;
        padding-top: 50px !important; 
    }
    .video-bg-img {
        height: 250px;
    }
}

/* ====================================================
   GLOBAL SYSTEMS & MAP SECTION
   ==================================================== */
.global-systems-section {
    background-color: var(--color-dark-navy);
    /* Subtle background image as seen in reference */
    background-image: linear-gradient(rgba(26, 43, 60, 0.92), rgba(26, 43, 60, 0.95)), url('../image/abouthero.png');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 30px 0;
    color: var(--color-white);
    overflow: hidden;
}

.main-heading-white {
    color: var(--color-white);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.3;
}

.systems-desc {
    color: #a6b4c2;
    font-size: 15px;
    line-height: 1.8;
}

/* --- Interactive Map --- */
.map-wrapper {
    position: relative;
    width: 100%;
    margin-top: 40px;
}

.world-map-img {
    width: 100%;
    opacity: 0.15; /* Makes the map look like a dark silhouette */
    filter: invert(1); /* Turns black map white, then opacity dims it */
    display: block;
}

/* Map Dots & Animation */
.map-dot {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: transparent;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
}

/* Radar Ping Animation for inactive dots */
.map-dot::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: radarPing 2s infinite ease-out;
}

@keyframes radarPing {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.5); opacity: 0; }
}

.dot-core {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dot-icon {
    position: absolute;
    font-size: 35px;
    color: var(--color-primary);
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sub-icon-flask {
    position: absolute;
    font-size: 14px;
    bottom: -5px;
    right: -10px;
    color: var(--color-white);
}

/* Active State (When Clicked) */
.map-dot.active {
    width: 80px;
    height: 80px;
    background-color: rgba(26, 43, 60, 0.8);
    border-width: 3px;
    box-shadow: 0 0 0 8px rgba(46, 204, 113, 0.2); /* Double ring effect */
    z-index: 10;
}

.map-dot.active::before {
    display: none; /* Stop pinging when active */
}

.map-dot.active .dot-core {
    opacity: 0;
    transform: scale(0);
}

.map-dot.active .dot-icon {
    opacity: 1;
    transform: scale(1);
}

/* --- Stats Styling --- */
.stats-wrapper {
    max-width: 500px;
}

.stat-block {
    margin-bottom: 25px;
}

.stat-number {
    color: var(--color-primary);
    font-size: 45px;
    font-weight: 800;
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.stat-label {
    color: var(--color-white);
    font-size: 20px;
    font-weight: 700;
}

.stat-desc {
    color: #a6b4c2;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.stat-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

/* --- Testimonials Styling --- */
.testimonial-row {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-viewport {
    overflow: hidden;
    width: 100%;
}

.testimonial-track {
    display: flex;
    gap: 40px;
    transition: transform 0.6s ease;
}

.testimonial-slide {
    flex: 0 0 calc(50% - 20px);
    min-width: calc(50% - 20px);
}

.testimonial-content {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.testimonial-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 3px solid var(--color-primary);
    object-fit: cover;
}

.testimonial-quote {
    color: var(--color-white);
    font-size: 18px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 15px;
}

.testimonial-author {
    color: var(--color-white);
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.author-title {
    color: #a6b4c2;
    font-weight: 400;
}

/* --- Testimonials Arrow Control --- */
.testimonial-controls-wrapper {
    position: absolute;
    right: 50px; 
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    z-index: 10;
}

.nav-arrow {
    background: transparent;
    border: none;
    color: #a6b4c2; 
    font-size: 35px; 
    font-weight: 300;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-arrow:hover {
    color: var(--color-white);
    transform: translateX(5px); 
}

/* Make sure the row containing the testimonials has relative positioning */
.testimonial-row {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-right: 50px; 
}
/* Responsive */
@media (max-width: 991px) {
    .main-heading-white { font-size: 34px; }
    .testimonial-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }
    .testimonial-controls-wrapper { right: 25px;}
    .nav-arrow { font-size: 22px; }
}
@media (max-width: 767px) {
    .map-dot.active { width: 50px; height: 50px; }
    .map-dot.active .dot-icon { font-size: 20px; }
    .testimonial-content { flex-direction: column; align-items: center; text-align: center; }
    .testimonial-controls-wrapper { right: 20px;}
    .nav-arrow { font-size: 20px; }
}

/* ====================================================
   LATEST PROJECTS SECTION
   ==================================================== */
.projects-section {
    padding: 50px 0;
    background-color: var(--color-white);
}

/* --- Slider Layout --- */
.projects-slider-viewport {
    width: 100%;
    overflow: hidden;
    padding-bottom: 20px; /* Space for shadow */
}

.projects-track {
    display: flex;
    gap: 30px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-slide {
    flex: 0 0 calc((100% - 60px) / 3); /* 3 cards visible */
    min-width: calc((100% - 60px) / 3);
}

/* --- Project Card Styling --- */
.project-card {
    background-color: var(--color-white);
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: box-shadow 0.3s ease;
    overflow: hidden; /* Ensures image rounded corners aren't broken */
}

.project-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* Image & Diagonal Flash Animation */
.project-img-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* The invisible flash line */
.project-img-wrapper::before {
    position: absolute;
    top: 0;
    left: -120%; 
    z-index: 2;
    display: block;
    content: '';
    width: 70%;
    height: 100%;
    /* Transparent white gradient */
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg); 
    transition: left 0.8s ease-in-out;
}

/* Trigger flash on card hover */
.project-card:hover .project-img-wrapper::before {
    left: 150%; 
}

/* Card Content Area */
.project-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pushes button to bottom */
}

.project-tags {
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
    display: block;
}

.project-title {
    color: var(--color-dark-navy);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 15px;
}

.project-desc {
    color: var(--color-text-gray);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
    flex-grow: 1;
}

/* Explore More Button */
.btn-explore {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 25px;
    background-color: transparent;
    border: 1px solid #e1e5e8; /* Light gray border */
    color: var(--color-dark-navy);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.4s ease;
}

/* Icon base state */
.btn-explore i {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%; 
    transition: all 0.4s ease;
}

/* Button Hover State (Turns Slate Gray & Arrow gets white circle) */
.project-card:hover .btn-explore {
    background-color: var(--color-dark-navy); 
    border-color: var(--color-dark-navy);
    color: var(--color-white);
}

.project-card:hover .btn-explore i {
    background-color: var(--color-white);
    color: var(--color-dark-navy);
}

/* --- Responsive Layout Adjustments --- */
@media (max-width: 1199px) {
    .project-slide {
        flex: 0 0 calc((100% - 30px) / 2); /* 2 Cards visible */
        min-width: calc((100% - 30px) / 2);
    }
}

@media (max-width: 767px) {
    .project-slide {
        flex: 0 0 100%; /* 1 Card visible */
        min-width: 100%;
    }
}

/* ====================================================
   BRANDS & LOGOS SECTION
   ==================================================== */
/* --- 1. Container Setup --- */
.brands-section {
    background-color: var(--color-white);
    overflow: hidden; /* CRITICAL: Hides the logos as they scroll off-screen */
    padding: 20px 0; 
    white-space: nowrap;
}

/* --- 2. The Animated Row --- */
.brands-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap; /* CRITICAL: Forces all items to stay in one horizontal line */
    gap: 60px; /* Space between logos */
    width: max-content; /* CRITICAL: Allows the row to be as wide as needed */
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--color-border-light); 
    border-bottom: 1px solid var(--color-border-light);
    animation: scroll-carousel 20s linear infinite; /* Adjust 20s to change speed */
}

/* Pause animation on hover */
.brands-row:hover {
    animation-play-state: paused;
}

/* --- 3. Individual Brand Items --- */
.brand-item {
    position: relative;
    padding: 30px 20px;
    margin: 0; 
    text-decoration: none;
    color: var(--color-text-gray); 
    display: flex;
    justify-content: center;
    align-items: center;
    transition: color 0.3s ease;
}

.brand-logo {
    color: inherit;
    transition: color 0.3s ease;
    margin: 0;
}

.brand-item:hover {
    color: var(--color-dark-navy); 
}

/* Fix for images so they don't stretch or crop */
.brand-item img {
    height: 50px !important; 
    width: auto !important;  
    object-fit: contain !important; 
}

/* --- 4. The Animated Green Top Line --- */
.brand-item::before {
    content: '';
    position: absolute;
    top: -1px; 
    left: 50%;
    transform: translateX(-50%); 
    width: 0; 
    height: 2px; 
    background-color: var(--color-primary); 
    transition: width 0.3s ease-in-out; 
    z-index: 10; 
}

.brand-item:hover::before {
    width: 100%;
}

/* --- 5. The Carousel Animation --- */
@keyframes scroll-carousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* --- 6. Mobile Responsive Adjustments --- */
@media (max-width: 767px) {
    .brands-row {
        gap: 30px; /* Reduces the huge gap between logos on small screens */
    }
    .brand-item {
        padding: 15px 10px; /* Reduces padding to fit better on mobile */
    }
    .brand-item img {
        height: 40px !important; /* Scales down image logos slightly */
    }
    .brand-logo {
        font-size: 16px !important; /* Scales down text logos slightly */
    }
}
/* ====================================================
   QUOTE SECTION (Green Background)
   ==================================================== */
.quote-section {
    /* Using linear gradient to create the green overlay on top of an image */
    background-image: linear-gradient(rgba(46, 204, 113, 0.90), rgba(46, 204, 113, 0.95)), url('../image/biogasplant.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Creates a slight parallax effect */
    padding: 50px 0;
    position: relative;
}

.subheading-white {
    color: var(--color-white);
    font-size: 15px;
    font-weight: 700;
    display: block;
}

.main-heading-white {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.3;
}

.quote-desc {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* White Checklist */
.feature-list-white {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list-white li {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list-white li i {
    color: var(--color-dark-navy); /* Dark checkmarks on green bg */
    font-size: 18px;
}

/* --- Left Side Buttons --- */
.btn-slide-white {
    background-color: var(--color-white);
    color: var(--color-dark-navy);
    padding: 14px 30px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    align-items: center;
}

.btn-slide-white .btn-text {
    position: relative;
    z-index: 2;
}

/* Slide in dark navy */
.btn-slide-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--color-dark-navy);
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
}

.btn-slide-white:hover::before {
    left: 0;
}

.btn-slide-white:hover {
    color: var(--color-white);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline-white:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

/* Contact Info Box */
.contact-alert {
    background-color: rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--color-white);
}

.alert-icon {
    font-size: 24px;
}


/* ====================================================
   FORM CARD (Right Column)
   ==================================================== */
.quote-form-card {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.form-title {
    color: var(--color-dark-navy);
    font-weight: 800;
    font-size: 26px;
    margin-bottom: 10px;
}

.form-desc {
    color: var(--color-text-gray);
    font-size: 14px;
    line-height: 1.6;
}

/* Customizing Bootstrap Inputs */
.custom-select, .custom-input {
    border: 1px solid #e1e5e8;
    color: #495057;
    font-size: 14px;
    padding: 12px 15px;
    border-radius: 5px;
    box-shadow: none !important;
}

.custom-select:focus, .custom-input:focus {
    border-color: var(--color-primary);
}

/* --- Submit Button Animation --- */
.btn-submit-slide {
    background-color: var(--color-dark-navy);
    color: var(--color-white);
    border: none;
    padding: 16px 20px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

.btn-submit-slide .btn-text,
.btn-submit-slide .icon-circle {
    position: relative;
    z-index: 2;
}

.btn-submit-slide .icon-circle {
    background-color: var(--color-white);
    color: var(--color-dark-navy);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    transition: all 0.4s ease;
}

/* Green Slide-in */
.btn-submit-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
}

.btn-submit-slide:hover::before {
    left: 0;
}

/* Adjust circle icon colors on hover */
.btn-submit-slide:hover .icon-circle {
    color: var(--color-primary);
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    .main-heading-white { font-size: 36px; }
    .quote-form-card { padding: 30px 20px; }
}

@media (max-width: 767px) {
    .quote-section { padding: 60px 0; }
    .main-heading-white { font-size: 32px; }
}
/* ====================================================
   RECENT ARTICLES SECTION
   ==================================================== */
.bg-light-gray {
    background-color: #f8f9fa; /* Ensures the white cards pop */
}

/* --- Article Card Base --- */
.article-card {
    background-color: var(--color-white);
    padding: 35px 30px;
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease;
}

/* Hover Shadow Elevation */
.article-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* --- Animated Green Top Border --- */
.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0; /* Starts hidden at 0 width */
    height: 5px; /* Thickness of the green line */
    background-color: var(--color-primary);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    transition: width 0.4s ease-in-out;
}

/* Triggers the slide-in animation on hover */
.article-card:hover::before {
    width: 100%; 
}

/* --- Card Content --- */
.article-meta {
    color: var(--color-text-gray);
    font-size: 13px;
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.article-title {
    color: var(--color-dark-navy);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 0px;
    transition: color 0.3s ease;
    min-height: 60px; /* Keeps buttons aligned if titles are different lengths */
}

/* Title turns green on hover */
.article-card:hover .article-title {
    color: var(--color-primary);
}

/* --- Image & Floating Tag --- */
.article-img-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.article-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.article-tag {
    position: absolute;
    bottom: -12px; /* Pulls it down to overlap the bottom edge */
    left: 15px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 15px;
    border-radius: 4px;
    z-index: 2;
}

.article-desc {
    color: var(--color-text-gray);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
    flex-grow: 1; /* Pushes the button to the bottom */
}

/* --- Read More Button --- */
.btn-read-more-article {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px 10px 20px;
    background-color: transparent;
    border: 1px solid #d1d5db; /* Light gray border */
    color: var(--color-dark-navy);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    width: fit-content;
    transition: all 0.3s ease;
}

/* The arrow circle base state */
.btn-read-more-article .icon-circle {
    background-color: var(--color-dark-navy);
    color: var(--color-white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    margin-left: 15px;
    transition: all 0.3s ease;
}

/* Button Hover State (Triggered when hovering over the card) */
.article-card:hover .btn-read-more-article {
    background-color: var(--color-dark-navy);
    border-color: var(--color-dark-navy);
    color: var(--color-white);
}

/* Arrow circle inverses colors on hover */
.article-card:hover .btn-read-more-article .icon-circle {
    background-color: var(--color-white);
    color: var(--color-dark-navy);
}

/* --- Bottom Link --- */
.articles-footer-link {
    color: var(--color-dark-navy);
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    border-bottom: 2px solid var(--color-primary); /* Green underline */
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

.articles-footer-link:hover {
    color: var(--color-primary);
}

/* ====================================================
   FOOTER SECTION
   ==================================================== */
.site-footer {
    background-color: var(--color-dark-navy);
    color: var(--color-text-gray);
    position: relative;
    overflow: hidden;
}

/* --- Footer Top Area --- */
.footer-top-row {
    padding-bottom: 20px;
}

.footer-heading {
    color: var(--color-white);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 30px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
/* Target the link ('a') inside the list item, not the list item ('li') itself */
.footer-links a:hover {
    color: var(--color-primary) !important;
    padding-left: 5px;
}
.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--color-text-gray);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

/* Ensure the custom container matches Bootstrap max-widths safely */
@media (min-width: 1400px) {
    .custom-container {
        max-width: 1300px;
    }
}

/* --- Footer Contact Column --- */
.footer-watermark {
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.02);
    z-index: 0;
    pointer-events: none;
}

.footer-contact-info {
    position: relative;
    z-index: 1;
}

.footer-phone {
    color: var(--color-white);
    font-size: 28px;
    font-weight: 400;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.footer-phone:hover {
    color: var(--color-primary);
}

.footer-email {
    color: var(--color-primary);
    font-size: 15px;
    font-weight: 700;
}

.footer-email a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-email a:hover {
    color: var(--color-white);
}

.footer-address {
    color: var(--color-text-gray);
    font-size: 14px;
    line-height: 1.8;
}

.footer-directions {
    color: var(--color-white);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.footer-directions:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

/* --- Footer Bottom Area --- */
.footer-bottom-row {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px 0;
}

.copyright-text {
    font-size: 14px;
    color: var(--color-text-gray);
}

/* --- Social Icons Styling --- */
.footer-socials {
    list-style: none;
}

.footer-socials a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    color: var(--color-white);
    background-color: var(--color-primary);
    transform: translateY(-4px);
}
.py-5 {
    padding-top: 1rem !important;
    padding-bottom: 0rem !important;
}
.mb-5 {
    margin-bottom: 1rem !important;
}
/* ====================================================
   SCROLL TO TOP BUTTON
   ==================================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: var(--color-dark-navy);
    transform: translateY(-5px); /* Bounces up slightly on hover */
}

/* Responsive adjust for button */
@media (max-width: 767px) {
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
    }
}

.logo-text{
    color: #2c8234;
}