/* 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: 90vh;
        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;
    /* Adjust this to move the button left/right */
    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);
    /* Points the chevron up */
    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: 95vh;
        min-height: 320px;
    }

    .hero-video__stack {
        gap: 0.9rem;
        padding-bottom: 100px;
        /* Make room for scroll button below text */
    }

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

.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 */
#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.mb-5 h1 {
        font-size: 1.6rem;
    }

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

/* End of Introduction Section */

/* Scoped styles for powder coating content only */
.powder-coating-content {
    --pc-primary-blue: #0066cc;
    --pc-secondary-blue: #004499;
    --pc-accent-orange: #ff6b35;
    --pc-light-gray: #f8f9fa;
    --pc-medium-gray: #6c757d;
    --pc-dark-gray: #343a40;
    --pc-white: #ffffff;
    --pc-gradient-primary: linear-gradient(135deg, #0066cc, #004499);
    --pc-gradient-accent: linear-gradient(135deg, #ff6b35, #ff8c42);
    --pc-shadow-light: 0 4px 20px rgba(0, 102, 204, 0.1);
    --pc-shadow-medium: 0 8px 40px rgba(0, 102, 204, 0.15);

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--pc-dark-gray);
    position: relative;
}

/* Animated Background */
.powder-coating-content .animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(-45deg, #f8f9fa, #e9ecef, #dee2e6, #f8f9fa);
    background-size: 400% 400%;
    animation: pc-gradientShift 15s ease infinite;
}

@keyframes pc-gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Main Content */
.powder-coating-content .main-content {
    position: relative;
    z-index: 1;
}

/* Company Info Section - Minimalist Design */
.powder-coating-content .company-info {
    background: var(--pc-white);
    padding: 5rem 0;
    line-height: 1.8;
}

/* Introduction Section Title */
.powder-coating-content .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.powder-coating-content .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;
}

.powder-coating-content .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;
}

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

/* New Investment */
.powder-coating-content .new-investment {
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    padding: 3rem 0;
    margin-bottom: 4rem;
}

.powder-coating-content .investment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.powder-coating-content .investment-header h2 {
    font-size: 2rem;
    font-weight: 400;
    color: var(--pc-primary-blue);
    margin: 0;
}

.powder-coating-content .launch-date {
    background: var(--pc-accent-orange);
    color: var(--pc-white);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.powder-coating-content .investment-content p {
    font-size: 1.1rem;
    color: var(--pc-dark-gray);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.powder-coating-content .equipment-list {
    display: grid;
    gap: 1rem;
}

.powder-coating-content .equipment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--pc-light-gray);
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.powder-coating-content .equipment-item:hover {
    background: #e9ecef;
}

.powder-coating-content .equipment-brand {
    font-weight: 600;
    color: var(--pc-primary-blue);
    font-size: 1.1rem;
}

.powder-coating-content .equipment-desc {
    color: var(--pc-medium-gray);
    font-size: 0.95rem;
    text-align: right;
    flex: 1;
    margin-left: 2rem;
}

/* Equipment Showcase */
.powder-coating-content .equipment-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.powder-coating-content .equipment-photo-card {
    background: var(--pc-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--pc-shadow-light);
    transition: all 0.3s ease;
}

.powder-coating-content .equipment-photo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--pc-shadow-medium);
}

.powder-coating-content .equipment-photo-wrapper {
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: var(--pc-light-gray);
}

.powder-coating-content .equipment-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.powder-coating-content .equipment-photo-card:hover .equipment-photo {
    transform: scale(1.05);
}

.powder-coating-content .equipment-photo-label {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.powder-coating-content .equipment-photo-brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--pc-primary-blue);
}

.powder-coating-content .equipment-photo-desc {
    font-size: 0.95rem;
    color: var(--pc-medium-gray);
}


/* Process Explanation */
.powder-coating-content .process-explanation h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--pc-primary-blue);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--pc-accent-orange);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.powder-coating-content .process-explanation p {
    font-size: 1.1rem;
    color: var(--pc-dark-gray);
    line-height: 1.7;
    margin: 0;
}

/* Quality Promise */
.powder-coating-content .quality-promise {
    margin-bottom: 4rem;
}

.powder-coating-content .quality-promise h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--pc-primary-blue);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--pc-accent-orange);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.powder-coating-content .quality-promise p {
    font-size: 1.1rem;
    color: var(--pc-dark-gray);
    line-height: 1.7;
}

