/* Services Section Styling */
#services {
    background: linear-gradient(135deg, #f2f2f2, #e0f7fa);
    padding: 80px 20px;
    position: relative;
    color: #333;
    overflow: hidden;
}

#services::before {
    content: '';
    position: absolute;
    top: -150px;
    left: -150px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.3), transparent);
    z-index: 0;
    animation: float 12s infinite ease-in-out;
}

#services::after {
    content: '';
    position: absolute;
    bottom: -200px;
    right: -200px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 150, 136, 0.3), transparent);
    z-index: 0;
    animation: float-reverse 15s infinite ease-in-out;
}

#services h2 {
    font-size: 3rem;
    color: #ff6f00;
    text-align: center;
    margin-bottom: 50px;
    font-family: 'Arial', sans-serif;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    animation: fade-in 1.5s ease;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

#services .card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    z-index: 1;
}

#services .card:hover {
    transform: translateY(-12px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#services .card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

#services .card-image img:hover {
    transform: scale(1.15);
}

#services .card-content {
    padding: 25px;
    background-color: #fff;
    border-top: 5px solid #00796b;
    transition: background-color 0.3s ease;
}

#services .card-content:hover {
    background-color: #e0f7fa;
}

#services .card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #004d40;
}

#services .card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
}

#services .card .button {
    display: inline-block;
    background-color: #00796b;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#services .card .button:hover {
    background-color: #004d40;
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(20px);
    }
}

@keyframes float-reverse {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    #services h2 {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }

    #services .card {
        margin-bottom: 30px;
    }

    #services .card-image img {
        height: 200px;
    }

    #services .card-title {
        font-size: 1.6rem;
    }

    #services .card p {
        font-size: 0.95rem;
    }
}
