/* =========================================================
   CURRENT ELECTRO MECH
   MACHINE SERVICES SHOWCASE
========================================================= */

.cem-machine-section {

    position: relative;

    width: 100%;

    padding: 120px 0 100px;

    overflow: hidden;

    background:

        radial-gradient(
            circle at 8% 20%,
            rgba(
                53,
                189,
                246,
                0.18
            ),
            transparent 32%
        ),

        radial-gradient(
            circle at 95% 85%,
            rgba(
                22,
                143,
                232,
                0.12
            ),
            transparent 35%
        ),

        linear-gradient(
            135deg,
            #ffffff 0%,
            #f8fdff 30%,
            #e9f8ff 65%,
            #ffffff 100%
        );

}


/* =========================================================
   BACKGROUND GRID
========================================================= */

.cem-machine-grid {

    position: absolute;

    inset: 0;

    opacity: .35;

    pointer-events: none;

    background-image:

        linear-gradient(
            rgba(22,143,232,.045) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(22,143,232,.045) 1px,
            transparent 1px
        );

    background-size: 70px 70px;

    mask-image: linear-gradient(
        to bottom,
        transparent,
        black 15%,
        black 80%,
        transparent
    );

}


/* =========================================================
   BACKGROUND ORBS
========================================================= */

.cem-machine-orb {

    position: absolute;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(3px);

}

.cem-orb-one {

    width: 420px;

    height: 420px;

    left: -220px;

    top: 20%;

    background:
        radial-gradient(
            circle,
            rgba(53,189,246,.10),
            transparent 70%
        );

}

.cem-orb-two {

    width: 500px;

    height: 500px;

    right: -280px;

    bottom: -180px;

    background:
        radial-gradient(
            circle,
            rgba(22,143,232,.10),
            transparent 70%
        );

}


/* =========================================================
   CONTAINER
========================================================= */

.cem-machine-container {

    position: relative;

    z-index: 2;

    width: min(1380px, 92%);

    margin: auto;

}


/* =========================================================
   HEADING
========================================================= */

.cem-machine-heading {

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 60px;

    margin-bottom: 55px;

}

.cem-heading-left {

    max-width: 700px;

}

.cem-machine-eyebrow {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 3px;

    color: #168fe8;

    margin-bottom: 16px;

}

.cem-machine-eyebrow::before {

    content: "";

    width: 35px;

    height: 2px;

    background: #168fe8;

}

.cem-heading-left h2 {

    margin: 0;

    font-size: clamp(42px, 5vw, 72px);

    line-height: .98;

    letter-spacing: -3px;

    font-weight: 800;

    color: #071d34;

}

.cem-heading-left h2 span {

    color: #168fe8;

}

.cem-heading-right {

    max-width: 430px;

    padding-bottom: 5px;

}

.cem-heading-right p {

    margin: 0;

    color: #5e7488;

    font-size: 15px;

    line-height: 1.8;

}


/* =========================================================
   MAIN SHOWCASE
========================================================= */

.cem-machine-showcase {

    display: grid;

    grid-template-columns: 1.18fr .82fr;

    min-height: 610px;

    border-radius: 28px;

    overflow: hidden;

    background: rgba(255,255,255,.68);

    border: 1px solid rgba(22,143,232,.13);

    box-shadow:
        0 30px 80px rgba(8,65,105,.10),
        inset 0 1px 0 rgba(255,255,255,.9);

    backdrop-filter: blur(12px);

}


/* =========================================================
   VISUAL SIDE
========================================================= */

.cem-machine-visual {

    position: relative;

    min-height: 610px;

    overflow: hidden;

    background:

        radial-gradient(
            circle at 50% 50%,
            rgba(53,189,246,.20),
            transparent 38%
        ),

        linear-gradient(
            145deg,
            #f9fdff,
            #e9f8ff
        );

    border-right: 1px solid rgba(22,143,232,.12);

}


/* =========================================================
   VISUAL TOP
========================================================= */

.cem-visual-top {

    position: absolute;

    left: 32px;

    right: 32px;

    top: 28px;

    z-index: 10;

    display: flex;

    align-items: center;

    gap: 16px;

}