/* Mission Statement */
.powder-coating-content .mission-statement {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.powder-coating-content .mission-statement p {
    font-size: 1.2rem;
    color: var(--pc-dark-gray);
    font-style: italic;
    padding: 2rem;
    background: linear-gradient(135deg, var(--pc-light-gray), var(--pc-white));
    border-radius: 15px;
    margin: 0;
}

/* Process Steps */
.powder-coating-content .process-section {
    padding: 4rem 0;
    background: var(--pc-light-gray);
}

.powder-coating-content .process-header {
    text-align: center;
    margin-bottom: 4rem;
}

.powder-coating-content .process-header h2 {
    font-size: 2.5rem;
    color: var(--pc-primary-blue);
    margin-bottom: 1rem;
}

.powder-coating-content .steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.powder-coating-content .step-card {
    background: var(--pc-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--pc-shadow-light);
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
    animation: pc-fadeInUp 0.8s ease-out both;
}

.powder-coating-content .step-card:nth-child(1) {
    animation-delay: 0.2s;
}

.powder-coating-content .step-card:nth-child(2) {
    animation-delay: 0.4s;
}

.powder-coating-content .step-card:nth-child(3) {
    animation-delay: 0.6s;
}

.powder-coating-content .step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--pc-shadow-medium);
}

.powder-coating-content .step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: var(--pc-gradient-primary);
    color: var(--pc-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    animation: pc-pulse 2s infinite;
}

@keyframes pc-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.powder-coating-content .step-card h3 {
    color: var(--pc-primary-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Detailed Process */
.powder-coating-content .detailed-process {
    padding: 4rem 0;
    background: var(--pc-white);
}

.powder-coating-content .process-stage {
    margin-bottom: 4rem;
    padding: 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--pc-light-gray), var(--pc-white));
    box-shadow: var(--pc-shadow-light);
}

.powder-coating-content .stage-header {
    background: var(--pc-gradient-primary);
    color: var(--pc-white);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.powder-coating-content .stage-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: pc-shimmer 3s infinite;
}

@keyframes pc-shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.powder-coating-content .stage-header h3 {
    font-size: 1.8rem;
    margin: 0;
    position: relative;
    z-index: 2;
}

