/* ============================================================
   GLASSMORPHISM TRUST HERO — Industry Detail Page
   Dark theme, glassmorphism cards, marquee, text reveal
   ============================================================ */

/* ---------- Keyframes ---------- */
@keyframes gmFadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gmMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes gmPing {
    0% {
        transform: scale(1);
        opacity: 0.75;
    }

    75% {
        transform: scale(2.2);
        opacity: 0;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

@keyframes gmFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

/* ---- Text Reveal Shutter Effect ---- */
@keyframes shutterBlurIn {
    from {
        opacity: 0;
        filter: blur(12px);
    }

    to {
        opacity: 1;
        filter: blur(0px);
    }
}

@keyframes shutterSliceLeft {
    0% {
        transform: translateX(-110%);
        opacity: 0;
    }

    40% {
        opacity: 1;
    }

    100% {
        transform: translateX(110%);
        opacity: 0;
    }
}

@keyframes shutterSliceRight {
    0% {
        transform: translateX(110%);
        opacity: 0;
    }

    40% {
        opacity: 1;
    }

    100% {
        transform: translateX(-110%);
        opacity: 0;
    }
}

/* ---------- Hero Section ---------- */
.gm-hero {
    position: relative;
    width: 100%;
    background: #0a0a0f;
    color: #fff !important;
    overflow: hidden;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    padding: 6rem 0 3.5rem;
}

/* Force ALL headings inside hero to white — overrides global var(--text-heading) !important */
.gm-hero h1,
.gm-hero h2,
.gm-hero h3,
.gm-hero h4,
.gm-hero h5,
.gm-hero h6,
.gm-hero .display-1,
.gm-hero .display-2,
.gm-hero .display-3,
.gm-hero .display-4 {
    color: #fff !important;
}

/* Background image overlay */
.gm-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 10%, black 65%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, black 10%, black 65%, transparent 100%);
}

/* Gradient overlay for depth */
.gm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.gm-hero-inner {
    position: relative;
    z-index: 10;
}

/* ---------- Animations ---------- */
.gm-fade-in {
    animation: gmFadeSlideIn 0.8s ease-out forwards;
    opacity: 0;
}

.gm-delay-1 {
    animation-delay: 0.1s;
}

.gm-delay-2 {
    animation-delay: 0.2s;
}

.gm-delay-3 {
    animation-delay: 0.3s;
}

.gm-delay-4 {
    animation-delay: 0.4s;
}

.gm-delay-5 {
    animation-delay: 0.5s;
}

/* ---------- Breadcrumb (Dark) ---------- */
.gm-hero .breadcrumb {
    background: rgba(255, 255, 255, 0.08);
    /* More opaque */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 8px 24px;
    margin: 0 0 2rem;
    display: inline-flex;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    /* Stronger shadow */
}

.gm-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.gm-hero .breadcrumb-item a:hover {
    color: rgba(255, 255, 255, 0.75);
}

.gm-hero .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    font-size: 0.8rem;
}

.gm-hero .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.2);
}

/* ---------- Badge ---------- */
.gm-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    padding: 6px 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.3s;
    cursor: default;
}

.gm-badge:hover {
    background: rgba(255, 255, 255, 0.08);
}

.gm-badge-text {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.6);
}

.gm-badge .fa-star {
    color: #fbbf24;
    font-size: 0.7rem;
}

/* ---------- Heading ---------- */
.gm-heading {
    font-family: 'Manrope', system-ui, -apple-system, sans-serif !important;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: #fff !important;
}

.gm-heading-gradient {
    background: linear-gradient(135deg, #fff 0%, #60a5fa 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gm-heading-accent {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}

/* ---------- Text Reveal Character ---------- */
.tr-char-wrap {
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.tr-char-wrap .tr-main {
    display: inline-block;
    opacity: 0;
    filter: blur(12px);
}

.tr-char-wrap.tr-visible .tr-main {
    animation: shutterBlurIn 0.7s ease-out forwards;
}

/* Slice layers */
.tr-char-wrap .tr-slice {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}

.tr-char-wrap.tr-visible .tr-slice-top {
    animation: shutterSliceLeft 0.6s ease-in-out forwards;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    color: #60a5fa;
}

.tr-char-wrap.tr-visible .tr-slice-mid {
    animation: shutterSliceRight 0.6s 0.08s ease-in-out forwards;
    clip-path: polygon(0 35%, 100% 35%, 100% 65%, 0 65%);
    color: rgba(255, 255, 255, 0.7);
}

.tr-char-wrap.tr-visible .tr-slice-bot {
    animation: shutterSliceLeft 0.6s 0.16s ease-in-out forwards;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    color: #a78bfa;
}

/* Gradient highlight support for text reveal */
.tr-char-wrap.gm-heading-gradient .tr-main {
    background: linear-gradient(135deg, #fff 0%, #60a5fa 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    /* Fallback */
}

/* ---------- Description ---------- */
.gm-description {
    max-width: 540px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.65;
    margin-bottom: 2rem;
}

/* ---------- CTA Buttons ---------- */
.gm-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 9999px;
    background: #fff;
    color: #0a0a0f;
    padding: 14px 32px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
}

.gm-btn-primary:hover {
    transform: scale(1.03);
    background: #f0f0f5;
    color: #0a0a0f;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.12);
}

.gm-btn-primary:active {
    transform: scale(0.98);
}

.gm-btn-primary .fa {
    transition: transform 0.2s;
}

.gm-btn-primary:hover .fa {
    transform: translateX(3px);
}

.gm-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.7);
    padding: 14px 32px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.gm-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ---------- Glass Card ---------- */
.gm-glass-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.gm-glass-card-glow {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* ---------- Stats ---------- */
.gm-stat-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gm-stat-icon-box .fa {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
}

.gm-stat-big {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1;
}

.gm-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 2px;
}

/* Progress Bar */
.gm-progress-wrap {
    margin: 1.5rem 0;
}

.gm-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.gm-progress-header .label {
    color: rgba(255, 255, 255, 0.35);
}

.gm-progress-header .value {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.gm-progress-bar {
    height: 6px;
    width: 100%;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.gm-progress-fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
}

/* Divider */
.gm-divider {
    height: 1px;
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    margin: 1.25rem 0;
}

/* Mini Stats Grid */
.gm-mini-stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    text-align: center;
}

.gm-mini-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s;
    cursor: default;
}

.gm-mini-stat-item:hover {
    transform: translateY(-2px);
}

.gm-mini-stat-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.gm-mini-stat-label {
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
}

.gm-mini-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.06);
}

