/* Custom CSS to apply the font to the title */
.navbar-title-font {
    font-family: 'Montserrat', sans-serif;
    color: white;
    /* You can add more specific styling here if needed */
}

/* Optional: Apply a global font to the body if you wish */
body {
    font-family: 'Roboto';
    font-weight: 200;
    /* Keep Inter or change to another preferred sans-serif font */
    margin-top: 0;
}

.white-text {
    color: white;
    font-weight: 300;
}

.main-image-container-constrained {
    max-height: 70vh;
    /* Adjust this value (e.g., 300px, 500px) to your desired height */
    overflow: hidden;
    /* Hides any part of the image that exceeds max-height */
    display: flex;
    /* Helps in centering the image horizontally within the container */
    justify-content: center;
    /* Centers horizontally */
    align-items: center;
    /* Centers vertically */
    width: 100%;
    /* Ensures the container itself takes full available width */
    margin-top: -80px;
    /* Optional: Add a higher z-index if content behind the image is interactive and you want to ensure image is always behind it */
    z-index: 1;
    position: relative;
    /* Essential for positioning child elements (like the text overlay) */
}

.navbar-transparent-blurred {
    /* Semi-transparent white background (adjust the last value for opacity: 0.0 for fully transparent, 1.0 for fully opaque) */
    background-color: rgba(0, 0, 0, 0.2);
    /* Add blur effect to content behind the navbar */
    backdrop-filter: blur(8px);
    /* Adjust blur strength (e.g., 5px, 10px) */
    -webkit-backdrop-filter: blur(8px);
    /* For Safari compatibility */
    /* Ensure the navbar stays above other content */
    z-index: 1020;
    /* Bootstrap's default z-index for sticky navbars */
    position: sticky;
    /* Make sure it stays sticky if not already */
    top: 0;
    /* Keep it at the top */
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
    /* For Safari */
}

.image-overlay-text {
    position: absolute;
    /* Position relative to .image-container-constrained */
    top: 55%;
    /* Start from vertical center */
    left: 50%;
    /* Start from horizontal center */
    transform: translate(-50%, -50%);
    /* Adjust to truly center the element */
    z-index: 2;
    /* Higher than image, lower than navbar */
    color: #fff;
    /* White text for contrast */
    text-align: center;
    padding: 20px;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); */
    /* Adds readability on busy backgrounds */
    width: 80%;
    /* Control width of the text block */
    max-width: 800px;
    /* Max width for readability on very wide screens */
    box-sizing: border-box;
    /* Include padding in width calculation */
}

.image-overlay-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    /* line-height: 1em; */
    margin-bottom: 0.5em;
    letter-spacing: 1.2px;
}

.image-overlay-text p {
    font-size: 1.2rem;
    /* line-height: 1.5rem; */
    font-weight: 200
        /* margin-bottom: 1em; */
        /* letter-spacing: 1px; */
}

@media (max-width: 768px) {
    .image-overlay-text h1 {
        font-size: 3.5rem;
        /* Smaller font size for h1 on small screens */
        letter-spacing: normal;
        /* Reset or reduce letter spacing on small screens */
    }

    .image-overlay-text p {
        font-size: 1rem;
    }

    .image-overlay-text {
        top: 60%;
        /* Adjust position for smaller screens if needed */
        width: 90%;
    }

    .feature-box {
        min-height: 200px;
        /* Slightly smaller height on mobile */
        margin-bottom: 1.5rem;
        /* Add vertical space between stacked columns on small screens */
    }
}


@media (max-width: 590px) {
    .image-overlay-text h1 {
        font-size: 1.8rem;
        margin-bottom: 0.2em;

    }

    .image-overlay-text p {
        font-size: 0.7rem;
        line-height: 1rem;
    }

    .image-overlay-text {
        top: 65%;
        /* Adjust position for smaller screens if needed */
        width: 90%;
    }
}


.feature-box {
    /* background-color: #f0f8ff; */
    background-color: #D3DDE7;
    /* aspect-ratio: 1 / 1; */
    min-height: 13em;
    /* A light, soft blue background */
    display: flex;
    flex-direction: column;

    /* Stacks content vertically */
    align-items: center;
    /* Centers content horizontally */
    justify-content: center;
    /* Centers content vertically */
    padding: 1.5rem;
    /* Padding inside the boxes */
    /* border-radius: 0.75rem; */
    /* Rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Smooth hover effect */
    /* Darker text color */
    /* Medium font weight */
    font-size: 1.2rem;
    text-align: center;
}

.feature-box h1 {
    font-weight: 200;
    font-size: 2.8em;
}

.feature-box p {
    font-size: 1em;
}

