/* General Body and Navbar adjustments */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

/* --- Header Section (Navbar) --- */
.main-header {
    background-color: #ffffff; /* White background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1030; /* Ensure navbar is above other content */
    /* Increased vertical padding for taller navbar and horizontal for bigger gaps */
    padding: 15px 100px; /* Increased vertical padding to 15px, horizontal to 100px */
    height: 85px;
}

/* Adjust the container-fluid inside the navbar to stretch */
.main-header .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.main-header .navbar-brand .logo-img {
    height: 40px; /* Adjust logo size */
    width: auto;
}

.main-header .navbar-nav .nav-link {
    color: #343a40; /* Darker color for links on white background */
    font-weight: 600;
    margin-left: 15px; /* Spacing between nav items */
    transition: color 0.3s ease-in-out;
}

.main-header .navbar-nav .nav-link:hover,
.main-header .navbar-nav .nav-link.active {
    color: #007bff; /* Highlight color remains blue */
}

/* Dropdown Animation */
.main-header .dropdown-menu {
    background-color: #ffffff; /* White background for dropdown */
    border: 1px solid rgba(0, 0, 0, 0.1); /* Light border */
    padding: 0;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Subtle shadow */
    max-height: 480px;
}

.main-header .dropdown-menu .dropdown-item {
    color: #343a40; /* Dark color for dropdown items */
    padding: 10px 20px;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.main-header .dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa; /* Light grey on hover */
    color: #007bff; /* Blue text on hover */
}

