/* =========================================================
   INDUSTRIES SECTION
========================================================= */

.industries-section {
    position: relative;
    width: 100%;
    padding: 80px 0;

    background: radial-gradient(circle at top left, rgba(144,51,28,0.12), transparent 35%),
        radial-gradient(circle at bottom right, rgb(245, 243, 242), transparent 35%),
        linear-gradient(135deg, #faf6f6, #f3f2f2);

    overflow: hidden;
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

.industries-container {
    max-width: 1250px;
    margin: 0 auto;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.industries-heading {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 45px;
    padding: 0 20px;
    text-align: center;
}

.industries-heading h2 {
    margin: 0;
    color: #181818;

    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;

    letter-spacing: -0.5px;
}


/* =========================================================
   MAIN INDUSTRIES GRID
========================================================= */

.industries-grid {
    width: 100%;
    /* max-width: 100%; */
    margin: 0 auto;
    padding: 0;

    overflow: visible;
}


/* =========================================================
   DESKTOP
   6 CARDS TOP + 6 CARDS BOTTOM
========================================================= */

.industry-row-top,
.industry-row-bottom {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));
}


/* =========================================================
   INDUSTRY CARD
========================================================= */

.industry-box {
    position: relative;

    width: 100%;
    min-width: 0;
    min-height: 245px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 30px 15px;

    overflow: hidden;

    text-align: center;
    cursor: pointer;

    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;

    isolation: isolate;

    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s ease,
        filter 0.45s ease;
}


/* =========================================================
   REMOVE RIGHT BORDER FROM LAST CARD
========================================================= */

.industry-row-top .industry-box:nth-child(6),
.industry-row-bottom .industry-box:nth-child(6) {
    border-right: none;
}


/* =========================================================
   INDUSTRY COLORS
========================================================= */

.industry-1 {
    background: #43147a;
}

.industry-2 {
    background: #aa20c8;
}

.industry-3 {
    background: #ef1235;
}

.industry-4 {
    background: #ff5136;
}

.industry-5 {
    background: #ff7900;
}

.industry-6 {
    background: #127580;
}

.industry-7 {
    background: #afe020;
}

.industry-8 {
    background: #1736c9;
}

.industry-9 {
    background: #2bb5e3;
}

.industry-10 {
    background: #1c9041;
}

.industry-11 {
    background: #9f206e;
}

.industry-12 {
    background: #debe20;
}


/* =========================================================
   ICON
========================================================= */

.industry-icon {
    position: relative;
    z-index: 3;

    width: 78px;
    height: 78px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    color: #ffffff;

    font-size: 45px;

    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.45s ease;
}


/* =========================================================
   ICON CIRCLE
========================================================= */

.industry-icon::before {
    content: "";

    position: absolute;
    inset: 3px;

    border: 1px solid rgba(255, 255, 255, 0.35);

    border-radius: 50%;

    transform: scale(0.65);

    opacity: 0;

    transition:
        transform 0.45s ease,
        opacity 0.45s ease;
}


/* =========================================================
   ICON ITSELF
========================================================= */

.industry-icon i {
    position: relative;
    z-index: 4;
}


/* =========================================================
   TITLE
========================================================= */

.industry-box h3 {
    position: relative;
    z-index: 3;

    margin: 0;

    max-width: 190px;

    color: #ffffff;

    font-size: 19px;
    font-weight: 700;

    line-height: 1.25;

    letter-spacing: 0.3px;

    text-transform: uppercase;

    transition:
        transform 0.45s ease;
}


/* =========================================================
   NUMBER
========================================================= */

.industry-number {
    position: absolute;

    right: 13px;
    bottom: 10px;

    z-index: 4;

    color: rgba(255, 255, 255, 0.35);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1px;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}


/* =========================================================
   BACKGROUND CIRCLE 1
========================================================= */

.industry-box::before {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    right: -90px;
    top: -90px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);

    pointer-events: none;

    transition:
        transform 0.6s ease,
        opacity 0.6s ease;
}


/* =========================================================
   BACKGROUND CIRCLE 2
========================================================= */

.industry-box::after {
    content: "";

    position: absolute;

    width: 120px;
    height: 120px;

    left: -60px;
    bottom: -60px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.05);

    pointer-events: none;

    transition:
        transform 0.6s ease;
}


/* =========================================================
   SHINE EFFECT
========================================================= */

.industry-shine {
    position: absolute;

    z-index: 2;

    top: -120%;
    left: -100%;

    width: 55%;
    height: 320%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.18),
        transparent
    );

    transform: rotate(25deg);

    pointer-events: none;

    transition:
        left 0.8s ease;
}


/* =========================================================
   HOVER EFFECT
========================================================= */

@media (hover: hover) and (pointer: fine) {

    .industry-box:hover {
        z-index: 10;

        transform:
            translateY(-8px)
            scale(1.025);

        filter: saturate(1.12);

        box-shadow:
            0 18px 35px rgba(0, 0, 0, 0.22);
    }


    .industry-box:hover .industry-icon {
        transform:
            translateY(-7px)
            scale(1.08);

        filter:
            drop-shadow(
                0 8px 10px rgba(0, 0, 0, 0.20)
            );
    }


    .industry-box:hover .industry-icon::before {
        transform: scale(1);
        opacity: 1;
    }


    .industry-box:hover h3 {
        transform: translateY(-3px);
    }


    .industry-box:hover .industry-number {
        color: rgba(255, 255, 255, 0.8);
        transform: translateY(-3px);
    }


    .industry-box:hover::before {
        transform: scale(1.6);
        opacity: 0.8;
    }


    .industry-box:hover::after {
        transform: scale(1.5);
    }


    .industry-box:hover .industry-shine {
        left: 150%;
    }

}

