/*-------------------- Hero Header ------------------- */

.intro .row {
    /* Stack columns vertically on mobile */
    flex-direction: column;
}

.intro .col-md-7,
.intro .col-sm-5 {
    /* Make columns take up the full width on mobile */
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.intro .col-md-7 {
    /* Center-align the text content */
    text-align: center;
    /* Ensure text content appears below the image on mobile */
    order: 2;
}

.intro .col-sm-5 {
    /* Ensure image appears on top on mobile */
    order: 1;
    margin-bottom: 30px;
    /* Add space between image and text */
}

/* Override inline styles on the image for mobile */
.intro .img-responsive {
    width: 250px !important;
    /* A sensible size for mobile */
    max-width: 80%;
    /* Ensure it fits smaller screens */
    margin: 0 auto !important;
    /* Center the image, overriding inline margin */
}

.intro-img {
    margin-top: 60px;
    margin-right: 50px;
}

/* Style the list for better readability on mobile */
.intro .list {
    text-align: left;
    /* Keep list items left-aligned */
    display: inline-block;
    /* Center the list block itself */
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Stack buttons vertically on mobile */
.intro .btn {
    display: block;
    margin: 10px auto;
    margin-left: 20px;
    width: 50%;
    max-width: 280px;
}


/* --- Tablet and larger screens (768px and up) --- */
@media (min-width: 768px) {
    .intro .row {
        /* Revert to side-by-side layout */
        flex-direction: row;
    }

    .intro .col-md-7 {
        /* Restore original layout order */
        order: 1;
        /* Set column width (approx 7/12) */
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
        /* Align text to the left */
        text-align: left;
    }

    .intro .col-sm-5 {
        /* Restore original layout order */
        order: 2;
        /* Set column width (approx 5/12) */
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
        margin-bottom: 0;
        /* Remove bottom margin */
    }

    /* Restore button layout */
    .intro .btn {
        display: inline-block;
        width: auto;
        margin: 0 10px 10px 0;
    }

    /* Let the image fill its container's width, overriding inline styles */
    .intro .img-responsive {
        width: 100% !important;
        max-width: 100%;
        margin: 0 !important;
    }

    .intro .list {
        display: block;
        /* Revert list to default block display */
    }
}

/* --- Large desktop screens (992px and up) --- */
@media (min-width: 992px) {

    /* On larger screens, we can honor the original inline style's intent
       of a smaller, offset image for a more spacious look. */
    .intro .img-responsive {
        max-width: 300px !important;
        /* A fixed larger size */
        margin-left: auto !important;
        /* Push image to the right of its column */
        margin-right: 0 !important;
    }
}












/* ------------------------- SERVICES ----------------------------- */

@media (max-width: 800px) {
    .feature-icon {
        width: 80px;
        height: 80px;
        /* margin: 0 auto; */
    }

    .service-drip h3 {
        font-size: 20px;
    }

    .service-drip .feature-icon i {
        font-size: 40px;
    }

    .technical ul li a {
        font-size: 10px;
    }
}

/* --------------------- PARALLAX ------------------------------------- */

@media (max-width: 800px) {
    .parallax-content .container .row h4 {
        font-size: 20px;
    }

    .parallax-btn a {
        margin-right: 110px;
        margin-top: 20px;
    }
}


/* --------------- HOW IT WORKS & APPLICATIONS SECTION ------------------- */

@media (max-width: 800px) {

    #how-it-works {
        padding: 0;
    }

    /* --- "How It Works" Section --- */

    /* Stack the video and text content vertically */
    .intro-why .center-content {
        flex-direction: column;
    }

    /* Make the video container and text container full-width */
    .intro-why .col-md-6,
    .intro-why .col-md-9.why {
        max-width: 100%;
        width: 100%;
        /* Nullify the col-md-push-1 effect */
        margin-left: 0;
    }
    
    /* Ensure video is responsive and has space below it */
    .intro-why video {
        width: 100%;
        height: auto;
        margin-bottom: 30px;
    }

    /* Center the text content for better mobile readability */
    .intro-why .why {
        text-align: center;
    }

    /* Center the line image */
    .intro-why .why > img {
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Center the list block, but keep the list items left-aligned */
    .intro-why .list {
        display: inline-block;
        text-align: left;
        padding-left: 0;
    }


    /* --- "Applications" Section --- */

    /* This targets the .col-sm-6 behavior, creating a 2-column layout */
    .use-case-item {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 30px; /* Add vertical space between rows */
    }
}




/* -------------- Part 2: Applications & Testimonials --------------- */

/*
  Responsive Styles for the "Applications" Section
  Mobile-first approach
*/

/* --- General setup for the row --- */
#applications .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Helps align items when they don't fill a row */
}

/* --- Default styles (Mobile, < 768px) --- */
/*
  On mobile, .col-sm-6 and .col-md-3 stack by default in Bootstrap.
  We will replicate that behavior and add spacing.
*/
.use-case-item {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 40px; /* Add vertical space between stacked items */
}

.use-case-item i {
    font-size: 48px; /* Prominent icon size for mobile */
    margin-bottom: 15px;
    display: block; /* Ensure it's on its own line */
    color: #fec524; /* Example color, can be adjusted */
}

.use-case-item h4 {
    /* font-size: 1.25rem; */
    /* margin-bottom: 10px; */
    padding: 15px 0;
}

/* --- Tablet view (sm breakpoint, >= 768px) --- */
/* This creates the 2-column layout */
@media (min-width: 768px) {
    .use-case-item {
        flex: 0 0 50%; /* Two items per row */
        max-width: 50%;
        margin-bottom: 40px; /* Space between rows */
    }
}

/* --- Desktop view (md breakpoint, >= 992px) --- */
/* This creates the 4-column layout */
@media (min-width: 992px) {
    .use-case-item {
        flex: 0 0 25%; /* Four items per row */
        max-width: 25%;
        margin-bottom: 0; /* No bottom margin needed when all are in one row */
    }
}




/* ------------------ RESOURCES SECTION ------------------------- */

@media (max-width: 800px) {
    #resources h3 {
        font-size: 60px;
    }   
}