.main-header .dropdown-menu .dropdown-divider {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Animate.css Integration for Dropdown */
.dropdown-menu.animate__animated {
    animation-duration: 0.3s; /* Fast animation */
}

/* Search Icon and Overlay */
.search-icon-container {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.search-icon {
    font-size: 1.5rem;
    color: #343a40; /* Dark color for search icon on white navbar */
    cursor: pointer;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.search-icon:hover {
    color: #007bff; /* Highlight color remains blue */
    transform: scale(1.1);
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dark overlay - remains the same for contrast */
    z-index: 1040; /* Above navbar */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay .search-form {
    position: relative;
    max-width: 600px;
    animation: scaleIn 0.4s forwards; /* Animation for the form */
}

.search-overlay.active .search-form {
    animation: scaleIn 0.4s forwards;
}

.search-overlay .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 1.1rem;
    padding: 10px 20px;
}

.search-overlay .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-overlay .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #007bff;
    box-shadow: none;
    color: #ffffff;
}

.search-overlay .btn-outline-light {
    border-color: #007bff;
    color: #007bff;
    font-weight: 600;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.search-overlay .btn-outline-light:hover {
    background-color: #007bff;
    color: #ffffff;
}

.close-search {
    position: absolute;
    top: -30px; /* Position above the input */
    right: -30px;
    font-size: 1.8rem;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.close-search:hover {
    color: #ff0000;
    transform: rotate(90deg);
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Section 2: About Us Banner --- */
.about-banner-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://via.placeholder.com/1920x600?text=Manufacturer+Machines+Background') no-repeat center center/cover;
    height: 60vh; /* Responsive height */
    min-height: 400px;
    display: flex; /* Ensure flex properties for centering */
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content */
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.3);
}

.about-banner-section h1 {
    font-family: 'Montserrat', sans-serif;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    font-size: clamp(3rem, 8vw, 6rem); /* Responsive font size */
    letter-spacing: 2px;
}

/* --- Section 3: Two Columns - Worker Image & Content --- */
.two-column-section {
    padding: 80px 0;
    background-color: #ffffff;
}

/* Hexagon Image */
.hexagon-container {
    width: 100%;
    max-width: 450px; /* Control max size of hexagon */
    height: 0;
    padding-bottom: 115.47%; /* Aspect ratio for hexagon */
    position: relative;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background-color: #eee; /* Placeholder bg */
    overflow: hidden;
    border: 5px solid #007bff; /* Border for the hexagon */
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.hexagon-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the shape */
    transition: transform 0.5s ease-in-out;
}

.hexagon-container:hover .hexagon-img {
    transform: scale(1.1);
}

/* Experience Box */
.experience-box {
    position: absolute;
    bottom: -30px; /* Reverted to original bottom position */
    right: -30px; /* Reverted to original right position */
    transform: rotate(-5deg); /* Reverted to original transform */
    width: 180px; /* Fixed width */
    height: 180px; /* Fixed height */
    background: linear-gradient(45deg, #007bff, #0056b3); /* Attractive gradient */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 15px; /* Rounded corners */
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    z-index: 10; /* Ensure it's above the image */
    transition: transform 0.3s ease-in-out;
}

.experience-box:hover {
    transform: rotate(0deg) scale(1.05); /* Reverted hover transform */
}

.experience-box .like-icon {
    font-size: 2.5rem;
    color: #ffffff;
}

.experience-box h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1; /* Remove extra line height */
}

.experience-box p {
    font-size: 1.1rem;
    color: #e0e0e0;
    line-height: 1;
}

/* Responsive adjustments for experience box */
@media (max-width: 991px) {
    .hexagon-container {
        max-width: 350px;
        margin-bottom: 50px; /* Space for the box below on smaller screens */
    }
    .experience-box {
        position: relative; /* Make it flow with content */
        bottom: auto;
        right: auto;
        margin-top: -80px; /* Pull it up into the hexagon area */
        transform: none; /* Remove rotation on small screens */
        width: 160px;
        height: 160px;
    }
}
@media (max-width: 575px) {
    .hexagon-container {
        max-width: 280px;
    }
    .experience-box {
        width: 140px;
        height: 140px;
        margin-top: -60px;
    }
    .experience-box .like-icon { font-size: 2rem; }
    .experience-box h3 { font-size: 2rem; }
    .experience-box p { font-size: 0.9rem; }
}

/* Column Header Text */
.two-column-section .display-4 {
    font-family: 'Montserrat', sans-serif;
    color: #2c3e50;
    border-bottom: 3px solid #007bff;
    padding-bottom: 10px;
    display: inline-block; /* To make border only under text */
}

/* Vision and Mission Boxes */
.vision-box, .mission-box {
    background: linear-gradient(135deg, #28a745, #218838); /* Green gradient */
    color: #ffffff;
    border-radius: 15px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.mission-box {
    background: linear-gradient(135deg, #ffc107, #e0a800); /* Yellow/Orange gradient */
}

.vision-box:hover, .mission-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.vision-box h4, .mission-box h4 {
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

/* --- Section 4: Counters --- */
.counter-section {
    background: linear-gradient(to right, #007bff, #0056b3); /* Attractive blue gradient */
    padding: 60px 0;
    color: #ffffff;
}

.counter-item {
    background-color: rgba(255, 255, 255, 0.15); /* Semi-transparent white background */
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px); /* Frosted glass effect */
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.counter-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.25);
}

.counter-item h2 {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.counter-item p {
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 5px;
    color: #e0e0e0;
}


/* --- Section 5: Features / Advantages --- */
.features-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.features-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #007bff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.features-section h3.display-4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 40px;
}

.feature-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.feature-card .feature-icon {
    font-size: 3.5rem;
    color: #007bff; /* Primary icon color */
    margin-bottom: 20px;
    transition: color 0.3s ease-in-out;
}

.feature-card:hover .feature-icon {
    color: #0056b3; /* Darker blue on hover */
}

.feature-card h4 {
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    color: #2c3e50;
    margin-bottom: 15px;
}

.feature-card p {
    color: #6c757d;
}

/* --- Section 6: Progress Bars --- */
.progress-bar-section {
    background: linear-gradient(to right, #007bff, #56c2e6); /* Smooth blue gradient */
    padding: 80px 0;
}

.progress-group h5 {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.progress {
    height: 30px; /* Make progress bar taller */
    background-color: rgba(255, 255, 255, 0.2); /* Lighter background for the bar track */
    border-radius: 15px;
    overflow: hidden; /* Ensure rounded corners for the inner bar */
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.progress-bar {
    background-color: #ffc107; /* Attractive color for progress */
    color: #2c3e50; /* Text color inside bar */
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 30px; /* Vertically center text */
    text-align: right;
    padding-right: 15px;
    white-space: nowrap; /* Prevent text wrapping */
    border-radius: 15px; /* Apply border radius to the progress bar too */
}
/* Ensure inner bar also has border-radius on fill */
.progress-bar:first-child {
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}
.progress-bar:last-child {
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}


/* --- Footer - MODIFIED --- */
.footer-custom {
    background-color: #1a2a3a; /* Dark background */
    padding: 60px 0 20px; /* Increased top padding, kept bottom padding for copyright */
    color: #cccccc;
}

.footer-custom h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #007bff; /* Primary blue for headings */
    margin-bottom: 20px;
}

.footer-custom p.small,
.footer-custom a.small {
    font-size: 0.9rem; /* Smaller text for addresses/contact */
    line-height: 1.6;
}

.footer-custom .footer-icon {
    font-size: 1.5rem; /* Size for phone/email icons */
    color: #007bff; /* Blue color for icons */
}

.footer-custom .social-icons .footer-icon {
    font-size: 1.8rem; /* Larger for social icons */
    color: #cccccc; /* Default social icon color */
    margin-right: 15px; /* Spacing between icons */
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.footer-custom .social-icons .footer-icon:hover {
    color: #007bff; /* Hover color */
    transform: translateY(-3px); /* Subtle lift effect */
}

.footer-custom a.text-white:hover {
    color: #007bff !important; /* Ensure links change color on hover */
}

.footer-custom hr {
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Responsive adjustments for general sections */
@media (max-width: 767px) {
    .main-header {
        padding: 0 15px; /* Adjust padding on small screens to prevent overflow */
    }
    .features-section h3.display-4 {
        font-size: 2.5rem;
    }
    .counter-item h2 {
        font-size: 2.5rem;
    }
    .counter-item p {
        font-size: 1rem;
    }
    .footer-custom {
        text-align: center; /* Center content on small screens */
    }
    .footer-custom .d-flex {
        justify-content: center; /* Center flex items too */
    }
    .footer-custom .social-icons {
        margin-top: 15px; /* Add some space above social icons */
    }
}


/* Add to the end of your existing style.css */

/* General Section Headings & Underline */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    position: relative;
    display: inline-block; /* Essential for underline */
    margin-bottom: 20px;
}

.text-underline::after {
    content: '';
    display: block;
    width: 60%; /* Adjust length of underline */
    height: 4px; /* Adjust thickness */
    background-color: #007bff; /* Primary blue for underline */
    margin: 10px auto 0; /* Center and space below text */
    border-radius: 2px;
}


/* --- Section 2: Slider --- */
.home-slider-section {
    position: relative;
    width: 100%;
    height: 80vh; /* Responsive height for the slider */
    min-height: 550px;
    background-color: #333; /* Fallback background */
    margin-top: -80px; /* Pull it up to cover the navbar spacer */
    z-index: 1; /* Ensure it's behind the fixed navbar */
}

/* Ensure the fixed navbar is always on top */
.main-header {
    z-index: 1030;
}
#navbar-spacer {
    height: 80px; /* Must match .main-header height */
    display: block; /* Ensure it takes up space */
    width: 100%;
    z-index: 0;
}

.home-slider-section {
    position: relative;
    width: 100%;
    height: 600px; /* Fill remaining viewport height minus navbar height */
    min-height: 500px; /* Minimum height for slider */
    margin-top: 0; /* No negative margin needed if spacer works */
    z-index: 1;
}


.home-slider-section .carousel-item {
    height: 600px; /* Match section height */
    min-height: 500px;
    background-size: cover;
    background-position: center center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-slider-section .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
}

.home-slider-section .carousel-caption {
    position: relative; /* Make relative to allow z-index above overlay */
    z-index: 2;
    padding-bottom: 0 !important; /* Remove Bootstrap default padding */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateY(0); /* Reset default Bootstrap transform */
    width: 100%;
    max-width: 930px;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center caption content */
    align-items: center; /* Horizontally center caption content */
}

.home-slider-section .small-text-slider {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    letter-spacing: 2px;
    color: #e0e0e0;
    text-transform: uppercase;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
    margin-bottom: 10px;
}

.home-slider-section .big-text-slider {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 4px 4px 8px rgba(0,0,0,0.9), 0 0 20px rgba(0, 123, 255, 0.5); /* Stronger shadow + blue glow */
    margin-bottom: 20px;
}

/* Carousel Controls */
.home-slider-section .carousel-control-prev-icon,
.home-slider-section .carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
}
.home-slider-section .carousel-control-prev,
.home-slider-section .carousel-control-next {
    width: 8%; /* Larger clickable area */
}


/* --- Section 3: About SN TRIMES --- */
.about-sn-trimes-section {
    padding: 80px 0;
    background-color: #fff;
    position: relative;
}

.about-sn-trimes-section .animated-bg-left,
.about-sn-trimes-section .animated-bg-right {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 240, 240, 0.9));
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    height: 100%; /* Ensure columns have equal height for background */
    display: flex; /* For content alignment if needed */
    flex-direction: column;
    justify-content: center;
}

.about-sn-trimes-section .animated-bg-right {
    background: linear-gradient(135deg, rgba(230, 245, 255, 0.9), rgba(200, 230, 255, 0.9));
}

.about-sn-trimes-section .animated-bg-left::before,
.about-sn-trimes-section .animated-bg-right::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 10%, transparent 10%) 0 0 / 20px 20px,
                radial-gradient(circle, rgba(255,255,255,0.1) 10%, transparent 10%) 10px 10px / 20px 20px;
    animation: moveBackground 20s linear infinite;
    opacity: 0.5;
    z-index: 0;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50%, -50%); }
}

.about-sn-trimes-section .col-lg-6 > * {
    position: relative;
    z-index: 1; /* Ensure content is above animated background */
}


.about-sn-trimes-section .transform-on-hover {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.about-sn-trimes-section .transform-on-hover:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
}

.about-sn-trimes-section .text-primary {
    color: #007bff !important;
}
.about-sn-trimes-section h3.display-6 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-family: 'Montserrat', sans-serif;
    color: #343a40;
}
.about-sn-trimes-section .lead {
    font-size: 1.1rem;
    color: #555;
}

