@import url('https://fonts.googleapis.com/css2?family=Courgette&family=Handlee&family=Poppins&family=Roboto&family=Sigmar&family=Tangerine:wght@700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

main {
    position: relative;
}

#service-header-container {
    position: relative;
    min-height: 20vh;
    width: 100%;
}

header::before {
    content: '';
    position: absolute;
    /* top: -100px; */
    height: 100%;
    width: 100%;
    background: url('../images/wave-service.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

#service-header-container h1 {
    text-align: center;
    padding-top: 80px;
    color: #0b5d5d;
    font-size: 68px;
    text-transform: capitalize;
    text-shadow: 4px 4px rgba(255, 255, 255, 0.7);
}

.service-container {
    position: relative;
    min-height: 100vh;
    width: 100%;
    padding: 20px 200px 80px 200px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    row-gap: 60px;
    flex-wrap: wrap;
}

.service-box {
    height: 390px;
    max-width: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    /* background: #ebeccb; */
    padding: 10px 20px;
    box-shadow: 0 0 30px rgba(0,0,0,0.4);
    transition: 0.5 ease-in-out;
    cursor: pointer;
}
.service-box::before{
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 0;
    width: 100%;
    background: #75f6ff;
    z-index: -1;
    transition: 0.5s ease-in-out;
}
.service-box:hover::before{
    height: 100%;
}
.service-box:hover .book{
    animation: shake 1s linear;
}
@keyframes shake {
    0%{
        transform: translateY(5px);
    }
    25%{
        transform: translateY(-15px);
    }
    50%{
        transform: translateY(10px);
    }
    100%{
        transform: translateY(0);
    }
}

.service-name {
    font-size: 20px;
    text-transform: uppercase;
    padding-top: 10px;
    text-align: center;
}

.service-box img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.service-box p {
    text-transform: capitalize;
    text-align: left;
    padding: 10px;
}

.service-link-btn {
    padding-top: 20px;
    width: 100%;
    display: flex;
    justify-content: space-around; 
}

.service-link-btn a {
    text-decoration: none;
    padding: 10px 20px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-transform: capitalize;
    border-radius: 20px;
}

.book {
    background: #0076e3;
}

.read {
    background: #102c2c;
}

@media (max-width:998px) {
    .service-container {
        padding: 0;
        row-gap: 20px;
        flex-wrap: nowrap;
        justify-content: center;
        flex-direction: column;
        padding-bottom: 40px;
    }

}
@media (max-width:400px) {
    #service-header-container h1{
        font-size: 40px;
    }
    .service-box {
        max-width: calc(100% - 20px);
        padding: 10px 4px;
    }
    .service-link-btn{
        padding: 2px;
    }
    .service-link-btn a {
        font-size: 16px;
        padding: 6px 10px;
    }
}