/* ======================================
   ULTRA ANIMATED STATISTICS - WHITE & DEEP ORANGE
   NO GRADIENTS - SOLID COLORS ONLY
   FIXED HOVER ISSUE & REMOVED BOTTOM SPACE
====================================== */
:root {
  --deep-orange: #E64A19;
  --deep-orange-dark: #BF360C;
  --deep-orange-light: #FF7043;
  --accent-coral: #FF5722;
  --pure-white: #ffffff;
  --soft-white: #FAFAFA;
  --text-dark: #212121;
  --text-medium: #424242;
  --shadow-orange: rgba(230, 74, 25, 0.3);
  --glow-orange: rgba(255, 87, 34, 0.5);
}

/* ======================================
   MAIN SECTION WITH ANIMATED BACKGROUND
====================================== */
.hero-statistics-premium {
  padding: 70px 0 0 0;
  /* bottom padding removed */
  background: var(--soft-white);
  position: relative;
  overflow: hidden;
  color: var(--text-dark);
}

/* Animated floating circles in background */
.hero-statistics-premium::before,
.hero-statistics-premium::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 3px solid var(--deep-orange);
  opacity: 0.1;
  animation: expandCircle 8s infinite ease-out;
  pointer-events: none;
}

.hero-statistics-premium::before {
  width: 300px;
  height: 300px;
  top: 10%;
  left: -150px;
  animation-delay: 0s;
}

.hero-statistics-premium::after {
  width: 400px;
  height: 400px;
  bottom: 10%;
  right: -200px;
  animation-delay: 4s;
}

@keyframes expandCircle {
  0% {
    transform: scale(0.5);
    opacity: 0.2;
  }

  50% {
    opacity: 0.1;
  }

  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Floating dots decoration */
.stats-floating-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--deep-orange);
  border-radius: 50%;
  opacity: 0.3;
  z-index: 1;
  animation: floatDot 6s infinite ease-in-out;
}

.stats-floating-dot:nth-child(1) {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.stats-floating-dot:nth-child(2) {
  top: 25%;
  right: 15%;
  width: 8px;
  height: 8px;
  animation-delay: 1s;
}

.stats-floating-dot:nth-child(3) {
  bottom: 20%;
  left: 20%;
  width: 12px;
  height: 12px;
  animation-delay: 2s;
}

.stats-floating-dot:nth-child(4) {
  bottom: 30%;
  right: 10%;
  width: 6px;
  height: 6px;
  animation-delay: 3s;
}

@keyframes floatDot {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.3;
  }

  25% {
    transform: translateY(-20px) rotate(90deg);
    opacity: 0.6;
  }

  50% {
    transform: translateY(-10px) rotate(180deg);
    opacity: 0.4;
  }

  75% {
    transform: translateY(-30px) rotate(270deg);
    opacity: 0.5;
  }
}

/* ======================================
   CARD LAYOUT
====================================== */
.hero-statistics-premium .container {
  position: relative;
  z-index: 10;
}

.hero-statistics-premium .row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
}

.premium-stat-col {
  flex: 1 0 calc(25% - 24px);
  max-width: calc(25% - 24px);
}

@media (max-width: 991px) {
  .hero-statistics-premium .row {
    gap: 20px;
  }

  .premium-stat-col {
    flex: 1 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

@media (max-width: 575px) {
  .hero-statistics-premium .row {
    gap: 16px;
  }

  .premium-stat-col {
    flex: 1 0 100%;
    max-width: 100%;
  }
}

/* ======================================
   ANIMATED STAT CARDS - FIXED HOVER
====================================== */
.premium-stat-card {
  background: var(--pure-white);
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 40px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.08),
    0 2px 10px rgba(0, 0, 0, 0.04);
  animation: cardFloat 4s infinite ease-in-out;
}

/* Staggered floating animation */
.premium-stat-col:nth-child(1) .premium-stat-card {
  animation-delay: 0s;
}

.premium-stat-col:nth-child(2) .premium-stat-card {
  animation-delay: 0.5s;
}

.premium-stat-col:nth-child(3) .premium-stat-card {
  animation-delay: 1s;
}

.premium-stat-col:nth-child(4) .premium-stat-card {
  animation-delay: 1.5s;
}

@keyframes cardFloat {

  0%,
  100% {
    transform: translateY(0);
    box-shadow:
      0 10px 40px rgba(0, 0, 0, 0.08),
      0 2px 10px rgba(0, 0, 0, 0.04);
  }

  50% {
    transform: translateY(-8px);
    box-shadow:
      0 20px 50px rgba(230, 74, 25, 0.15),
      0 8px 20px rgba(0, 0, 0, 0.08);
  }
}

/* ✅ FIXED: Corner accent decoration only - NO full background */
.premium-stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: var(--deep-orange);
  opacity: 0.05;
  border-radius: 0 18px 0 100%;
  transition: all 0.4s ease;
  pointer-events: none;
}

