/* ==========================================================================
   SBTU Stage3D Stats Section
   Deep-Tech Glassmorphism + Interactive 3D Canvas Stage
   ========================================================================== */

.sbtu-stage3d-stats {
    position: relative;
    width: 100%;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 80% at 15% 10%, rgba(56, 189, 248, 0.34) 0%, rgba(13, 59, 102, 0) 62%),
        radial-gradient(ellipse 65% 80% at 88% 90%, rgba(0, 198, 255, 0.3) 0%, rgba(13, 59, 102, 0) 60%),
        linear-gradient(135deg, #0d3b66 0%, #0b63a3 50%, #009fe3 100%);
    padding: 28px 0 32px;
    border-top: 1px solid rgba(186, 230, 253, 0.45);
    isolation: isolate;
    color: #ffffff;
}

/* Subtle architectural grid overlay */
.sbtu-stage3d-stats::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 159, 227, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 159, 227, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, #000 35%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, #000 35%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Top luminous divider glow */
.sbtu-stage3d-stats::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: min(620px, 80%);
    height: 2px;
    background: linear-gradient(90deg, transparent, #00c6ff, #ffffff, #00c6ff, transparent);
    box-shadow: 0 0 18px rgba(0, 198, 255, 0.85);
    pointer-events: none;
    z-index: 2;
}

.sbtu-stage3d-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    z-index: 1;
}

.sbtu-stage3d-container {
    position: relative;
    z-index: 3;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

/* Section Header */
.sbtu-stage3d-header {
    text-align: center;
    margin-bottom: 18px;
}

.sbtu-stage3d-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.38);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.sbtu-stage3d-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 10px #ffffff;
    animation: sbtuStagePulse 2.2s ease-in-out infinite;
}

@keyframes sbtuStagePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.45;
        transform: scale(0.75);
    }
}

/* 4-Column Responsive Grid */
.sbtu-stage3d-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    perspective: 1100px;
}

/* Glassmorphism 3D Stat Card */
.sbtu-stage3d-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 14px 16px;
    border-radius: 14px;
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.19) 0%,
        rgba(255, 255, 255, 0.09) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow:
        0 16px 34px -14px rgba(6, 26, 56, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform-style: preserve-3d;
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.28s ease,
        box-shadow 0.28s ease,
        background 0.28s ease;
    overflow: hidden;
    will-change: transform;
}

/* Top Accent Bar */
.sbtu-stage3d-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, #009fe3, #38bdf8);
    opacity: 0.75;
    transition: left 0.3s ease, right 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

