/* =========================================================
   OUR INFRASTRUCTURE
========================================================= */

.infrastructure-section {

    position: relative;

    padding: 50px 0;

    background:
        linear-gradient(
            135deg,
            var(--primary-dark),
            var(--primary)
        );

    overflow: hidden;

    color: var(--white);

}


/* =========================================================
   TECHNICAL GRID
========================================================= */

.infra-grid {

    position: absolute;

    inset: 0;

    opacity: .08;

    background-image:

        linear-gradient(
            rgba(255,255,255,.5) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,.5) 1px,
            transparent 1px
        );

    background-size: 45px 45px;

    pointer-events: none;

}


/* =========================================================
   BACKGROUND ICONS
========================================================= */

.infra-bg-icons {

    position: absolute;

    inset: 0;

    overflow: hidden;

    pointer-events: none;

}


.infra-icon {

    position: absolute;

    color: var(--white);

    opacity: .07;

    font-size: 100px;

}


.icon-gear {

    top: 5%;

    left: 3%;

    font-size: 150px;

    animation:
        infraRotate 25s linear infinite;

}


.icon-gauge {

    top: 20%;

    right: 4%;

    font-size: 130px;

    animation:
        infraFloat 6s ease-in-out infinite;

}


.icon-ruler {

    bottom: 5%;

    left: 7%;

    transform: rotate(-25deg);

}


.icon-activity {

    bottom: 15%;

    right: 12%;

    font-size: 90px;

}


.icon-tools {

    top: 50%;

    left: 15%;

    font-size: 80px;

}


/* =========================================================
   HEADING
========================================================= */

.infra-heading {

    position: relative;

    z-index: 2;

    max-width: 800px;

    margin: 0 auto 65px;

    text-align: center;

}


.infra-label {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    margin-bottom: 18px;

    color: var(--white);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2.5px;

}


.infra-label span {

    width: 42px;

    height: 2px;

    background: var(--white);

    border-radius: 5px;

}


.infra-heading h2 {

    margin: 0 0 18px;

    font-size:
        clamp(35px, 4vw, 52px);

    line-height: 1.1;

    font-weight: 700;

}


.infra-heading h2 strong {

    display: block;

    color: var(--white);

    font-weight: 800;

}


.infra-heading p {

    max-width: 680px;

    margin: auto;

    color: rgba(255,255,255,.78);

    font-size: 14px;

    line-height: 1.9;

}


/* =========================================================
   IMAGE WRAPPER
========================================================= */

.infra-image-wrapper {

    position: relative;

    padding: 15px;

}


/* =========================================================
   IMAGE
========================================================= */

.infra-image {

    position: relative;

    height: 500px;

    overflow: hidden;

    border-radius: 20px;

    border:
        1px solid
        rgba(255,255,255,.25);

    box-shadow:
        0 25px 60px
        rgba(0,0,0,.25);

}


.infra-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform .8s ease;

}


.infra-image:hover img {

    transform:
        scale(1.06);

}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.infra-image-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: flex-end;

    padding: 25px;

    background:
        linear-gradient(
            to top,
            rgba(20,30,80,.85),
            transparent 55%
        );

}


.overlay-content {

    display: flex;

    align-items: center;

    gap: 12px;

}


.overlay-content i {

    width: 45px;

    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--white);

    color: var(--primary);

    border-radius: 50%;

    font-size: 20px;

}


.overlay-content span {

    font-size: 13px;

    font-weight: 600;

}


/* =========================================================
   FLOATING CARD
========================================================= */

.infra-floating-card {

    position: absolute;

    right: -10px;

    bottom: 35px;

    z-index: 3;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 15px 18px;

    background: var(--white);

    color: var(--black);

    border-radius: 12px;

    box-shadow:
        0 15px 35px
        rgba(0,0,0,.25);

    animation:
        infraFloat 4s ease-in-out infinite;

}


.floating-icon {

    width: 45px;

    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        var(--primary-light);

    color:
        var(--primary);

    border-radius: 9px;

    font-size: 20px;

}


.infra-floating-card strong {

    display: block;

    font-size: 12px;

    font-weight: 800;

}


.infra-floating-card span {

    display: block;

    margin-top: 3px;

    color: var(--text);

    font-size: 10px;

}


/* =========================================================
   CONTENT
========================================================= */

.infra-content {

    position: relative;

    z-index: 2;

}


.infra-small-title {

    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 17px;

    color:
        rgba(255,255,255,.75);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.5px;

}


.infra-small-title i {

    color: var(--white);

    font-size: 17px;

}


.infra-content h3 {

    margin: 0 0 18px;

    color: var(--white);

    font-size:
        clamp(28px, 3vw, 40px);

    line-height: 1.2;

    font-weight: 700;

}