/* ✅ FIXED: Hover only changes border and shadow - NOT background fill */
.premium-stat-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--deep-orange);
  background: var(--pure-white);
  /* Keep white background */
  box-shadow:
    0 30px 60px var(--shadow-orange),
    0 15px 30px rgba(0, 0, 0, 0.1),
    0 0 0 1px var(--deep-orange);
  /* Extra border glow */
  animation-play-state: paused;
}

.premium-stat-card:hover::after {
  width: 80px;
  height: 80px;
  opacity: 0.1;
}

/* ======================================
   ANIMATED ICONS - CUSTOM COLORS PER CARD
====================================== */
.premium-stat-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Card 1: Deep Orange */
.premium-stat-col:nth-child(4n+1) .premium-stat-icon {
  background: var(--deep-orange);
  box-shadow: 0 8px 25px rgba(230, 74, 25, 0.35);
}

/* Card 2: Light Green */
.premium-stat-col:nth-child(4n+2) .premium-stat-icon {
  background: #3fcd82;
  /* light green */
  box-shadow: 0 8px 25px rgba(165, 214, 167, 0.35);
}

/* Card 3: Light Pink */
.premium-stat-col:nth-child(4n+3) .premium-stat-icon {
  background: #EE5A59;
  /* light pink */
  box-shadow: 0 8px 25px rgba(248, 187, 208, 0.35);
}

/* Card 4: Light Yellow */
.premium-stat-col:nth-child(4n+4) .premium-stat-icon {
  background: #FFA200;
  /* light yellow */
  box-shadow: 0 8px 25px rgba(255, 249, 196, 0.35);
}

/* Animated ring around icon */
.premium-stat-icon::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed var(--deep-orange);
  opacity: 0.3;
  animation: rotateRing 10s linear infinite;
}

.premium-stat-icon::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid var(--deep-orange);
  opacity: 0.15;
  animation: pulseRing 2s infinite ease-out;
}

@keyframes rotateRing {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseRing {
  0% {
    transform: scale(0.9);
    opacity: 0.3;
  }

  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.premium-stat-icon svg {
  color: var(--pure-white);
  width: 28px;
  height: 28px;
  transition: transform 0.4s ease;
  animation: iconBounce 3s infinite ease-in-out;
}

@keyframes iconBounce {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.premium-stat-card:hover .premium-stat-icon {
  transform: scale(1.15) rotate(5deg);
}

.premium-stat-card:hover .premium-stat-icon svg {
  animation: iconShake 0.5s ease;
}

@keyframes iconShake {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-15deg);
  }

  75% {
    transform: rotate(15deg);
  }
}

/* ======================================
   ANIMATED NUMBERS
====================================== */
.premium-stat-number {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--deep-orange);
  position: relative;
  animation: numberPulse 3s infinite ease-in-out;
}

@keyframes numberPulse {

  0%,
  100% {
    transform: scale(1);
    text-shadow: 0 4px 20px rgba(230, 74, 25, 0.2);
  }

  50% {
    transform: scale(1.05);
    text-shadow: 0 8px 30px rgba(230, 74, 25, 0.35);
  }
}

/* Animated underline for numbers */
.premium-stat-number::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--deep-orange);
  border-radius: 2px;
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

.premium-stat-card:hover .premium-stat-number::after {
  width: 60%;
}

.premium-stat-card:hover .premium-stat-number {
  animation: numberZoom 0.5s ease forwards;
}

@keyframes numberZoom {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1.1);
  }
}

/* ======================================
   TITLES WITH ANIMATION
====================================== */
.premium-stat-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-medium);
  margin: 0;
  position: relative;
  transition: all 0.4s ease;
}

.premium-stat-card:hover .premium-stat-title {
  color: var(--deep-orange);
  letter-spacing: 3px;
}

/* ======================================
   SHIMMER EFFECT ON CARDS
====================================== */
.premium-stat-card .shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 87, 34, 0.06),
      transparent);
  animation: shimmer 4s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  50%,
  100% {
    left: 100%;
  }
}

