.serv-sec1{
    display: flex;
    width: 90vw;
    justify-content: center;
    align-items: center;
    flex: 1;
    flex-direction: column;
}

.serv-intro{
    display: flex;
    flex: 1;
    align-self: flex-start;
    width: 100%;
}

.serv-title {
    font-weight: 600;
    color:#EBF8FF;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.serv-title::after {
    content: "";
    display: block;
    width: 100%;
    height: 0.2rem;
    background: linear-gradient(90deg, #EF97B4, #8BCCEC);
    border-radius: 2rem;
    margin-top: 0.3rem;
}


.serv-grid-container{
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    gap: 5rem;
}

.serv-card{
    display: flex;
    flex: 1;
    flex-direction: row;
    max-height: 60vh;
    overflow: visible;
    position: relative;
    border-radius: 2rem;
    height: 50vh;
}

.serv-card-left{
    display: flex;
    flex: 1;
    flex-direction: column;
    position: relative;
    border-radius: 2rem;
    justify-content: center;
    align-items: center;
    min-width: 50%;
    width: 50%;
    max-height: 100%;
    text-align: left;
    background-color: #242323;
    height: 50vh;
    
    z-index: 2;   
    transition: all 0.7s ease-in-out;
}

.serv-card-left h1,p{padding: 0 2rem 0 2rem;}

.serv-card-front, .serv-card-back{
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    overflow: scroll;

    transition: opacity 0.5s ease-in-out;
}

.serv-card-front{ transition-delay: 0.5s;}

.serv-card-back{opacity: 0;}

.serv-card-right {
    flex: 1 1 50%;
    margin: 0 0 0 -5vw;
    width: 50%;
    height: 50vh;
}

.serv-card-right img {
    height: 100%;
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 0 2rem 2rem 0;
    overflow: auto;
}


/* ---------- expanded state css ---------- */

.serv-card-left.expanded{
    min-width: 100%;
}

.serv-card-left.expanded .serv-card-front{ 
    opacity: 0;
    transition-delay: 0s;
}

.serv-card-left.expanded .serv-card-back{ 
    opacity: 1;
    transition-delay: 0.5s;
}