.infra-content h3 span {

    display: block;

    color: var(--white);

    font-weight: 800;

}


.infra-description {

    margin-bottom: 28px;

    color:
        rgba(255,255,255,.72);

    font-size: 13px;

    line-height: 1.8;

}


/* =========================================================
   FEATURES
========================================================= */

.infra-features {

    display: flex;

    flex-direction: column;

    gap: 12px;

}


.infra-feature {

    display: flex;

    gap: 14px;

    padding: 14px;

    border:
        1px solid
        rgba(255,255,255,.13);

    border-radius: 10px;

    background:
        rgba(255,255,255,.07);

    transition: var(--transition);

}


.infra-feature:hover {

    background:
        rgba(255,255,255,.13);

    transform:
        translateX(6px);

    border-color:
        rgba(255,255,255,.25);

}


.infra-feature-icon {

    flex-shrink: 0;

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(255,255,255,.12);

    color: var(--white);

    border-radius: 8px;

    font-size: 18px;

}


.infra-feature h5 {

    margin: 0 0 4px;

    color: var(--white);

    font-size: 12px;

    font-weight: 700;

}


.infra-feature p {

    margin: 0;

    color:
        rgba(255,255,255,.62);

    font-size: 10px;

    line-height: 1.5;

}


/* =========================================================
   BUTTON
========================================================= */

.infra-btn {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-top: 25px;

    padding: 13px 22px;

    background: var(--white);

    color: var(--primary);

    text-decoration: none;

    border-radius: 7px;

    font-size: 12px;

    font-weight: 700;

    transition: var(--transition);

}


.infra-btn i {

    transition: var(--transition);

}


.infra-btn:hover {

    color: var(--primary-dark);

    transform:
        translateY(-3px);

    box-shadow:
        0 10px 25px
        rgba(0,0,0,.2);

}


.infra-btn:hover i {

    transform:
        translateX(5px);

}


/* =========================================================
   INFRASTRUCTURE STATS
========================================================= */

.infra-stats {

    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    margin-top: 70px;

    padding-top: 30px;

    border-top:
        1px solid
        rgba(255,255,255,.18);

}


.infra-stat {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 11px;

    border-right:
        1px solid
        rgba(255,255,255,.12);

}


.infra-stat:last-child {

    border-right: none;

}


.infra-stat-icon {

    width: 45px;

    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(255,255,255,.12);

    color: var(--white);

    border-radius: 9px;

    font-size: 18px;

}


.infra-stat strong {

    display: block;

    color: var(--white);

    font-size: 13px;

    font-weight: 800;

}


.infra-stat span {

    display: block;

    margin-top: 2px;

    color:
        rgba(255,255,255,.6);

    font-size: 9px;

}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes infraFloat {

    0%,
    100% {

        transform:
            translateY(0);

    }

    50% {

        transform:
            translateY(-10px);

    }

}


@keyframes infraRotate {

    from {

        transform:
            rotate(0deg);

    }

    to {

        transform:
            rotate(360deg);

    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .infrastructure-section {

        padding: 85px 0;

    }


    .infra-image {

        height: 450px;

    }


    .infra-content {

        margin-top: 10px;

    }


    .infra-stats {

        grid-template-columns:
            repeat(2,1fr);

        gap: 25px;

    }


    .infra-stat:nth-child(2) {

        border-right: none;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .infrastructure-section {

        padding: 65px 0;

    }


    .infra-heading {

        margin-bottom: 40px;

    }


    .infra-heading h2 {

        font-size: 32px;

    }


    .infra-heading p {

        font-size: 12px;

    }


    .infra-image-wrapper {

        padding: 5px;

    }


    .infra-image {

        height: 330px;

        border-radius: 14px;

    }


    .infra-floating-card {

        right: 0;

        bottom: 20px;

        padding: 11px;

    }


    .floating-icon {

        width: 38px;

        height: 38px;

        font-size: 16px;

    }


    .infra-floating-card strong {

        font-size: 10px;

    }


    .infra-floating-card span {

        font-size: 8px;

    }


    .infra-content h3 {

        font-size: 29px;

    }


    .infra-feature {

        padding: 12px;

    }


    .infra-stats {

        grid-template-columns: 1fr;

        gap: 15px;

    }


    .infra-stat {

        justify-content: flex-start;

        border-right: none;

        padding-bottom: 10px;

        border-bottom:
            1px solid
            rgba(255,255,255,.1);

    }


    .infra-stat:last-child {

        border-bottom: none;

    }


    .infra-icon {

        font-size: 55px;

    }

}