/* Hero Video */
.hero-video {
    position: relative;
    height: 95vh;
    min-height: 480px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: #0b1220;
    overflow: hidden;
}

.hero-video__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-video__content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hero-video__content .btn {
    pointer-events: auto;
}

.hero-video__stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    text-align: center;
    color: #ffffff;
    padding: 0 1.5rem;
    transform: translateY(60px);
    opacity: 0;
    transition: opacity 1.2s ease, transform 1.6s ease;
}

.hero-video__stack.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-video__title {
    margin: 0;
    font-size: clamp(2.4rem, 4vw + 0.8rem, 3.8rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.hero-video__subtitle {
    margin: 0;
    font-size: clamp(2rem, 3.5vw + 0.6rem, 3rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.hero-video__cta {
    margin-top: 0.25rem;
    padding: 14px 44px;
    font-size: 1.05rem;
    border-width: 2px;
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(11, 18, 32, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    border-radius: 999px;
    transition: var(--transition);
}

.hero-video__cta:hover {
    background: rgba(11, 18, 32, 0.6);
    color: #ffffff;
    transform: translateY(-3px);
}

.hero-video__scroll {
    position: absolute;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f7f9fc;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Short viewports: tighten hero and scroll button so it stays visible */
@media (max-height: 750px) {
    .hero-video {
        height: 70vh;
        min-height: 440px;
    }

    .hero-video__scroll {
        bottom: 18px;
        width: 54px;
        height: 54px;
    }
}

.hero-video__scroll:hover {
    transform: translate(-50%, -6px);
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.hero-video__scroll-icon {
    width: 12px;
    height: 12px;
    border-right: 3px solid #0b1220;
    border-bottom: 3px solid #0b1220;
    transform: rotate(45deg);
    display: block;
}

/* Hide scroll down button when not visible */
.hero-video__scroll:not(.is-visible) {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
}

/* Back-to-top arrow (appears after leaving the hero) */
.hero-video__back-to-top {
    position: fixed;
    bottom: 40px;
    right: 22px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #f7f9fc;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateX(120%);
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    z-index: 20;
}

.hero-video__back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.hero-video__back-to-top:hover {
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
    transform: translateX(0) translateY(-2px);
}

.hero-video__back-to-top-icon {
    width: 14px;
    height: 14px;
    border-right: 3px solid #0b1220;
    border-bottom: 3px solid #0b1220;
    transform: rotate(-135deg);
    display: block;
}

@media (max-width: 768px) {
    .hero-video__back-to-top {
        bottom: 28px;
        right: 16px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .hero-video {
        height: 70vh;
        min-height: 320px;
    }

    .hero-video__stack {
        gap: 0.9rem;
        padding-bottom: 100px;
    }

    .hero-video__title {
        font-size: clamp(1.8rem, 6vw + 0.4rem, 2.6rem);
    }

    .hero-video__subtitle {
        font-size: clamp(1.5rem, 5vw + 0.3rem, 2.2rem);
    }

    .hero-video__cta {
        padding: 12px 36px;
        font-size: 1rem;
    }

    .hero-video__scroll {
        width: 50px;
        height: 50px;
        bottom: auto;
        top: 65%;
    }
}

/* Hero Carousel */
.hero-carousel {
    height: 80vh;
    overflow: hidden;
    position: relative;
/* End of contact us section */

/* Video Embed Section */
}

.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;
  }
}

@media (max-width: 767.98px) {
    .services-section.container-fluid.pt-5.pb-5.mt-0.mb-0 {
        background: #e0e0e0 !important;
        background-image: none !important;
    }
}

/* 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 */
.showcase-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.showcase-section .section-title {
    position: relative;
    margin-bottom: 30px;
    text-align: center;
}

.showcase-section .section-title h2 {
    font-weight: 700;
    color: var(--dark-gray);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

.showcase-section .section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
    border-radius: 2px;
}

.showcase-section .section-subtitle {
    font-size: 1.1rem;
    color: var(--medium-gray);
    max-width: 800px;
    margin: 20px auto 0;
    line-height: 1.7;
    font-weight: 400;
}

/* Decorative Background Elements */
.showcase-section .bg-decoration {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.2;
    filter: blur(60px);
}

.showcase-section .decoration-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.12) 0%, transparent 70%);
    top: 5%;
    left: -250px;
    animation: float-slow 30s ease-in-out infinite;
}

.showcase-section .decoration-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(90, 108, 125, 0.08) 0%, transparent 70%);
    top: 40%;
    right: -200px;
    animation: float-slow 25s ease-in-out infinite reverse;
}

.showcase-section .decoration-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(11, 92, 146, 0.1) 0%, transparent 70%);
    bottom: 5%;
    left: 50%;
    animation: float-slow 35s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(20px, -20px); }
    66% { transform: translate(-15px, 15px); }
}

