:root {
    --bg-dark: #0B0F0E;
    --card-bg: rgba(255, 255, 255, 0.03);
    --accent-green: #00ff88;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
    z-index: 10;
}

.text-accent {
    color: var(--accent-green);
}

.text-primary {
    color: var(--text-primary);
}

/* Hero Section */
.industries-hero {
    position: relative;
    min-height: 450px;
    height: 55vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
    background-color: #050706;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 136, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.08) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 1;
    mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.03) 0%, transparent 70%);
    z-index: 2;
}

.hero-content {
    z-index: 10;
    width: 100%;
    text-align: center;
}

/* Responsive Hero */
@media (max-width: 1440px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 1024px) {
    .industries-hero {
        min-height: auto;
        height: auto;
        padding: 140px 1.5rem 4rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .back-link {
        top: 90px;
        left: 1rem;
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.85rem;
    }
}


.back-link {
    position: absolute;
    top: 110px;
    left: 4rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    opacity: 0.9;
    z-index: 100;
}

.back-link:hover {
    opacity: 1;
    transform: translateX(-5px);
}

.industry-tabs-section {
    background: #080B0A;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 80px;
    z-index: 90;
    padding: 1.25rem 0;
}

@media (max-width: 992px) {
    .industry-tabs-section {
        top: 65px;
    }
}


.tabs-container {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: nowrap;
    padding: 1rem 0;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.tabs-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.tab-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
}

.tab-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.tab-item.active {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #000;
}

.tab-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    /* Inactive icons are green in industries page as per branding */
    filter: invert(72%) sepia(94%) saturate(748%) hue-rotate(103deg) brightness(103%) contrast(104%);
    transition: filter 0.3s ease;
}

.tab-item.active .tab-icon {
    filter: brightness(0);
}

.tab-item:hover .tab-icon {
    filter: invert(72%) sepia(94%) saturate(748%) hue-rotate(103deg) brightness(120%) contrast(104%);
}

.tab-item.active:hover .tab-icon {
    filter: brightness(0);
}

/* Main Content Area */
.industry-content-section {
    padding: 6rem 0 0 0;
}

#industry-display {
    transition: opacity 0.3s ease-in-out;
}

.industry-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 6rem;
    align-items: start;
}

.industry-grid.layout-reversed {
    grid-template-columns: 0.9fr 1.1fr;
}

.industry-grid.layout-reversed .industry-col-left {
    order: 2;
}

.industry-grid.layout-reversed .industry-col-right {
    order: 1;
}

/* Left Column */
.industry-brand {
    margin-bottom: 3.5rem;
}

.industry-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.industry-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 550px;
    line-height: 1.6;
}

/* Sections Styling */
.challenges-section,
.thingsx-section,
.outcomes-section {
    margin-bottom: 4rem;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-label img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.section-label span {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Challenges Grid */
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 20px;
}

.challenge-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.challenge-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.challenge-item .dot {
    width: 8px;
    height: 8px;
    background: #ff4d4d;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.4);
}

.challenge-item span:not(.dot) {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Solutions List */
.solutions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.solution-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.8rem 2rem;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.solution-item:hover {
    background: rgba(0, 255, 136, 0.04);
    border-color: rgba(0, 255, 136, 0.1);
}

.check-icon,
.check-circle {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.check-circle {
    margin-top: 0;
    /* Center vertically in outcomes */
}

.circular-check {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.solution-text h4 {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.solution-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Outcomes Grid */
.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 20px;
}

.outcome-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: rgba(0, 255, 136, 0.04);
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.outcome-card:hover {
    background: rgba(0, 255, 136, 0.08);
    transform: translateY(-3px);
}



.outcome-card span {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Industry Explorer Wrapper to contain sticky elements */
.industry-explorer-wrapper {
    position: relative;
    z-index: 10;
}

/* Right Column - Image wrapper */
.industry-col-right {
    position: sticky;
    top: 180px;
    /* Adjusted to be closer to tabs */
    height: fit-content;
}

.industry-image-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 136, 0.1);
    padding: 1rem;
    border-radius: 20px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    transition: all 0.4s ease;
    max-height: calc(100vh - 220px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.industry-image-wrapper:hover {
    border-color: rgba(0, 255, 136, 0.3);
}

.main-industry-img {
    width: 100%;
    height: auto;
    max-height: 100%;
    border-radius: 12px;
    display: block;
    object-fit: contain;
}

/* Responsive Styles */
@media (max-width: 1200px) {

    .industry-grid,
    .industry-grid.layout-reversed {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .industry-col-right,
    .industry-grid.layout-reversed .industry-col-right {
        position: static;
        order: -1;
        margin-bottom: 2rem;
    }

    .industry-col-left,
    .industry-grid.layout-reversed .industry-col-left {
        order: 2;
    }

    .industry-image-wrapper {
        max-width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .industry-brand {
        margin-bottom: 2.5rem;
    }

    .industry-title {
        font-size: 2rem;
    }

    .challenges-grid,
    .outcomes-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .section-label span {
        font-size: 1.2rem;
    }

    .solution-item {
        padding: 1.5rem;
        gap: 1rem;
    }

    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.2rem;
    }

    .industry-title {
        font-size: 1.75rem;
    }

    .outcome-card {
        padding: 1rem;
        gap: 0.75rem;
    }
}


/* Final CTA Section */
.final-cta-section {
    padding: 3rem 0 8rem 0;
    text-align: center;
    background-color: var(--bg-dark);
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn-primary {
    background-color: var(--accent-green);
    color: #000;
    border: 1px solid var(--accent-green);
}

.cta-btn-primary:hover {
    background-color: #00cc6a;
    border-color: #00cc6a;
    transform: translateY(-2px);
}

.cta-btn-secondary {
    background-color: transparent;
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

.cta-btn-secondary:hover {
    background-color: rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cta-title {
        font-size: 2.5rem;
    }

    .cta-actions {
        flex-direction: column;
        gap: 1rem;
        padding: 0 2rem;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}