.service-section {
    background-color: var(--light);
    width: 100%;
    padding: 120px 5%;
    /* opacity: 0; */
    /* animation: fadeInUp 1s var(--ease-out) 0.4s forwards; */
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin: 0 auto;
    width: 100%;
    padding: 60px 0;
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    color: var(--light);
    flex: 1 1 380px;
    display: flex;
    flex-direction: column;
    transform: translateY(50px) scale(0.95);
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) forwards;
    transition: all 0.5s var(--ease-out);
    max-width: 420px;
}

.card:nth-child(1) {
    animation-delay: 0.6s;
}

.card:nth-child(2) {
    animation-delay: 0.8s;
}

.card:nth-child(3) {
    animation-delay: 1s;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.8s var(--ease-out);
    opacity: 0;
}

.card:hover::before {
    opacity: 1;
    animation: shine 1.5s var(--ease-out);
}

@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.card-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    color: var(--light);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 20px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease-out);
}

.card:hover .card-title {
    transform: translateY(-5px);
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--light);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.4s var(--ease-out);
}

.card:hover .card-title::after {
    width: 120px;
    background: var(--secondary);
}

.features {
    list-style-type: none;
    margin: 25px 0;
    flex: 1;
}

.feature-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    transition: all 0.4s var(--ease-out);
    color: var(--light);
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInLeft 0.6s var(--ease-out) forwards;
}

.feature-item:nth-child(1) {
    animation-delay: 0.3s;
}

.feature-item:nth-child(2) {
    animation-delay: 0.4s;
}

.feature-item:nth-child(3) {
    animation-delay: 0.5s;
}

.feature-item:nth-child(4) {
    animation-delay: 0.6s;
}

.feature-item:nth-child(5) {
    animation-delay: 0.7s;
}

.feature-item:hover {
    transform: translateX(8px);
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.feature-item::before {
    content: '✓';
    color: var(--light);
    font-weight: bold;
    margin-right: 15px;
    background: rgba(255, 255, 255, 0.25);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    transition: all 0.4s var(--ease-out);
}

.feature-item:hover::before {
    background: var(--secondary);
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 20px rgba(200, 74, 55, 0.4);
}

.card-footer {
    text-align: center;
    margin-top: 30px;
}

.card-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: var(--secondary);
    color: var(--light);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 10;
    animation: pulse 2s var(--ease-in-out) infinite;
    transform-origin: center;
}

@media (max-width: 1200px) {
    .card-container {
        gap: 35px;
    }

    .card {
        flex: 1 1 calc(50% - 35px);
        max-width: calc(50% - 35px);
    }
}

@media (max-width: 992px) {
    .service-section {
        padding: 100px 5%;
    }

    .card-container {
        gap: 30px;
    }

    .card {
        flex: 1 1 100%;
        max-width: 500px;
    }

    .card-badge {
        top: 5px;
    }
}

@media (max-width: 768px) {
    .service-section {
        padding: 80px 5%;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .card {
        padding: 30px 25px;
    }

    .card-title {
        min-height: auto;
        margin-bottom: 25px;
        font-size: 1.6rem;
    }

    .feature-item {
        font-size: 1rem;
        padding: 12px 0;
    }
}

@media (max-width: 576px) {
    .service-section {
        padding: 60px 5%;
    }

    .section-title {
        font-size: 2rem;
    }

    .card {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .card-title {
        font-size: 1.4rem;
        padding-bottom: 15px;
    }

    .card-title::after {
        width: 80px;
        height: 3px;
    }

    .feature-item {
        font-size: 0.95rem;
    }

    .feature-item::before {
        width: 24px;
        height: 24px;
        margin-right: 12px;
    }
}