/* --------------- Step-by-Step Process Visual ----------------------- */

/*
  Responsive Styles for the Step-by-Step Process
  Mobile-first approach
*/

/* --- General Row & Step Setup --- */

/*
 * The parent .row has an inline style `margin-left: 180px;`.
 * This must be overridden for a responsive layout.
 */
.row.text-center {
    margin-left: 0 !important; /* Crucial override for mobile */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.process-step {
    padding: 15px;
    position: relative; /* Establishes a positioning context for the step number */
    padding-top: 35px; /* Add space at the top for the number circle */
}

/* --- Styling for visual elements within each step --- */
.process-step .step-number {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: #fec524; /* Example color */
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.process-step i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #333; /* Example color */
}

/* --- Mobile View (Default, < 768px) --- */
/* On mobile, each step takes the full width */
.process-step {
    flex: 0 0 90%;
    max-width: 90%; /* Use 90% instead of 100% for some side spacing */
    margin-bottom: 40px;
}

/* Make the last step have no margin at the bottom */
.process-step:last-child {
    margin-bottom: 0;
}


/* --- Tablet View (sm breakpoint, >= 768px) --- */
/* Creates a 2x2 grid */
@media (min-width: 768px) {
    .process-step {
        flex: 0 0 50%; /* Two items per row */
        max-width: 50%;
    }
}

/* --- Desktop View (md breakpoint, >= 992px) --- */
/* Creates a 4-column layout */
@media (min-width: 992px) {
    /* For larger screens, we might re-introduce the centering concept
       that the original inline style was attempting. A max-width on the
       row itself is a better approach. */
    .row.text-center {
        max-width: 1140px; /* Standard container width */
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .process-step {
        flex: 0 0 25%; /* Four items per row */
        max-width: 25%;
        margin-bottom: 0; /* No margin needed when all are in one row */
    }
}


/* --------------------- About US ------------------------- */