/* Tag Pills */
.gm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1.5rem;
}

.gm-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    padding: 5px 12px;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
}

.gm-ping-dot {
    position: relative;
    width: 8px;
    height: 8px;
}

.gm-ping-dot-ping {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #4ade80;
    opacity: 0.75;
    animation: gmPing 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.gm-ping-dot-core {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}

.gm-tag .fa-trophy {
    color: #fbbf24;
    font-size: 0.65rem;
}

/* ---------- Marquee Card ---------- */
.gm-marquee-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-top: 1.5rem;
}

.gm-marquee-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    padding: 0 2rem;
    margin-bottom: 1rem;
}

.gm-marquee-track {
    position: relative;
    display: flex;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.gm-marquee-inner {
    display: flex;
    gap: 48px;
    white-space: nowrap;
    padding: 0 16px;
    animation: gmMarquee 30s linear infinite;
}

.gm-marquee-item {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.35;
    cursor: default;
    transition: opacity 0.3s, transform 0.3s;
    flex-shrink: 0;
}

.gm-marquee-item:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.gm-marquee-item .fa {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
}

.gm-marquee-item-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: -0.01em;
}

/* ---- Industry Info Chips ---- */
.gm-info-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1.25rem;
}

.gm-info-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    transition: background 0.2s;
}

.gm-info-chip:hover {
    background: rgba(255, 255, 255, 0.06);
}

.gm-info-chip .fa {
    color: #60a5fa;
    font-size: 0.65rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 575.98px) {
    .gm-hero {
        padding: 4rem 0 2rem;
    }

    .gm-heading {
        font-size: 2rem;
        line-height: 1.1;
    }

    .gm-description {
        font-size: 0.9rem;
    }

    .gm-btn-primary,
    .gm-btn-ghost {
        padding: 12px 24px;
        font-size: 0.8rem;
        width: 100%;
        justify-content: center;
    }

    .gm-glass-card {
        padding: 1.25rem;
        border-radius: 18px;
    }

    .gm-stat-big {
        font-size: 1.5rem;
    }

    .gm-marquee-inner {
        gap: 28px;
    }

    .gm-marquee-card {
        border-radius: 18px;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .gm-hero {
        padding: 5rem 0 2.5rem;
    }

    .gm-heading {
        font-size: 2.8rem;
    }

    .gm-glass-card {
        padding: 1.5rem;
    }
}

@media (max-width: 991.98px) {
    .gm-right-col {
        margin-top: 2rem;
    }
}

/* ============================================================
   TEXT REVEAL — Reusable across site
   Apply class "text-reveal" to any element + IntersectionObserver
   ============================================================ */
.text-reveal-char {
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.text-reveal-char>.tr-c {
    display: inline-block;
    opacity: 0;
    filter: blur(10px);
    transition: none;
}

.text-reveal-char.revealed>.tr-c {
    animation: shutterBlurIn 0.6s ease-out forwards;
}

.text-reveal-char>.tr-s {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
}

.text-reveal-char.revealed>.tr-s1 {
    animation: shutterSliceLeft 0.55s ease-in-out forwards;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    color: var(--tr-accent, #60a5fa);
}

.text-reveal-char.revealed>.tr-s2 {
    animation: shutterSliceRight 0.55s 0.07s ease-in-out forwards;
    clip-path: polygon(0 35%, 100% 35%, 100% 65%, 0 65%);
    color: var(--tr-mid, rgba(0, 0, 0, 0.5));
}

.text-reveal-char.revealed>.tr-s3 {
    animation: shutterSliceLeft 0.55s 0.14s ease-in-out forwards;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    color: var(--tr-accent, #60a5fa);
}

/* Dark variant */
.gm-hero .text-reveal-char.revealed>.tr-s2 {
    color: rgba(255, 255, 255, 0.5);
}