@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&family=Tajawal:wght@400;700&display=swap');

:root {
    --primaryColor: #FEA958;
    --middleColor: #393E46;
    --helperColor: #400B50;
    --lightHelper: #B60C52;
    --hrColor: #F8F5FF;
    --transparentColor: rgba(0, 0, 0, 0.699);
    --shadow: rgba(189, 188, 188, 0.514);
    /* --------------------------------- */
    --whatsappColor: #25D366;
    --white: #ffff;
    --blue: #1877F2;
    --green: #25D366;
    --gray: #f8f8f8;
    --container-width: 1340px;
    --header-height: 200px;
    /* 👈 غيّر الرقم حسب الارتفاع اللي تحبه */

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

a {
    text-decoration: none;
    transition: all 0.5s;

}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.services-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0px 18px 20PX 18PX;
    text-align: center;
}

.services-section-title {
    display: inline-block;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--helperColor);
    position: relative;
}

.services-section-title::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 5px;
    border-radius: 25px;
    bottom: -10%;
    left: 0;
    background-image: linear-gradient(90deg, var(--lightHelper) 0%, var(--primaryColor) 100%);

}

.services-section-title::before {
    content: "";
    position: absolute;
    width: 90%;
    height: 5px;
    border-radius: 25px;
    bottom: -25%;
    right: 0;
    background-image: linear-gradient(90deg, var(--lightHelper) 0%, var(--primaryColor) 100%);

}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    height: 100%;
    color: var(--helperColor);
    text-align: center;
    border-right: solid 5px rgb(31 66 135 / 10%);
    border-bottom: solid 5px rgb(31 66 135 / 20%);
    border-top: dashed 1px rgb(31 66 135 / 10%);
    border-left: dashed 1px rgb(31 66 135 / 10%);
    padding: 30px 15px;
    border-radius: 0 30px 0 30px;
    background-color: transparent;
    transition: all 0.3s;
}
.service-card2 {
background-color: var(--hrColor);

}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(7, 20, 40, 0.15);
}
.service-card:hover .icon img{
    transform: perspective(10px) translateZ(1px)
}

.service-card .icon {
    width: 200px;
    height: 150px;
   background-color: var(--helperColor);
   display: inline-block;
   padding: 20px;
   border-radius: 30px 5px 30px 5px;
}
.service-card .icon img{
    object-fit: cover;
    transition: all 0.5s;
    vertical-align: middle;
}
.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-block: 12px;
    color: var(--lightHelper);
}

.service-card p {
    font-size: 1rem;
    font-weight: 500;
}


.service-card {
    opacity: 0;
    transform: translateY(20px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

/* Responsive spacing */
@media (max-width: 768px) {
    .services-section-title {
        font-size: 26px;
    }
}