.services{
    background-color: rgba(0,0,0,0.03);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.services-main-container{
    padding: 100px 10px;
    width: 100%;
    max-width: 1124px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
.services-slogan{
    max-width: 36%;
}
.services-text{
    padding-top: 20px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    vertical-align: text-top;
}
.services-slogan-description{
    max-width: 50%;
}
#company-description{
    margin-top: 0;
    max-width: 100%;
}

.service-cards {
    width: 100%;
    max-width: 1124px;
    padding: 30px 0;
    display: grid;
    grid-auto-columns: 272px;
    grid-auto-rows: 232px;
    gap: 10px;
    grid-template-areas: 
    "box-1 box-2 box-2 box-3"
    "box-1 box-4 box-5 box-5";
    justify-content: center;
}

/* Individual service card */
.service-card {
    padding: 0px 10px;
    background-color: #d7e7f7; /* Lighter background color */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 3px solid transparent; /* Invisible border initially */
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition for background and text */
}

/* Border animation using pseudo-element */
.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%; /* Initially no width */
    height: 100%;
    border: 3px solid #3498db; /* Border color */
    border-radius: 15px;
    transition: width 0.4s ease-in-out; /* Animate width */
}

/* Hover effect for service card */
.service-card:hover {
    background-color: #3498db;
}

.service-card:hover .service-name p{
    color: #FED426;
}
.service-card:hover .service-description p{
    color: white;
}

/* Show the border animation on hover */
.service-card:hover::before {
    width: 100%; /* Border expands to full width */
}

/* Image container */
.service-img {
    width: 100px;
}

/* Icon image */
.service-icon {
    width: 100%;
}

/* Text styling */
.service-title {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
    color: #333;
}

.service-desc-text {
    font-size: 14px;
    color: #666;
}

@media screen and (max-width: 1140px) {
    .service-cards {
        grid-auto-columns: 250px;
        grid-auto-rows: 232px;
        grid-template-areas: 
        "box-1 box-2 box-2 box-3"
        "box-1 box-4 box-5 box-5";
    }
}

@media screen and (max-width: 1050px) {
    .service-cards {
        /* grid-auto-columns: 272px;
        grid-auto-rows: 232px; */
        grid-template-areas: 
        "box-1 box-1 box-2" 
        "box-1 box-1 box-3"
        "box-4 box-5 box-5";
    }
}
@media screen and (max-width: 815px) {
    .services-slogan , .services-slogan-description{
        max-width: 90vw;
    }
    .services-slogan-description{
        padding-top: 20px;
    }
    .services-text{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}
@media screen and (max-width: 800px) {
    .service-cards {
        grid-template-areas: 
        "box-1 box-2"
        "box-1 box-3" 
        "box-4 box-3"
        "box-4 box-5";
    }
}
@media screen and (max-width: 535px) {
    #section-head{
        margin-left: 10px;
    }
    .service-cards {
        grid-auto-columns: 90vw;
        grid-auto-rows: 250px;
        grid-template-areas: 
        "box-1 "
        "box-2 "
        "box-3 "
        "box-4 "
        "box-5 ";
    }
}