/* --- Services Section Styles --- */


/* --- Grid System --- */
.services__grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

/* --- Service Card Styles --- */
.service-card {
    display: block;
    background-color: var(--clr-semi-light);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    text-decoration: none;
    box-shadow: var(--shadow-card);
    border-bottom: 4px solid transparent;
    height: 100%;
    /* الحالة الابتدائية للكارت قبل أن يظهر */
    opacity: 0;
    transform: translateY(30px);
    /* يبدأ من أسفل مكانه بـ 30 بكسل */
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    /* حركة ناعمة */
}

/* الكلاس الذي سيتم إضافته بواسطة الـ JS عند التمرير */
.service-card.reveal {
    opacity: 1;
    transform: translateY(0);
    /* يعود لمكانه الأصلي */
}

/* لإضافة لمسة جمالية، سنجعل الكروت تظهر بتتابع (واحد تلو الآخر) */
.service-card:nth-child(1) {
    transition-delay: 0.1s;
}

.service-card:nth-child(2) {
    transition-delay: 0.2s;
}

.service-card:nth-child(3) {
    transition-delay: 0.3s;
}

.service-card:nth-child(4) {
    transition-delay: 0.4s;
}

.service-card:nth-child(5) {
    transition-delay: 0.5s;
}

.service-card:nth-child(6) {
    transition-delay: 0.6s;
}

.service-card__icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-card__icon {
    background-color: var(--clr-primary);
    color: white;
    padding: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(31, 94, 255, 0.4);
    transition: transform 0.3s ease;
}

.service-card__icon svg {
    width: 2rem;
    height: 2rem;
}

.service-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-dark);
    margin-bottom: 0.75rem;
}

.service-card__text {
    color: var(--clr-gray-text);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* --- Hover Effects --- */
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-bottom-color: var(--clr-primary);
}

.service-card:hover .service-card__icon {
    transform: scale(1.1);
}

/* --- Responsive Breakpoints --- */

/* Tablet (426px to 1024px) */
@media (min-width: 426px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop (1025px and up) */
@media (min-width: 1025px) {
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}