/* ═══════════════════════════════════════════════════════════════════
   Stats Modern - Premium Counter Section (Light Mode)
   Elegant, Subtle, with Smooth Animations
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   Main Section - Light Theme
   ═══════════════════════════════════════════════════════════════════ */

.stats-modern {
    position: relative;
    min-height: 600px;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 50%, #f8f9fa 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

/* Subtle Pattern Background */
.stats-parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(44, 62, 80, 0.02) 0%, transparent 50%);
    transform: translateZ(0);
    will-change: transform;
}

/* Soft Gradient Overlay */
.stats-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            rgba(255, 255, 255, 0.5) 0%,
            rgba(248, 249, 250, 0.3) 50%,
            rgba(255, 255, 255, 0.5) 100%);
    background-size: 200% 200%;
    animation: gradientShift 10s ease-in-out infinite;
    z-index: 1;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Floating Particles - Gold */
.stats-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.stats-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--secondary-color);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 10s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.stats-particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.stats-particle:nth-child(2) {
    left: 20%;
    animation-delay: 1.2s;
}

.stats-particle:nth-child(3) {
    left: 30%;
    animation-delay: 2.4s;
}

.stats-particle:nth-child(4) {
    left: 40%;
    animation-delay: 3.6s;
}

.stats-particle:nth-child(5) {
    left: 50%;
    animation-delay: 4.8s;
}

.stats-particle:nth-child(6) {
    left: 60%;
    animation-delay: 6s;
}

.stats-particle:nth-child(7) {
    left: 70%;
    animation-delay: 7.2s;
}

.stats-particle:nth-child(8) {
    left: 80%;
    animation-delay: 8.4s;
}

.stats-particle:nth-child(9) {
    left: 90%;
    animation-delay: 0.6s;
}

.stats-particle:nth-child(10) {
    left: 15%;
    animation-delay: 1.8s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* Decorative Circles */
.stats-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.1);
    z-index: 2;
    animation: circleRotate 30s linear infinite;
}

.stats-circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.stats-circle-2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: -80px;
    animation-direction: reverse;
    animation-duration: 25s;
}

.stats-circle-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 10%;
    border-color: rgba(255, 255, 255, 0.05);
    animation-duration: 20s;
}

@keyframes circleRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ═══════════════════════════════════════════════════════════════════
   Content Container
   ═══════════════════════════════════════════════════════════════════ */

.stats-modern .container {
    position: relative;
    z-index: 10;
}

/* Section Header */
.stats-header {
    text-align: center;
    margin-bottom: 60px;
}

.stats-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(44, 62, 80, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(44, 62, 80, 0.1);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.stats-subtitle i {
    animation: pulse 2s ease-in-out infinite;
    color: var(--secondary-color);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.stats-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.stats-title span {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #c9a227 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-desc {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════
   Stats Grid - Glassmorphism Cards
   ═══════════════════════════════════════════════════════════════════ */

.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.stat-card-modern {
    position: relative;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 40px 25px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.4s;
}

.stat-card-modern:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--secondary-color);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.12),
        0 0 40px rgba(212, 175, 55, 0.08);
}

.stat-card-modern:hover::before {
    opacity: 1;
}

/* Icon Container */
.stat-icon-modern {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    position: relative;
}

.stat-icon-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a5f 100%);
    border-radius: 20px;
    transform: rotate(0deg);
    transition: transform 0.5s ease;
}

.stat-card-modern:hover .stat-icon-modern::before {
    transform: rotate(10deg);
}

.stat-icon-modern i {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2rem;
    color: #fff;
}

/* Counter Number with Animation */
.stat-counter-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 3px;
    margin-bottom: 10px;
}

.stat-number-modern {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(180deg, #1a1a2e 0%, #2c3e50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    font-family: 'Alexandria', sans-serif;
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-label-modern {
    font-size: 1rem;
    color: #777;
    font-weight: 500;
}

/* Hover Glow Effect */
.stat-card-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 100px;
    background: radial-gradient(ellipse at bottom, var(--secondary-color) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.5s ease;
}

.stat-card-modern:hover::after {
    width: 100%;
    opacity: 0.15;
}

/* ═══════════════════════════════════════════════════════════════════
   Why Us Features Grid
   ═══════════════════════════════════════════════════════════════════ */

.why-features-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.why-feature-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s ease;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.why-feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s;
}

.why-feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.why-feature-card:hover::before {
    opacity: 1;
}

.why-feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.08) 0%, rgba(44, 62, 80, 0.03) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.why-feature-card:hover .why-feature-icon {
    background: var(--secondary-color);
    color: #1a1a2e;
    transform: scale(1.1);
}

.why-feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px 0;
}

.why-feature-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   Counter Animation Script Styles
   ═══════════════════════════════════════════════════════════════════ */

.stat-number-modern {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.stat-number-modern.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════
   Responsive Design
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
    .stats-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .stats-modern {
        padding: 80px 0;
        min-height: auto;
    }

    .why-features-modern {
        grid-template-columns: 1fr;
    }

    .stats-circle {
        display: none;
    }
}

@media (max-width: 768px) {
    .stats-grid-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-card-modern {
        padding: 30px 20px;
    }

    .stat-number-modern {
        font-size: 2.5rem;
    }

    .stat-icon-modern {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .stat-icon-modern i {
        font-size: 1.5rem;
    }

    .stats-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .stats-modern {
        padding: 60px 0;
    }

    .stats-title {
        font-size: 1.8rem;
    }

    .stats-desc {
        font-size: 1rem;
    }
}