/* Showcase Grid */
.showcase-section .showcase-grid {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

/* Showcase Item */
.showcase-section .showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    transition: all 0.4s ease;
}

.showcase-section .showcase-item.reverse {
    grid-template-columns: 1fr 1fr;
}

.showcase-section .showcase-item.reverse .showcase-content {
    order: 2;
}

.showcase-section .showcase-item.reverse .showcase-image {
    order: 1;
}
.showcase-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.showcase-section .section-title {
    position: relative;
    margin-bottom: 30px;
    text-align: center;
}

.showcase-section .section-title h2 {
    font-weight: 700;
    color: var(--dark-gray);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

.showcase-section .section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
    border-radius: 2px;
}

.showcase-section .section-subtitle {
    font-size: 1.1rem;
    color: var(--medium-gray);
    max-width: 800px;
    margin: 20px auto 0;
    line-height: 1.7;
    font-weight: 400;
}

/* Decorative Background Elements */
.showcase-section .bg-decoration {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.2;
    filter: blur(60px);
}

.showcase-section .decoration-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.12) 0%, transparent 70%);
    top: 5%;
    left: -250px;
    animation: float-slow 30s ease-in-out infinite;
}

.showcase-section .decoration-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(90, 108, 125, 0.08) 0%, transparent 70%);
    top: 40%;
    right: -200px;
    animation: float-slow 25s ease-in-out infinite reverse;
}

.showcase-section .decoration-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(11, 92, 146, 0.1) 0%, transparent 70%);
    bottom: 5%;
    left: 50%;
    animation: float-slow 35s ease-in-out infinite;
}

@keyframes float-slow {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(20px, -20px);
    }

    66% {
        transform: translate(-15px, 15px);
    }
}

/* Showcase Grid */
.showcase-section .showcase-grid {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

/* Showcase Item */
.showcase-section .showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    transition: all 0.4s ease;
}

.showcase-section .showcase-item.reverse {
    grid-template-columns: 1fr 1fr;
}

.showcase-section .showcase-item.reverse .showcase-content {
    order: 2;
}

.showcase-section .showcase-item.reverse .showcase-image {
    order: 1;
}

/* Content Section */
.showcase-section .showcase-content {
    padding: 20px;
}

.showcase-section .content-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.08) 0%, rgba(11, 92, 146, 0.08) 100%);
    border: 1.5px solid rgba(52, 152, 219, 0.3);
    border-radius: 50px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.showcase-section .content-badge:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.12) 0%, rgba(11, 92, 146, 0.12) 100%);
    border-color: rgba(52, 152, 219, 0.5);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.showcase-section .content-badge i {
    font-size: 1rem;
}

.showcase-section .showcase-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 25px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.showcase-section .showcase-description {
    font-size: 1.05rem;
    color: var(--medium-gray);
    line-height: 1.8;
    margin-bottom: 30px;
    font-weight: 400;
}

/* Features List */
.showcase-section .showcase-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.showcase-section .showcase-features li {
    display: flex;
    align-items: center;
    padding: 14px 0;
    font-size: 1rem;
    color: var(--dark-gray);
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
    padding-left: 15px;
    margin-left: -15px;
}

