/*===================================================
    Professional Stats & Milestone Counter Section
    Gapat Engineering Pvt. Ltd.
====================================================*/

.milestone-stats-section {
    position: relative;
    background: #141f2b;
    padding: 75px 0 80px;
    color: #ffffff;
    overflow: hidden;
}

/* Background grid accent */
.milestone-stats-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.milestone-stats-section::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    top: -100px;
    right: -50px;
    background: radial-gradient(circle, rgba(8, 159, 172, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

/* Container & Row */
.milestone-grid-wrap {
    position: relative;
    z-index: 2;
}

/* Stat Item Block */
.milestone-stat-card {
    position: relative;
    padding: 15px 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease;
}

.milestone-stat-card:hover {
    transform: translateY(-3px);
}

/* Top Icon & Category */
.milestone-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.milestone-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(8, 159, 172, 0.15);
    border: 1px solid rgba(8, 159, 172, 0.35);
    color: #38d6e3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.milestone-stat-card:hover .milestone-icon-box {
    background: var(--primary-color, #089fac);
    color: #ffffff;
    border-color: var(--primary-color, #089fac);
    transform: scale(1.08);
}

.milestone-tag {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}

/* Number Value with Odometer */
.milestone-value-wrap {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.milestone-number {
    font-size: 46px;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    font-family: inherit;
    letter-spacing: -1px;
}

.milestone-number .odometer {
    font-family: inherit;
    font-weight: 800;
}

.milestone-suffix {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color, #089fac);
    line-height: 1;
}

/* Title & Description */
.milestone-title {
    font-size: 17px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 4px;
    line-height: 1.3;
}

.milestone-desc {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.45;
}

/* Vertical Dividers between columns */
.milestone-col {
    position: relative;
}

.milestone-col:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.12) 20%, rgba(255, 255, 255, 0.12) 80%, transparent 100%);
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    .milestone-stat-card {
        padding: 12px 18px;
    }

    .milestone-number {
        font-size: 40px;
    }

    .milestone-suffix {
        font-size: 24px;
    }

    .milestone-title {
        font-size: 16px;
    }
}

@media (max-width: 991px) {
    .milestone-stats-section {
        padding: 60px 0 65px;
    }

    .milestone-col:nth-child(2)::after {
        display: none;
    }

    .milestone-col:not(:last-child)::after {
        top: 5%;
        height: 90%;
    }

    .milestone-stat-card {
        padding: 15px 15px;
    }
}

@media (max-width: 767px) {
    .milestone-stats-section {
        padding: 50px 0 55px;
    }

    .milestone-col::after {
        display: none !important;
    }

    .milestone-stat-card {
        padding: 16px 20px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
    }

    .milestone-number {
        font-size: 38px;
    }

    .milestone-suffix {
        font-size: 24px;
    }
}
