.modern-counter-section {
    padding: 40px 20px 70px 20px; /* Reduced top padding */
    background: #f8f9fb;
}

.counter-container {
    max-width: 1200px;
    margin: auto;
}

.counter-heading {
    text-align: center;
    margin-bottom: 10px; /* Reduced gap */
}

.counter-heading h2 {
    margin: 0; /* Remove default top margin */
    font-size: 30px;
    font-weight: 600;
    color: #38eda2;
}

/* Font control classes */
.font-arial { font-family: Arial, sans-serif; }
.font-roboto { font-family: 'Roboto', sans-serif; }
.font-poppins { font-family: 'Poppins', sans-serif; }
.font-poetsen { font-family: 'Poetsen One', sans-serif; }
.font-winky { font-family: 'Winky Rough', cursive; }

.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.counter-card {
    position: relative;
    background: linear-gradient(145deg, #38eda2, #f0f0f0);
    padding: 35px 20px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.35s ease;
	border: 1px solid rgba(255,255,255,0.6);

    /* 3D base shadow */
    box-shadow:
        8px 8px 20px rgba(0, 0, 0, 0.08),
        -6px -6px 15px rgba(255, 255, 255, 0.9);
}

/* Subtle top shine layer */
.counter-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.6),
        rgba(255,255,255,0.1)
    );
    pointer-events: none;
}

/* Hover lift effect */
.counter-card:hover {
    transform: translateY(-8px);
    box-shadow:
        12px 18px 35px rgba(0, 0, 0, 0.15),
        -4px -4px 10px rgba(255, 255, 255, 0.7);
}

.counter-number {
    font-size: 40px;
    font-weight: 700;
    color: #002060;
    margin-bottom: 8px;
}

.counter-label {
    font-size: 15px;
    font-weight: 700;
    color: #555;
}

.shadow-soft .counter-card {
    background: linear-gradient(145deg, #38eda2, #f3f3f3);
    border-radius: 16px;
    box-shadow:
        8px 8px 20px rgba(0,0,0,0.08),
        -6px -6px 15px rgba(255,255,255,0.9);
    transition: all 0.35s ease;
}

.shadow-soft .counter-card:hover {
    transform: translateY(-6px);
    box-shadow:
        12px 18px 35px rgba(0,0,0,0.15);
}

.shadow-strong .counter-card {
    background: #38eda2;
    border-radius: 18px;
    box-shadow:
        0 15px 35px rgba(0,0,0,0.12),
        0 5px 10px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
}

.shadow-strong .counter-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 25px 50px rgba(0,0,0,0.2);
}

.glass-3d .counter-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    transition: all 0.35s ease;
}

.glass-3d .counter-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.tilt-3d .counter-card {
    background: #38eda2;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    transform-style: preserve-3d;
}


