/* ============================================================
   MAIHAN GROUP — Business Units Animated Showcase
   ============================================================ */
/* Inherits variables from style.css:
   --gold, --gold-light, --gold-dark, --navy, --font-serif, --font-sans */

/* ── Section wrapper ───────────────────────────────────── */
.biz-showcase {
  position: relative;
  background: var(--navy);
  padding: 0 0 0 0;
  overflow: hidden;
  min-height: 100vh;
}

/* ── Ambient orbs (pure CSS) ──────────────────────────── */
.biz-showcase::before,
.biz-showcase::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: bizOrbFloat 10s ease-in-out infinite;
}
.biz-showcase::before {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 70%);
  top: -200px; right: -100px;
}
.biz-showcase::after {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,0.05) 0%, transparent 70%);
  bottom: -100px; left: -80px;
  animation-delay: 5s;
}
@keyframes bizOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -30px) scale(1.05); }
  66%       { transform: translate(-15px, 15px) scale(0.97); }
}

/* ── Canvas background ─────────────────────────────────── */
.biz-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ── Section header ────────────────────────────────────── */
.biz-header {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 80px 32px 60px;
}

/* ── Stage — 3-card grid ───────────────────────────────── */
.biz-stage {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 60px;
}

/* ── Individual unit card ──────────────────────────────── */
.biz-unit {
  flex: 0 0 calc(33.333% - 20px);
  min-width: 260px;
  max-width: 340px;
  opacity: 0;
  transform: translateY(50px) scale(0.96);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.biz-unit--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.biz-unit-inner {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 20px;
  padding: 36px 28px 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.biz-unit-inner::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.5s ease;
  transform-origin: center;
}
.biz-unit:hover .biz-unit-inner {
  background: rgba(201,168,76,0.07);
  border-color: rgba(201,168,76,0.45);
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(201,168,76,0.18), 0 0 0 1px rgba(201,168,76,0.15);
}
.biz-unit:hover .biz-unit-inner::before { transform: scaleX(1); }

/* Featured card */
.biz-unit--featured .biz-unit-inner {
  background: rgba(201,168,76,0.08);
  border-color: rgba(201,168,76,0.45);
  box-shadow: 0 0 60px rgba(201,168,76,0.12), inset 0 0 30px rgba(201,168,76,0.04);
}
.biz-unit--featured .biz-unit-inner::before { transform: scaleX(1); }

/* New badge */
.biz-new-tag {
  position: absolute;
  top: 16px; right: 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  animation: bizTagPulse 2.5s ease-in-out infinite;
}
@keyframes bizTagPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(201,168,76,0); }
}

/* ── Gem ring canvas ───────────────────────────────────── */
.biz-icon-ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  flex-shrink: 0;
}
.biz-unit-canvas {
  position: absolute;
  inset: 0;
  width: 120px;
  height: 120px;
}
.biz-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  color: var(--gold);
  z-index: 2;
  transition: all 0.4s ease;
  text-shadow: 0 0 20px rgba(201,168,76,0.5);
}
.biz-unit:hover .biz-icon {
  color: var(--gold-light);
  text-shadow: 0 0 30px rgba(201,168,76,0.8);
  transform: translate(-50%, -50%) scale(1.15);
}
.biz-unit--featured .biz-icon {
  color: var(--gold-light);
  text-shadow: 0 0 30px rgba(201,168,76,0.8);
  animation: iconBreathe 3s ease-in-out infinite;
}
@keyframes iconBreathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%       { transform: translate(-50%, -50%) scale(1.12); }
}

/* ── Card text ─────────────────────────────────────────── */
.biz-unit-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: rgba(201,168,76,0.15);
  line-height: 1;
  margin-bottom: 8px;
  transition: color 0.4s;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.biz-unit:hover .biz-unit-num { color: rgba(201,168,76,0.3); }

.biz-unit-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 8px;
}
.biz-unit-title span { color: var(--gold-light); }

.biz-unit-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  opacity: 0.8;
}

.biz-unit-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  flex: 1;
  margin-bottom: 20px;
}

/* ── Animated progress bar ─────────────────────────────── */
.biz-unit-bar {
  height: 3px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}
.biz-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 3px;
  transition: width 1.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.biz-bar-fill::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 40px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5));
  animation: barShimmer 2s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
}
.biz-bar-fill.animated {
  width: var(--bar-w);
}
.biz-bar-fill.animated::after { opacity: 1; }

@keyframes barShimmer {
  0%   { transform: translateX(-40px); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateX(200px); opacity: 0; }
}

.biz-unit-metric {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}
.biz-unit--featured .biz-unit-metric {
  color: var(--gold-light);
  opacity: 1;
  animation: metricPulse 2s ease-in-out infinite;
}
@keyframes metricPulse {
  0%, 100% { opacity: 0.85; }
  50%       { opacity: 1; }
}

/* ── Live ticker ────────────────────────────────────────── */
.biz-ticker {
  position: relative;
  z-index: 3;
  background: rgba(201,168,76,0.06);
  border-top: 1px solid rgba(201,168,76,0.15);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  overflow: hidden;
  padding: 14px 0;
}
.biz-ticker-track {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
  width: max-content;
}
.biz-ticker:hover .biz-ticker-track { animation-play-state: paused; }

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tick-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: color 0.4s;
  padding: 2px 8px;
  border-radius: 20px;
}
.tick-item i { color: var(--gold); font-size: 10px; }
.tick-item.tick-active {
  color: var(--gold-light);
  background: rgba(201,168,76,0.1);
}
.tick-sep {
  color: rgba(201,168,76,0.3);
  font-size: 8px;
}

/* ── Inner scanning line (cinematic effect) ─────────────── */
.biz-unit-inner::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.5), transparent);
  top: -100%;
  animation: scanLine 5s ease-in-out infinite;
  pointer-events: none;
}
.biz-unit--featured .biz-unit-inner::after { animation-duration: 3s; }
@keyframes scanLine {
  0%   { top: -1px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ── Corner bracket decoration ─────────────────────────── */
.biz-unit--featured .biz-unit-inner > *:first-child::before,
.biz-unit--featured .biz-unit-inner > *:first-child::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-color: var(--gold);
  border-style: solid;
}
.biz-unit-inner .biz-corner-tl,
.biz-unit-inner .biz-corner-br {
  display: none;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1000px) {
  .biz-unit { flex: 0 0 calc(50% - 16px); max-width: 400px; }
}
@media (max-width: 640px) {
  .biz-stage { padding: 0 16px 40px; }
  .biz-unit { flex: 0 0 100%; max-width: 100%; }
  .biz-header { padding: 60px 16px 40px; }
  .biz-unit-title { font-size: 1.1rem; }
}
