#typewriter::after {
    content: "|";
    animation: blink 1s infinite;
}

/* =========================
   BASE STYLES
========================= */

.d2c_about_left {
    position: relative; /* IMPORTANT */
}

.about-cards-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.d2c_about_card {
    background: #ffffff;
    border-radius: 14px;
    text-align: center;
    padding: 14px 18px;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.d2c_about_card h4 {
    font-size: 15px;
    margin: 0;
    font-weight: 600;
}

/* =========================
   DESKTOP VIEW (PC)
========================= */

@media (min-width: 1024px) {

    .d2c_about_card {
        position: relative;
        /* margin-left: 65%; */
    }

    .firstcardsmall-cardabout {
        top: 8%;
        right: 18%;
                margin-top: -18%;
                margin-left: 40%;
                font-size: 10px;

    }

    .secondcardsmall-cardabout {
        top: 22%;
        right: 8%;
         margin-top: -4%;
                margin-left: 50%;
    }

    .fourcardsmall-cardabout {
        top: 36%;
        right: 6%;
             margin-top: -2%;
                margin-left: 60%;
    }

    .fifthcardsmall-cardabout {
        top: 50%;
        right: 22%;
           margin-top: 0%;
                margin-left: 80%;
    }

    .sixcardsmall-cardabout {
        top: 65%;
        right: 10%;

             margin-top: 0%;
                margin-left: 60%;
    }

    .sevencardsmall-cardabout {
        top: 80%;
        right: 6%;
           margin-top: -6%;
                margin-left: 20%;
    }
}

/* =========================
   iPAD VIEW
========================= */

@media (min-width: 768px) and (max-width: 1023px) {

    .d2c_about_card {
        position: absolute;
        min-width: 180px;
        padding: 12px 14px;
    }

    .d2c_about_card h4 {
        font-size: 16px;
    }

    .firstcardsmall-cardabout { top: 10%; right: 12%; }
    .secondcardsmall-cardabout { top: 25%; right: 6%; }
    .fourcardsmall-cardabout { top: 40%; right: 4%; }
    .fifthcardsmall-cardabout { top: 55%; right: 18%; }
    .sixcardsmall-cardabout { top: 70%; right: 8%; }
    .sevencardsmall-cardabout { top: 85%; right: 4%; }
}

/* =========================
   MOBILE VIEW (UNCHANGED)
========================= */

@media (max-width: 767px) {

    .about-cards-wrapper {
        position: static;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        margin-top: 20px;
    }

    .d2c_about_card {
        position: static;
        width: calc(50% - 12px);
        min-width: auto;
        padding: 10px;
        box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    }

    .d2c_about_card h4 {
        font-size: 14px;
    }
}

/* hover effect of cards in about section */

/* Base card animation */
.d2c_about_card {
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        background-color 0.4s ease;
    cursor: pointer;
    background-color: #4f7db8ff;
    /* slightly darker than #42689e */
    color: #ffffffff;

}

/* Hover effect */
.d2c_about_card:hover {
    transform: translateY(-10px) scale(1.04);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    background-color: #ffffffff;
    color: #355a8a;
}

/* Number animation on hover */
.d2c_about_card:hover h4 {
    transform: scale(1.1);
    color: #355a8a;

}

/* Smooth number transition */
.d2c_about_card h4 {
    transition: transform 0.3s ease;

}

/* Optional: glow effect */
.d2c_about_card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 160x;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    transition: box-shadow 0.4s ease;
    color: #355a8a;

}

.d2c_about_card:hover::after {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
    color: #355a8a;

}

.d2c_about_card p {
    transition: color 0.3s ease;
}

.d2c_about_card:hover p {
    color: #355a8a;
    /* white on hover */
}

/* about section end */




/* Education and EXPERIENCE */



.experience-card,
.experience-card .card-header {
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.experience-card:hover {
    background-color: #4f75d2;
    color: #ffffff;
}

.experience-card:hover .card-header {
    background-color: #4f75d2;
    color: #ffffff;
}

/* Text color */
.experience-card:hover h2,
.experience-card:hover h5,
.experience-card:hover p {
    color: #ffffff !important;
}

.experience-card .card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.experience-card:hover .card-header {
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

/* EDUCATION AND EXPERIENCE */