.powder-coating-content .substep {
    background: var(--pc-white);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--pc-accent-orange);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.powder-coating-content .substep:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.powder-coating-content .substep h4 {
    color: var(--pc-primary-blue);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* Equipment Section */
.powder-coating-content .equipment-section {
    padding: 4rem 0;
    background: var(--pc-dark-gray);
    color: var(--pc-white);
}

.powder-coating-content .equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.powder-coating-content .equipment-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.powder-coating-content .equipment-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.powder-coating-content .equipment-icon {
    width: 60px;
    height: 60px;
    background: var(--pc-gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Quality Control */
.powder-coating-content .quality-section {
    padding: 4rem 0;
    background: var(--pc-light-gray);
}

.powder-coating-content .quality-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.powder-coating-content .quality-card {
    background: var(--pc-white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--pc-shadow-light);
    transition: all 0.3s ease;
}

.powder-coating-content .quality-card:hover {
    transform: scale(1.05);
}

.powder-coating-content .quality-icon {
    width: 80px;
    height: 80px;
    background: var(--pc-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--pc-white);
}

/* Scroll animations */
.powder-coating-content .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.powder-coating-content .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pc-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .powder-coating-content .investment-header {
        flex-direction: column;
        text-align: center;
    }

    .powder-coating-content .investment-header h2 {
        font-size: 1.6rem;
    }

    .powder-coating-content .equipment-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .powder-coating-content .stat-number {
        font-size: 2.5rem;
    }

    .powder-coating-content .step-card {
        padding: 1.5rem;
    }

    .powder-coating-content .steps-container {
        grid-template-columns: 1fr;
    }

    .powder-coating-content .equipment-grid {
        grid-template-columns: 1fr;
    }

    .powder-coating-content .quality-features {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .powder-coating-content .equipment-showcase {
        grid-template-columns: 1fr;
    }

    .powder-coating-content .equipment-photo-wrapper {
        height: 320px;
    }
}

@media (max-width: 576px) {
    .powder-coating-content .company-overview .row {
        gap: 1rem;
    }

    .powder-coating-content .stat-card {
        padding: 1.5rem 0.5rem;
    }
}



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

/* ==============================================
   PROCESS SHOWCASE SECTION
   ============================================== */

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

.machine-gallery {
    padding: 3rem 0;
    position: relative;
}

.machine-gallery__shell {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 3.5rem;
}

.machine-gallery__viewport {
    overflow: hidden;
    width: 100%;
    padding: 0.5rem 0;
}

.machine-grid {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.45s ease;
    will-change: transform;
}

.machine-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    transition: background 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
    z-index: 2;
}

.machine-gallery__nav:hover {
    background: rgba(0, 0, 0, 0.75);
    transform: translateY(-50%) scale(1.05);
}

.machine-gallery__nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.machine-gallery__nav--prev {
    left: 0.05rem;
}

.machine-gallery__nav--next {
    right: 0.05rem;
}

@media (max-width: 768px) {
    .machine-gallery__nav {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    .machine-gallery__nav--prev {
        left: 0.35rem;
    }

    .machine-gallery__nav--next {
        right: 0.35rem;
    }

    .machine-gallery__shell {
        padding: 0 2.5rem;
    }
}

.machine-item {
    flex: 0 0 25%;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    /* opacity: 0; */
    transform: translateY(20px);
}

.machine-item.animate {
    animation: fadeInUp 0.6s forwards;
}

@media (max-width: 1200px) {
    .machine-item {
        flex-basis: 33.3333%;
    }
}

@media (max-width: 992px) {
    .machine-item {
        flex-basis: 50%;
    }
}

@media (max-width: 576px) {
    .machine-item {
        flex-basis: 100%;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.machine-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.machine-image-container {
    position: relative;
    overflow: hidden;
    height: 100%;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.machine-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.machine-item:hover .machine-image {
    transform: scale(1.05);
}

.machine-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0; 
     transition: opacity 0.4s ease;
}

.machine-item:hover .machine-overlay {
    opacity: 1;
}

.machine-content {
    padding: 20px;
    background-color: var(--bs-body-bg);
}

.machine-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--bs-primary);
    position: relative;
    padding-bottom: 10px;
}

.machine-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--bs-primary);
    transition: width 0.3s ease;
}

.machine-item:hover .machine-title::after {
    width: 80px;
}

.machine-description {
    font-size: 0.95rem;
    color: var(--bs-body-color);
    margin-bottom: 0.5rem;
}

.machine-specs {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--bs-border-color);
    font-size: 0.9rem;
}

.machine-specs span {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 5px;
}

.machine-specs i {
    color: var(--bs-primary);
    margin-right: 5px;
}

.machine-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--bs-primary);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
    transform: translateY(-20px);
     opacity: 0; 
    transition: all 0.4s ease;
}

.machine-item:hover .machine-badge {
    transform: translateY(0);
    opacity: 1;
}

/* End Machine Gallery Styles */

/* Services Section - matches actual HTML structure */

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

.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 Service Section*/

/* ================================================================================
   NEW SERVICES HERO SECTIONS
   Full-viewport hero blocks with text overlaying a side image.
   
   LAYOUTS:
   - .services-hero           → Text LEFT, image RIGHT (default)
   - .services-hero--mirror   → Text RIGHT, image LEFT (flipped)
   - .services-hero--feature  → Narrow text column, larger image
   
   IMAGE VARIANTS (add alongside layout class):
   - .services-hero--diecasting  → Aluminium die-casting image
   - .services-hero--powder      → Powder coating image, text shifted further left
   - .services-hero--machining   → Machining image
   - .services-hero--tools       → Tools/instruments image, text shifted right
   - .services-hero--friction    → Friction welding image
   
   KEY CSS VARIABLES:
   - --services-shift       → Horizontal offset for text block (negative = left, positive = right)
   - --services-hero-image  → Background image URL
   
   GRADIENT STOPS (controls white overlay fade):
   - 0%-24%   → Solid white (text area)
   - 36%-48%  → Transition zone (smooth fade)
   - 60%-72%  → Near-transparent to transparent (image visible)
   
   To show MORE image: reduce the % values in gradient stops
   To shift text LEFT: decrease --services-shift (more negative)
   To shift text RIGHT: increase --services-shift (more positive)
================================================================================ */

