/* Manufacture Page Custom Styles - Premium Modern Design */
:root {
    --primary-rgb: 16, 204, 211;
    /* Teal */
    --accent-rgb: 245, 124, 0;
    /* Orange */
    --light-teal: #9aced0;
    --dark-navy: #1a2b3c;
    --card-auto-bg: #f8ffff;
    --card-semi-bg: #fffbf5;
    --card-hover-box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12);
}

.manufacturing-infrastructure {
    position: relative;
    padding: 100px 0;
    background: #fdfdfd;
    overflow: hidden;
}

/* Background Gradients and Shapes */
.manufacturing-infrastructure::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(154, 206, 208, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(16, 204, 211, 0.1) 0%, transparent 40%);
    z-index: 0;
}

.manufacturing-infrastructure .container {
    position: relative;
    z-index: 1;
}

/* Section Head Styling */
.manufacturing-infrastructure .section-head h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark-navy);
    letter-spacing: -2px;
}

.manufacturing-infrastructure .section-head .sub-title {
    font-size: 1.1rem;
    letter-spacing: 4px;
    font-weight: 700;
    margin-bottom: 10px;
}

.manufacturing-infrastructure .dz-separator {
    width: 100px;
    height: 5px;
    background: linear-gradient(to right, #10ccd3, #9aced0);
    border-radius: 10px;
    margin: 20px auto 50px;
}

/* Plant Section Headers */
.plant-section {
    position: relative;
    margin-bottom: 120px;
}

.plant-title {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--dark-navy);
    padding-left: 30px;
    margin-bottom: 60px;
    position: relative;
    display: flex;
    align-items: center;
}

.plant-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 100%;
    background: #10ccd3;
    border-radius: 10px;
}

/* Machinery Cards Grid */
.machinery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* Machniery Card Premium Styling */
.machinery-card {
    background: #fff;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(154, 206, 208, 0.2);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.machinery-card:hover {
    transform: translateY(-20px);
    box-shadow: var(--card-hover-box-shadow);
    border-color: #10ccd3;
}

.machinery-media {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.machinery-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.machinery-card:hover .machinery-media img {
    transform: scale(1.1) rotate(1deg);
}

/* Overlay on media */
.machinery-media::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.machinery-card:hover .machinery-media::after {
    opacity: 1;
}

.machinery-body {
    padding: 35px;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    z-index: 2;
    transition: background-color 0.6s ease;
}

/* Apply light teal tint to automatic plant cards */
.plant-section:first-of-type .machinery-card {
    background-color: #f0fafa;
    border-color: rgba(16, 204, 211, 0.2);
}

/* Apply light orange/amber tint to semi-automatic cards - More distinct */
.plant-section:last-of-type .machinery-card {
    background-color: #fff8f0;
    border-color: rgba(245, 124, 0, 0.15);
}

.machinery-icon {
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #10ccd3;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.6s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.plant-section:last-of-type .machinery-icon {
    color: #f57c00;
}

.machinery-card:hover .machinery-icon {
    background: #10ccd3;
    color: #fff;
    transform: rotateY(180deg) scale(1.1);
    box-shadow: 0 15px 30px rgba(16, 204, 211, 0.3);
}

.plant-section:last-of-type .machinery-card:hover .machinery-icon {
    background: #f57c00;
    box-shadow: 0 15px 30px rgba(245, 124, 0, 0.3);
}

/* Category Badges Styling */
.category-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.badge-auto {
    background: var(--dark-navy);
    color: #fff;
}

.badge-semi {
    background: #f57c00;
    /* Fixed: Used solid color for better reliability */
    color: #fff;
}

.machinery-content h4 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--dark-navy);
    line-height: 1.4;
    margin: 0;
    transition: color 0.4s ease;
}

.machinery-card:hover .machinery-content h4 {
    color: #10ccd3;
}

/* Skeleton Shine Effect */
.machinery-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transform: skewX(-20deg);
    transition: 0.8s;
    z-index: 5;
    pointer-events: none;
}

.machinery-card:hover::after {
    left: 150%;
}

/* Floating Animation */
@keyframes machineryFloat {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}

.machinery-card:hover .machinery-icon {
    animation: machineryFloat 3s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 1199px) {
    .machinery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .manufacturing-infrastructure .section-head h2 {
        font-size: 2.75rem;
    }

    .plant-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .machinery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .manufacturing-infrastructure {
        padding: 60px 0;
    }

    .machinery-media {
        height: 220px;
    }

    .machinery-body {
        padding: 30px 25px;
    }
}

@media (max-width: 480px) {
    .manufacturing-infrastructure .section-head h2 {
        font-size: 2rem;
    }

    .plant-title {
        font-size: 1.5rem;
    }
}