/* Service Modal - Clean Professional Design */
.service-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.service-modal-overlay.active {
    display: flex;
}

.service-modal {
    background: white;
    border-radius: 0;
    width: 900px;
    max-width: 90vw;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
}

.service-modal-header {
    padding: 20px 30px 15px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.service-modal-title {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.service-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.service-modal-close:hover {
    background-color: #f5f5f5;
}

.service-modal-body {
    padding: 20px 30px;
}

.service-modal-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.service-modal-image {
    flex: 0 0 45%;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.4s ease;
}

.service-modal-image:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.service-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.service-modal-info {
    flex: 0 0 55%;
}

.service-step {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 0;
    padding: 16px;
    border-left: 5px solid #667eea;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateX(0);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: popupStep 0.5s ease forwards;
}

.service-step:nth-child(1) { animation-delay: 0.1s; }
.service-step:nth-child(2) { animation-delay: 0.2s; }
.service-step:nth-child(3) { animation-delay: 0.3s; }
.service-step:nth-child(4) { animation-delay: 0.4s; }
.service-step:nth-child(5) { animation-delay: 0.5s; }

@keyframes popupStep {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    50% {
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.service-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.service-step:hover {
    transform: translateX(10px) translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.15);
    border-left-color: #764ba2;
}

.service-step:last-child {
    margin-bottom: 0;
}

.service-step-number {
    flex: 0 0 35px;
    height: 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4); }
    100% { transform: scale(1); box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3); }
}

.service-step-content {
    flex: 1;
}

.service-step-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 3px 0;
}

.service-step-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .service-modal-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .service-modal-image {
        flex: 1;
        aspect-ratio: 16/9;
    }
    
    .service-modal-info {
        flex: 1;
    }
    
    .service-modal-header {
        padding: 20px 20px 15px;
    }
    
    .service-modal-body {
        padding: 20px;
    }
    
    .service-modal-title {
        font-size: 20px;
    }
    
    .service-modal-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
    
    .service-step {
        gap: 12px;
    }
    
    .service-step-number {
        flex: 0 0 35px;
        height: 35px;
        font-size: 13px;
    }
}
