*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
}

.services-section{
    max-width: 1200px;
    margin-left: -20px;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 5px;
    color: black;
    animation-name: animate02;
    animation-duration: 5s;
    animation-timing-function: linear;
}

.services-section h1{
    font-size: 55px;
    color: white;
    grid-column: 1/-1;
    text-align: center;
    align-self: center;
}

.service-card{
    width: 30vw;
    height: 44vh;
    background-color: rgba(255, 215, 0, 0.48);
    position: relative;
    border: 2px solid gold;
    border-radius: 30px;
    margin: 20px;
    overflow: hidden;
    box-shadow: 0 0 10px gold;
    transition-duration: 800ms;

    cursor: pointer;
}

.service-card:hover{
    transform: translatey(-20px);
}

.service-card p{
    width: 80%;
    font-size: 18px;
    line-height: 1.5;
    text-align: left;
    font-weight: 500;
    position: absolute;
    top: 30%;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}

.service-card h2{
    font-size: 33px;
    position: absolute;
    left: 20%;
    right: 0;
    top: 10%;
    /*bottom: 0;*/
    margin: auto;
}

.service-card::before{
    content: "";
    position: absolute;
    width: 200%;
    background-image: linear-gradient(gold, rgba(159, 255, 0, 0.78));
    box-shadow: 0 0 10px gold;
    height: 130%;
    z-index: -200;
    border-radius: 30px;
    animation: border 14s linear infinite;
}

@keyframes border {
    from{
        transform: rotate(0deg);
    }
    to{
        transform: rotate(360deg);
        box-shadow: 0 0 10px gold;


    }

}

@media (min-width: 1020px) and (max-width: 1250px){
    .services-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card {
        width: 45vw;
        height: 48vh;
    }

    .service-card h2{
        font-size: 25px;
    }
    .service-card p{
        font-size: 17px;
    }
}


@media (min-width: 651px) and (max-width: 1023px) {
    .services-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card {
        width: 45vw;
        height: 58vh;
    }

    .services-section h1{
        font-size: 40px;
    }

    .service-card h2{
        font-size: 25px;
    }
    .service-card p{
        font-size: 17px;
        position: absolute;
        top: 25%;
    }
}

@media (min-width: 379px) and (max-width: 650px) {
    .services-section {
        grid-template-columns: 1fr;
    }

    .service-card {
        width: 90vw;
        height: 49vh;
        left: -2px;
    }

    .services-section h1{
        font-size: 40px;
    }

    .services-section h2{
        font-size: 25px;
    }
    .service-card p{
        font-size: 16px;
    }

}

@media screen and (min-width: 300px) and (max-width: 376px) {
    .services-section {
        grid-template-columns: 1fr;
        margin-left: 0;
        /*padding: 30px 10px;*/
    }

    .services-section h1 {
        font-size: 32px;
        margin-bottom: 40px;
        position: relative;
        top: 60px;
        left: -10px;
    }

    .service-card {
        width: 90vw;
        height: 40vh;
        min-height: 200px;
        margin: 10px;
        left: -8px;
        top: 40px;
    }

    .service-card h2 {
        font-size: 24px;
        left: 0;
        text-align: center;
    }

    .service-card p {
        width: 90%;
        font-size: 16px;
        position: relative;
        top: 75px;
    }
}

@media (max-width: 375px) {
    .service-card{
        width: 100vw;
        height: 40vh;
    }

    .service-card h2 {
        font-size: 24px;
        left: 20%;
    }

    .service-card p {
        font-size: 15px;
    }
}

@media (min-width: 320px) and (max-width: 376px) {
    .service-card {
        width: 90vw;
        height: 40vh;
    }

    .service-card h2 {
        font-size: 22px;
        left: 18%;
    }

    .service-card p {
        font-size: 13px;
    }
}