/* Medal Box */
.experience-box {
    background: linear-gradient(135deg, #007bff, #0056b3); /* Attractive blue gradient */
    color: #fff;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border-radius: 15px;
    transition: transform 0.3s ease-in-out;
}
.experience-box:hover {
    transform: translateY(-5px);
}
.experience-box .medal-icon {
    font-size: 3.5rem;
    color: #ffc107; /* Gold color for medal */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.experience-box .counter {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 5px;
}
.experience-box p.lead {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e0e0e0;
}

/* Tick List */
.tick-list li {
    font-size: 1.1rem;
    color: #343a40;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}
.tick-list .tick-icon {
    font-size: 1.4rem;
    color: #28a745; /* Green tick */
    min-width: 25px; /* Ensure consistent spacing */
}

/* --- Section 4: Our Services --- */
.our-services-section {
    padding: 80px 0;
    background-color: #f2f7fc; /* Light blueish background */
}

.our-services-section p.lead {
    font-size: 1.2rem;
    color: #555;
}

.service-box {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border: 1px solid #e0e0e0;
}
.service-box:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.service-box .service-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}
.service-box h4 {
    font-family: 'Montserrat', sans-serif;
    color: #2c3e50;
    font-size: 1.5rem;
}
.service-box p {
    font-size: 0.95rem;
    color: #6c757d;
}

/* --- Section 5: Our Clients --- */
.our-clients-section {
    background-color: #007bff; /* Primary blue background */
    color: #fff;
    padding: 60px 0;
    overflow: hidden; /* Hide overflowing client items */
}
.our-clients-section .section-title {
    color: #fff !important; /* White title */
}
.our-clients-section .section-title::after {
    background-color: #ffc107; /* Gold underline */
}

.client-slider-container {
    width: 100%;
    overflow: hidden; /* Crucial for slider effect */
}

.client-slider-track {
    display: flex;
    width: max-content; /* Allow track to be wider than container */
    animation: clientScroll 30s linear infinite; /* Adjust duration for speed */
    will-change: transform; /* Optimize for smooth animation */
}

.client-item {
    flex-shrink: 0; /* Prevent items from shrinking */
    width: 16.666%; /* Show 6 items at a time (100% / 6) */
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* filter: grayscale(100%); Desaturate logos */
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.client-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.client-item img {
    max-width: 100%;
    height: auto;
    max-height: 80px; /* Limit height of logos */
    object-fit: contain;
}

/* Keyframe for continuous scroll */
@keyframes clientScroll {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); } /* Move half the track width (for infinite loop with duplication) */
}

