/* 2x2 Metrics Grid with Counter Animation */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 90%;
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.metric-card {
  background: rgba(25, 28, 31, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.25),
    0 2px 0 rgba(108, 92, 231, 0.1) inset;
  border: 1px solid rgba(108, 92, 231, 0.2);
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.3),
    0 4px 0 rgba(108, 92, 231, 0.15) inset;
}

.metric-icon {
  width: 50px;
  height: 50px;
  background: rgba(108, 92, 231, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #6c5ce7;
  margin-bottom: 15px;
  box-shadow: 
    0 3px 8px rgba(0, 0, 0, 0.2),
    0 2px 0 rgba(255, 255, 255, 0.05) inset;
}

.metric-content {
  text-align: center;
}

.metric-value {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(to right, #6c5ce7, #00cec9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Countdown Timer Styles */
.countdown-timer {
  display: flex;
  gap: 15px;
  justify-content: center;   /* Center horizontally */
  align-items: center;       /* Center vertically (optional) */
}

.countdown-segment {
  text-align: center;
}

.countdown-value {
  font-size: 28px;
  font-weight: 700;
  color: #ff7675;
  line-height: 1;
}

.countdown-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 5px;
}

/* Countdown Timer Styles */
.countdown-timer {
  display: flex;
  gap: 10px; /* Reduced gap to accommodate the extra segment */
  justify-content: center;
  align-items: center;
}

.countdown-segment {
  text-align: center;
  min-width: 50px; /* Added to ensure consistent width */
}

.countdown-value {
  font-size: 24px; /* Slightly reduced to fit all segments */
  font-weight: 700;
  color: #ff7675;
  line-height: 1;
}

.countdown-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .countdown-timer {
    gap: 8px;
  flex-wrap: wrap;
    justify-content: space-around;
  }
  
  .countdown-segment {
    min-width: 40px;
  }
  
  .countdown-value {
    font-size: 20px;
  }
  
  .countdown-label {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .countdown-timer {
    gap: 5px;
  }
  
  .countdown-segment {
    min-width: 35px;
  }
  
  .countdown-value {
    font-size: 18px;
  }
}

.countdown-message {
  font-size: 13px;
  color: #fdcb6e;
  font-weight: 500;
  margin-top: 10px;
  transform: translateX(-10px); /* shift left by 10px */
}

/* Responsive Design */
@media (max-width: 768px) {
  .metrics-grid {
    grid-template-columns: 1fr;
    width: 80%;
  }
  
  .metric-card {
    padding: 20px;
  }
  
  .metric-value, .countdown-value {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .metrics-grid {
    width: 90%;
  }
  
  .countdown-timer {
    gap: 10px;
  }
  
  .countdown-value {
    font-size: 22px;
  }
}
  
  .countdown-timer {
    display: flex;
    gap: 15px;
  }
  
  .countdown-segment {
    text-align: center;
  }
  
  .countdown-value {
    font-size: 18px;
    font-weight: 600;
    color: #ff7675;
  }
  
  .countdown-label {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
  }
  
  .countdown-message {
    font-size: 12px;
    margin-left: 15px;
    color: #fdcb6e;
    font-weight: 500;
    white-space: nowrap;
  }
  
  /* Current Time Display */
  .current-time {
    position: fixed;
    top: 15px;
    right: 20px;
    background: rgba(25, 28, 31, 0.9);
    color: #00cec9;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(0, 206, 201, 0.2);
  }
  
  /* Notifications */
  .notification {
    position: fixed;
    bottom: 80px;
    left: 20px;
    background: rgba(25, 28, 31, 0.95);
    color: white;
    padding: 14px 18px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    border-left: 3px solid #6c5ce7;
    max-width: 300px;
    transform: translateX(-110%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 13px;
    backdrop-filter: blur(5px);
  }
  
  .notification.show {
    transform: translateX(0);
    opacity: 1;
  }
  
  .notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    font-size: 12px;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 1024px) {
    .metrics-bar {
      padding: 10px 15px;
    }
    .metric-item {
      gap: 8px;
    }
    .metric-icon {
      width: 32px;
      height: 32px;
      font-size: 14px;
    }
    .metric-value, .countdown-value {
      font-size: 16px;
    }
    .countdown-timer {
      gap: 10px;
    }
  }
  
  @media (max-width: 768px) {
    .metrics-bar {
      flex-wrap: wrap;
      padding: 10px;
      gap: 10px;
    }
    .metric-item {
      flex: 1 1 45%;
      justify-content: center;
    }
    .countdown-item {
      flex: 1 1 100%;
      justify-content: center;
      margin-top: 5px;
    }
    .countdown-message {
      display: block;
    }
    .notification {
      max-width: 260px;
      font-size: 12px;
      bottom: 70px;
    }
    .current-time {
      top: 10px;
      right: 10px;
      font-size: 11px;
    }
  }
  
  @media (max-width: 480px) {
    .metric-item {
      flex: 1 1 100%;
      margin-bottom: 5px;
    }
    .metric-icon {
      width: 28px;
      height: 28px;
    }
    .metric-value, .countdown-value {
      font-size: 15px;
    }
    .countdown-timer {
      gap: 8px;
    }
  }

 