/* -------------------------------- */
/* WHAT WE DO SECTION               */
/* -------------------------------- */

.what-we-do-section {
    padding: 100px 0;
    background-color: #f8f9fa; /* CHANGED: Light Background Color */
}

.wwd-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Columns */
    gap: 30px;
    margin-top: 50px;
}

/* Card Styling */
.wwd-card {
    background-color: #ffffff; /* Keep cards white for contrast */
    border: 1px solid #eee;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    /* Animation Start State */
    opacity: 0;
    transform: translateY(30px);
}

/* Hover Effect: Lift & Shadow */
.wwd-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: transparent;
}

/* Icon Styling */
.wwd-icon {
    width: 80px;
    height: 80px;
    background-color: var(--light-bg); /* Light grey circle */
    border-radius: 50%; /* Circle icon background */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px auto;
    font-size: 2rem;
    color: var(--primary-green);
    transition: all 0.4s ease;
}

/* Icon Hover Effect */
.wwd-card:hover .wwd-icon {
    background-color: var(--primary-green);
    color: var(--white);
    transform: rotateY(180deg); /* 3D Flip */
}

/* Typography */
.wwd-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.wwd-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Bottom Line Decoration */
.wwd-line {
    width: 40px;
    height: 3px;
    background-color: var(--accent-yellow);
    margin: 0 auto;
    transition: width 0.3s ease;
}

.wwd-card:hover .wwd-line {
    width: 80px; /* Expands on hover */
    background-color: var(--accent-green);
}

/* --- SCROLL ANIMATION LOGIC --- */

/* State when visible */
.wwd-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delay (Cards appear one by one) */
.wwd-card.is-visible:nth-child(1) { transition-delay: 0.1s; }
.wwd-card.is-visible:nth-child(2) { transition-delay: 0.2s; }
.wwd-card.is-visible:nth-child(3) { transition-delay: 0.3s; }
.wwd-card.is-visible:nth-child(4) { transition-delay: 0.4s; }


/* --- Responsive Design --- */
@media (max-width: 1200px) {
    .wwd-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 Grid on Laptop/Tablet */
    }
}

@media (max-width: 768px) {
    .wwd-grid {
        grid-template-columns: 1fr; /* 1 Column on Mobile */
    }
    
    .what-we-do-section {
        padding: 60px 0;
    }
}