/* =========================================
   WHAT WE DO SECTION STYLES
   ========================================= */

.what-we-do-section {
    background-color: #ffffff;
    /* Clean white background */
    padding: 80px 0;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    color: #000;
}

/* --- Section Header --- */
.what-we-do-section .section-header {
    margin-bottom: 50px;
}

/* Ensure the clickable service items look correct */
a.service-item {
    text-decoration: none; /* Removes underline */
    color: inherit; /* Keeps your original text color */
    display: block; /* Ensures it behaves like a box */
    cursor: pointer;
    /* Add any existing .service-item styles you had previously here */
}

.what-we-do-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #000;
}

.what-we-do-section .section-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: #333;
    margin-top: 10px;
}

/* --- Services Grid --- */
.services-grid {
    display: flex;
    justify-content: center;
    /* Center the grid */
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 60px;
    align-items: flex-start;
}

/* --- Service Item (Card) --- */
.service-item {
    flex: 1;
    min-width: 180px;
    max-width: 250px;
    /* Limit width so they don't get too wide */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    /* Animation Essentials */
    padding: 40px 20px;
    /* Internal spacing for the hover card effect */
    border-radius: 20px;
    /* Rounded corners like the image */
    background-color: transparent;
    /* Default is blend in */
    transition: all 0.3s ease-in-out;
    /* Smooth transition for everything */
    cursor: pointer;
    /* TURNS CURSOR INTO HAND */
}

/* --- HOVER EFFECT --- */
.service-item:hover {
    background-color: #ffffff;
    /* Explicit white background */
    /* The shadow creates the 3D 'pop' effect */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    /* Lifts the card up slightly */
    transform: translateY(-10px);
}

/* --- Icons --- */
.service-item .icon-box {
    margin-bottom: 25px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.service-item .icon-box img {
    max-width: 60px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Optional: Make icon grow slightly on hover too */
.service-item:hover .icon-box {
    transform: scale(1.1);
}

/* --- Item Text --- */
.service-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    /* Bold text for title */
    margin-bottom: 15px;
    line-height: 1.3;
    color: #000;
}

.service-item p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0 auto;
}

/* --- Button --- */
.action-container {
    margin-top: 20px;
}

.explore-btn {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 15px 40px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.explore-btn:hover {
    background-color: #1a5dc7;
    transform: translateY(-2px);
}

/* =========================================
   RESPONSIVE DESIGN 
   ========================================= */

@media screen and (max-width: 1024px) {
    .service-item {
        flex: 0 0 30%;
        /* 3 items per row on tablet */
        margin-bottom: 10px;
    }

    .services-grid {
        margin-bottom: 40px;
    }
}

@media screen and (max-width: 768px) {
    .service-item {
        flex: 0 0 45%;
        /* 2 items per row on mobile */
        max-width: none;
        /* Allow them to fill space */
    }

    .what-we-do-section .section-title {
        font-size: 2rem;
    }

    .what-we-do-section {
        padding: 60px 0;
    }
}

@media screen and (max-width: 480px) {
    .services-grid {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .what-we-do-section .section-header {
        margin-bottom: 30px;
    }

    .service-item {
        width: 100%;
        margin-bottom: 0;
        padding: 25px 15px;
        /* Slightly less padding on mobile */
    }

    .what-we-do-section {
        padding: 40px 0;
    }

    .explore-btn {
        width: 100%;
        max-width: 300px;
        box-sizing: border-box;
    }

    .services-grid {
        margin-bottom: 10px;
    }
}