@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root{
    --primary-color: #149e9e;
    --secondary-color: #e8e8e8;
    --text-dark: #0f172a;
    --text-light: #94a3b8;
    --white: #fff;
}

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
    background-color: var(--secondary-color);
    font-family: "Roboto", sans-serif;
}

.section__container{
    max-width: 1200px;
    margin: auto;
    padding: 2rem 1rem;
    text-align: center;
}

.section__container h1{
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.section__container h2{
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-dark);
    position: relative;
}

.section__container h2::after{
    position: absolute;
    content: "";
    left: 50%;
    bottom: 0;
    height: 2px;
    width: 5rem;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

.section__container .section__grid{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
}

.section__card{
    isolation: isolate;
    position: relative;
    overflow: hidden;
    padding: 5rem 2rem 2rem;
    background-color: var(--white);
    border-radius: 5px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    width: 340px;
}

.section__card::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    width: 75%;
    aspect-ratio: 1;
    border-radius: 100%;
    background-color: var(--primary-color);
    z-index: -1;
    transition: 0.5s;
}

.section__card span{
    position: absolute;
    top: 0;
    left: 0;
    padding: 1rem;
    font-size: 1.5rem;
    color: var(--white);
}

.section__card h3{
    margin-top: 4rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: 0.3s;
}

.section__card p{
    margin-bottom: 2rem;
    color: var(--text-light);
    transition: 0.3s;
}

.section__card img{
    margin-bottom: 1rem;
    max-width: 100px;
    border-radius: 100%;
    border: 2px solid var(--primary-color);
    transition: 0.3s;
}

.section__card h4{
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: 0.3s;
}

.section__card h5{
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
    transition: 0.3s;
}

.section__card:hover::before{
    width: 400%;
}

.section__card:hover :is(h3, h4){
    color: var(--white);
}

.section__card:hover :is(p, h5){
    color: var(--secondary-color);
}

.section__card:hover img{
    border-color: var(--white);
}