.sbtu-stage3d-card:hover {
    border-color: rgba(56, 189, 248, 0.55);
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(0, 159, 227, 0.08) 100%
    );
    box-shadow:
        0 26px 52px -16px rgba(0, 0, 0, 0.72),
        0 0 28px -6px rgba(0, 159, 227, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.sbtu-stage3d-card:hover::before {
    left: 10%;
    right: 10%;
    opacity: 1;
    box-shadow: 0 0 14px rgba(0, 198, 255, 0.8);
}

/* Subtle crimson accent variant on alternate or hover ring */
.sbtu-stage3d-card[data-accent="red"]::before {
    background: linear-gradient(90deg, #e53935, #ff6b6b);
}
.sbtu-stage3d-card[data-accent="red"]:hover {
    border-color: rgba(255, 107, 107, 0.45);
    box-shadow:
        0 26px 52px -16px rgba(0, 0, 0, 0.72),
        0 0 28px -6px rgba(229, 57, 53, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.sbtu-stage3d-card[data-accent="red"]:hover::before {
    box-shadow: 0 0 14px rgba(229, 57, 53, 0.75);
}

/* Interactive Specular Glare Layer */
.sbtu-stage3d-glare {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    background: radial-gradient(
        circle 220px at var(--glare-x, 50%) var(--glare-y, 50%),
        rgba(255, 255, 255, 0.16),
        transparent 70%
    );
    z-index: 0;
}

.sbtu-stage3d-card:hover .sbtu-stage3d-glare {
    opacity: 1;
}

/* 3D Floating Icon Badge */
.sbtu-stage3d-icon {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow:
        0 8px 20px -8px rgba(6, 26, 56, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 19px;
    transform: translateZ(20px);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.sbtu-stage3d-card[data-accent="red"] .sbtu-stage3d-icon {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow:
        0 8px 20px -8px rgba(6, 26, 56, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.sbtu-stage3d-card:hover .sbtu-stage3d-icon {
    transform: translateZ(34px) scale(1.08);
    color: #0b63a3;
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 12px 26px -6px rgba(6, 26, 56, 0.45);
}

.sbtu-stage3d-card[data-accent="red"]:hover .sbtu-stage3d-icon {
    color: #d81b24;
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 12px 26px -6px rgba(216, 27, 36, 0.45);
}

/* Counter Number */
.sbtu-stage3d-value {
    position: relative;
    z-index: 1;
    display: block;
    font-size: clamp(26px, 2.4vw, 34px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: #ffffff;
    text-shadow: 0 4px 16px rgba(0, 159, 227, 0.35);
    transform: translateZ(16px);
    margin-bottom: 8px;
}

/* Divider */
.sbtu-stage3d-divider {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.85), transparent);
    margin: 0 auto 8px;
    transition: width 0.3s ease;
}

.sbtu-stage3d-card:hover .sbtu-stage3d-divider {
    width: 48px;
}

.sbtu-stage3d-card[data-accent="red"] .sbtu-stage3d-divider {
    background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.85), transparent);
}

/* Label */
.sbtu-stage3d-label {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.88);
    line-height: 1.3;
    transform: translateZ(12px);
}

/* Tablet */
@media (max-width: 991px) {
    .sbtu-stage3d-stats {
        padding: 24px 0 28px;
    }
    .sbtu-stage3d-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .sbtu-stage3d-header {
        margin-bottom: 16px;
    }
}

/* Mobile */
@media (max-width: 540px) {
    .sbtu-stage3d-stats {
        padding: 20px 0 24px;
    }
    .sbtu-stage3d-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .sbtu-stage3d-card {
        padding: 14px 10px 12px;
        border-radius: 12px;
    }
    .sbtu-stage3d-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 16px;
        margin-bottom: 8px;
    }
    .sbtu-stage3d-value {
        font-size: 24px;
        margin-bottom: 6px;
    }
    .sbtu-stage3d-divider {
        margin-bottom: 6px;
    }
    .sbtu-stage3d-label {
        font-size: 10.5px;
        letter-spacing: 0.05em;
    }
}

@media (max-width: 360px) {
    .sbtu-stage3d-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sbtu-stage3d-badge-dot {
        animation: none;
    }
    .sbtu-stage3d-card,
    .sbtu-stage3d-icon {
        transition: none;
    }
}

/* ==========================================================================
   SBTU Brands / Fairs Showcase Band (Crisp Light Contrast above Stage3D)
   ========================================================================== */

.sbtu-brands-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 26px 0 30px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%);
    border-top: 1px solid #e2e8f0;
    isolation: isolate;
}

.sbtu-brands-section::before {
    display: none !important;
    content: none !important;
}

.sbtu-brands-container {
    position: relative;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.sbtu-brands-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.sbtu-brands-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 13px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #dbe4f0;
    color: #0f2942;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.sbtu-brands-badge .sbtu-stage3d-badge-dot {
    background: #009fe3;
    box-shadow: 0 0 8px rgba(0, 159, 227, 0.65);
}

.sbtu-brands-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sbtu-brands-nav {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #d5e0ec;
    background: #ffffff;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sbtu-brands-nav:hover {
    background: #009fe3;
    border-color: #009fe3;
    color: #ffffff;
    transform: scale(1.06);
    box-shadow: 0 6px 16px rgba(0, 159, 227, 0.35);
}

.sbtu-brands-viewport {
    position: relative;
    overflow: hidden;
    padding: 4px 0 8px;
}

.sbtu-brands-track {
    display: flex;
    align-items: stretch;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 0;
}

.sbtu-brands-track::-webkit-scrollbar {
    display: none;
}

.sbtu-brands-item {
    flex: 0 0 calc((100% - 48px) / 4);
    scroll-snap-align: start;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 5px;
    box-shadow: 0 4px 14px -4px rgba(15, 23, 42, 0.09);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    overflow: hidden;
}

.sbtu-brands-item:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 159, 227, 0.55);
    box-shadow:
        0 14px 26px -10px rgba(15, 23, 42, 0.16),
        0 0 0 2px rgba(0, 159, 227, 0.12);
}

.sbtu-brands-item img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 112px;
    object-fit: contain;
    border-radius: 8px;
}

@media (max-width: 991px) {
    .sbtu-brands-item {
        flex: 0 0 calc((100% - 32px) / 3);
    }
}

@media (max-width: 768px) {
    .sbtu-brands-section {
        padding: 20px 0 24px;
    }
    .sbtu-brands-item {
        flex: 0 0 calc((100% - 16px) / 2);
    }
    .sbtu-brands-nav {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .sbtu-brands-item {
        flex: 0 0 82%;
    }
}
