
.services {
    background-image: url('/BackgroundImages/HomeServiceBg.png');
    background-size: cover;
    background-position: center;
    padding: 120px 20px;
    color: white;
    text-align: center;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
}

.services-description {
    font-size: 20px;
    margin-bottom: 50px;
    font-family: 'Roboto', sans-serif;
    color: #e0e0e0;
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}


.service-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #760AFF, #FF0000);
    opacity: 0;
    z-index: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 0.9;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}


.service-icon {
    font-size: 50px;
    color: #ffffff;
    margin-bottom: 20px;
    z-index: 1;
    position: relative;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    z-index: 1;
    position: relative;
}

.service-card p {
    font-size: 16px;
    z-index: 1;
    position: relative;
}

.service-card h3, .service-card p {
    transition: color 0.3s ease;
}

.service-card:hover h3, .service-card:hover p {
    color: #ffffff;
}

.service-card.in-view {
    opacity: 1;
    transform: translateY(0);
}


.view-more-btn {
    display: inline-block;
    margin-top: 50px;
    padding: 15px 30px;
    font-size: 18px;
    color: #fff;
    background-color: transparent;
    border: 2px solid #fff;
    border-radius: 25px;
    font-weight: bold;
    transition: background-color 0.4s ease, color 0.4s ease;
    text-decoration: none;
}

.view-more-btn:hover {
    background-color: #fff;
    color: #760AFF;
}


@media (max-width: 768px) {
    .services-title {
        font-size: 36px;
    }

    .services-description {
        font-size: 18px;
    }

    .service-card h3 {
        font-size: 22px;
    }

    .view-more-btn {
        font-size: 16px;
        padding: 12px 25px;
    }
}
