/* 
    Sysnord Service Modals Styles
    Design: Premium, Glassmorphism, Responsive
*/

:root {
    --modal-bg: rgba(255, 255, 255, 0.95);
    --modal-overlay: rgba(0, 73, 72, 0.15); /* Tinted subtle overlay */
    --modal-border: rgba(255, 255, 255, 0.2);
}

.service-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-overlay);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.service-modal-container {
    background: var(--modal-bg);
    width: 90%;
    max-width: 1000px;
    height: auto;
    max-height: 90vh;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px rgba(0, 73, 72, 0.25);
    display: flex;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid white;
}

.service-modal-overlay.active .service-modal-container {
    transform: scale(1) translateY(0);
}

/* Modal Layout */
.service-modal-image {
    width: 45%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-modal-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.3), transparent);
}

.service-modal-content {
    width: 55%;
    padding: var(--space-12);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Modal Typography */
.service-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.service-modal-close:hover {
    background: var(--color-accent);
    color: white;
    transform: rotate(90deg);
}

.service-modal-header h2 {
    font-size: var(--text-3xl);
    color: var(--color-dark);
    margin-bottom: var(--space-4);
    font-weight: 800;
}

.service-modal-category {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: var(--space-2);
    display: block;
}

.service-modal-description {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: var(--space-8);
    font-size: 16px;
}

.service-features-list {
    list-style: none;
    margin-bottom: var(--space-10);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.service-features-list li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 14px;
    color: var(--color-dark);
}

.service-features-list li svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

.service-modal-footer {
    margin-top: auto;
    padding-top: var(--space-6);
    border-top: 1px solid #f1f5f9;
}

.btn-modal-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--color-dark);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-modal-cta:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 73, 72, 0.2);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .service-modal-container {
        flex-direction: column;
        width: 95%;
        max-height: 95vh;
    }
    .service-modal-image {
        width: 100%;
        height: 200px;
    }
    .service-modal-content {
        width: 100%;
        padding: var(--space-8);
    }
    .service-features-list {
        grid-template-columns: 1fr;
    }
}
