/* Services Section */
.services-section {
    padding: 100px 0px 100px 0px;
    background-color: #9b9b9b;
    /* Light background */
    position: relative;
    /* Adding a subtle background pattern or overlay if needed */
    background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('https://images.unsplash.com/photo-1581578731117-104f8a74695e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=20');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.services-header {
    text-align: left;
    /* Screenshot shows left aligned text, or maybe center? Let's check screenshot again. Screenshot shows text on left/center-ish. Let's stick to container alignment. */
    max-width: 800px;
    margin-bottom: 60px;
}

.services-tagline {
    font-size: 14px;
    font-weight: 700;
    color: #666;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.services-tagline i {
    color: var(--primary-color);
}

.services-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--secondary-color);
}

.services-title .green-text {
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns as requested */
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Ensure equal height in grid */
    position: relative;
    /* For button absolute positioning context */
}

/* Staggered Animation for new services */
.service-card:nth-child(4) {
    animation: fadeInUp 0.5s ease backwards 0.2s;
}

.service-card:nth-child(5) {
    animation: fadeInUp 0.5s ease backwards 0.4s;
}

.service-card:nth-child(6) {
    animation: fadeInUp 0.5s ease backwards 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card:hover {
    transform: translateY(-5px);
}

.card-image {
    position: relative;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-image img {
    transform: scale(1.05);
}

.card-btn {
    position: absolute;
    bottom: 15px;
    /* Inside the image */
    right: 15px;
    /* Overlapping slightly? Or just inside. Screenshot shows inside bottom right */
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    border: 3px solid #fff;
    /* White border to separate from image */
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.card-btn:hover {
    background-color: var(--secondary-color);
    transform: rotate(-45deg);
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.card-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-title {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-section {
        padding: 100px 0px 100px 0px;
    }
}