/* Global scale variable */
.bm-button-wrapper {
    transform: scale(var(--bm-scale, 1));
    transform-origin: center center;
}

/* Base Button Styles */
.bm-button-wrapper {
    display: inline-block;
    position: relative;
}

.bm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    --bm-animation-speed: 0.3s;
    --bm-position-speed: 0.3s;
    transition: background 0.3s ease-in-out;
    background: transparent;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: 1;
}

.bm-button-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.bm-button-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Only add transitions for position animations */
.bm-button[class*="bm-position-"]:not(.bm-position-none) {
    transition: transform var(--bm-position-speed) ease-in-out;
}

/* Remove all transitions when no animations */
.bm-button.bm-position-none {
    transition: none !important;
}

/* Hermosa Button Style */
.bm-button-hermosa {
    display: inline-block;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    line-height: 1;
    opacity: 1 !important;
}

.bm-button-hermosa .bm-button-inner {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
}

/* Hover/Border background (supports gradient) */
.bm-button-hermosa .bm-button-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.53, 0.21, 0, 1);
    pointer-events: none;
    background: var(--e-global-color-primary);
}

/* Border and base styles */
.bm-button-hermosa .bm-button-inner {
    border: 2px solid var(--e-global-color-primary);
    transition: all 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

/* Hover state */
.bm-button-hermosa .bm-button-inner:hover::before {
    transform: translateX(0);
}

/* For gradient backgrounds, use a solid color for the border */
.bm-button-hermosa .bm-button-inner[style*="background-image"] {
    border-image: none !important;
}

.bm-button-hermosa .bm-button-inner[style*="background-image"]::before {
    background: var(--e-global-color-primary);
}

/* Editor specific styles */
.elementor-editor-active .bm-button-hermosa .bm-button-inner {
    pointer-events: auto;
}

/* Fix for gradient border */
[data-elementor-device-mode="desktop"] .bm-button-hermosa .bm-button-inner[style*="background-image"] {
    border-color: transparent !important;
}

/* End Hermosa Button Style */


.bm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    --bm-animation-speed: 0.3s;
    --bm-position-speed: 0.3s;
    transition: background 0.3s ease-in-out;
}

/* Only add transitions for position animations */
.bm-button[class*="bm-position-"]:not(.bm-position-none) {
    transition: transform var(--bm-position-speed) ease-in-out;
}

/* Remove all transitions when no animations */
.bm-animation-none.bm-position-none {
    transition: none !important;
}

.bm-animation-none.bm-position-none:hover {
    transition: none !important;
}

.bm-button-content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Preset Styles */
/* Basic */
.bm-button-basic {
    padding: 12px 24px;
    border-radius: 4px;
}