.showcase-section .showcase-features li:hover {
    border-left-color: var(--primary-blue);
    transform: translateX(5px);
    color: var(--primary-blue);
}

.showcase-section .showcase-features li i {
    color: var(--primary-blue);
    margin-right: 12px;
    font-size: 1.1rem;
    min-width: 22px;
}

/* Image Section */
.showcase-section .showcase-image {
    position: relative;
    height: 500px;
}

.showcase-section .image-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(44, 62, 80, 0.12);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.showcase-section .image-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.showcase-section .image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.showcase-section .showcase-item:hover .image-frame img {
    transform: scale(1.05);
}

/* Image Glow Effect */
.showcase-section .image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: 70%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(52, 152, 219, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

@keyframes subtle-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.6;
    }
}

/* Floating Badge */
.showcase-section .floating-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
    z-index: 2;
    animation: gentle-float 4s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes gentle-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.showcase-section .floating-badge i {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .showcase-section .showcase-item {
        gap: 60px;
    }

    .showcase-section .showcase-title {
        font-size: 2rem;
    }

    .showcase-section .showcase-image {
        height: 450px;
    }
}

@media (max-width: 992px) {
    .showcase-section {
        padding: 80px 0;
    }

    .showcase-section .showcase-grid {
        gap: 70px;
    }

    .showcase-section .showcase-item,
    .showcase-section .showcase-item.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .showcase-section .showcase-item.reverse .showcase-content,
    .showcase-section .showcase-item.reverse .showcase-image {
        order: unset;
    }

    .showcase-section .showcase-image {
        height: 400px;
    }

    .showcase-section .showcase-title {
        font-size: 1.9rem;
    }
}

@media (max-width: 768px) {
    .showcase-section {
        padding: 60px 0;
    }

    .showcase-section .showcase-grid {
        gap: 60px;
    }

    .showcase-section .section-title h2 {
        font-size: 2rem;
    }

    .showcase-section .showcase-title {
        font-size: 1.7rem;
    }

    .showcase-section .showcase-image {
        height: 350px;
    }

    .showcase-section .content-badge {
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    .showcase-section .floating-badge {
        padding: 10px 16px;
        font-size: 0.9rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .showcase-section {
        padding: 50px 0;
    }

    .showcase-section .showcase-grid {
        gap: 50px;
    }

    .showcase-section .section-title h2 {
        font-size: 1.8rem;
    }

    .showcase-section .showcase-title {
        font-size: 1.5rem;
    }

    .showcase-section .showcase-image {
        height: 300px;
    }

    .showcase-section .image-frame {
        border-radius: 16px;
    }

    .showcase-section .floating-badge {
        padding: 8px 14px;
        font-size: 0.85rem;
        bottom: 15px;
        right: 15px;
    }
}

/* Alloys Link Section */
.alloys-link-section {
    padding: 100px 0;
    background: url('/static/images/alluminium_diecasting/all-background.webp') center center / cover no-repeat;
    position: relative;
    overflow: hidden;
}

.alloys-link-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.alloys-cta-container {
    display: grid;
    grid-template-columns: 1fr 0.5fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.alloys-cta-content {
    color: white;
    text-align: left;
}

.alloys-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: icon-float 3s ease-in-out infinite;
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.alloys-icon i {
    font-size: 2.5rem;
    color: rgb(2, 158, 248);
}

.alloys-cta-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.alloys-highlight {
    color: #000000;
    text-shadow: inherit;
}

.alloys-cta-description {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 35px;
    color: #ffffff;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
    max-width: 600px;
}

.alloys-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 40px;
    background: linear-gradient(90deg, #ff8800, #d33d10);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.alloys-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.alloys-cta-btn:hover::before {
    left: 100%;
}

.alloys-cta-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 136, 0, 0.4);
    color: #fff;
}

.alloys-cta-btn i {
    transition: transform 0.3s ease;
}

.alloys-cta-btn:hover i {
    transform: translateX(5px);
}

/* Visual Effects Area */
.alloys-visual {
    position: relative;
    height: 400px;
}

.alloys-gradient-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: blob-pulse 4s ease-in-out infinite;
}

