﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 3rem;
    color: #222;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 1s ease forwards;
}

p.description {
    text-align: center;
    width: 100%;    
    padding: 0 65px 30px;   
    font-size: 19px;
    color: black;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease 0.3s forwards;
}

.services-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    width: 100%;
    margin: 0 auto;
    background: linear-gradient(to right, #00B4DB, #8A2BE2, #FF0080);
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(111, 0, 255, 0.2);
}

.card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    width: 350px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeInCard 1s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.4s; }
.card:nth-child(2) { animation-delay: 0.6s; }
.card:nth-child(3) { animation-delay: 0.8s; }

.card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, #00f, #0ff, #f0f, #ff0);
    background-size: 400%;
    z-index: 0;
    filter: blur(30px);
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: rotateBg 6s linear infinite;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-10px) scale(1.04) rotateX(5deg);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.card > * {
    position: relative;
    z-index: 1;
}

.card i {
    font-size: 40px;
    color: #0077ff;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #0077ff;
    transition: color 0.3s ease;
}

.card h3:hover {
    color: #8A2BE2;
}

.card p {
    font-size: 17px;
    color: black;
    text-align: justify;
    line-height: 1.6;
    flex-grow: 1;
    min-height: 150px;
}

/* 🔹 Original HTML Button Style */
.card button {
    margin-top: 20px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #00B4DB, #8A2BE2);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInButton 1s ease forwards;
    opacity: 0;
    transform: translateY(20px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card:nth-child(1) button { animation-delay: 0.6s; }
.card:nth-child(2) button { animation-delay: 0.8s; }
.card:nth-child(3) button { animation-delay: 1s; }

.card button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
    z-index: -1;
}

.card button:hover::before {
    left: 0;
}

.card button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* 🔹 ASP.NET Button Style (.explore-btn) */
.explore-btn {
     margin-top: 20px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #00B4DB, #8A2BE2);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInButton 1s ease forwards;
    opacity: 0;
    transform: translateY(20px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-decoration:none;
}

.explore-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
    z-index: -1;
}

.explore-btn:hover::before {
    left: 0;
}

.explore-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .card {
        flex: 1 1 100%;
        width: 100%;
        margin: 10px 0;
    }
    p.description {
        padding: 0 20px 30px;
    }
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInCard {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInButton {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes rotateBg {
    0% { background-position: 0 0; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0 0; }
}
