/* Hero Carousel */
.hero-carousel {
    height: 80vh;
    overflow: hidden;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-position: center 25%;
    object-fit: cover;
    display: block;
}

.carousel-item:nth-child(3) .hero-image {
    object-position: center 100%;
}

.carousel-inner,
.carousel-item {
    height: 100%;
}

.carousel-item {
    background-size: cover;
    background-position: center;
}

.carousel-caption {
    bottom: 30%;
    background: transparent;
    border-radius: 15px;
    padding: 30px;
    padding-left: 50px;
    max-width: 700px;
    margin: 0;
    left: 15%;
    right: auto;
    backdrop-filter: none;
    animation: fadeInUp 1s ease;
    border-left: 5px solid #ffffff;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

/* Carousel Caption Responsive Adjustments */
@media (max-width: 1536px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 1366px) {
    .carousel-caption {
        bottom: 25%;
        left: 12%;
        max-width: 650px;
        padding: 25px;
        padding-left: 40px;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 1.15rem;
        margin-bottom: 25px;
    }
}

@media (max-width: 992px) {
    .carousel-caption {
        bottom: 20%;
        left: 10%;
        max-width: 80%;
        padding: 20px;
        padding-left: 30px;
        border-left-width: 4px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .carousel-caption {
        top: 50%;
        bottom: auto;
        left: 5%;
        right: 5%;
        transform: translateY(-50%);
        max-width: 90%;
        padding: 15px;
        padding-left: 20px;
        border-left-width: 3px;
        animation: none;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .btn-outline-custom {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .carousel-caption {
        top: 50%;
        bottom: auto;
        left: 3%;
        right: 3%;
        transform: translateY(-50%);
        max-width: 94%;
        padding: 12px;
        padding-left: 15px;
        border-left-width: 2px;
        animation: none;
    }

    .hero-title {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .btn-outline-custom {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
}

.btn-outline-custom {
    background: var(--dark-gray);
    border: 2px solid var(--dark-gray);
    color: var(--bg-white);
    padding: 10px 30px;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background: var(--dark-gray);
    color: var(--bg-white);
    transform: translateY(-3px);
}

/* Carousel arrows */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.5);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 70%;
}

/* End of Carousel */
/* Introduction Section */
.container-fluid.pt-5.pb-5.mt-0.mb-0 {
    position: relative;
    /* match the warm gradient background from the first design */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), #fcd299);
}

/* Inner content (generated by content($parent_content_info)) */
#machines .text-start {
    text-align: left;
}

#machines p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Image styling: rounded card look like the first image */
img.w-100.rounded-5 {
    border-radius: 1.5rem !important;
    object-fit: cover;
    max-height: 360px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

/* Bottom container with heading and paragraphs */
.container.mb-5 {
    margin-top: 3rem;
}

.container.mb-5 h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
}

.container.mb-5 p {
    font-size: 1rem;
    line-height: 1.7;
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
    .container-fluid.pt-5.pb-5.mt-0.mb-0 {
        /* soften the gradient on mobile so it doesn't feel too strong */
        background: linear-gradient(160deg, rgba(0, 0, 0, 0.03), #fcd299);
    }

    .container.mb-5 h1 {
        font-size: 1.6rem;
    }

    img.w-100.rounded-5 {
        max-height: 260px;
    }
}

/* End of Introduction Section */
/* --- Spacing utilities (similar to Bootstrap) --- */
.pt-5 {
    padding-top: 3rem;
}


.pb-5 {
    padding-bottom: 3rem;
}


.mb-5 {
    margin-bottom: 3rem;
}


/* --- Layout utilities --- */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}


.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}


[class^="col-"],
[class*=" col-"] {
    padding-left: 15px;
    padding-right: 15px;
}


.col-10,
.col-md-10 {
    flex: 0 0 83.3333%;
    max-width: 83.3333%;
}


.justify-content-center {
    justify-content: center;
}


.text-center {
    text-align: center;
}


/* --- Services section specific styles --- */
#services-section {
    background-color: #f8f9fa;
}


#services-section h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

/* End of Spacing and Layout Utilities */

/* Contact Us Section */
.animated-btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.animated-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}


.custom-btn {
    background: linear-gradient(90deg, #ff8800, #d33d10);
    border: none;
    border-radius: 50px;
    color: #fff;
    padding: 12px 30px;
}


.contact-hero {
    height: 600px;
    position: relative;
    overflow: hidden;
}


.contact-hero-bg {
    /* background-image removed — set by HTML to make image source explicit in markup */
    background: none;
    background-color: #0b1220;
    /* dark fallback while image loads */
    background-position: center center;
    background-size: cover;
    filter: blur(5px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scale(1.05);
    /* prevents edges from appearing after blur */
}


.contact-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}


.contact-hero-content {
    position: relative;
    z-index: 2;
}

/*End of contact us section*/