.feature-box:hover {
    transform: translateY(-5px);
    /* Lift effect on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    /* Stronger shadow on hover */
}

.services-container {
    background-color: #F2F2F2;
}

.myfont-width h1 {
    font-weight: 300;
}

.myfont-width h3 {
    font-weight: 200;
}

.myfont-width h2 {
    font-weight: 300;
}

.myfont-width p {
    font-weight: 200;
}

.develop {
    background-color: #B7572F;
    /* background-color: #B87333; */
    color: white;
}

.detail {
    background-color: #29497C;
    color: white;
}

.independent {
    background-color: #2B577C;
    color: white;
}

.power {
    background-color: #578FCB;
    color: white;
}

.bess {
    background-color: #90B2D7;
    color: white;
}

#service-description-display {
    background-color: white;
    /* Light grey background */
    /* Generous padding */
    /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Space from the grid above */
    opacity: 1;
    /* For fade in/out effect */
    margin-top: 20px;
    margin-bottom: 5em;
    transition: opacity 0.5s ease-in-out, transform 0.3s ease;
    /* Smooth transition */
    transform: translateY(0);
    /* Slight initial translation for animation */
}

#service-description-display.show {
    display: block;
    /* Show when 'show' class is added */
    opacity: 1;
    /* Fade in */
    transform: translateY(0);
    /* Animate to final position */
}

.image-container-constrained {
    max-height: 400px;
    /* Adjust this value (e.g., 300px, 500px) to your desired height */
    overflow: hidden;
    /* Hides any part of the image that exceeds max-height */
    display: flex;
    /* Helps in centering the image horizontally within the container */
    justify-content: center;
    /* Centers horizontally */
    align-items: center;
    /* Centers vertically */
    width: 100%;
    /* Ensures the container itself takes full available width */
    z-index: 1;
    position: relative;
    /* Essential for positioning child elements (like the text overlay) */
}

.left-aligned-overlay-text {
    position: absolute;
    top: 70%;
    /* Vertically center */
    left: 3%;
    /* Position from the left edge */
    transform: translateY(-50%);
    /* Adjust to truly center vertically */
    z-index: 2;
    /* Ensure it's above the image */
    color: #fff;
    /* White text for readability */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    /* Text shadow for contrast */
    padding: 20px;
    /* Internal padding */
    width: 60%;
    /* Control width, ensuring it stays on the left */
    text-align: left;
    /* Align text to the left within its own box */
    box-sizing: border-box;
    /* Include padding in width */
}

.left-aligned-overlay-text p {
    font-size: 1.2rem;
    /* Adjust font size */
    line-height: 1.6;
    margin-bottom: 0;
    /* Remove default paragraph margin */
    font-weight: 200;
    /* Light weight for readability */
}

.service-item-content {
    /* KEY CHANGE: Removed aspect-ratio, added min-height */
    /* min-height: 280px; */
    /* Example height for rectangular shape. Adjust as needed. */
    display: flex;
    /* For centering content inside */
    flex-direction: column;
    /* Stacks content vertically */
    justify-content: center;
    /* Center content vertically */
    align-items: center;
    /* Center content horizontally */
    /* border-radius: 0.75rem; */
    /* Consistent rounded corners */
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
    /* Consistent shadow */
    overflow: hidden;
    /* Important for images that might extend beyond the rectangle */
    /* transition: transform 0.3s ease, box-shadow 0.3s ease; */
    /* Smooth hover effect */
    cursor: pointer;
    /* Indicate it's clickable */
    /* background-color: #bc6945; */
    /* Default background for boxes */
    /* padding: 1.5rem; */
    /* Padding for text inside */
    /* color: #333; */
    /* Default text color for text boxes */
    text-align: center;
}

.service-text-box:hover {
    transform: translateY(-5px);
    /* Lift effect on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    /* Stronger shadow on hover */
}

.service-text-box {
    /* background-color: #D3DDE7; */
    /* background-color: #deb190 ; */
    /* background-color: #fef5d1 ; */
    /* background-color: #e2a873 ; */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Specific styling for the text box part within service-item-content */
.service-item-content .service-text-box {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Inherit background and text color from .service-item-content or override */
}

.service-item-content h2 {
    /* Targeting h2 specifically inside service-item-content */
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    /* Adjusted size for grid items */
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: #000;
    /* Text color for headings in these boxes */
}

/* Ensure images fill their rectangular containers */
.service-item-content img.img-fluid {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image covers the rectangular area */
}

/* NEW CSS for the contact section */
.contact-section {
    /* background-color: #f8f9fa; */
    background-color: #F2F2F2;
    /* Light background for the section */
    padding: 3rem 0;
    /* Vertical padding */
}

.contact-info h3,
.contact-form h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
}

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #555;
}

