/* ===========================
   NEW CARD SYSTEM (CLEAN + MODERN) – Kazuma Ali Portfolio
   =========================== */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.6rem;
    margin: 2.5rem 0;
}

/* ---------- CARD BASE ---------- */
.cards > div,
.cards .service,
.cards .service2 {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 200px;

    display: flex;
    align-items: flex-end;
    padding: 1.4rem;

    background-size: cover;
    background-position: center;

    /* cleaner glass */
    background-blend-mode: overlay;
    backdrop-filter: blur(6px);

    border: 1px solid rgba(78, 205, 196, 0.12);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);

    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* ---------- OVERLAY (FIXED) ---------- */
.cards > div::before,
.cards .service::before,
.cards .service2::before {
    content: "";
    position: absolute;
    inset: 0;

    /* MUCH better overlay */
    background: linear-gradient(
        to top,
        rgba(6, 20, 28, 0.6) ,
        rgba(6, 20, 28, 0.2) ,
        rgba(6, 20, 28, 0.05)
    );

    z-index: 1;
    transition: opacity 0.3s ease;
}

/* ---------- HOVER ---------- */
.cards > div:hover,
.cards .service:hover,
.cards .service2:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}

.cards > div:hover::before,
.cards .service:hover::before,
.cards .service2:hover::before {
    opacity: 0.85;
}

/* ---------- CTA BUTTON ---------- */
.cards a {
    position: relative;
    z-index: 2;

    font-size: 1rem;
    font-weight: 600;

    padding: 0.6rem 1.4rem;
    border-radius: 12px;

    color: white;
    text-decoration: none;

    background: linear-gradient(135deg, #2b9b8a, #4ecdc4);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.3);

    backdrop-filter: blur(4px);

    transition: all 0.25s ease;
}

/* hover CTA */
.cards a:hover {
    transform: translateY(-2px) scale(1.03);
    background: linear-gradient(135deg, #3db3a0, #6ee0d6);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.45);
}

/* ---------- SERVICE CARDS (DIFFERENT STYLE) ---------- */
.cards .service,
.cards .service2 {
    background: linear-gradient(
        145deg,
        rgba(20, 60, 70, 0.85),
        rgba(10, 30, 40, 0.85)
    );

    align-items: center;
    justify-content: center;
    text-align: center;
}

/* service links */
.cards .service a,
.cards .service2 a {
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
}

/* ---------- SPECIAL LINKS ---------- */
.cards a.trash,
.cards a.support,
.cards a.statistics,
.cards .unban a,
.cards .tests a {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 80px;

    border-radius: 14px;

    background: linear-gradient(135deg, #1a4d5c, #2b9b8a);
}

.cards > div .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.cards > div {
    position: relative;
    overflow: hidden;
}
.cards > div > *:not(.card-bg) {
    position: relative;
    z-index: 1;
}