/* -----------------------------------------------------------------------------
   Base Layout: Text LEFT, Image RIGHT
----------------------------------------------------------------------------- */
.services-hero {
    /* Text horizontal offset: negative = push left */
    --services-shift: clamp(-18%, -11vw, -7%);
    /* Default background image */
    --services-hero-image: url('/static/images/home/services/possibly.webp');

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

    /* Center content vertically */
    display: flex;
    flex-direction: column;
    justify-content: center;

    /* White-to-transparent gradient over the image */
    background:
        linear-gradient(90deg,
            rgba(255, 255, 255, 1) 0%,      /* Solid white start */
            rgba(255, 255, 255, 1) 24%,     /* Hold solid white */
            rgba(255, 255, 255, 0.9) 36%,   /* Begin fade */
            rgba(255, 255, 255, 0.55) 48%,  /* Mid fade */
            rgba(255, 255, 255, 0.2) 60%,   /* Almost transparent */
            rgba(255, 255, 255, 0) 72%),    /* Fully transparent */
        var(--services-hero-image);
    /* Image sized to ~95% width, auto height keeps aspect ratio */
    background-size: auto 100%, 95% auto;
    background-position: left center, right center;
    background-repeat: no-repeat, no-repeat;
}

/* Text container positioning */
.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);
}

/* Default text alignment */
.services-hero h1,
.services-hero p {
    text-align: left;
}

/* Decorative glow overlay at top */
.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;
}

/* Ensure content sits above glow */
.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 .highlight {
    color: #ff8c42;
    font-weight: 800;
}

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

/* Machining hero title styling */
.machining-hero-title {
    margin-bottom: 32px;
}

.machining-hero-title .machining-headline {
    display: block;
    font-size: clamp(2.6rem, 4.4vw, 3.2rem);
    font-weight: 800;
    color: #ff7a1a;
    margin-bottom: 25px;
}

.machining-hero-title .machining-subtitle {
    display: block;
    font-size: clamp(1.4rem, 2.8vw, 1.9rem);
    font-weight: 700;
    color: #333;
}

/* -----------------------------------------------------------------------------
   Mirrored Layout: Text RIGHT, Image LEFT
   Use: .services-hero.services-hero--mirror
----------------------------------------------------------------------------- */
.services-hero--mirror {
    /* Text offset: positive = push right */
    --services-shift: clamp(7%, 11vw, 18%);

    min-height: clamp(520px, 95vh, 1100px);

    /* Gradient direction flipped (270deg = right-to-left) */
    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);
    /* Image sized to ~95% width, auto height keeps aspect ratio */
    background-size: auto 100%, 95% auto;
    background-position: right center, left center; /* Image anchored left, vertically centered */
    background-repeat: no-repeat, no-repeat;
}

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

/* Keep the milling headline on a single line only on very wide viewports; allow wrap on laptops */
@media (min-width: 1400px) {
    #services-hero-1 h1 {
        white-space: nowrap;
    }
}

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

/* Mirror glow positions */
.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%);
}

/* -----------------------------------------------------------------------------
   Feature Layout: Narrow text column with larger image
   Use: .services-hero.services-hero--feature
----------------------------------------------------------------------------- */
.services-hero--feature {
    --services-shift: clamp(10%, 16vw, 24%);

    padding-top: 5%;
    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);
    /* Image sized to 100% width, auto height keeps aspect ratio */
    background-size: auto 100%, 100% auto;
    background-position: left center, right center;
    background-repeat: no-repeat, no-repeat;
}

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

/* -----------------------------------------------------------------------------
   Image Variants
   Add these classes to set the background image and optional text shift
----------------------------------------------------------------------------- */

/* Intro hero (services landing) */
.services-hero--intro {
    --services-hero-image: url('/static/images/machining/steps/step2.webp');
}

/* Aluminium Die-Casting (default for base & mirror layouts) */
.services-hero--diecasting {
    --services-hero-image: url('/static/images/machining/steps/step3.webp');
    --services-shift: clamp(-24%, -16vw, -11%);
    /* Match the narrower gradient/image treatment used on powder coating */
    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 - text shifted further LEFT, image less zoomed, softer gradient */
.services-hero--powder {
    --services-hero-image: url('/static/images/machining/steps/step1.webp');
    --services-shift: clamp(-24%, -16vw, -11%);
    /* Custom gradient with smaller white area and softer transition */
    background:
        linear-gradient(90deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 1) 34%,
            rgba(255, 255, 255, 0.9) 37%,
            rgba(255, 255, 255, 0.55) 48%,
            rgba(255, 255, 255, 0.25) 60%,
            rgba(255, 255, 255, 0.08) 70%,
            rgba(255, 255, 255, 0) 78%),
        var(--services-hero-image);
    /* First layer = gradient (full height); second layer = image scaled to ~80% width (auto height keeps ratio) */
    background-size: auto 100%, 80% auto;
    /* Gradient anchored left; image pushed right (adjust second value: 60%-100%) */
    background-position: left center, 145% center;
    background-repeat: no-repeat, no-repeat; /* Prevent tiling on both layers */
}

