/* =========================
   INDUSTRIES SECTION
========================= */

#industries {
    position: relative;
    background-color: rgb(13 27 42 / 1);
    overflow: hidden;
}

/* Background Pattern */

#industries .industries-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image:
        radial-gradient(circle at 2px 2px,
            rgba(37, 99, 235, 0.5) 1px,
            transparent 0px);
    background-size: 48px 48px;
    pointer-events: none;
}

/* Glow */

#industries .industries-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 250px;
    background: rgba(37, 99, 235, 0.12);
    filter: blur(120px);
    border-radius: 50%;
    pointer-events: none;
}

/* Container */

#industries .industries-container {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: auto;
}

/* =========================
   HEADER
========================= */

#industries .industries-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 70px;
}

#industries .industries-badge {
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin-bottom: 20px;
}

#industries .industries-title {
    color: var(--white);
}

#industries .industries-title span {
    color: var(--primary-color);
}

#industries .industries-subtitle {
    max-width: 320px;
    color: var(--para);
    text-align: right;
}

/* =========================
   GRID
========================= */

#industries .industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* =========================
   CARD
========================= */

#industries .industry-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.4s ease;
    cursor: pointer;
}

#industries .industry-card:hover {
    /* transform: translateY(-8px); */
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* =========================
   IMAGE
========================= */

#industries .industry-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

#industries .industry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

#industries .industry-card:hover img {
    transform: scale(1.08);
}

/* Overlay */

#industries .industry-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top,
            rgba(0, 0, 0, 0.85),
            rgba(0, 0, 0, 0.2),
            transparent);
}

/* =========================
   APP COUNT
========================= */

#industries .industry-count {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

/* Colors */

#industries .red {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

#industries .blue {
    background: rgba(59, 130, 246, 0.08);
    color: var(--primary-color);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

#industries .green {
    background: rgba(34, 197, 94, 0.08);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

#industries .orange {
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* =========================
   TOP LINE
========================= */

#industries .industry-top-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    opacity: 0;
    transition: 0.4s ease;
}

#industries .industry-card:hover .industry-top-line {
    opacity: 1;
}

#industries .red-line {
    background: linear-gradient(90deg,
            transparent,
            #ef4444,
            transparent);
}

#industries .blue-line {
    background: linear-gradient(90deg,
            transparent,
            #3b82f6,
            transparent);
}

#industries .green-line {
    background: linear-gradient(90deg,
            transparent,
            #22c55e,
            transparent);
}

#industries .orange-line {
    background: linear-gradient(90deg,
            transparent,
            #f59e0b,
            transparent);
}

/* =========================
   CONTENT
========================= */

#industries .industry-content {
    padding: 24px;
}

#industries .industry-content h3 {
    color: var(--white);
    margin-bottom: 12px;
}

#industries .industry-content p {
    color: var(--para);
    margin-bottom: 20px;
}

/* =========================
   LINK
========================= */
#industries .industry-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

    opacity: 0;
    transform: translateY(6px);
    transition: all 0.35s ease;
}

#industries .industry-card:hover .industry-link {
    opacity: 1;
    transform: translateY(0);
}

#industries .industry-card:hover .industry-link {
    gap: 12px;
}

#industries .industry-card:hover .industry-link {
    gap: 12px;
}

#industries .red-text {
    color: #ef4444;
}

#industries .blue-text {
    color: #3b82f6;
}

#industries .green-text {
    color: #22c55e;
}

#industries .orange-text {
    color: #f59e0b;
}

/* =========================
   LAPTOP
========================= */

@media (max-width: 1200px) {

    #industries .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* =========================
   TABLET
========================= */
@media (max-width: 767px) {

    #industries .industries-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 50px;
    }

    #industries .industries-subtitle {
        text-align: left;
        max-width: 100%;
    }

    #industries .industries-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

}

/* =========================
   MOBILE
========================= */

@media (max-width: 567px) {


    #industries .industry-image {
        height: 210px;
    }

    #industries .industry-content {
        padding: 20px;
    }
}