.cem-visual-label {

    font-size: 9px;

    letter-spacing: 2px;

    font-weight: 800;

    color: #587083;

}

.cem-visual-line {

    height: 1px;

    flex: 1;

    background: rgba(22,143,232,.18);

}

.cem-visual-status {

    display: flex;

    align-items: center;

    gap: 7px;

    font-size: 9px;

    letter-spacing: 1.5px;

    color: #168fe8;

    font-weight: 800;

}

.cem-visual-status i {

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: #168fe8;

    box-shadow: 0 0 0 5px rgba(22,143,232,.10);

}


/* =========================================================
   IMAGE STAGE
========================================================= */

.cem-machine-image-stage {

    position: absolute;

    inset: 75px 30px 65px;

    display: flex;

    align-items: center;

    justify-content: center;

}


/* =========================================================
   IMAGE
========================================================= */

.cem-machine-image {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    opacity: 0;

    transform:
        translateX(70px)
        scale(.92)
        rotateY(-10deg);

    transition:
        opacity .55s ease,
        transform .7s cubic-bezier(.2,.8,.2,1);

    pointer-events: none;

}

.cem-machine-image.active {

    opacity: 1;

    transform:
        translateX(0)
        scale(1)
        rotateY(0deg);

    z-index: 3;

}

.cem-machine-image img {

    width: min(78%, 590px);

    max-height: 470px;

    object-fit: contain;

    display: block;

    filter:
        drop-shadow(
            0 35px 28px
            rgba(5,54,88,.20)
        );

    transition: transform .6s ease;

}

.cem-machine-image.active img {

    animation: cemMotorFloat 5s ease-in-out infinite;

}

@keyframes cemMotorFloat {

    0%,
    100% {

        transform:
            translateY(0)
            scale(1);

    }

    50% {

        transform:
            translateY(-10px)
            scale(1.015);

    }

}


/* =========================================================
   RINGS
========================================================= */

.cem-machine-ring {

    position: absolute;

    left: 50%;

    top: 50%;

    transform: translate(-50%, -50%);

    border: 1px solid rgba(22,143,232,.12);

    border-radius: 50%;

    pointer-events: none;

}

.ring-one {

    width: 270px;

    height: 270px;

}

.ring-two {

    width: 390px;

    height: 390px;

}

.ring-three {

    width: 510px;

    height: 510px;

    border-style: dashed;

    animation: cemRingRotate 25s linear infinite;

}

@keyframes cemRingRotate {

    to {

        transform:
            translate(-50%, -50%)
            rotate(360deg);

    }

}

.cem-machine-glow {

    position: absolute;

    width: 300px;

    height: 130px;

    left: 50%;

    bottom: 7%;

    transform: translateX(-50%);

    background: rgba(22,143,232,.18);

    filter: blur(45px);

    border-radius: 50%;

}


/* =========================================================
   IMAGE COUNTER
========================================================= */

.cem-image-counter {

    position: absolute;

    bottom: 28px;

    left: 32px;

    display: flex;

    align-items: center;

    gap: 12px;

    color: #8ba0b1;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;

    z-index: 5;

}

.cem-current-number {

    color: #071d34;

    font-size: 20px;

}

.cem-counter-line {

    width: 50px;

    height: 1px;

    background: #168fe8;

}


/* =========================================================
   VISUAL BOTTOM
========================================================= */

.cem-visual-bottom {

    position: absolute;

    right: 30px;

    bottom: 31px;

    display: flex;

    gap: 20px;

    z-index: 5;

}

.cem-visual-bottom span {

    font-size: 8px;

    letter-spacing: 1.5px;

    color: #718697;

    font-weight: 800;

}


/* =========================================================
   CONTENT
========================================================= */

.cem-machine-content {

    position: relative;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 65px 60px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.92),
            rgba(247,252,255,.88)
        );

}

.cem-content-number {

    position: absolute;

    top: 28px;

    right: 38px;

    font-size: 80px;

    line-height: 1;

    font-weight: 900;

    color: rgba(22,143,232,.055);

    letter-spacing: -5px;

}

.cem-content-category {

    position: relative;

    font-size: 10px;

    letter-spacing: 2.5px;

    color: #168fe8;

    font-weight: 900;

    margin-bottom: 17px;

}

