/* stats.css - refined metrics grid */

.stats-section {
  padding: 72px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(56, 182, 199, 0.08), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1200px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 34px 28px;
  min-height: 160px;
  color: #222;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(7, 27, 51, 0.08);
  box-shadow: 0 18px 44px rgba(5,18,35,0.10);
  background: rgba(255, 255, 255, 0.92);
  will-change: transform, opacity;
  opacity: 0;
  transform: translateY(40px);
}

/* Frosted glass overlay */
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.26);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
}

/* Wispy smoke effect with layered gradients */
.stat-card::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(202,162,77,0.14), transparent 70%),
    radial-gradient(circle at 80% 70%, rgba(56,182,199,0.10), transparent 75%),
    radial-gradient(circle at 50% 50%, rgba(160,160,160,0.08), transparent 60%);
  background-repeat: no-repeat;
  background-size: 200% 200%;
  animation: smoke-layer1 18s infinite linear alternate,
             smoke-layer2 28s infinite linear alternate-reverse,
             smoke-layer3 36s infinite ease-in-out alternate;
}

@keyframes smoke-layer1 {
  0%   { background-position: 20% 30%; }
  100% { background-position: 80% 70%; }
}

@keyframes smoke-layer2 {
  0%   { background-position: 80% 70%; }
  100% { background-position: 30% 20%; }
}

@keyframes smoke-layer3 {
  0%   { background-position: 50% 50%; }
  100% { background-position: 60% 80%; }
}

.stat-card > * {
  position: relative;
  z-index: 1;
}

.stat-card.show {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.7s cubic-bezier(.22,.9,.32,1), opacity 0.6s ease;
  animation: glow-border 1.6s ease-out forwards;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(5,18,35,0.16);
}

.stat-card h2 {
  font-size: 2.4rem;
  margin: 0 0 8px;
  font-weight: 700;
  color: #071b33;
  line-height: 1;
}

.stat-card p {
  font-size: 1rem;
  margin: 0;
  opacity: 0.85;
  color: #5e6c7f;
}

@keyframes glow-border {
  0%   { box-shadow: 0 0 0 rgba(202,162,77,0); border-color: rgba(7,27,51,0.08); }
  35%  { box-shadow: 0 0 24px rgba(56,182,199,0.22), 0 18px 44px rgba(5,18,35,0.10); border-color: rgba(202,162,77,0.65); }
  65%  { box-shadow: 0 0 10px rgba(56,182,199,0.08), 0 18px 44px rgba(5,18,35,0.10); border-color: rgba(7,27,51,0.10); }
  100% { box-shadow: 0 18px 44px rgba(5,18,35,0.10); border-color: rgba(7,27,51,0.08); }
}

/* Responsive */
@media (max-width: 992px) {
  .stats-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .stats-container { grid-template-columns: 1fr; }
  .stat-card { padding: 24px; min-height: 120px; }
  .stat-card h2 { font-size: 2rem; }
}


