﻿/* ==================== کارت‌های خدمات ==================== */
.service-cards-section {
    position: relative;
  
    overflow: hidden;
}

.services-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
}

.service-card-modern {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

    .service-card-modern::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #ffc107, #ff9800, #00e5ff);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.5s ease;
        z-index: 3;
    }

    .service-card-modern:hover::before {
        transform: scaleX(1);
    }

    .service-card-modern:hover {
        transform: translateY(-10px);
        border-color: rgba(255, 193, 7, 0.3);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(255, 193, 7, 0.1);
    }

.service-card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #1a1f2e;
}

    .service-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

.service-card-modern:hover .service-card-image img {
    transform: scale(1.1);
}

.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 14, 26, 0.9) 100%);
    pointer-events: none;
}

.service-card-body {
    padding: 2rem 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 2;
}

.service-card-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.service-card-modern:hover .service-card-title {
    color: #ffc107;
}

.service-card-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.25);
    color: #ffc107;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

    .service-card-btn:hover {
        background: linear-gradient(135deg, #ffc107, #ff9800);
        color: #000;
        border-color: transparent;
        transform: translateX(-5px);
        box-shadow: 0 8px 25px rgba(255, 193, 7, 0.35);
    }

/* ==================== صفحه جزئیات ==================== */
.service-details-section {
    position: relative;
    min-height: 100vh;
    padding: 120px 0 80px;
    background: linear-gradient(180deg, #0a0e1a 0%, #0f1420 100%);
}

.service-details-header {
    text-align: center;
    margin-bottom: 3rem;
}

.service-details-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 60px rgba(255, 193, 7, 0.2);
}

.service-details-line {
    width: 120px;
    height: 4px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, #ffc107, #ff9800, #ffc107, transparent);
    border-radius: 4px;
    animation: lineGlow 3s ease-in-out infinite;
}

@keyframes lineGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 193, 7, 0.6);
    }
}

/* عکس بزرگ در صفحه جزئیات */
.service-details-image {
    max-width: 1000px;
    margin: 0 auto 3rem;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 193, 7, 0.1);
}

    .service-details-image img {
        width: 100%;
        height: auto;
        display: block;
    }

.service-details-content {
    max-width: 850px;
    margin: 0 auto 3rem;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 2.2;
    backdrop-filter: blur(10px);
}

    .service-details-content h2,
    .service-details-content h3 {
        color: #ffc107;
        margin: 1.5rem 0 1rem;
        font-weight: 800;
    }

.service-details-back {
    text-align: center;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .btn-back:hover {
        background: rgba(255, 193, 7, 0.1);
        border-color: rgba(255, 193, 7, 0.4);
        color: #ffc107;
        transform: translateX(5px);
    }

/* ==================== ریسپانسیو ==================== */
@media (max-width: 991.98px) {
    .services-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .service-details-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .service-cards-section {
        padding: 60px 0;
    }

    .services-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card-image {
        height: 200px;
    }

    .service-details-title {
        font-size: 1.8rem;
    }

    .service-details-content {
        padding: 1.5rem;
        font-size: 0.95rem;
    }
}