@keyframes blob-pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.3;
    }
}

.alloys-particles {
    position: relative;
    width: 100%;
    height: 100%;
}

.alloys-particles .particle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgb(2, 158, 248);
    border-radius: 50%;
    opacity: 0;
    animation: particle-float 6s ease-in-out infinite;
}

.alloys-particles .particle:nth-child(1) {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.alloys-particles .particle:nth-child(2) {
    top: 60%;
    left: 20%;
    animation-delay: 1.2s;
}

.alloys-particles .particle:nth-child(3) {
    top: 40%;
    left: 70%;
    animation-delay: 2.4s;
}

.alloys-particles .particle:nth-child(4) {
    top: 80%;
    left: 50%;
    animation-delay: 3.6s;
}

.alloys-particles .particle:nth-child(5) {
    top: 30%;
    left: 90%;
    animation-delay: 4.8s;
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
        transform: translateY(0) scale(1);
    }
    90% {
        opacity: 0.8;
        transform: translateY(-100px) scale(1);
    }
    100% {
        transform: translateY(-100px) scale(0);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .alloys-link-section {
        padding: 80px 0;
    }

    .alloys-cta-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .alloys-visual {
        height: 300px;
    }

    .alloys-cta-title {
        font-size: 2.3rem;
    }

    .alloys-cta-description {
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    .alloys-link-section {
        padding: 60px 0;
    }

    .alloys-cta-title {
        font-size: 2rem;
    }

    .alloys-cta-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .alloys-cta-btn {
        padding: 15px 35px;
        font-size: 1rem;
    }

    .alloys-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 25px;
    }

    .alloys-icon i {
        font-size: 2rem;
    }

    .alloys-visual {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .alloys-link-section {
        padding: 50px 0;
    }

    .alloys-cta-title {
        font-size: 1.75rem;
    }

    .alloys-cta-description {
        font-size: 0.95rem;
    }

    .alloys-cta-btn {
        padding: 14px 30px;
        font-size: 0.95rem;
        gap: 12px;
    }

    .alloys-visual {
        height: 200px;
    }

    .alloys-gradient-blob {
        width: 200px;
        height: 200px;
    }
}

/* End of Alloys Link Section */

/* Refinement Section */
.refinement-section {
    background: linear-gradient(135deg, rgba(11, 92, 146, 0.04) 0%, #f8f9fa 45%, #ffffff 100%);
    padding: 120px 0;
}

.refinement-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--light-blue);
    margin-bottom: 12px;
}

.refinement-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-orange);
    box-shadow: 0 0 0 6px rgba(255, 140, 66, 0.18);
}

.refinement-visual {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 520px;
}

.refinement-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.refinement-floating {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    z-index: 2;
}

.refinement-pill {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-gray);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(44, 62, 80, 0.18);
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.refinement-tags .badge {
    font-weight: 600;
    border-color: rgba(44, 62, 80, 0.12);
}

@media (max-width: 992px) {
    .refinement-visual {
        min-height: 440px;
    }
}

@media (max-width: 768px) {
    .refinement-section {
        text-align: center;
    }

    .refinement-floating {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    .refinement-visual {
        min-height: 340px;
        border-radius: 18px;
    }

    .refinement-floating {
        bottom: 16px;
    }
}

/* End of Refinement Section */

/* 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*/

/* Degasification Section */
.degas-content {
    padding: 20px 0;
}

.degas-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(11, 92, 146, 0.1) 100%);
    border: 1.5px solid rgba(52, 152, 219, 0.3);
    border-radius: 50px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
}

.degas-badge i {
    font-size: 1rem;
}

.degas-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 20px;
    line-height: 1.3;
}

.degas-title .highlight {
    color: var(--primary-blue);
}

.degas-description {
    font-size: 1.05rem;
    color: var(--medium-gray);
    line-height: 1.8;
    margin-bottom: 25px;
}