/* ======================================
   PARTICLE DECORATIONS INSIDE CARDS
====================================== */
.card-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--deep-orange);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: particleFloat 6s infinite ease-in-out;
}

.card-particle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.card-particle:nth-child(2) {
  top: 60%;
  right: 15%;
  width: 6px;
  height: 6px;
  animation-delay: 2s;
}

.card-particle:nth-child(3) {
  bottom: 15%;
  left: 25%;
  width: 3px;
  height: 3px;
  animation-delay: 4s;
}

@keyframes particleFloat {

  0%,
  100% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }

  20% {
    opacity: 0.6;
    transform: translateY(-10px) scale(1);
  }

  80% {
    opacity: 0.3;
    transform: translateY(-40px) scale(0.5);
  }
}

/* ======================================
   ✅ FIXED: GLOWING BORDER ANIMATION (Border Only)
====================================== */
.premium-stat-card .glow-border {
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  border: 2px solid var(--deep-orange);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: borderGlowPulse 2s infinite;
  background: transparent !important;
  /* ✅ Ensure no fill */
}

@keyframes borderGlowPulse {

  0%,
  100% {
    box-shadow: 0 0 5px var(--glow-orange);
  }

  50% {
    box-shadow: 0 0 20px var(--glow-orange), 0 0 40px rgba(255, 87, 34, 0.3);
  }
}

.premium-stat-card:hover .glow-border {
  opacity: 1;
}

/* ======================================
   CONTINUOUS GLOW EFFECT (Inside shadow only)
====================================== */
.premium-stat-card .continuous-glow {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: inset 0 0 30px rgba(230, 74, 25, 0.05);
  animation: innerGlow 4s infinite alternate ease-in-out;
  pointer-events: none;
  background: transparent !important;
  /* ✅ Ensure no fill */
}

@keyframes innerGlow {
  0% {
    box-shadow: inset 0 0 20px rgba(230, 74, 25, 0.03);
  }

  100% {
    box-shadow: inset 0 0 40px rgba(230, 74, 25, 0.08);
  }
}

/* ======================================
   RESPONSIVE ADJUSTMENTS
====================================== */
@media (max-width: 991px) {
  .hero-statistics-premium {
    padding: 70px 0 0 0;
    /* bottom padding removed */
  }

  .premium-stat-card {
    padding: 32px 20px;
    border-radius: 18px;
  }

  .premium-stat-number {
    font-size: 38px;
  }

  .premium-stat-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }

  .premium-stat-icon svg {
    width: 24px;
    height: 24px;
  }

  .premium-stat-title {
    font-size: 12px;
    letter-spacing: 1.5px;
  }
}

@media (max-width: 575px) {
  .hero-statistics-premium {
    padding: 50px 0 0 0;
    /* bottom padding removed */
  }

  .premium-stat-card {
    padding: 28px 16px;
    border-radius: 16px;
    animation: mobileCardPulse 3s infinite ease-in-out;
  }

  .premium-stat-col:nth-child(1) .premium-stat-card {
    animation-delay: 0s;
  }

  .premium-stat-col:nth-child(2) .premium-stat-card {
    animation-delay: 0.75s;
  }

  .premium-stat-col:nth-child(3) .premium-stat-card {
    animation-delay: 1.5s;
  }

  .premium-stat-col:nth-child(4) .premium-stat-card {
    animation-delay: 2.25s;
  }

  .premium-stat-number {
    font-size: 32px;
  }

  .premium-stat-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 16px;
  }

  .premium-stat-icon svg {
    width: 22px;
    height: 22px;
  }

  .premium-stat-title {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .stats-floating-dot,
  .card-particle {
    display: none;
  }
}

@keyframes mobileCardPulse {

  0%,
  100% {
    transform: translateY(0);
    box-shadow:
      0 8px 30px rgba(0, 0, 0, 0.08),
      0 4px 15px rgba(230, 74, 25, 0.1);
  }

  50% {
    transform: translateY(-6px);
    box-shadow:
      0 20px 45px rgba(230, 74, 25, 0.2),
      0 10px 25px rgba(0, 0, 0, 0.1);
  }
}

/* ======================================
   ENTRANCE ANIMATION
====================================== */
.premium-stat-col {
  opacity: 0;
  animation: cardEntrance 0.8s forwards ease-out;
}

.premium-stat-col:nth-child(1) {
  animation-delay: 0.1s;
}

.premium-stat-col:nth-child(2) {
  animation-delay: 0.2s;
}

.premium-stat-col:nth-child(3) {
  animation-delay: 0.3s;
}

.premium-stat-col:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}