/* =========================================================
   LAPTOP
   992px - 1199px

   4 + 4 + 4
========================================================= */

@media (min-width: 992px) and (max-width: 1199px) {

    .industries-section {
        padding: 70px 15px;
    }

    .industries-container {
        width: 100%;
        max-width: 1100px;
        margin: 0 auto;
    }

    .industries-grid {
        width: 100%;
        max-width: 1100px;
        margin: 0 auto;
    }

    .industry-row-top,
    .industry-row-bottom {
        width: 100%;
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

    .industry-box {
        min-height: 225px;
        padding: 25px 12px;
    }

    .industry-icon {
        width: 70px;
        height: 70px;

        font-size: 40px;

        margin-bottom: 17px;
    }

    .industry-box h3 {
        font-size: 17px;
    }

}


/* =========================================================
   TABLET
   768px - 991px

   3 + 3 + 3 + 3
========================================================= */

@media (min-width: 768px) and (max-width: 991px) {

    .industries-section {
        padding: 65px 15px;
    }

    .industries-container {
        width: 100%;
        max-width: 900px;
        margin: 0 auto;
    }

    .industries-heading {
        margin-bottom: 40px;
    }

    .industries-heading h2 {
        font-size: 36px;
    }

    .industries-grid {
        width: 100%;
        max-width: 900px;
        margin: 0 auto;

        display: grid;

        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .industry-row-top,
    .industry-row-bottom {
        display: contents;
    }

    .industry-box {
        width: 100%;
        min-height: 220px;
        padding: 25px 12px;
    }

    .industry-icon {
        width: 68px;
        height: 68px;

        font-size: 38px;

        margin-bottom: 16px;
    }

    .industry-box h3 {
        font-size: 16px;
    }

    .industry-number {
        right: 10px;
        bottom: 8px;
        font-size: 10px;
    }

}


/* =========================================================
   SMALL TABLET
   601px - 767px

   2 COLUMNS
========================================================= */

@media (min-width: 601px) and (max-width: 767px) {

    .industries-section {
        padding: 60px 15px;
    }

    .industries-container {
        width: 100%;
        max-width: 700px;
    }

    .industries-heading {
        margin-bottom: 32px;
    }

    .industries-heading h2 {
        font-size: 32px;
    }

    .industries-grid {
        width: 100%;
        max-width: 700px;

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .industry-row-top,
    .industry-row-bottom {
        display: contents;
    }

    .industry-box {
        min-height: 205px;
        padding: 22px 10px;
    }

    .industry-icon {
        width: 62px;
        height: 62px;

        font-size: 34px;

        margin-bottom: 14px;
    }

    .industry-box h3 {
        font-size: 14px;
        line-height: 1.3;
    }

    .industry-number {
        right: 8px;
        bottom: 7px;
        font-size: 9px;
    }

}


/* =========================================================
   MOBILE
   600px AND BELOW

   1 CARD PER ROW
========================================================= */

@media (max-width: 600px) {

    .industries-section {
        padding: 55px 12px;
    }

    .industries-container {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .industries-heading {
        margin-bottom: 28px;
        padding: 0;
    }

    .industries-heading h2 {
        font-size: 27px;
        line-height: 1.25;
    }

    .industries-grid {
        width: 100%;
        max-width: 500px;

        margin: 0 auto;

        display: grid;

        grid-template-columns: 1fr;
    }

    .industry-row-top,
    .industry-row-bottom {
        display: contents;
    }

    .industry-box {
        width: 100%;

        min-height: 175px;

        padding: 22px 15px;

        border-right: none;
        border-bottom: 2px solid #ffffff;
    }

    .industry-icon {
        width: 58px;
        height: 58px;

        font-size: 31px;

        margin-bottom: 12px;
    }

    .industry-icon::before {
        inset: 2px;
    }

    .industry-box h3 {
        font-size: 14px;
        line-height: 1.3;
        letter-spacing: 0;
    }

    .industry-number {
        right: 8px;
        bottom: 7px;
        font-size: 9px;
    }

    .industry-box::before {
        width: 130px;
        height: 130px;

        right: -65px;
        top: -65px;
    }

    .industry-box::after {
        width: 90px;
        height: 90px;

        left: -45px;
        bottom: -45px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   380px AND BELOW
========================================================= */

@media (max-width: 380px) {

    .industries-section {
        padding: 45px 10px;
    }

    .industries-heading h2 {
        font-size: 25px;
    }

    .industry-box {
        min-height: 165px;
        padding: 20px 10px;
    }

    .industry-icon {
        width: 54px;
        height: 54px;

        font-size: 29px;

        margin-bottom: 11px;
    }

    .industry-box h3 {
        font-size: 13px;
    }

}


/* =========================================================
   TOUCH DEVICES
   REMOVE LARGE HOVER EFFECT
========================================================= */

@media (hover: none) {

    .industry-box:hover {
        transform: none;
        filter: none;
        box-shadow: none;
    }

    .industry-box:hover .industry-icon {
        transform: none;
        filter: none;
    }

    .industry-box:hover h3 {
        transform: none;
    }

    .industry-box:hover .industry-number {
        transform: none;
    }

    .industry-box:hover::before,
    .industry-box:hover::after {
        transform: none;
    }

    .industry-box:hover .industry-shine {
        left: -100%;
    }

}