/* Tool Equipment - text shifted RIGHT */
.services-hero--tools {
    --services-hero-image: url('/static/images/home/services/maintool.webp');
    --services-shift: clamp(10%, 16vw, 24%);
}

/* Tool Equipment button nudged toward the right */
#services-hero-5 .btn-get-quote {
    margin-left: 15%;
}

/* Aluminium Diecasting button nudged toward the right */
#services-hero-3 .btn-get-quote {
    margin-left: 15%;
}

/* Friction Welding */
.services-hero--friction {
    --services-hero-image: url('/static/images/home/services/friction_welding.webp');
}

/* -----------------------------------------------------------------------------
   Combination Overrides
   Fine-tune text position when combining layout + image variant
----------------------------------------------------------------------------- */

/* Mirror + Diecasting: push text further right */
.services-hero--mirror.services-hero--diecasting {
    --services-shift: clamp(14%, 20vw, 28%);
    /* Mirror the powder-style gradient so white sits under the right-aligned text */
    background:
        linear-gradient(270deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 1) 30%,
            rgba(255, 255, 255, 0.9) 37%,
            rgba(255, 255, 255, 0.55) 49%,
            rgba(255, 255, 255, 0.25) 60%,
            rgba(255, 255, 255, 0.08) 70%,
            rgba(255, 255, 255, 0) 78%),
        var(--services-hero-image);
    background-size: auto 100%, 80% auto;
    background-position: right center, -50% center;
    background-repeat: no-repeat, no-repeat;
}

/* Mirror + Machining: mirror the powder-style layout */
.services-hero--mirror.services-hero--machining {
    --services-shift: clamp(6%, 10vw, 16%);
    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 (JS adds .is-visible class on scroll)
   Reuses About Us keyframes: aboutFadeUp, aboutFadeFromRight, aboutFadeFromLeft
----------------------------------------------------------------------------- */
@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);
    }
}

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

/* Mirror animation (slide from right) */
.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;
}

/* Feature animation (slide from left) */
.services-animate .services-hero--feature .services-lead h1,
.services-animate .services-hero--feature .services-lead p {
    transform: translateX(-18px);
}

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

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

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

        /* Simpler gradient for mobile */
        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,
    .services-hero--feature .services-lead {
        padding-left: 1rem;
        padding-right: 1rem;
        left: 0;
    }

    /* Reset mirror text alignment on mobile */
    .services-hero--mirror .services-lead h1,
    .services-hero--mirror .services-lead p {
        text-align: left;
    }

    .machining-hero-title {
        margin-bottom: 24px;
    }

    .machining-hero-title .machining-headline {
        font-size: clamp(1.9rem, 6.4vw, 2.3rem);
        margin-bottom: 8px;
    }

    .machining-hero-title .machining-subtitle {
        font-size: clamp(1.1rem, 4.5vw, 1.35rem);
    }
}
/*========================= End of New Services Hero Sections ============================*/

/* Button Get Quote */
.btn-get-quote {
    font-size: 1rem; /* Button label size */
    font-weight: 700; /* Bold label */
    text-decoration: none; /* Remove underline */
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.4); /* Soft orange shadow */
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b1a 100%); /* Orange gradient fill */
    color: white; /* White text */
    border: none; /* No border */
    height: 50px; /* Fixed button height */
    padding: 0 40px; /* Horizontal padding */
    display: inline-flex; /* Align text centrally */
    align-items: center; /* Vertical center text */
    justify-content: center; /* Horizontal center text */
    border-radius: 50px; /* Pill shape */
    transition: all 0.3s ease; /* Smooth hover effects */
    text-transform: none; /* Preserve casing */
}

.btn-get-quote:hover {
    background: linear-gradient(135deg, #ff6b1a 0%, #ff8c42 100%); /* Reverse gradient on hover */
    transform: translateY(-2px); /* Lift on hover */
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.5); /* Stronger hover shadow */
    color: white; /* Keep text white */
}