/* OUR SERVICES */

[class*="_section"] {
    width: 100%;
    display: flex;
    padding: 5vh 0;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}
.maintenance_section {
    background: linear-gradient(0.25turn, #003366, #024d97, #003366);
}
.maintenance_section .section_title {
    color: #f2f2f2;
}

.section_title {
    font-family: "Poppins Bold";
    font-size: clamp(24px, 5vw, 40px);
    text-align: center;
    margin-bottom: 32px;
    position: relative;
}

.section_title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(
        90deg,
        rgba(51, 102, 51, 1) 0%,
        rgba(102, 204, 102, 1) 100%
    );
}
.maintenance_section .section_title::after {
    background: #fff;
}

/* SERVICE CARDS */

.core_cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 5vh;
    grid-row-gap: 5vh;
    margin-top: 2vh;
    animation: fadeIn 0.8s ease-in forwards;
    justify-items: center;
}

.core_card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 350px;
    background-color: white;
    box-shadow: 0px 4px 4px 0px #0005;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.core_card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}

.core_card button {
    border: none;
    height: 60px;
    font-family: "Roboto Bold";
    color: white;
    margin-top: auto;
    transition: transform 0.2s ease;
}

.core_card button:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.core_card h3 {
    font-family: "Poppins Bold";
    margin-bottom: 0px;
}

.core_card h3,
p {
    padding-left: 10px;
    padding-right: 10px;
}

.core_card .button_green {
    background: rgb(51, 102, 51);
    background: linear-gradient(
        90deg,
        rgba(51, 102, 51, 1) 0%,
        rgba(102, 204, 102, 1) 100%
    );
}

.core_card .button_blue {
    background: rgb(102, 178, 255);
    background: linear-gradient(
        90deg,
        rgba(102, 178, 255, 1) 0%,
        rgba(61, 107, 153, 1) 100%
    );
}

.image_container {
    position: relative;
    width: 100%;
    height: 300px;
}

.image_container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service_icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.core_card:hover .service_icon {
    transform: scale(1.1);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.service_icon i {
    font-size: 24px;
    color: #000;
    transition: transform 0.3s ease;
}

.core_card:hover .service_icon i {
    transform: rotate(15deg);
}

/* WHY CHOOSE US */

.why_choose_section {
    width: 100vw;
    padding: 80px 0;
    margin-top: 10vh;
    background: white;
    color: #333;
    animation: fadeIn 0.8s ease-in forwards;
}

.why_choose_content {
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.why_choose_intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.why_choose_intro h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: black;
    font-family: "Poppins Bold";
}

.why_choose_intro p {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
}

.why_choose_cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.why_choose_card {
    background: white;
    padding: 32px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #66cc66;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.why_choose_card:hover {
    transform: translateY(-5px);
    background: #f9fff9;
    box-shadow: 0 10px 20px rgba(102, 204, 102, 0.15);
}

.why_choose_icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    background: #66cc66;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.why_choose_card:hover .why_choose_icon {
    background: #7ad67a;
    transform: rotate(360deg);
}

.why_choose_icon i {
    font-size: 28px;
    color: white;
    transition: all 0.3s ease;
}

.why_choose_card h4 {
    font-family: "Poppins Bold";
    margin: 0 0 16px 0;
    color: #333;
    font-size: 20px;
}

.why_choose_card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1200px) {
    .core_cards {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 40px;
    }

    .why_choose_cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .why_choose_cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .core_cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 3vh;
        max-width: 80%;
    }

    .core_card {
        margin: 0px 30px;
    }

    .section_title {
        max-width: 80%;
    }

    .image_container {
        height: 250px;
    }

    .service_icon {
        width: 60px;
        height: 60px;
    }

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

    .why_choose_intro h2 {
        font-size: 32px;
    }

    .why_choose_intro p {
        font-size: 16px;
    }

    .why_choose_card {
        max-width: 350px;
        margin: 0 auto;
    }
}

/* Very small screens - issues with 768 so it's a bit smaller */
@media screen and (max-width: 480px) {
    .core_cards {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