.cem-machine-title {

    position: relative;

    margin: 0;

    max-width: 500px;

    font-size: clamp(35px, 4vw, 52px);

    line-height: 1.03;

    letter-spacing: -2px;

    color: #071d34;

    font-weight: 800;

}

.cem-machine-title strong {

    display: block;

    color: #168fe8;

    font-weight: 800;

}

.cem-machine-description {

    max-width: 480px;

    margin: 25px 0 30px;

    color: #62798b;

    font-size: 14px;

    line-height: 1.85;

}


/* =========================================================
   CAPABILITIES
========================================================= */

.cem-capability-box {

    max-width: 500px;

    padding-top: 22px;

    border-top: 1px solid rgba(22,143,232,.14);

}

.cem-capability-title {

    font-size: 9px;

    letter-spacing: 2px;

    color: #071d34;

    font-weight: 900;

    margin-bottom: 15px;

}

.cem-capability-list {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px 20px;

}

.cem-capability-list span {

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 11px;

    color: #607789;

}

.cem-capability-list i {

    width: 22px;

    height: 22px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: rgba(22,143,232,.08);

    color: #168fe8;

    font-size: 8px;

    font-style: normal;

    font-weight: 800;

}


/* =========================================================
   CTA
========================================================= */

.cem-machine-cta {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: space-between;

    width: 210px;

    margin-top: 32px;

    padding: 14px 15px 14px 20px;

    border-radius: 50px;

    background: #071d34;

    color: #fff;

    text-decoration: none;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .5px;

    overflow: hidden;

    transition: .35s ease;

}

.cem-machine-cta::before {

    content: "";

    position: absolute;

    inset: 0;

    background: linear-gradient(
        90deg,
        #168fe8,
        #35bdf6
    );

    transform: translateX(-100%);

    transition: .4s ease;

}

.cem-machine-cta span,
.cem-machine-cta i {

    position: relative;

    z-index: 2;

}

.cem-machine-cta i {

    width: 30px;

    height: 30px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: rgba(255,255,255,.12);

    font-style: normal;

    font-size: 16px;

}

.cem-machine-cta:hover {

    transform: translateY(-3px);

    box-shadow:
        0 15px 35px rgba(22,143,232,.22);

}

.cem-machine-cta:hover::before {

    transform: translateX(0);

}


/* =========================================================
   NAVIGATION
========================================================= */

.cem-machine-navigation {

    margin-top: 35px;

}

.cem-navigation-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 15px;

    padding: 0 5px;

}

.cem-navigation-header > span:first-child {

    font-size: 10px;

    letter-spacing: 2px;

    color: #526c7e;

    font-weight: 900;

}

.cem-nav-scroll-text {

    font-size: 9px;

    letter-spacing: 1px;

    color: #91a5b5;

}


/* =========================================================
   TABS
========================================================= */

.cem-machine-tabs {

    display: grid;

    grid-template-columns:
        repeat(7, minmax(145px, 1fr));

    gap: 8px;

}

.cem-machine-tab {

    position: relative;

    min-height: 105px;

    padding: 16px;

    border: 1px solid rgba(22,143,232,.10);

    border-radius: 15px;

    background: rgba(255,255,255,.70);

    cursor: pointer;

    text-align: left;

    overflow: hidden;

    transition:
        transform .35s ease,
        background .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;

}

.cem-machine-tab::before {

    content: "";

    position: absolute;

    left: 0;

    right: 0;

    bottom: 0;

    height: 3px;

    background: #168fe8;

    transform: scaleX(0);

    transform-origin: left;

    transition: transform .35s ease;

}

.cem-machine-tab:hover {

    transform: translateY(-5px);

    border-color: rgba(22,143,232,.28);

    box-shadow:
        0 15px 30px rgba(22,143,232,.10);

}

.cem-machine-tab.active {

    background: #071d34;

    border-color: #071d34;

    transform: translateY(-5px);

    box-shadow:
        0 18px 35px rgba(7,29,52,.18);

}

.cem-machine-tab.active::before {

    transform: scaleX(1);

}

