/* Parent container for the Products heading */
.solutions-section {
    position: relative; /* establish a positioning context */
    justify-content: space-between;
    align-items: center;
    padding: 330px 0; /* taller padding top/bottom so the background shows */
    margin-top: 165px; /* Increase this value to move the section down */
    z-index: 1; /* create a new stacking context */
} /* Mission Text inside Products Section */

/* Blurred background image */
.solutions-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("/img/herohero.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px); /* adjust blur intensity */
    transform: scale(1.05); /* avoids edges showing after blur */
    z-index: 0; /* behind all content */
    /* Dark overlay */
    background-color: rgba(0, 0, 0, 0.4); /* adjust alpha for darkness */
    background-blend-mode: darken; /* blend the overlay with the image */
}

/* Optional: image slider stays above background too */
.solutions-section .image-slider {
    position: relative;
    z-index: 1;
}

.solutions-section .mission-text {
    max-width: 1000px; /* limit width for readability */
    margin: -315px auto 40px auto; /* spacing above and below */
    font-size: 1.8rem; /* text size */
    line-height: 1.4; /* spacing between lines */
    color: #e9e9e9; /* text color */
    text-align: left; /* align text left */
    font-weight: 400; /* make paragraphs bold */
    font-family: "Roboto", sans-serif;
    z-index: 1;
}
.solutions-section .mission-text ul {
    list-style-type: disc;
    margin-left: 30px; /* indent bullets */
    margin-top: 0px;
    margin-bottom: 10px;
    font-weight: bold;
    z-index: 1;
}

.solutions-section .mission-text li {
    margin-bottom: 5px; /* spacing between list items */
}

/* Optional: make sure it stays above the slider */
.solutions-section .mission-text {
    position: relative;
    z-index: 10;
}
/* Style and move the heading */
.solutions-section h2 {
    position: absolute; /* remove it from normal flow */
    top: 165px; /* move it upward — adjust this number to taste */
    font-size: 40px;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    margin: 0;
    left: 60px;
    /* 🔹 Gradient text effect for visibility on blue */
    background: linear-gradient(90deg, #0a0a0a 0%, #0f0f0e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    z-index: 3; /* slightly higher than background, but less than banner (z=2 on banner is weirdly low) */
}
.solutions-section h2::after {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 200px;
    height: 4px;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, #007bff 0%, #00c6ff 100%);
}
.image-slider {
    position: relative;
    width: 95%; /* Fit within screen */
    max-width: 1400px; /* Optional: limit max width */
    margin: 20px auto; /* Center horizontally */
    overflow: hidden; /* Hide slides outside container */
    top: -500px; /* Adjust as needed */
    right: 0; /* Remove negative offset */
    z-index: 1;
    box-sizing: border-box; /* ensures padding/margin doesn't push it out */
}
.slider-container {
    display: flex;
    flex-wrap: nowrap; /* keep slides in one row */
    gap: 10px; /* space between slides */
    transition: transform 0.8s ease;
}
.slide {
    position: relative;
    min-width: calc(20% - 60px);
    height: 390px;
    margin: 0 5px;
    overflow: hidden;
    border-radius: 15px;

    border: 2px solid transparent; /* default: no visible border */
    background-color: #f8fbff; /* default background behind image */
    transition: transform 0.4s ease, box-shadow 0.4s ease, border 0.4s ease,
        background-color 0.4s ease;
    cursor: pointer;
    margin-top: 30px;
}
.slide:hover {
    transform: scale(1.05); /* pop-out effect */
    z-index: 5;
    border: 2px solid #007bff; /* blue border on hover */

    /* glowy effect with layered blue shadows */
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.7), 0 0 20px rgba(0, 123, 255, 0.5),
        0 0 30px rgba(0, 123, 255, 0.4), 0 0 40px rgba(0, 123, 255, 0.3),
        0 0 60px rgba(0, 123, 255, 0.2);

    transition: transform 0.4s ease, box-shadow 0.4s ease, border 0.4s ease;
}
/* Rotate the image in this specific slide */
.horizontal-slide img {
    transform: rotate(90deg); /* rotate clockwise */
    width: auto; /* adjust width */
    height: 100%; /* fill slide height */
    object-fit: cover; /* maintain aspect ratio while covering the container */
}