/* Responsive adjustments for client slider */
@media (max-width: 991px) { /* Tablet and smaller */
    .client-item {
        width: 25%; /* Show 4 items at a time */
    }
}
@media (max-width: 767px) { /* Mobile */
    .client-item {
        width: 33.333%; /* Show 3 items at a time */
    }
    @keyframes clientScroll {
        0% { transform: translateX(0%); }
        100% { transform: translateX(-66.666%); } /* Adjust for 3 items display and duplication */
    }
}
@media (max-width: 575px) { /* Smaller mobile */
    .client-item {
        width: 50%; /* Show 2 items at a time */
    }
    @keyframes clientScroll {
        0% { transform: translateX(0%); }
        100% { transform: translateX(-75%); } /* Adjust for 2 items display and duplication */
    }
}

/* --- Section 6: Why Choose Us (Pie Charts) --- */
.why-choose-us-section {
    padding: 80px 0;
    background-color: #fff;
}
.why-choose-us-section h3.display-5 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-family: 'Montserrat', sans-serif;
    color: #343a40;
}
.why-choose-us-section .lead {
    font-size: 1.1rem;
    color: #555;
}

.chart-container {
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border: 1px solid #e0e0e0;
}
.chart-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.chart-container h5 {
    font-family: 'Montserrat', sans-serif;
    color: #2c3e50;
    font-size: 1.3rem;
}
/* Ensure canvas is responsive */
.chart-container canvas {
    max-height: 200px; /* Limit chart size */
}


