/* ==========================================================================
   BMT IMPEX - PREMIUM INDUSTRIAL MOTION & SECTION SCROLL ANIMATIONS
   Ultra-High-Performance, Hardware-Accelerated (will-change: transform, opacity)
   ========================================================================== */

/* 1. Keyframe Definitions */
@keyframes bmtFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(1deg);
    }
}

@keyframes bmtFloatSubtle {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes bmtFloatSubtleDelay {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(8px);
    }
}

@keyframes bmtGlowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.08);
    }
}

@keyframes bmtShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 2. Floating Utility Classes */
.bmt-floating {
    animation: bmtFloat 5s ease-in-out infinite;
    will-change: transform;
}

.bmt-float-subtle {
    animation: bmtFloatSubtle 4.5s ease-in-out infinite;
    will-change: transform;
}

.bmt-float-subtle-delay {
    animation: bmtFloatSubtleDelay 5.2s ease-in-out infinite;
    will-change: transform;
}

/* 3. Scroll Reveal Classes (Driven by IntersectionObserver) */
.bmt-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.bmt-reveal-left {
    opacity: 0;
    transform: translateX(-35px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.bmt-reveal-right {
    opacity: 0;
    transform: translateX(35px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.bmt-reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* Triggered visible state */
.bmt-reveal.is-visible,
.bmt-reveal-left.is-visible,
.bmt-reveal-right.is-visible,
.bmt-reveal-scale.is-visible {
    opacity: 1 !important;
    transform: translate(0, 0) scale(1) !important;
}

/* 4. Staggered Grid Transitions */
.bmt-stagger > *:nth-child(1) { transition-delay: 0.04s; }
.bmt-stagger > *:nth-child(2) { transition-delay: 0.08s; }
.bmt-stagger > *:nth-child(3) { transition-delay: 0.12s; }
.bmt-stagger > *:nth-child(4) { transition-delay: 0.16s; }
.bmt-stagger > *:nth-child(5) { transition-delay: 0.20s; }
.bmt-stagger > *:nth-child(6) { transition-delay: 0.24s; }
.bmt-stagger > *:nth-child(7) { transition-delay: 0.28s; }
.bmt-stagger > *:nth-child(8) { transition-delay: 0.32s; }

/* 5. Interactive Hover Elevate Effects */
.bmt-card-hover {
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.24s ease !important;
}

.bmt-card-hover:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12), 0 4px 10px rgba(239, 68, 68, 0.08) !important;
}

/* 6. Hero Specific Split Layout Styles */
.hero-split-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    align-items: center;
    gap: 48px;
    width: 100%;
    position: relative;
    z-index: 5;
    padding: 0;
}

.hero-section-clean {
    position: relative;
    background: radial-gradient(circle at 82% 42%, rgba(220, 38, 38, 0.18) 0%, rgba(37, 99, 235, 0.12) 38%, transparent 70%),
                linear-gradient(135deg, #0b1329 0%, #131d36 50%, #0d1527 100%) !important;
    padding: 130px 0 75px 0 !important;
    min-height: auto;
    height: auto !important;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-text-col {
    text-align: left;
}

.hero-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ff6b6b;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.38);
    border-radius: 6px;
    padding: 6px 14px;
    margin-bottom: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.15);
}

#bmt-page-body .hero-title,
.hero-title {
    margin: 0 0 18px 0;
    font-size: clamp(2.3rem, 3.8vw, 3.4rem) !important;
    line-height: 1.16 !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
}

.hero-gradient-text {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #ef4444;
    display: inline-block;
    text-shadow: none !important;
    filter: none !important;
}

.hero-description {
    font-size: 1.06rem;
    line-height: 1.68;
    color: #94a3b8;
    max-width: 580px;
    margin: 0 0 26px 0;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 10px;
}

.hero-primary-btn {
    padding: 15px 38px;
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: 12px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.45);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.01em;
}

.hero-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(239, 68, 68, 0.6);
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.hero-primary-btn .hero-btn-arrow {
    font-size: 0.9em;
    transition: transform 0.2s ease;
}

.hero-primary-btn:hover .hero-btn-arrow {
    transform: translateX(4px);
}

.hero-micro-trust {
    font-size: 0.84rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.hero-visual-col {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-ambient-glow {
    position: absolute;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.22) 0%, rgba(37, 99, 235, 0.14) 50%, transparent 70%);
    filter: blur(55px);
    z-index: 1;
    pointer-events: none;
    animation: bmtGlowPulse 6s ease-in-out infinite;
}

.hero-bearing-wrapper {
    position: relative;
    z-index: 2;
    max-width: 100%;
    display: flex;
    justify-content: center;
}

.hero-bearing-img {
    max-width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: contain;
    filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.45));
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-section-clean {
        padding: 105px 0 50px 0 !important;
    }
    .hero-split-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 0;
    }
    .hero-text-col {
        text-align: center;
    }
    #bmt-page-body .hero-title,
    .hero-title {
        font-size: 2.35rem !important;
        line-height: 1.2 !important;
    }
    .hero-tagline {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        align-items: center;
        text-align: center;
    }
    .hero-micro-trust {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .hero-section-clean {
        padding: 95px 0 40px 0 !important;
    }
    #bmt-page-body .hero-title,
    .hero-title {
        font-size: 1.9rem !important;
        line-height: 1.22 !important;
    }
    .hero-description {
        font-size: 0.95rem;
    }
    .hero-actions {
        width: 100%;
        align-items: stretch;
    }
    .hero-primary-btn {
        width: 100%;
        justify-content: center;
        padding: 15px 24px;
        font-size: 1rem;
    }
    .hero-micro-trust {
        justify-content: center;
        font-size: 0.78rem;
    }
    .hero-bearing-img {
        max-height: 280px;
    }
}

/* Respect Accessibility Settings */
@media (prefers-reduced-motion: reduce) {
    .bmt-floating,
    .bmt-float-subtle,
    .bmt-float-subtle-delay,
    .hero-ambient-glow {
        animation: none !important;
    }
    .bmt-reveal,
    .bmt-reveal-left,
    .bmt-reveal-right,
    .bmt-reveal-scale {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Ensure Our Brands logo row is strictly in one single row on ALL devices */
.our-brands-row,
#brandsSection .our-brands-row,
.lp-brands .our-brands-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: clamp(14px, 4.5vw, 45px) !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
}

.our-brands-row img,
#brandsSection .our-brands-row img,
.lp-brands .our-brands-row img {
    height: clamp(34px, 7.5vw, 52px) !important;
    max-width: clamp(85px, 26vw, 140px) !important;
    width: auto !important;
    object-fit: contain !important;
    flex-shrink: 1 !important;
}