.slide img {
    width: 100%; /* Fill the slide */
    height: 70%; /* Ensure images occupy the full height */
    object-fit: cover; /* Maintain aspect ratio without cutting off */
    display: block; /* Remove bottom space under the image */
    cursor: pointer; /* Show pointer cursor over the image */
}
.slide::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 130%;
    background: linear-gradient(
        to top,
        rgba(7, 7, 46, 0.5),
        /* lighter blue from your banner */ rgba(14, 117, 234, 0.3) 20%,
        rgba(1, 1, 1, 0) 80% /* fade to transparent */
    );
    z-index: 1;
}

/* Text Styles */
.slide-text {
    position: relative;
    bottom: 0px; /* Position text at the bottom */
    left: 20px; /* Position text to the left */
    color: rgb(4, 4, 10); /* Text color */
    font-size: 22px; /* Font size */
    font-weight: bold; /* Bold text */
    border-radius: 5px; /* Rounded corners */
    max-width: 90%; /* Prevent text from overflowing */
    z-index: 2; /* Ensure the text is above the overlay */
    transition: bottom 0.3s ease; /* Smooth transition for movement */
    cursor: pointer;
}
/* Change text color on slide hover */
.slide:hover .slide-text {
    color: #007bff; /* bright blue on hover */
    transition: color 0.3s ease; /* smooth transition */
}

/* Show hover text on slide hover */
.slide:hover .hover-text,
.slide:hover .read-more {
    opacity: 1; /* Show hover text on slide hover */
    line-height: 25px;
}
.read-more1 {
    position: relative;
    bottom: 170px; /* Position as needed */
    right: -280px; /* Adjust position to the right */
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 5px;
    opacity: 0;
    z-index: 3;
    font-weight: bold;
    line-height: 200px;
    font-size: 19px;
    opacity: 1; /* Show hover text on slide hover */
    cursor: pointer; /* Show pointer cursor over the image */
}
.read-more {
    position: relative;
    bottom: 168px; /* Position as needed */
    right: -230px; /* Adjust position to the right */
    color: #070706;
    padding: 5px 10px;
    border-radius: 5px;
    opacity: 0;
    z-index: 3;
    font-weight: bold;
    line-height: 200px;
    font-size: 17px;
    opacity: 1; /* Show hover text on slide hover */
}
.slide-arrow {
    position: absolute;
    right: 10px; /* Adjust position */
    bottom: -5px;
    font-size: 24px; /* Adjust size */
    color: #060605;
    opacity: 50;
    z-index: 3;
}
/* Button Styles */
button.prev,
button.next {
    position: absolute;
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Adjust for centering */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    color: #f7f7f7;
    border: none; /* No border */
    cursor: pointer; /* Pointer cursor */
    display: flex; /* Flex display for centering */
    justify-content: center; /* Center content */
    align-items: center; /* Center content */
    font-size: 36px; /* Font size for arrows */
    width: 60px; /* Width for buttons */
    height: 60px; /* Height for buttons */
    border-radius: 50%; /* Circular shape */
    z-index: 10; /* Above other elements */
}

button.prev {
    left: -20px; /* Position left */
}

button.next {
    right: -20px; /* Position right */
}
/* Slider for mobile*/
/* Slider for mobile*/
/* Slider for mobile*/
@media screen and (max-width: 430px) {
    .image-slider {
        position: relative;
        width: 300%;
        max-width: 1200px;
        margin: 20px auto;
        overflow: hidden; /* Hide any overflow from the slides */
        top: -490px; /* Move the slider up by 490px */
        right: -15px; /* Move h2 slightly to the right */
        z-index: 1; /* Ensure the slider is above the Vanta background */
        box-shadow: 10px 10px 10px rgba(69, 12, 227, 0.1); /* Add a slight shadow */
    }
    /* Button Styles */
    button.prev,
    button.next {
        position: absolute;
        top: 50%; /* Center vertically */
        transform: translateY(-50%); /* Adjust for centering */
        background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
        color: #f8bb06;
        border: none; /* No border */
        cursor: pointer; /* Pointer cursor */
        display: flex; /* Flex display for centering */
        justify-content: center; /* Center content */
        align-items: center; /* Center content */
        font-size: 36px; /* Font size for arrows */
        width: 60px; /* Width for buttons */
        height: 60px; /* Height for buttons */
        border-radius: 50%; /* Circular shape */
        z-index: 10; /* Above other elements */
    }

    button.prev {
        left: -20px; /* Position left */
    }

    button.next {
        right: 780px; /* Position right */
    }
}
