/* Services Section */
.services {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(
        135deg,
        var(--black) 0%,
        var(--black-light) 100%
    );
    background-attachment: fixed;
    overflow: hidden;
}

.services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("../logo.png") center/contain no-repeat;
    background-attachment: fixed;
    opacity: 0.03;
    z-index: 0;
}

.services .container {
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--black-light);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(244, 167, 53, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(244, 167, 53, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--gold);
    box-shadow: 0 20px 50px rgba(244, 167, 53, 0.4);
    background: linear-gradient(
        135deg,
        var(--black-light) 0%,
        rgba(26, 26, 26, 0.9) 100%
    );
}

.service-image {
    width: 100%;
    min-height: 200px;
    max-height: 350px;
    height: 250px;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-image img {
    width: 100%;
    height: 100%;
    min-width: 150px;
    min-height: 150px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    display: block;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        var(--black-light) 0%,
        var(--black) 100%
    );
    color: var(--gold);
    font-size: 4rem;
    opacity: 0.5;
}

.service-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-image::after {
    opacity: 1;
}

.service-card h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

/* RTL Support for Services */
[dir="rtl"] .service-card {
    text-align: right;
}

[dir="rtl"] .section-title::after {
    left: auto;
    right: 0;
}