/* --- Section 7: Consult With Us CTA --- */
.consult-cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://via.placeholder.com/1920x400?text=Consult+Background') no-repeat center center/cover;
    padding: 80px 0;
    box-shadow: inset 0 5px 15px rgba(0,0,0,0.2);
}
.consult-cta-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    line-height: 1.2;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

.btn-light-outline-primary {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    padding: 15px 40px;
    transition: all 0.3s ease-in-out;
}
.btn-light-outline-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: translateY(-3px);
}
/* Animate.css pulse for CTA button */
.animate__pulse {
    animation-duration: 2s;
}

/* --- Section 8: Our Products Display --- */
.our-products-display-section {
    padding: 80px 0;
    background-color: #f8f9fa; /* Light background */
}
.product-item-box {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border: 1px solid #e0e0e0;
}
.product-item-box:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.product-item-box img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}
.product-item-box h4 {
    font-family: 'Montserrat', sans-serif;
    color: #2c3e50;
    font-size: 1.4rem;
}
.product-title-underline {
    position: relative;
    display: inline-block;
    color: #007bff; /* Attractive blue color */
}
.product-title-underline::after {
    content: '';
    display: block;
    width: 70%;
    height: 2px;
    background-color: #007bff;
    margin: 5px auto 0;
    border-radius: 1px;
    transition: width 0.3s ease-in-out;
}
.product-item-box:hover .product-title-underline::after {
    width: 90%; /* Expand underline on hover */
}
.product-item-box p {
    font-size: 0.95rem;
    color: #6c757d;
}

/* --- Section 9: How We Work --- */
.how-we-work-section {
    padding: 80px 0;
    background-color: #fff;
}
.how-we-work-section h3.display-5 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-family: 'Montserrat', sans-serif;
    color: #343a40;
}
.how-we-work-section .lead {
    font-size: 1.1rem;
    color: #555;
}

.work-step-box {
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.work-step-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.work-step-box img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}
.work-step-box h5 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    color: #2c3e50;
}
.work-step-box p.small {
    font-size: 0.85rem;
    color: #6c757d;
}


/* Responsive adjustments for general sections */
@media (max-width: 991px) {
    .home-slider-section {
        height: 70vh;
        min-height: 450px;
    }
    .home-slider-section .carousel-item {
        height: 70vh;
        min-height: 450px;
    }
}