.degas-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.degas-features li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    font-size: 1rem;
    color: var(--dark-gray);
    font-weight: 500;
    border-left: 3px solid transparent;
    padding-left: 12px;
    transition: all 0.3s ease;
}

.degas-features li:hover {
    border-left-color: var(--primary-blue);
    transform: translateX(5px);
}

.degas-features li i {
    color: var(--primary-blue);
    margin-right: 12px;
    font-size: 1.1rem;
}

@media (max-width: 992px) {
    .degas-title {
        font-size: 1.8rem;
    }
    
    .degas-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .degas-content {
        text-align: center;
    }
    
    .degas-badge {
        margin-bottom: 20px;
    }
    
    .degas-title {
        font-size: 1.6rem;
    }
    
    .degas-features li {
        justify-content: center;
        border-left: none;
        padding-left: 0;
    }
    
    .degas-features li:hover {
        transform: none;
    }
}

/* End of Degasification Section */

/* Section Heading Styling */
.section-heading {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
    border-radius: 2px;
}

.section-heading--dark {
    color: var(--dark-gray);
}

.section-heading--dark::after {
    left: 0;
    transform: none;
}

.section-heading--no-underline::after {
    display: none;
}

@media (max-width: 992px) {
    .section-heading {
        font-size: 2.6rem;
    }
}

@media (max-width: 768px) {
    .section-heading {
        font-size: 2.2rem;
    }
    
    .section-heading::after {
        width: 60px;
        height: 3px;
    }
}

@media (max-width: 576px) {
    .section-heading {
        font-size: 1.8rem;
    }
}

/* End of Section Heading Styling */

/* Hero Title Styling */
.hero-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: inherit;
    gap: 15px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    width: fit-content;
    animation: fadeInDown 0.6s ease-out;
}

.hero-badge i {
    font-size: 1rem;
}

.hero-badge--light {
    background: rgba(52, 152, 219, 0.1);
    border: 1.5px solid rgba(52, 152, 219, 0.3);
    color: var(--primary-blue);
}

.hero-main-title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.hero-main-title--dark {
    color: var(--dark-gray);
    text-shadow: none;
}

.title-highlight {
    position: relative;
    color: #fff;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.8), rgba(11, 92, 146, 0.9));
    padding: 0 15px;
    border-radius: 8px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.title-highlight--bold {
    color: var(--primary-blue);
    font-weight: 900;
    position: relative;
}

.title-highlight--bold::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 992px) {
    .hero-main-title {
        font-size: 2.4rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
}

@media (max-width: 768px) {
    .hero-title-wrapper {
        align-items: center !important;
    }
    
    .hero-main-title {
        font-size: 1.8rem;
    }
    
    .title-highlight {
        padding: 0 10px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-main-title {
        font-size: 1.5rem;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 5px 12px;
    }
}

/* End of Hero Title Styling */

/* Video Embed Section */
.video-embed-section {
    padding: 90px 0;
    background: linear-gradient(180deg, #eef3f7 0%, var(--bg-light) 50%, #eef3f7 100%);
}

.video-embed-header {
    text-align: center;
    margin: 0 auto 40px;
    max-width: 960px;
}

.video-embed-header h2 {
    font-size: 2.4rem;
    color: var(--light-blue);
    margin-bottom: 12px;
    font-weight: 700;
}

.video-embed-header p {
    font-size: 1.05rem;
    color: var(--dark-gray);
    line-height: 1.7;
}

.video-embed-shell {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 24px;
}

.video-embed-frame {
    width: min(96vw, 1280px);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
    background: #e6edf2;
    border: 1px solid rgba(44, 62, 80, 0.06);
}

.video-embed-frame .responsive-embed {
    position: relative;
    padding-top: 56.25%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.06), rgba(11, 92, 146, 0.04));
}

.video-embed-frame .responsive-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .video-embed-section {
        padding: 70px 0;
    }

    .video-embed-header {
        margin-bottom: 28px;
        padding: 0 12px;
    }

    .video-embed-header h2 {
        font-size: 2rem;
    }

    .video-embed-header p {
        font-size: 1rem;
    }

    .video-embed-frame {
        border-radius: 14px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    }
}

