/*--------------------------------------------------------------
# Industries Preview Section — Refined Professional Design
--------------------------------------------------------------*/

.ind-preview-section {
    padding: 60px 0 80px;
    background: var(--color-bg-cream) !important;
    border-top: 1px solid var(--color-border-cream-dark);
    overflow: hidden;
}

.ind-preview-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.ind-preview-heading {
    font-family: var(--font-primary);
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 300;
    color: var(--color-text-cream-dark) !important;
    margin-bottom: 32px;
    letter-spacing: -0.04em;
    text-align: center;
}

/* ══════════════════════════════════════════
   REFINED SCROLLING CARDS
   ══════════════════════════════════════════ */
.ind-marquee-wrap {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: visible;
    padding: 30px 0;
    /* Reduced vertical padding */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ind-marquee-track {
    display: flex;
    gap: 64px;
    /* Increased gap to prevent overlapping during scale */
    width: max-content;
    animation: indScroll 45s linear infinite;
    padding: 0 40px;
}

@keyframes indScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ── The Card (Smaller Size) ── */
.ind-card {
    position: relative;
    width: 280px;
    /* Reduced width */
    height: 380px;
    /* Reduced height */
    border-radius: 16px !important;
    background: transparent;
    border: 1px solid var(--glass-border);
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    overflow: hidden;
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Background Image Layer */
.ind-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s ease;
    filter: brightness(0.55) saturate(0.9);
    /* Darker base */
}

/* Deep gradient for text legibility */
.ind-card-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 40%,
            rgba(0, 0, 0, 0.6) 70%,
            rgba(0, 0, 0, 0.95) 100%);
    opacity: 0.9;
}

/* ── Content Area ── */
.ind-card-content {
    position: relative;
    z-index: 2;
    transition: transform 0.6s ease;
}

/* Blurred Icon Background */
.ind-card-icon-wrap {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 16px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink) !important;
    margin-bottom: 20px;
    transition: all 0.5s ease;
}

.ind-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--ink) !important;
    color: var(--ink) !important;
}

.ind-card-name {
    font-family: var(--font-primary);
    font-size: 21px;
    /* Slightly smaller */
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
    color: var(--ink) !important;
    line-height: 1.2;
}

.ind-card-tagline {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75) !important;
    letter-spacing: 0.15em;
    margin: 0;
}

/* Subtle focus indicator instead of bottom bar */
.ind-card-focus-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 16px !important;
    transition: border-color 0.6s ease;
    pointer-events: none;
    z-index: 3;
}

/* ══════════════════════════════════════════
   REFINED FOCUS STATE
   ══════════════════════════════════════════ */
.ind-card.is-focused {
    /* transform is now handled dynamically by JS for smooth area focus */
    z-index: 10;
    border-color: var(--ink-dim);
    box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.4);
}

.ind-card.is-focused .ind-card-bg {
    filter: brightness(0.75) saturate(1.1);
    transform: scale(1.1);
    /* Subtle internal zoom */
}

.ind-card.is-focused .ind-card-icon-wrap {
    /* Keeping icon background consistent with non-focus state (just slightly clearer) */
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--ink-dim);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.ind-card.is-focused .ind-card-name {
    color: var(--ink);
    /* Keeping text color same */
}

.ind-preview-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 700;
    color: #ffffff !important;
    text-decoration: none;
    padding: 16px 36px;
    background: var(--grad-cta) !important;
    border: none !important;
    border-radius: 100px !important; /* Premium pill shape */
    box-shadow: 0 8px 32px rgba(255, 61, 138, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ind-preview-cta:hover {
    background: var(--grad-cta) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 61, 138, 0.45), 0 0 12px rgba(255, 181, 71, 0.2) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

/* Responsive */
@media (max-width: 768px) {
    .ind-preview-section {
        padding: 60px 0 80px;
    }

    .ind-preview-container {
        padding: 0 20px;
    }

    .ind-card {
        width: 220px;
        height: 300px;
        padding: 20px;
    }

    .ind-card-name {
        font-size: 18px;
    }

    .ind-card-icon-wrap {
        width: 44px;
        height: 44px;
        margin-bottom: 14px;
    }

    .ind-preview-heading {
        margin-bottom: 32px;
        font-size: clamp(24px, 6vw, 34px);
    }

    .ind-marquee-wrap {
        padding: 40px 0;
    }

    .ind-marquee-track {
        gap: 40px;
    }

    .ind-preview-cta {
        width: 100%;
        justify-content: center;
    }
}