.service-image {
    position: relative;
    overflow: hidden;
}

/* .service-excerpt-overlay {
    position: absolute;
    left: 0;
    bottom: -100%;
    width: 100%;
    height: 100%;
    background: #916949D9;
    color: #fff;
    padding: 20px;
    display: flex;
    align-items: flex-end;
    transition: all 0.4s ease;
}

.service-excerpt-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid rgba(0, 0, 0, 0.75);
} */




/* .service-excerpt-overlay {
    position: absolute;
    left: 0;
    bottom: -100%;
    width: 100%;
    height: 100%;
    background: #916949D9;
    color: #fff;
    padding: 40px 20px 20px;
    display: flex;
    align-items: flex-end;
    transition: all 0.4s ease;
    clip-path: polygon(
        0 40px,
        98% 0,
        94% 0,
        100% 0px,
        100% 100%,
        0 100%
    );
} */








/* .service-excerpt-overlay {
    position: absolute;
    left: 0;
    bottom: -100%;
    width: 100%;
    height: 100%;
    color: #fff;
    padding: 40px 20px 20px;
    display: flex;
    align-items: flex-end;
    transition: all 0.4s ease;
    z-index: 2;
    overflow: hidden;
}


.service-excerpt-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #916949D9;
    z-index: -2;
}


.service-excerpt-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: #ffffff;
    z-index: -1;
    clip-path: polygon(0 100%, 100% 0, 100% 0, 100% 100%, 100% 0, 0 0);
} */





.service-excerpt-overlay {
    position: absolute;
    left: 0;
    bottom: -100%;
    width: 100%;
    height: 100%;
    color: #fff;
    padding: 40px 20px 20px;
    display: flex;
    align-items: flex-end;
    transition: bottom 0.4s ease;
    z-index: 2;
    overflow: hidden;
}

/* Main background */
.service-excerpt-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #916949D9;
    z-index: -2;
}

/* White polygon (delayed) */
.service-excerpt-overlay::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 40px;
    background: #ffffff;
    z-index: -1;

    clip-path: polygon(0 100%, 100% 0, 100% 0, 100% 100%, 100% 0, 0 0);

    /* 👇 hidden initially */
    opacity: 0;
    transform: translateY(-10px);

    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: 0.3s;
}

/* Hover state */
.service-card:hover .service-excerpt-overlay {
    bottom: 0;
}

.service-card:hover .service-excerpt-overlay::before {
    opacity: 1;
    transform: translateY(0);
}



.service-excerpt-overlay p {
    margin: 0;
    font-size: var(--font-20);
    font-weight: 400;
}

.service-card:hover .service-excerpt-overlay {
    bottom: 0;
}





























.services-section{
    background-image: url(../images/service-bg.svg);
    background-repeat: no-repeat;
    background-position: right 60px bottom;
}

.services-section .main-title{
    font-size: var(--font-64);
    letter-spacing: -3px;
}

.service-card{
    font-family: var(--figtree-font);
}

.service-card .service-content{
    margin-top: 24px;
}

.service-card .service-content h3{
    color: var(--text-color);
    transition: 0.3s ease all;
}

.stretched-link:hover ~ .service-content h3{
    color: var(--primary-color);
    transition: 0.3s ease all;
}

.read-more-arrow{
    filter: brightness(0.1) invert(0.4);
    transition: 0.3s ease all;
}

.stretched-link:hover ~ .service-content .read-more-arrow{
    filter: brightness(1) invert(0);
    transition: 0.3s ease all;
}

.services-section .card-row{
    row-gap: 60px;
}

.service-image img{
    aspect-ratio: 3/2;
    width: 100%;
    object-fit: cover;
}

.service-sub-title{
    font-size: var(--font-24);
    font-family: var(--figtree-font);
    color: #1E1F24;
}


@media screen and (max-width: 640px){
    .services-section .card-row {
        row-gap: 40px;
    }
}