/*Start of Machines and QA Section */
/* Services Section - matches actual HTML structure */

/* Services Section Container */
.services-section {
    background-color: #e0e0e0;
}

/* Ensure the machines/QA band uses a neutral gray instead of the warm gradient */
.services-section.container-fluid {
    background: #e0e0e0;
    background-image: none;
}

/* Override the shared spacing band gradient for this section only */
.services-section.container-fluid.pt-5.pb-5.mt-0.mb-0 {
    background: #e0e0e0 !important;
    background-image: none !important;
}

.services-section h1 {
    color: black;
}

.services-section>.container>.row>p {
    color: black;
}

/* Section heading and paragraph */
#services h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: black;
    margin-bottom: 20px;
}

#services~.container p,
.container-fluid p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: black;
    margin-bottom: 50px;
}

/* Service Cards */
.service-card {
    height: 550px;
    background-color: white;
    border-radius: 10px;
}

#services .card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    height: 550px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: none;
    animation: fadeInUp 0.6s ease;
}

#services .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Card image container */
.card-image-container {
    width: 100%;
    height: 75%;
    overflow: hidden;
    background-color: white;
    border-radius: 10px 10px 0 0;
}

#services .card>div:first-child {
    position: relative;
}

#services .card>div:first-child a {
    display: block;
    width: 100%;
    height: 100%;
}

#services .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    border: 0;
}

#services .card:hover img {
    transform: scale(1.1);
}

/* Card content */
.card-content {
    width: 100%;
    height: 25%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    padding-top: 15px;
}

#services .card .row {
    background: white;
}

#services .card h4 {
    color: black;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    width: 100%;
}

#services .card p {
    color: black;
    width: 100%;
}

/* Card link styling - make entire card clickable */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Service Card Button - targeting the actual button classes */
#services .card .btn-warning {
    background: var(--primary-orange);
    color: var(--bg-white);
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
    padding: 12px 50px !important;
    width: 100%;
    display: inline-block;
    pointer-events: none;
}

.card-link:hover .btn-warning {
    background: var(--dark-orange);
    color: var(--bg-white);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.5);
}

/* Responsive Design */
@media (max-width: 1200px) {
    #services .card {
        height: 480px;
    }

    #services .card h4 {
        font-size: 1.15rem;
    }
}

@media (max-width: 992px) {
    #services h1 {
        font-size: 2rem;
    }

    .container-fluid p {
        font-size: 1rem;
    }

    #services .card {
        height: 450px;
    }
}

@media (max-width: 768px) {
    #services h1 {
        font-size: 1.8rem;
    }

    #services .card {
        height: 400px;
        margin: 0 auto 20px !important;
    }

    #services .card h4 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    #services .card .btn-warning {
        padding: 8px 25px !important;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    #services h1 {
        font-size: 1.5rem;
    }

    .container-fluid p {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    #services .card {
        height: 380px;
    }

    #services .card h4 {
        font-size: 1rem;
    }

    #services .card .btn-warning {
        padding: 7px 20px !important;
        font-size: 0.85rem;
    }
}

/*End of Machines and QA Section*/

/* ================================================================================
   SERVICES HERO SECTIONS (extracted from home.css)
   Full-viewport hero blocks with text overlaying a side image.
================================================================================ */