.cem-tab-number {

    display: block;

    margin-bottom: 22px;

    font-size: 9px;

    color: #168fe8;

    font-weight: 900;

    letter-spacing: 1px;

}

.cem-machine-tab.active .cem-tab-number {

    color: #35bdf6;

}

.cem-tab-name {

    display: block;

    max-width: 110px;

    color: #19344a;

    font-size: 12px;

    line-height: 1.3;

    font-weight: 800;

}

.cem-machine-tab.active .cem-tab-name {

    color: #fff;

}

.cem-tab-arrow {

    position: absolute;

    right: 14px;

    bottom: 13px;

    color: #9db0bf;

    font-size: 15px;

    transition: .3s ease;

}

.cem-machine-tab.active .cem-tab-arrow {

    color: #35bdf6;

    transform: translate(2px,-2px);

}


/* =========================================================
   BOTTOM STATEMENT
========================================================= */

.cem-machine-statement {

    display: flex;

    align-items: center;

    gap: 18px;

    margin-top: 42px;

    padding: 18px 25px;

    border-top: 1px solid rgba(22,143,232,.12);

}

.cem-statement-icon {

    width: 42px;

    height: 42px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #071d34;

    color: #35bdf6;

    font-size: 22px;

}

.cem-machine-statement strong {

    display: block;

    margin-bottom: 3px;

    color: #071d34;

    font-size: 14px;

}

.cem-machine-statement span {

    color: #7790a1;

    font-size: 12px;

}


/* =========================================================
   ANIMATION CLASS
========================================================= */

.cem-content-refresh {

    animation:
        cemContentRefresh .45s ease both;

}

@keyframes cemContentRefresh {

    0% {

        opacity: 0;

        transform: translateY(15px);

    }

    100% {

        opacity: 1;

        transform: translateY(0);

    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .cem-machine-showcase {

        grid-template-columns: 1fr;

    }

    .cem-machine-visual {

        min-height: 520px;

        border-right: 0;

        border-bottom: 1px solid rgba(22,143,232,.12);

    }

    .cem-machine-content {

        min-height: 500px;

    }

    .cem-machine-tabs {

        display: flex;

        overflow-x: auto;

        padding: 8px 4px 15px;

        scrollbar-width: thin;

    }

    .cem-machine-tab {

        flex: 0 0 175px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .cem-machine-section {

        padding: 75px 0 60px;

    }

    .cem-machine-container {

        width: 92%;

    }

    .cem-machine-heading {

        display: block;

        margin-bottom: 35px;

    }

    .cem-heading-left h2 {

        font-size: 42px;

        letter-spacing: -2px;

    }

    .cem-heading-right {

        margin-top: 20px;

    }

    .cem-machine-showcase {

        border-radius: 20px;

    }

    .cem-machine-visual {

        min-height: 390px;

    }

    .cem-machine-image-stage {

        inset: 65px 10px 55px;

    }

    .cem-machine-image img {

        width: 80%;

        max-height: 300px;

    }

    .ring-one {

        width: 190px;

        height: 190px;

    }

    .ring-two {

        width: 275px;

        height: 275px;

    }

    .ring-three {

        width: 350px;

        height: 350px;

    }

    .cem-visual-top {

        left: 18px;

        right: 18px;

    }

    .cem-visual-label {

        display: none;

    }

    .cem-visual-bottom {

        display: none;

    }

    .cem-machine-content {

        padding: 50px 25px;

        min-height: auto;

    }

    .cem-content-number {

        right: 20px;

        font-size: 60px;

    }

    .cem-machine-title {

        font-size: 37px;

    }

    .cem-capability-list {

        grid-template-columns: 1fr;

    }

    .cem-machine-tabs {

        margin-right: -10px;

    }

    .cem-navigation-header {

        align-items: flex-start;

        gap: 10px;

    }

    .cem-nav-scroll-text {

        display: none;

    }

    .cem-machine-statement {

        padding-left: 0;

        padding-right: 0;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .cem-heading-left h2 {

        font-size: 36px;

    }

    .cem-machine-visual {

        min-height: 340px;

    }

    .cem-machine-image img {

        width: 85%;

    }

    .cem-machine-title {

        font-size: 32px;

    }

    .cem-machine-cta {

        width: 100%;

    }

}