.stats-container {
    position: relative;
    z-index: 2;
    align-items: center;
    align-items: center;
    display: flex;
    
}

.stats-showcase {
    display: flex;
  
   padding-top: 2rem;
   padding-bottom: 2rem;
    position: relative;
    background-color: var(--primary-dark);

}

.stats-showcase::before {

    content: '';
    position: absolute;
    top: 0;
    left: 0;

   
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.stats-header {
    padding-left: 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
    position: relative;
}

.stats-info {
    padding-right: 1.5rem;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.stats-info h2 {
    font-size: clamp(3rem, 3vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #ffffff;
    line-height: 1.1;
    position: relative;
    display: inline-block;
    opacity: 0;
}

.stats-info p {
    max-width: 1500px;
    font-size: clamp(1rem, 1.8vw, 2rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    position: relative;
    padding-left: 1rem;
    border-left: 2px solid rgba(52, 152, 219, 0.5);
    opacity: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding-right: 1.5rem;
    margin-left: 0;
}

.stat-card {
    border-radius: 10px;
    position: relative;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    opacity: 0;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.5), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(52, 152, 219, 0.2);
}

.stat-card:hover::before {
    transform: translateX(0);
}

.stat-content {
    position: relative;
    z-index: 2;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: baseline;
    opacity: 0;
}

.stat-value::after {
    content: '+';
    font-size: 1rem;
    margin-left: 2px;
    color: rgba(52, 152, 219, 0.8);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    opacity: 0;
}

.stat-label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: rgba(52, 152, 219, 0.5);
    margin-right: 8px;
    border-radius: 50%;
}

.stat-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
    padding-left: 14px;
    border-left: 2px solid rgba(52, 152, 219, 0.2);
    margin-top: 0.5rem;
    opacity: 0;
}

.stat-icon {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 1.5rem;
    color: rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    color: rgba(52, 152, 219, 0.4);
    transform: scale(1.1);
}

.globe-container {
    position: absolute;
    width: 100%;
    height: 100vh;
    bottom: -50vh;
    right: 0;
    overflow-y: visible;
    overflow-x: hidden;
}

.globe {
    position: absolute;
    width: 100vh;
    height: 100vh;
    right: 0;
    top: 0;
    opacity: 0.15;
    pointer-events: none;
    overflow: hidden;
}

.globe::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.globe:hover::before {
    opacity: 1;
}

.globe-sphere {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
        rgba(248, 70, 15, 0.1) 0%,
        rgba(247, 132, 0, 0.05) 30%,
        rgba(240, 90, 3, 0.116) 60%,
        rgba(241, 110, 3, 0.8) 100%);
    box-shadow: 
        inset 0 0 50px rgba(255, 71, 87, 0.3),
        0 0 30px rgba(255, 71, 87, 0.2);
    animation: rotate 30s linear infinite;
}

.globe-points {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at center,
            rgba(255, 255, 255, 0.3) 1px,
            transparent 1px),
        radial-gradient(circle at center,
            rgba(255, 71, 87, 0.3) 1px,
            transparent 1px);
    background-size: 10px 10px, 15px 15px;
    border-radius: 50%;
    animation: rotate 25s linear infinite reverse;
    opacity: 0.7;
}

.globe-highlight {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent);
    mix-blend-mode: screen;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.globe:hover .globe-highlight {
    opacity: 1;
}

.globe-ripple {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: ripple 1s ease-out;
}

.globe-point {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: float 2s ease-out;
}

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

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

@keyframes float {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
}

.connection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ping {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 71, 87, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ping 2s ease-out;
}

.ping::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 71, 87, 0.4);
    border-radius: 50%;
    animation: ping-ripple 2s ease-out infinite;
}

.connection-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(255, 71, 87, 0.8), 
        rgba(255, 159, 67, 0.2));
    transform-origin: left center;
    animation: line 2s ease-out;
}

/* Live Updates Styles */
.live-updates {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    max-width: 90%;
    background: rgba(26, 28, 42, 0.9);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.update {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(26, 28, 42, 0.8);
    border-radius: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    backdrop-filter: blur(8px);
    opacity: 0;
    animation: notificationFade 3s cubic-bezier(0.4, 0, 0.2, 1);
}

.update-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 71, 87, 0.8);
    border-radius: 50%;
    position: relative;
}

.update-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 71, 87, 0.4);
    border-radius: 50%;
    animation: dotRipple 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes ping {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

@keyframes ping-ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

@keyframes line {
    0% {
        transform: scaleX(0);
        opacity: 1;
    }
    100% {
        transform: scaleX(1);
        opacity: 0;
    }
}

@keyframes notificationFade {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
        filter: blur(2px);
    }
    10% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(0);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.98);
        filter: blur(1px);
    }
}

@keyframes dotRipple {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@media screen and (max-width: 768px) {
    .stats-showcase {
        height: 70vh;
    }
    .stats-showcase{
        display: grid
;
    }
    
    .stats-grid {
        padding: 2rem 5%;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .stats-showcase {
        height: auto;
        padding: 2rem;
    }

    .stats-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .stats-info {
        padding-right: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .stats-showcase {
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .stats-info h2 {
        font-size: 1.8rem;
    }

    .stats-info p {
        font-size: 0.9rem;
        padding-left: 0;
        text-align: center;
        border: none;
    }

    .stat-card {
        padding: 0.75rem;
        min-height: auto;
    }

    .stat-value {
        font-size: 1.6rem;
    }

    .stat-description {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .stats-showcase {
        padding: 1rem;
    }
    
    .stats-info h2 {
        font-size: 1.5rem;
    }

    .stats-grid {
        gap: 0.5rem;
    }

    .stat-card {
        padding: 0.5rem;
    }
}

@media (min-width: 1920px) {
    .stats-grid {
        max-width: clamp(750px, 50vw, 1200px);
        gap: clamp(1.6rem, 2.4vw, 2.8rem);
    }

    .stat-card {
        padding: clamp(1.25rem, 2vw, 2.5rem);
    }

    .stat-value {
        font-size: clamp(2rem, 3vw, 3.5rem);
    }

    .stat-label {
        font-size: clamp(0.9rem, 1.2vw, 1.4rem);
    }

    .stat-description {
        font-size: clamp(0.85rem, 1vw, 1.2rem);
        margin-top: clamp(0.5rem, 0.8vw, 1rem);
    }
}

@keyframes headerSlideIn {
    0% {
        transform: perspective(1000px) rotateX(10deg) translateY(-50px);
        opacity: 0;
        filter: blur(5px);
    }
    100% {
        transform: perspective(1000px) rotateX(0) translateY(0);
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes textGenerate {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes statCardReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.stats-info.animate h2 {
    animation: headerSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.stats-info.animate p {
    animation: textGenerate 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.2s;
}

.stat-card.animate {
    animation: statCardReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.stat-card.animate .stat-value {
    animation: statNumberCount 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.3s;
}

.stat-card.animate .stat-label,
.stat-card.animate .stat-description {
    animation: statTextReveal 0.5s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes statNumberCount {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes statTextReveal {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