/* Animation keyframes */
@keyframes aboutFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aboutFadeFromRight {
    from {
        opacity: 0;
        transform: translateX(18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes aboutFadeFromLeft {
    from {
        opacity: 0;
        transform: translateX(-18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* -----------------------------------------------------------------------------
   Base Layout: Text LEFT, Image RIGHT
----------------------------------------------------------------------------- */
.services-hero {
    --services-shift: clamp(-18%, -11vw, -7%);
    --services-hero-image: url('/static/images/home/carousel/home9.webp');

    position: relative;
    padding-top: 5%;
    padding-bottom: 8%;
    min-height: clamp(520px, 95vh, 940px);
    scroll-margin-top: 80px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background:
        linear-gradient(90deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 1) 24%,
            rgba(255, 255, 255, 0.9) 36%,
            rgba(255, 255, 255, 0.55) 48%,
            rgba(255, 255, 255, 0.2) 60%,
            rgba(255, 255, 255, 0) 72%),
        var(--services-hero-image);
    background-size: auto 100%, 95% auto;
    background-position: left center, right center;
    background-repeat: no-repeat, no-repeat;
}

.services-hero .services-lead {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(0.5rem, 5vw, 5rem);
    padding-right: clamp(0.5rem, 3vw, 2rem);
    position: relative;
    left: var(--services-shift);
}

.services-hero h1,
.services-hero p {
    text-align: left;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 12%;
    background:
        radial-gradient(ellipse 120% 80% at 20% 15%, rgba(44, 62, 80, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 100% 70% at 80% 20%, rgba(52, 73, 94, 0.3) 0%, transparent 55%),
        radial-gradient(ellipse 150% 90% at 50% 25%, rgba(74, 95, 122, 0.2) 0%, transparent 60%);
    filter: blur(40px);
    pointer-events: none;
}

.services-hero > * {
    position: relative;
    z-index: 1;
}

/* Typography */
.services-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

.services-hero h1.section-heading {
    font-size: 3rem;
    color: black;
}

.services-hero h1 .highlight {
    color: #ff8c42;
    font-weight: 800;
}

.services-hero p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 50px;
}

/* -----------------------------------------------------------------------------
   Mirrored Layout: Text RIGHT, Image LEFT
----------------------------------------------------------------------------- */
.services-hero--mirror {
    --services-shift: clamp(7%, 11vw, 18%);
    min-height: clamp(520px, 95vh, 1100px);

    background:
        linear-gradient(270deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 1) 24%,
            rgba(255, 255, 255, 0.9) 36%,
            rgba(255, 255, 255, 0.55) 48%,
            rgba(255, 255, 255, 0.2) 60%,
            rgba(255, 255, 255, 0) 72%),
        var(--services-hero-image);
    background-size: auto 100%, 95% auto;
    background-position: right center, left center;
    background-repeat: no-repeat, no-repeat;
}

.services-hero--mirror .services-lead,
.services-hero--mirror .services-lead h1,
.services-hero--mirror .services-lead p {
    text-align: right;
}

.services-hero--mirror .services-lead {
    padding-left: clamp(0.5rem, 3vw, 2rem);
    padding-right: clamp(0.5rem, 5vw, 5rem);
    left: var(--services-shift);
}

.services-hero--mirror::before {
    background:
        radial-gradient(ellipse 120% 80% at 80% 15%, rgba(44, 62, 80, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 100% 70% at 20% 20%, rgba(52, 73, 94, 0.3) 0%, transparent 55%),
        radial-gradient(ellipse 150% 90% at 50% 25%, rgba(74, 95, 122, 0.2) 0%, transparent 60%);
}

/* -----------------------------------------------------------------------------
   Image Variants
----------------------------------------------------------------------------- */

/* Aluminium Die-Casting */
.services-hero--diecasting {
    --services-hero-image: url('/static/images/diecasting/HE1A0913.webp');
    --services-shift: clamp(-24%, -16vw, -11%);
    background:
        linear-gradient(90deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 1) 26%,
            rgba(255, 255, 255, 0.9) 34%,
            rgba(255, 255, 255, 0.55) 46%,
            rgba(255, 255, 255, 0.25) 58%,
            rgba(255, 255, 255, 0.08) 68%,
            rgba(255, 255, 255, 0) 76%),
        var(--services-hero-image);
    background-size: auto 100%, 80% auto;
    background-position: left center, 104% center;
    background-repeat: no-repeat, no-repeat;
}

/* Powder Coating */
.services-hero--powder {
    --services-hero-image: url('/static/images/diecasting/IMG_2250-Pano.webp');
    --services-shift: clamp(-24%, -16vw, -11%);
    background:
        linear-gradient(90deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 1) 26%,
            rgba(255, 255, 255, 0.9) 34%,
            rgba(255, 255, 255, 0.55) 46%,
            rgba(255, 255, 255, 0.25) 58%,
            rgba(255, 255, 255, 0.08) 68%,
            rgba(255, 255, 255, 0) 76%),
        var(--services-hero-image);
    background-size: auto 100%, 80% auto;
    background-position: left center, 104% center;
    background-repeat: no-repeat, no-repeat;
}

/* Cleaning / Runner Removal / Last section */
.services-hero--cleaning {
    --services-hero-image: url('/static/images/alluminium_diecasting/aloy_pic2.webp');
    --services-shift: clamp(-24%, -16vw, -11%);
    background:
        linear-gradient(90deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 1) 26%,
            rgba(255, 255, 255, 0.9) 34%,
            rgba(255, 255, 255, 0.55) 46%,
            rgba(255, 255, 255, 0.25) 58%,
            rgba(255, 255, 255, 0.08) 68%,
            rgba(255, 255, 255, 0) 76%),
        var(--services-hero-image);
    background-size: auto 100%, 80% auto;
    background-position: left center, 104% center;
    background-repeat: no-repeat, no-repeat;
}

/* -----------------------------------------------------------------------------
   Combination Override: Mirror + Diecasting
----------------------------------------------------------------------------- */
.services-hero--mirror.services-hero--diecasting {
    --services-shift: clamp(14%, 20vw, 28%);
    background:
        linear-gradient(270deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 1) 26%,
            rgba(255, 255, 255, 0.9) 34%,
            rgba(255, 255, 255, 0.55) 46%,
            rgba(255, 255, 255, 0.25) 58%,
            rgba(255, 255, 255, 0.08) 68%,
            rgba(255, 255, 255, 0) 76%),
        var(--services-hero-image);
    background-size: auto 100%, 80% auto;
    background-position: right center, -4% center;
    background-repeat: no-repeat, no-repeat;
}

/* -----------------------------------------------------------------------------
   Scroll Animations
----------------------------------------------------------------------------- */
.services-animate .services-hero .services-lead h1,
.services-animate .services-hero .services-lead p {
    opacity: 0;
    transform: translateY(18px);
    will-change: transform, opacity;
}

.services-animate .services-hero.is-visible .services-lead h1,
.services-animate .services-hero.is-visible .services-lead p {
    animation: aboutFadeUp 1.3s ease forwards;
    animation-delay: 0.1s;
}

.services-animate .services-hero.is-visible .services-lead p {
    animation-delay: 0.24s;
}

.services-animate .services-hero--mirror .services-lead h1,
.services-animate .services-hero--mirror .services-lead p {
    transform: translateX(18px);
}

.services-animate .services-hero--mirror.is-visible .services-lead h1,
.services-animate .services-hero--mirror.is-visible .services-lead p {
    animation: aboutFadeFromRight 1.3s ease forwards;
    animation-delay: 0.12s;
}

.services-animate .services-hero--mirror.is-visible .services-lead p {
    animation-delay: 0.28s;
}

/* -----------------------------------------------------------------------------
   Mobile Responsive (768px and below)
----------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .services-hero,
    .services-hero--mirror {
        --services-shift: 0;
        padding-top: 8%;
        padding-bottom: 12%;
        min-height: auto;

        background:
            linear-gradient(135deg,
                rgba(255, 255, 255, 0.97) 0%,
                rgba(255, 255, 255, 0.94) 28%,
                rgba(255, 255, 255, 0.7) 65%,
                rgba(255, 255, 255, 0.35) 100%),
            var(--services-hero-image);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .services-hero .services-lead,
    .services-hero--mirror .services-lead {
        padding-left: 1rem;
        padding-right: 1rem;
        left: 0;
    }

    .services-hero--mirror .services-lead h1,
    .services-hero--mirror .services-lead p {
        text-align: left;
    }
}

/*========================= End of Services Hero ============================*/