.contact-form .form-label {
    font-weight: 500;
    color: #333;
}

.contact-form .form-control {
    border-radius: 0;
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
}

.contact-form .form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

.btn-primary {
    background-color: #c26430;
    border-color: #c26430;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #fff;
    border-color: #c26430;
    color: #c26430;
}

/* --- NEW CSS for the Service Selector Grid --- */
/* .service-selector-section { */
    /* background-color: #f0f8ff; */
    /* A very light blue background for the entire section */
    /* padding: 2rem 0; */
    /* Vertical padding */
    /* margin-top: 4rem; */
    /* Space from element above */
/* } */

.service-selector-col-left {
    display: flex;
    flex-direction: column;
    /* No explicit height here, rely on flex-grow of children */
}

.service-title-box {
    background-color: #B0C4DE;
    /* Blue background for individual service titles */
    padding: 1.5rem;
    /* border-radius: 0.5rem; */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    margin-bottom: 0.5rem;
    /* Small space between title boxes */
    height: 100%;
    /* Ensures title box fills its col height */
    display: flex;
    /* For centering content vertically */
    align-items: center;
    /* For centering content vertically */
    justify-content: center;
    /* For centering content horizontally */
}

.service-title-box:last-child {
    margin-bottom: 0;
    /* Remove margin for the last title box */
}

.service-title-box:hover {
    background-color: #8C9CBF;
    /* Slightly darker blue on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.service-title-box.active {
    background-color: #6A7AA6;
    /* Darker blue when active/selected */
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.service-title-box h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    /* Adjust title size */
    font-weight: 700;
    color: #333;
    /* Dark text for titles */
    margin-bottom: 0;
    /* Remove default h2 margin */
}

.service-title-box.active h2 {
    color: #fff;
    /* White text for active title */
}


.service-explanation-box {
    background-color: #ffffff;
    /* White background for the explanation area */
    padding: 2.5rem;
    /* border-radius: 0.5rem; */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    /* Ensures it fills the height of the right column */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically */
    align-items: flex-start;
    /* Align content to the start (left) */
}

.service-explanation-box h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.service-explanation-box p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 0;
    /* Remove default paragraph margin */
}

/* Responsive adjustments for service selector grid */
@media (max-width: 767.98px) {

    /* Adjust for small screens, typically stacking */
    .service-selector-section .row {
        flex-direction: column;
        /* Stack columns */
    }

    .service-selector-col-left {
        margin-bottom: 1.5rem;
        /* Add space between stacked columns */
    }

    .service-title-box {
        margin-bottom: 0.75rem;
        /* Slightly more space for stacked title boxes */
    }

    .service-explanation-box {
        padding: 1.5rem;
    }

    .service-explanation-box h2 {
        font-size: 1.6rem;
    }

    .service-explanation-box p {
        font-size: 0.95rem;
    }
}

       /* --- UPDATED CSS for Slick Carousel --- */
        .slick-carousel-wrapper {
            /* margin-top: 4rem; Spacing from the section above */
            padding: 0 1rem; /* Adjust horizontal padding to make space for arrows */
        }

        .slick-carousel-container {
            /* border-radius: 0.75rem; */
            /* box-shadow: 0 4px 10px rgba(0,0,0,0.1); */
            background-color: #fff; /* White background for the carousel track */
            padding: 1rem 0; /* Vertical padding inside the track */
            overflow: hidden; /* Important for slick's own internal handling */
        }

        .slick-carousel-container .slick-slide {
            padding: 0 8px; /* Small horizontal padding to create a gap between images */
            box-sizing: border-box; /* Ensure padding is included in the width calculation */
        }

        .slick-carousel-container img {
            width: 100%; /* Ensure image fills its slide area */
            height: 200px; /* Fixed height for consistent display */
            object-fit: cover; /* Crop images to fit, maintaining aspect ratio */
            border-radius: 0.5rem; /* Rounded corners for individual images */
            display: block; /* Remove extra space below image */
        }

        /* Slick dots styling */
        .slick-dots {
            bottom: -30px; /* Position dots below carousel */
        }
        .slick-dots li button:before {
            font-size: 10px; /* Smaller dot size */
            color: #666; /* Grey dots */
            opacity: 0.75;
        }
        .slick-dots li.slick-active button:before {
            color: #28a745; /* Green active dot */
            opacity: 1;
        }

        /* Slick arrows styling */
        .slick-prev:before, .slick-next:before {
            color: #333; /* Darker arrow color */
            font-size: 2.5rem; /* Larger arrow size */
        }
        .slick-prev {
            left: -25px; /* Adjust position */
        }
        .slick-next {
            right: -25px; /* Adjust position */
        }