/* Updated Industry Section Layout */
.industries-layout {
    display: flex;
    flex-direction: row;
    gap: 40px;
    position: relative;
    /* align-items: flex-start;  Important for sticky behavior */
}

.industry-visual-col {
    flex: 1;
    position: relative;
    /* This column stays while right side scrolls */
    min-width: 0;
    /* Flexbox fix */
}

.sticky-frame {
    position: sticky;
    top: 100px;
    /* Adjust header offset */
    height: 70vh;
    /* Viewport height for the sticky element */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#industry-scroll-canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Changed to contain to see full frame */
}

.industry-content-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 50px;
    /* Extra space at bottom */
}

.industry-card-new {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    /* Min height to ensure scroll triggers are distinct */
    min-height: 50vh;
    /* Takes up screen space */
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.industry-card-new:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 242, 255, 0.1);
}

.industry-card-new .card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.industry-card-new h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.industry-card-new p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 20px;
}

.agents-list {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 10px;
    border-left: 3px solid var(--secondary-color);
}

.agents-list h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.agents-list ul {
    list-style: none;
    padding-left: 0;
}

.agents-list ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.agents-list ul li::before {
    content: '→';
    /* changed to arrow */
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Responsive for Industries */
@media (max-width: 900px) {
    .industries-layout {
        flex-direction: column;
    }

    .sticky-frame {
        position: static;
        height: 300px;
        margin-bottom: 30px;
    }

    .industry-card-new {
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .industry-card-new {
        padding: 20px;
        margin-bottom: 30px;
    }

    .industry-card-new h3 {
        font-size: 1.5rem;
    }

    .sticky-frame {
        height: 250px;
    }
}

/* Active card highlight */
.active-card {
    border-color: var(--primary-color) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    transform: scale(1.02);
}