/* ============================================================
   Macteck Divi Suite — Animated Counter CSS
   ============================================================ */

.mds-counter-wrap {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 32px 28px;
	border-radius: 10px;
	overflow: hidden;
	transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

.mds-counter-wrap:hover {
	transform: translateY(-4px);
}

/* ── Card styles ──────────────────────────────────────────── */
.mds-counter-card-none {
	background: transparent;
	padding: 16px;
}

.mds-counter-card-flat {
	background: #fff;
	box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.mds-counter-card-glass {
	background: rgba(255,255,255,0.08);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255,255,255,0.15);
}

.mds-counter-card-dark {
	background: #0d1318;
	border: 1px solid rgba(255,255,255,0.07);
	box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}

.mds-counter-card-outline {
	background: transparent;
	border: 2px solid var(--mds-cnt-accent, #FF6B00);
}

/* ── Accent bar (bottom) ──────────────────────────────────── */
.mds-counter-bar {
	position: absolute;
	bottom: 0; left: 0;
	height: 3px;
	width: 0;
	background: var(--mds-cnt-accent, #FF6B00);
	border-radius: 0 3px 0 0;
	transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
	box-shadow: 0 0 8px var(--mds-cnt-accent, #FF6B00);
}

.mds-counter-wrap.mds-counter-animated .mds-counter-bar {
	width: 100%;
}

/* ── Icon ─────────────────────────────────────────────────── */
.mds-counter-icon {
	font-size: 36px;
	margin-bottom: 12px;
	line-height: 1;
	filter: drop-shadow(0 0 8px var(--mds-cnt-accent, #FF6B00));
}

/* ── Number ───────────────────────────────────────────────── */
.mds-counter-number {
	display: flex;
	align-items: baseline;
	gap: 2px;
	line-height: 1;
	margin-bottom: 8px;
	font-family: 'Rajdhani', 'Space Grotesk', sans-serif;
}

.mds-counter-value {
	font-size:   var(--mds-cnt-num-size, 64px);
	font-weight: 700;
	color:       var(--mds-cnt-num-color, #fff);
	letter-spacing: -0.02em;
	tabular-nums: all;
	font-variant-numeric: tabular-nums;
	transition: color 0.3s;
}

.mds-counter-prefix,
.mds-counter-suffix {
	font-size: calc(var(--mds-cnt-num-size, 64px) * 0.55);
	font-weight: 700;
	color: var(--mds-cnt-accent, #FF6B00);
}

.mds-counter-prefix { margin-right: 2px; }
.mds-counter-suffix { margin-left:  2px; }

/* Flash effect when counting completes */
.mds-counter-wrap.mds-counter-complete .mds-counter-value {
	animation: mds-counter-flash 0.4s ease-out;
}

@keyframes mds-counter-flash {
	0%,100% { color: var(--mds-cnt-num-color, #fff); }
	50%     { color: var(--mds-cnt-accent, #FF6B00); text-shadow: 0 0 20px var(--mds-cnt-accent, #FF6B00); }
}

/* ── Label ────────────────────────────────────────────────── */
.mds-counter-label {
	font-size: 14px;
	font-weight: 500;
	color: var(--mds-cnt-lbl-color, rgba(255,255,255,0.65));
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin-top: 4px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
	.mds-counter-value {
		font-size: clamp(40px, 10vw, var(--mds-cnt-num-size, 64px));
	}
}
