/* Updated service modal visual style */
.service-modal-trigger {
    cursor: pointer;
}

.service-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 260ms ease;
}

.service-modal.active {
    display: flex;
    opacity: 1;
}

.service-modal-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(113, 129, 255, 0.18), transparent 35%),
        rgba(6, 8, 16, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.service-modal-container {
    position: relative;
    margin: auto;
    width: min(1100px, 92vw);
    min-height: min(620px, 86vh);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(14, 18, 38, 0.96), rgba(8, 11, 24, 0.95));
    border: 1px solid rgba(172, 182, 255, 0.32);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    transform: translateY(40px) scale(0.96);
    opacity: 0;
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 300ms ease;
}

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

.service-modal-main {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    min-height: min(620px, 86vh);
}

.service-modal-media {
    position: relative;
    overflow: hidden;
    background: #05070f;
}

.service-modal-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(7, 10, 20, 0.1), rgba(7, 10, 20, 0.55));
    pointer-events: none;
}

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

.service-modal-content {
    padding: 42px 36px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
}

.service-modal-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-modal-title {
    margin: 0;
    color: #f4f6ff;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(1.45rem, 1.7vw, 2rem);
    line-height: 1.22;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.service-modal-subtitle {
    color: #b6c2ff;
    font-family: "Roboto", sans-serif;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.service-modal-description {
    position: relative;
    padding-top: 18px;
}

.service-modal-description::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 72px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(160, 174, 255, 0.95), rgba(116, 145, 255, 0.3));
}

.service-modal-text {
    margin: 0;
    color: rgba(232, 236, 255, 0.88);
    font-family: "Roboto", sans-serif;
    font-size: 1rem;
    line-height: 1.65;
}

.service-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(182, 194, 255, 0.35);
    border-radius: 50%;
    background: rgba(11, 14, 30, 0.75);
    color: #edf0ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
    font-size: 0;
    z-index: 2;
}

.service-modal-close .close-icon {
    font-size: 17px;
    line-height: 1;
}

.service-modal-close:hover {
    background: rgba(28, 36, 72, 0.92);
    border-color: rgba(203, 210, 255, 0.7);
    transform: scale(1.06);
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .service-modal-container {
        width: min(96vw, 760px);
        min-height: min(700px, 90vh);
    }

    .service-modal-main {
        grid-template-columns: 1fr;
        min-height: min(700px, 90vh);
    }

    .service-modal-media {
        min-height: 42vh;
    }

    .service-modal-content {
        padding: 28px 22px 26px;
    }

    .service-modal-text {
        font-size: 0.94rem;
        line-height: 1.56;
    }
}