/* Gradient */
.bm-button-gradient{padding:12px 24px;border-radius:4px;background:linear-gradient(135deg,#ff6a00,#ee0979);color:#fff;}
.bm-button-gradient-blue{padding:12px 24px;border-radius:4px;background:linear-gradient(135deg,#2193b0,#6dd5ed);color:#fff;}

.bm-button-gradient-green{padding:12px 24px;border-radius:4px;background:linear-gradient(135deg,#56ab2f,#a8e063);color:#fff;}

.bm-button-gradient-purple{padding:12px 24px;border-radius:4px;background:linear-gradient(135deg,#8e2de2,#4a00e0);color:#fff;}

.bm-button-gradient-red{padding:12px 24px;border-radius:4px;background:linear-gradient(135deg,#eb1d44,#ff7b89);color:#fff;}

.bm-button-shadow:hover{
    box-shadow:0 4px 12px rgba(0,0,0,.35);
    transform:translateY(-2px);
}

/* Neon */
.bm-button-neon{
    padding:12px 24px;
    background:#111;
    color:#0ff;
    text-shadow:0 0 6px rgba(0,255,255,.7);
}
.bm-button-neon:hover{
    box-shadow:0 0 8px #0ff,0 0 20px #0ff inset;
}

/* Glass */
.bm-button-glass{
    padding:12px 24px;
    background:rgba(255,255,255,.15);
    backdrop-filter:blur(6px);
    border:1px solid rgba(255,255,255,.4);
    color:#fff;
}
.bm-button-glass:hover{background:rgba(255,255,255,.25);}
.bm-button-basic {
    padding: 12px 24px;
    border-radius: 4px;
}

.bm-button-minimal {
    padding: 10px 20px;
    background: transparent !important;
    border: 2px solid;
}

.bm-button-modern {
    padding: 15px 30px;
    border-radius: 50px;
}

/* Fill Animations Base */
[class*="bm-animation-fill-"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--e-button-hover-background, #000);
    z-index: 0;
    transition: clip-path var(--bm-animation-speed) ease;
}

/* Fill Left */
.bm-animation-fill-left::before {
    clip-path: inset(0 100% 0 0);
}

.bm-animation-fill-left:hover::before {
    clip-path: inset(0 0 0 0);
}

/* Fill Right */
.bm-animation-fill-right::before {
    clip-path: inset(0 0 0 100%);
}

.bm-animation-fill-right:hover::before {
    clip-path: inset(0 0 0 0);
}

/* Fill Top */
.bm-animation-fill-top::before {
    clip-path: inset(100% 0 0 0);
}

.bm-animation-fill-top:hover::before {
    clip-path: inset(0 0 0 0);
}

/* Fill Bottom */
.bm-animation-fill-bottom::before {
    clip-path: inset(0 0 100% 0);
}

.bm-animation-fill-bottom:hover::before {
    clip-path: inset(0 0 0 0);
}

/* Fill Center */
.bm-animation-fill-center::before {
    clip-path: circle(0% at 50% 50%);
}

.bm-animation-fill-center:hover::before {
    clip-path: circle(150% at 50% 50%);
}

/* Fill Diagonal */
.bm-animation-fill-diagonal::before {
    clip-path: polygon(0 0, 0 0, 0 0);
}

.bm-animation-fill-diagonal:hover::before {
    clip-path: polygon(-50% -50%, 150% 0, 0 150%);
}

/* Fill Circular */
.bm-animation-fill-circular::before {
    clip-path: circle(0% at 50% 50%);
}

.bm-animation-fill-circular:hover::before {
    clip-path: circle(100% at 50% 50%);
}

/* Position Animations */
.bm-position-bounce:hover{animation:bm-bounce var(--bm-position-speed) ease-in-out}
@keyframes bm-bounce{0%,20%,50%,80%,100%{transform:translateY(0)}40%{transform:translateY(-10px)}60%{transform:translateY(-5px)}}

.bm-position-shake:hover{animation:bm-shake var(--bm-position-speed) linear infinite}
@keyframes bm-shake{0%,100%{transform:translateX(0)}20%,60%{transform:translateX(-4px)}40%,80%{transform:translateX(4px)}}

.bm-position-flip:hover{transform:perspective(400px) rotateY(180deg)}

.bm-position-swing:hover{transform-origin:top;animation:bm-swing var(--bm-position-speed) ease-in-out}
@keyframes bm-swing{20%{transform:rotate(15deg)}40%{transform:rotate(-10deg)}60%{transform:rotate(5deg)}80%{transform:rotate(-5deg)}100%{transform:rotate(0deg)}}
.bm-position-scale:hover{transform:scale(var(--bm-scale-factor,1.1));}

.bm-position-shrink:hover{transform:scale(calc(1/var(--bm-scale-factor,1.1)));}

.bm-position-slide-right:hover{transform:translateX(var(--bm-slide-distance,10px))}
.bm-position-slide-left:hover{transform:translateX(calc(var(--bm-slide-distance,10px)*-1))}
.bm-position-slide-up:hover{transform:translateY(calc(var(--bm-slide-distance,10px)*-1))}
.bm-position-slide-down:hover{transform:translateY(var(--bm-slide-distance,10px))}

/* legacy */
.bm-position-slide:hover {
    transform: translateX(10px);
}

.bm-position-rotate:hover {
    transform: rotate(5deg);
}

.bm-position-skew:hover {
    transform: skew(-10deg);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.bm-position-pulse:hover {
    animation: pulse var(--bm-position-speed) infinite;
}

/* Headline gradient text support */
.bm-headline .bm-gradient{
    display:inline-block;
    background-clip:text;
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.bm-headline .bm-break{
    display:block;
    width:100%;
    height:var(--bm-line-gap, 0);
}

/* Headline wrapper reset */
.bm-headline {
    margin: 0 !important;
    line-height: 1;
}

/* Remove default Elementor widget spacing for BM Headline wrapper */
.elementor-widget-bm_headline {
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure BM Headline adapts to text size (no forced min-height) */
.elementor-widget-bm_headline,
.elementor-widget-bm_headline .elementor-widget-container,
.bm-headline {
    min-height: 0 !important;
}

/* Remove any residual spacing on the individual headline parts */
.bm-headline-part {
    margin: 0;
    padding: 0;
    line-height: inherit;
}

/* BM Card Widget Styles */
.bm-card {
    position: relative;
    display: flex;
    overflow: hidden;
    width: 100%;
    height: 400px; /* Default height */
}

.bm-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Auto-sizing mode - adapts to content */
.bm-overlay-auto {
    height: auto !important;
    min-height: auto;
}

/* Manual sizing mode - uses fixed height */
.bm-overlay-manual {
    height: 40%; /* Default, overridden by Elementor controls */
}

/* Text positioning variants */
.bm-card-overlay-top {
    top: 0;
    align-items: flex-start;
}

.bm-card-overlay-center {
    top: 50%;
    transform: translateY(-50%);
    align-items: center;
}

.bm-card-overlay-bottom {
    bottom: 0;
    align-items: flex-end;
}

/* Professional Overlay Transitions */
.bm-card-overlay {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bm-card:hover .bm-card-overlay {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Remove fade effects for solid overlays only */
.bm-overlay-solid::before {
    display: none;
}

/* Enhanced Overlay Styles */
.bm-overlay-solid {
    background-color: rgba(0,0,0,0.6);
    transition: background-color 0.4s ease;
}

.bm-card:hover .bm-overlay-solid {
    background-color: rgba(0,0,0,0.7);
}

.bm-overlay-blur {
    background-color: rgba(0,0,0,0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.4s ease;
}

.bm-card:hover .bm-overlay-blur {
    background-color: rgba(0,0,0,0.25);
}

/* Content Reveal Animation */
.bm-card-content {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bm-card:hover .bm-card-content {
    transform: translateY(-2px);
}

/* Icon Micro-interactions */
.bm-card-icon {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bm-card:hover .bm-card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Title Hover Effects */
.bm-card-title {
    transition: all 0.3s ease;
}

.bm-card:hover .bm-card-title {
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Gradient Text Shimmer Effect */
.bm-card-title.bm-gradient-text {
    background-size: 200% 200%;
    animation: gradientShimmer 3s ease-in-out infinite;
}

@keyframes gradientShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Super smooth blur edge transitions - only when smooth fade is selected */
.bm-card-overlay-bottom.bm-overlay-blur.bm-fade-smooth {
    mask: linear-gradient(to bottom,
        transparent 0%,
        rgba(0,0,0,0.1) 5%,
        rgba(0,0,0,0.3) 15%,
        rgba(0,0,0,0.6) 25%,
        rgba(0,0,0,0.8) 35%,
        rgba(0,0,0,0.95) 45%,
        rgba(0,0,0,1) 55%,
        rgba(0,0,0,1) 100%);
    -webkit-mask: linear-gradient(to bottom,
        transparent 0%,
        rgba(0,0,0,0.1) 5%,
        rgba(0,0,0,0.3) 15%,
        rgba(0,0,0,0.6) 25%,
        rgba(0,0,0,0.8) 35%,
        rgba(0,0,0,0.95) 45%,
        rgba(0,0,0,1) 55%,
        rgba(0,0,0,1) 100%);
}

.bm-card-overlay-top.bm-overlay-blur.bm-fade-smooth {
    mask: linear-gradient(to top,
        transparent 0%,
        rgba(0,0,0,0.1) 5%,
        rgba(0,0,0,0.3) 15%,
        rgba(0,0,0,0.6) 25%,
        rgba(0,0,0,0.8) 35%,
        rgba(0,0,0,0.95) 45%,
        rgba(0,0,0,1) 55%,
        rgba(0,0,0,1) 100%);
    -webkit-mask: linear-gradient(to top,
        transparent 0%,
        rgba(0,0,0,0.1) 5%,
        rgba(0,0,0,0.3) 15%,
        rgba(0,0,0,0.6) 25%,
        rgba(0,0,0,0.8) 35%,
        rgba(0,0,0,0.95) 45%,
        rgba(0,0,0,1) 55%,
        rgba(0,0,0,1) 100%);
}

.bm-card-overlay-center.bm-overlay-blur.bm-fade-smooth {
    mask: linear-gradient(to bottom,
        transparent 0%,
        rgba(0,0,0,0.2) 10%,
        rgba(0,0,0,0.5) 20%,
        rgba(0,0,0,0.8) 30%,
        rgba(0,0,0,1) 40%,
        rgba(0,0,0,1) 60%,
        rgba(0,0,0,0.8) 70%,
        rgba(0,0,0,0.5) 80%,
        rgba(0,0,0,0.2) 90%,
        transparent 100%);
    -webkit-mask: linear-gradient(to bottom,
        transparent 0%,
        rgba(0,0,0,0.2) 10%,
        rgba(0,0,0,0.5) 20%,
        rgba(0,0,0,0.8) 30%,
        rgba(0,0,0,1) 40%,
        rgba(0,0,0,1) 60%,
        rgba(0,0,0,0.8) 70%,
        rgba(0,0,0,0.5) 80%,
        rgba(0,0,0,0.2) 90%,
        transparent 100%);
}

.bm-card-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
}

.bm-card-title {
    margin: 0;
    font-size: 2em;
    font-weight: bold;
    line-height: 1.2;
}

/* Gradient text support for card title */
.bm-card-title.bm-gradient-text {
    display: inline-block;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Add spacing between title and subtitle only when both exist */
.bm-card-title + .bm-card-subtitle {
    margin-top: 10px;
}

.bm-card-subtitle {
    margin: 0;
    font-size: 1em;
    line-height: 1.4;
    opacity: 0.9;
}

/* Professional Card Base - GPU Accelerated */
.bm-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(0); /* Force GPU acceleration */
    backface-visibility: hidden;
    will-change: transform, box-shadow;
    position: relative;
}

/* Premium Hover Effects */
.bm-hover-lift {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bm-hover-lift:hover {
    transform: translateY(-12px) translateZ(0);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.15),
        0 12px 24px rgba(0,0,0,0.1),
        0 6px 12px rgba(0,0,0,0.05);
}

.bm-hover-lift::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: inherit;
}

.bm-hover-lift:hover::before {
    opacity: 1;
}

.bm-hover-scale {
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bm-hover-scale:hover {
    transform: scale(1.03) translateZ(0);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.bm-hover-tilt {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.bm-hover-tilt:hover {
    transform: perspective(1000px) rotateX(3deg) rotateY(3deg) translateZ(20px);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.15),
        0 8px 16px rgba(0,0,0,0.1);
}

.bm-hover-glow {
    transition: all 0.4s ease;
    position: relative;
}

.bm-hover-glow::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.4s ease;
}

.bm-hover-glow:hover::after {
    opacity: 0.7;
    animation: glowPulse 2s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% { filter: blur(8px); }
    100% { filter: blur(12px); }
}

/* Professional Entrance Animations */
.bm-animate-fadeIn {
    opacity: 0;
    animation: bmFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.bm-animate-slideUp {
    opacity: 0;
    transform: translateY(40px) translateZ(0);
    animation: bmSlideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.bm-animate-slideLeft {
    opacity: 0;
    transform: translateX(-40px) translateZ(0);
    animation: bmSlideLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.bm-animate-slideRight {
    opacity: 0;
    transform: translateX(40px) translateZ(0);
    animation: bmSlideRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.bm-animate-zoomIn {
    opacity: 0;
    transform: scale(0.85) translateZ(0);
    animation: bmZoomIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Staggered Content Animations */
.bm-animate-fadeIn .bm-card-content > *,
.bm-animate-slideUp .bm-card-content > *,
.bm-animate-slideLeft .bm-card-content > *,
.bm-animate-slideRight .bm-card-content > *,
.bm-animate-zoomIn .bm-card-content > * {
    opacity: 0;
    transform: translateY(20px);
    animation: bmContentStagger 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.bm-animate-fadeIn .bm-card-icon,
.bm-animate-slideUp .bm-card-icon,
.bm-animate-slideLeft .bm-card-icon,
.bm-animate-slideRight .bm-card-icon,
.bm-animate-zoomIn .bm-card-icon {
    animation-delay: 0.2s;
}

.bm-animate-fadeIn .bm-card-title,
.bm-animate-slideUp .bm-card-title,
.bm-animate-slideLeft .bm-card-title,
.bm-animate-slideRight .bm-card-title,
.bm-animate-zoomIn .bm-card-title {
    animation-delay: 0.3s;
}

.bm-animate-fadeIn .bm-card-subtitle,
.bm-animate-slideUp .bm-card-subtitle,
.bm-animate-slideLeft .bm-card-subtitle,
.bm-animate-slideRight .bm-card-subtitle,
.bm-animate-zoomIn .bm-card-subtitle {
    animation-delay: 0.4s;
}

.bm-animate-fadeIn .bm-card-button,
.bm-animate-slideUp .bm-card-button,
.bm-animate-slideLeft .bm-card-button,
.bm-animate-slideRight .bm-card-button,
.bm-animate-zoomIn .bm-card-button {
    animation-delay: 0.5s;
}

@keyframes bmFadeIn {
    to {
        opacity: 1;
    }
}

@keyframes bmSlideUp {
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

@keyframes bmSlideLeft {
    to {
        opacity: 1;
        transform: translateX(0) translateZ(0);
    }
}

@keyframes bmSlideRight {
    to {
        opacity: 1;
        transform: translateX(0) translateZ(0);
    }
}

@keyframes bmZoomIn {
    to {
        opacity: 1;
        transform: scale(1) translateZ(0);
    }
}

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

/* Icon Styles */
.bm-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bm-card-icon.bm-icon-above {
    display: block;
    margin-bottom: 10px;
}

.bm-card-icon.bm-icon-before {
    margin-right: 10px;
}

.bm-card-icon.bm-icon-after {
    margin-left: 10px;
}

/* Professional Button Styles */
.bm-card-button {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-top: 15px;
    padding: 12px 24px;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, box-shadow;
}

/* Ripple Effect */
.bm-card-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.bm-card-button:hover::before {
    width: 300px;
    height: 300px;
}

/* Enhanced Button Hover States */
.bm-card-button:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.bm-card-button:active {
    transform: translateY(0) translateZ(0);
    transition: transform 0.1s ease;
}

.bm-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.bm-button-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.bm-button-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.bm-button-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.bm-button-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.bm-button-outline:hover {
    background: #ffffff;
    color: #333333;
}

.bm-button-ghost {
    background: transparent;
    color: #ffffff;
    border: none;
    text-decoration: underline;
}

.bm-button-ghost:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}


/* Text Structure */
.bm-card-text {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bm-card {
        height: 300px;
    }
    
    .bm-card-title {
        font-size: 1.5em;
    }
    
    .bm-card-subtitle {
        font-size: 0.9em;
    }
    
    .bm-card-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .bm-card {
        height: 250px;
    }
    
    .bm-card-title {
        font-size: 1.3em;
    }
    
    .bm-card-subtitle {
        font-size: 0.8em;
    }
    
    .bm-card-button {
        padding: 8px 16px;
        font-size: 0.8em;
    }
}

/* Accessibility - Respect Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .bm-card,
    .bm-card-overlay,
    .bm-card-content,
    .bm-card-icon,
    .bm-card-title,
    .bm-card-button {
        animation: none !important;
        transition: none !important;
    }
    
    .bm-card-title.bm-gradient-text {
        animation: none !important;
        background-position: 0% 50% !important;
    }
    
    .bm-hover-glow::after {
        animation: none !important;
    }
}

/* Performance Optimizations */
.bm-card-overlay,
.bm-card-content,
.bm-card-icon,
.bm-card-button {
    will-change: auto;
}

.bm-card:hover .bm-card-overlay,
.bm-card:hover .bm-card-content,
.bm-card:hover .bm-card-icon,
.bm-card-button:hover {
    will-change: transform, opacity, backdrop-filter;
}

/* Focus States for Accessibility */
.bm-card-button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

/* ========================================
   BM Icon Box Widget Styles
   ======================================== */

.bm-icon-box {
    position: relative;
    display: flex;
    align-items: flex-start;
}

.bm-icon-box.bm-icon-box-icon-top {
    flex-direction: column;
}

.bm-icon-box.bm-icon-box-icon-bottom {
    flex-direction: column-reverse;
}

.bm-icon-box.bm-icon-box-icon-left {
    flex-direction: row;
}

.bm-icon-box.bm-icon-box-icon-right {
    flex-direction: row-reverse;
}

.bm-icon-box-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bm-icon-box-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bm-icon-box-title {
    margin: 0;
}

.bm-icon-box-description {
    margin: 0;
}

.bm-icon-box-link {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.bm-card:focus-within {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .bm-card-overlay {
        background-color: rgba(0, 0, 0, 0.9) !important;
    }
    
    .bm-card-title,
    .bm-card-subtitle {
        color: #ffffff !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
    }
    
    .bm-card-button {
        border: 2px solid #ffffff !important;
    }
}

/* ========================================
   BM Logo Marquee Widget Styles
   ======================================== */

/* Container */
.bm-logo-marquee-container {
    position: relative;
    width: 100%;
    overflow: visible;
    /* Smooth container rendering */
    contain: layout style paint;
}

/* Marquee Wrapper - Clips horizontally only */
.bm-logo-marquee {
    display: flex;
    align-items: center;
    width: 100%;
    overflow-x: clip;
    overflow-y: visible;
    position: relative;
    /* Add extra vertical space for hover effects */
    padding-top: 20px;
    padding-bottom: 20px;
    margin-top: -20px;
    margin-bottom: -20px;
}

/* Non-scrolling marquee - center logos */
.bm-logo-marquee:not(.bm-marquee-active) {
    justify-content: center;
    flex-wrap: wrap;
}

/* Logo Track */
.bm-logo-track {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    /* Ensure tracks are side-by-side for seamless loop */
    min-width: fit-content;
}

/* Duplicate track positioning for seamless loop */
.bm-logo-track-duplicate {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: fit-content;
}

/* Logo Item Base Styles */
.bm-logo-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: visible;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
    z-index: 1;
    /* Smooth rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bm-logo-item:hover {
    z-index: 2;
}

.bm-logo-item img {
    width: 100%;
    height: 100%;
    display: block;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    /* Better image rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* Smooth loading */
    opacity: 1;
    animation: bmLogoFadeIn 0.6s ease-out;
}

@keyframes bmLogoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Smooth focus state for accessibility */
.bm-logo-item:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 4px;
    border-radius: inherit;
}

/* Infinite Scroll Animation */
.bm-marquee-active {
    position: relative;
    /* Ensure all tracks move together */
    display: flex;
    animation: bm-marquee-scroll var(--bm-marquee-duration, 50s) linear infinite;
    /* Start with logos filling the screen */
    width: max-content;
}

/* All tracks move together as one unit */
.bm-marquee-active .bm-logo-track,
.bm-marquee-active .bm-logo-track-duplicate {
    /* Tracks don't animate individually, the parent does */
    animation: none;
}

/* Left to Right Direction */
.bm-marquee-left {
    animation-name: bm-marquee-scroll-left;
    /* Start positioned to fill screen (5 tracks = 20% each) */
    transform: translateX(-20%);
}

/* Right to Left Direction (Default) */
.bm-marquee-right {
    animation-name: bm-marquee-scroll-right;
    /* Start positioned to fill screen (5 tracks = 20% each) */
    transform: translateX(-20%);
}

/* Keyframes for Left to Right - moves one track width (20%) */
@keyframes bm-marquee-scroll-left {
    from {
        transform: translateX(-40%);
    }
    to {
        transform: translateX(-20%);
    }
}

/* Keyframes for Right to Left - moves one track width (20%) */
@keyframes bm-marquee-scroll-right {
    from {
        transform: translateX(-20%);
    }
    to {
        transform: translateX(-40%);
    }
}

/* Pause on Hover */
.bm-marquee-pause-hover:hover {
    animation-play-state: paused;
}

/* ========================================
   Edge Fade Effect - Magic UI Style (Exact Implementation)
   ======================================== */

/* Apply mask to parent container - exactly like Magic UI */
.bm-marquee-fade-edges {
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black var(--bm-fade-width, 120px),
        black calc(100% - var(--bm-fade-width, 120px)),
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black var(--bm-fade-width, 120px),
        black calc(100% - var(--bm-fade-width, 120px)),
        transparent 100%
    );
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

/* ========================================
   Logo Hover Effects
   ======================================== */

/* Lift Effect */
.bm-logo-hover-lift {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.bm-logo-hover-lift:hover {
    transform: translateY(-10px) translateZ(0);
    box-shadow: 0 15px 35px rgba(0,0,0,0.18);
}

/* Scale Effect */
.bm-logo-hover-scale {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bm-logo-hover-scale:hover {
    transform: scale(var(--bm-hover-scale, 1.1)) translateZ(0);
}

/* Rotate Effect */
.bm-logo-hover-rotate {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bm-logo-hover-rotate:hover {
    transform: rotate(5deg) translateZ(0);
}

/* Tilt Effect */
.bm-logo-hover-tilt {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.bm-logo-hover-tilt:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg) translateZ(20px);
}

/* Glow Effect */
.bm-logo-hover-glow {
    position: relative;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bm-logo-hover-glow::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #667eea 100%);
    background-size: 200% 200%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bm-logo-hover-glow:hover {
    transform: translateY(-2px) translateZ(0);
}

.bm-logo-hover-glow:hover::after {
    opacity: 0.75;
    animation: bmLogoGlowPulse 3s ease-in-out infinite;
}

@keyframes bmLogoGlowPulse {
    0% { 
        filter: blur(12px); 
        opacity: 0.75;
        background-position: 0% 50%;
    }
    50% {
        filter: blur(18px); 
        opacity: 0.9;
        background-position: 100% 50%;
    }
    100% { 
        filter: blur(12px); 
        opacity: 0.75;
        background-position: 0% 50%;
    }
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .bm-logo-item {
        width: 100px !important;
        height: 70px !important;
    }
}

@media (max-width: 480px) {
    .bm-logo-item {
        width: 80px !important;
        height: 60px !important;
        margin-right: 15px !important;
    }
}

/* ========================================
   Accessibility
   ======================================== */

/* Respect Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .bm-marquee-active {
        animation: none !important;
    }
    
    .bm-logo-item {
        transition: none !important;
    }
    
    .bm-logo-hover-glow::after {
        animation: none !important;
    }
}

/* Focus States */
.bm-logo-item:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .bm-logo-item {
        border: 2px solid currentColor !important;
    }
}

/* ========================================
   Performance Optimizations
   ======================================== */

.bm-logo-marquee {
    will-change: auto;
}

.bm-marquee-active {
    will-change: transform;
}

.bm-logo-item:hover {
    will-change: transform, box-shadow;
} 