/* Services Modal Styles */

.service-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 41, 55, 0.8);
    /* var(--dark-color) opacity */
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.service-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.service-modal-content {
    background: #FFFFFF;
    /* var(--white) */
    width: 100%;
    max-width: 600px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.service-modal-overlay.active .service-modal-content {
    transform: scale(1);
}

.service-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--dark-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.service-modal-close:hover {
    background: #FFFFFF;
    color: var(--primary-color);
    /* var(--primary-color) */
    transform: rotate(90deg);
}

.service-modal-header {
    position: relative;
    height: 200px;
}

.service-modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-modal-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #FFFFFF;
}

.service-modal-title-overlay h2 {
    font-size: 24px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

.service-modal-desc {
    color: var(--gray-color);
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.service-features-list h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 15px;
}

.service-features-list ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.service-features-list li {
    padding: 8px 0;
    color: var(--dark-color);
    display: flex;
    align-items: flex-start;
}

.service-features-list li i {
    color: var(--accent-color);
    /* var(--accent-color) */
    margin-right: 10px;
    margin-top: 4px;
}

.service-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

@media (max-width: 600px) {
    .service-modal-content {
        max-height: 95vh;
        margin: 10px;
    }

    .service-modal-actions {
        flex-direction: column;
    }

    .service-modal-actions button {
        width: 100%;
    }
}

.modal-gallery img {
    width: 100%;
    height: 250px;
    /* Fixed height for all images */
    object-fit: cover;
    /* This prevents stretching/distortion */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.modal-gallery img:hover {
    transform: scale(1.02);
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    /* Responsive grid */
    gap: 20px;
    margin: 25px 0;
}