@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

:root{
    --primary-color: #80d0c7;
    --secondary-color: #f0f8ff;
    --text-dark: #b9a3a3;
    --text-light: #94a3b8;
    --white: #ffffff;
    --section-bg-color: #80d0c7; /* Added missing variable */
}

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

body{
    font-family: "Poppins", sans-serif; 
    background-color: var(--section-bg-color);
}

.section_container{
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.section_container h2{
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    animation: fadeIn 1.5s ease-in-out;
}

.section_container h1{
    position: relative;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 600;
    color: black;
    animation: fadeIn 2s ease-in-out;
}

.section_container h1::after{
    position: absolute;
    content: "";
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    height: 2px;
    width: 5rem;
    background-color: var(--section-bg-color);
    animation: slideIn 1s ease-in-out;
}

.section_grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    animation: fadeIn 2.5s ease-in-out;
}

.section_card{
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 5rem 2rem 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 3s ease-in-out infinite;
}

.section_card::before{
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    width: 55%;
    aspect-ratio: 1;
    border-radius: 100%;
    background-color: var(--secondary-color);
    z-index: -1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.section_card span{
    position: absolute;
    top: 0;
    left: 0;
    padding: 1rem;
    font-size: 3rem;
    color: var(--white);
    animation: fadeIn 1s ease-in-out;
}

.section_card h4{
    margin-top: 4rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

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

.section_card img{
    display: block;
    margin: 0 auto 1rem;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.section_card h5{
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.section_card h6{
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.section_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.section_card:hover::before{
    width: 480%;
}

.section_card:hover :is(h4, h5){
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.section_card:hover :is(p, h6){
    color: var(--section-bg-color);
}

.section_card:hover img{
    border-color: var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transform: scale(1.08);
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideIn {
    0% { width: 0; }
    100% { width: 5rem; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.section_container {
    padding: 20px;
}

.section_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.section_card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.section_card img {
    display: block;
    margin: 0 auto;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
    object-position: top;
    border: 2px solid var(--secondary-color);
    transition: border-color 0.3s ease;
}

@media (max-width: 768px) {
    .section_container {
        padding: 10px;
    }

    .section_grid {
        grid-template-columns: 1fr;
    }

    .section_card {
        padding: 15px;
    }

    .section_card img {
        width: 100px;
        height: 100px;
    }
}


@media (max-width: 768px) {
    .section_container {
        padding: 10px;
    }

    .section_grid {
        grid-template-columns: 1fr;
    }

    .section_card {
        padding: 15px;
    }

    .section_card img {
        width: 90px;
        height: 90px;
    }
}
