/* Services Section Specific Styles */
#servicesCard .card-body {
    padding: 0;
    background: linear-gradient(135deg, #eceff1 0%, #b0bec5 100%);
    font-family: 'Montserrat', sans-serif;
}

.services-container {
    padding: 20px; /* Reduced padding to fit within card */
    color: #333;
   /* max-height: calc(100vh - 410px);  Account for card-img-top (350px) + padding */
    overflow-y: auto; /* Ensure scrolling if needed */
}

.services-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.8s ease-out forwards;
}

.services-header h1 {
    font-size: 1.8rem; /* Reduced for smaller screens */
    font-weight: 700;
    color: #263238;
    margin: 0;
}

.services-header .material-icons {
    font-size: 36px; /* Slightly smaller */
    color: #546e7a;
    margin-right: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjusted min width */
    gap: 15px; /* Reduced gap */
}

.service-card {
    background: #fff;
    border-radius: 8px; /* Smaller radius for tighter fit */
    padding: 15px; /* Reduced padding */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
    display: flex;
    flex-direction: column;
}

.service-card:nth-child(1) { animation-delay: 0.2s; }
.service-card:nth-child(2) { animation-delay: 0.4s; }
.service-card:nth-child(3) { animation-delay: 0.6s; }
.service-card:nth-child(4) { animation-delay: 0.8s; }
.service-card:nth-child(5) { animation-delay: 1.0s; }
.service-card:nth-child(6) { animation-delay: 1.2s; }
.service-card:nth-child(7) { animation-delay: 1.4s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.service-card img.service-icon {
    width: 40px; /* Reduced size */
    height: 40px;
    margin-bottom: 10px;
    animation: pulse 2s infinite ease-in-out;
    align-self: center; /* Center icon */
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); } /* Reduced scale for subtlety */
    100% { transform: scale(1); }
}

.service-card h3 {
    font-size: 1.25rem; /* Smaller heading */
    font-weight: 600;
    color: #263238;
    margin-bottom: 8px;
    text-align: center;
}

.service-card .service-img {
    width: 100%;
    height: 100px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.service-card ul {
    list-style: none;
    padding: 0;
    font-size: 0.9rem; /* Smaller text */
    color: #546e7a;
    flex-grow: 1; /* Allow list to fill space */
}

.service-card ul li {
    margin-bottom: 6px;
}

.service-card ul li strong {
    color: #263238;
}

.why-choose-me, .how-i-work {
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

.why-choose-me h2, .how-i-work h2 {
    font-size: 1.5rem; /* Smaller heading */
    font-weight: 600;
    color: #263238;
    margin-bottom: 10px;
}

.why-choose-me ul, .how-i-work ul {
    font-size: 0.9rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
    padding: 8px 16px; /* Smaller button */
    background: #546e7a;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background: #455a64;
    transform: translateY(-2px);
}

.cta-button .material-icons {
    font-size: 20px; /* Smaller icon */
    margin-right: 8px;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .services-container {
        padding: 15px;
    }
    .services-header h1 {
        font-size: 1.5rem;
    }
    .services-header .material-icons {
        font-size: 30px;
    }
    .services-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
    }
    .service-card {
        padding: 12px;
    }
    .service-card img.service-icon {
        width: 36px;
        height: 36px;
    }
    .service-card .service-img {
        height: 80px;
    }
    .service-card h3 {
        font-size: 1.1rem;
    }
    .service-card ul {
        font-size: 0.85rem;
    }
    .why-choose-me h2, .how-i-work h2 {
        font-size: 1.3rem;
    }
}