@media (max-width: 767px) {
    .main-header {
        padding: 0 15px;
        height: auto;
        min-height: 60px;
    }
    #navbar-spacer {
        height: 60px;
    }
    .home-slider-section {
        height: 60vh;
        min-height: 400px;
        margin-top: -60px; /* Adjust for smaller navbar height */
    }
    .home-slider-section .carousel-item {
        height: 60vh;
        min-height: 400px;
    }
    .home-slider-section .small-text-slider {
        font-size: clamp(1rem, 3vw, 1.4rem);
    }
    .home-slider-section .big-text-slider {
        font-size: clamp(2.5rem, 10vw, 4.5rem);
    }
    .section-title {
        font-size: clamp(1.8rem, 5vw, 2.8rem);
        text-align: center;
    }
    .section-title::after {
        margin-left: auto;
        margin-right: auto;
    }
    .about-sn-trimes-section .animated-bg-left,
    .about-sn-trimes-section .animated-bg-right {
        padding: 25px;
        margin-bottom: 30px; /* Add space between columns on small screens */
    }
    .about-sn-trimes-section .col-lg-6 {
        text-align: center; /* Center content in text column */
    }
    .about-sn-trimes-section h3.display-6 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    .experience-box {
        margin-bottom: 20px;
    }
    .tick-list {
        text-align: left; /* Keep tick list left-aligned */
    }
    .our-services-section p.lead,
    .our-products-display-section p.lead {
        font-size: 1rem;
    }
    .consult-cta-section h2 {
        font-size: clamp(2rem, 7vw, 3.5rem);
    }
    .footer-custom {
        text-align: center;
    }
    .footer-custom .d-flex {
        justify-content: center;
    }
    .footer-custom .social-icons {
        margin-top: 15px;
    }
}


/* Specific styling for the Medal Box within the About SN TRIMES section */
.about-sn-trimes-section .experience-box-about-us {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    padding: 20px; /* Reduced padding to make the box smaller */
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border-radius: 15px;
    transition: transform 0.3s ease-in-out;
    position: relative;
    bottom: auto;
    right: auto;
    transform: none;
    width: 100%; /* Keep 100% width within its new col-md-5 */
    max-width: 200px; /* Further limit max-width for the box itself */
    margin: 0 auto; /* Center the box within its col-md-5 on smaller screens */
}

.about-sn-trimes-section .experience-box-about-us:hover {
    transform: translateY(-5px);
}

.about-sn-trimes-section .experience-box-about-us .medal-icon {
    font-size: 2.8rem; /* Made icon smaller */
    color: #ffc107;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    margin-bottom: 10px; /* Adjusted margin */
}

.about-sn-trimes-section .experience-box-about-us .counter {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem; /* Made counter number smaller */
    font-weight: 900;
    line-height: 1; /* Ensure tight line-height */
    margin-bottom: 5px;
}

.about-sn-trimes-section .experience-box-about-us p.lead {
    font-size: 0.95rem; /* Made text smaller */
    font-weight: 600;
    color: #e0e0e0;
}

/* Adjust tick list alignment for side-by-side layout */
.about-sn-trimes-section .tick-list {
    margin-top: 0; /* Remove top margin that might push it down */
}

/* Responsive adjustments for the experience-box-about-us when they stack */
@media (max-width: 767px) { /* On small screens (mobiles) */
    .about-sn-trimes-section .experience-box-about-us {
        max-width: 250px; /* Allow it to be a bit wider when stacked */
        margin-bottom: 30px; /* Add space below the box when stacked */
    }
    .about-sn-trimes-section .experience-box-about-us .medal-icon {
        font-size: 3.2rem; /* Slightly larger when stacked */
    }
    .about-sn-trimes-section .experience-box-about-us .counter {
        font-size: 3.5rem; /* Slightly larger when stacked */
    }
    .about-sn-trimes-section .experience-box-about-us p.lead {
        font-size: 1.05rem; /* Slightly larger when stacked */
    }
    .about-sn-trimes-section .tick-list {
        text-align: left; /* Ensure tick list remains left-aligned */
    }
}
