.tech-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    visibility: hidden;
    overflow: hidden;
}

.no-scroll {
    overflow: hidden !important;
    touch-action: none; 
    overscroll-behavior: none; 
}

.modal-door-left {
    position: absolute;
    left: 0; top: 0;
    width: 50%; height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.modal-visual-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.modal-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.1) brightness(0.9);
}

.modal-door-right {
    position: absolute;
    right: 0; top: 0;
    width: 50%; height: 100%;
    background: #fff;
    z-index: 2;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

.modal-scroll-area {
    height: auto;
    padding: 100px 12% 60px;
    position: relative;
    z-index: 5;
}

.modal-close-btn {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    color: #000;
    font-size: 1.8rem;
    transition: 0.3s;
}

.modal-close-btn:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.modal-label {
    color: var(--accent);
    font-family: 'Chakra Petch', sans-serif !important;
    letter-spacing: 4px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.modal-title {
    font-family: 'Chakra Petch', sans-serif !important;
    font-size: 3.5rem;
    line-height: 1;
    color: #000;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.modal-description {
    font-family: 'Manrope';
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 50px;
}

.specs-grid {
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 40px 30px; 
    margin-bottom: 60px;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    text-align: center; 
    flex: 0 0 30%; 
    min-width: 140px; 
    transition: 0.3s ease; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 15px;
}

.s-label {
    font-size: 0.65rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.s-value {
    font-family: 'Chakra Petch', sans-serif !important;
    font-size: 1.6rem;
    color: #000;
    font-weight: 500;
    transition: 0.3s ease;
}

.spec-item:hover .s-value {
    color: var(--accent);
    transform: translateY(-3px); 
}

.modal-actions {
    display: flex;
    gap: 20px;
    margin-top: 50px;
}

.pdf-link, .quote-link {
    padding: 18px 30px;
    font-family: 'Oswald';
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-align: center;
    transition: 0.3s;
    text-transform: uppercase;
}

.pdf-link { background: #f5f5f5; color: #000; }
.quote-link { background: var(--accent); color: #fff; flex-grow: 1; cursor: pointer; }

.pdf-link:hover { background: #eee; }
.quote-link:hover { background: #000; }


.modal-blueprint-bg {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1; 
    z-index: 1; 
    pointer-events: none;
    mix-blend-mode: multiply; 
}

.modal-door-right {
    background: #fff; 
}


.modal-door-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/blueprint-01.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    z-index: -1; 
    pointer-events: none;
    mix-blend-mode: multiply;

    opacity: 0;
    transform: scale(1.1); 
    filter: blur(10px) grayscale(100%); 

    animation: xrayReveal 0.8s ease-out forwards 0.3s;
}

@keyframes xrayReveal {
    0% {
        opacity: 0;
        transform: scale(1.8);
        filter: blur(10px) grayscale(100%);
    }
    50% {
        opacity: 0.08; 
        filter: blur(20px) grayscale(0%);
    }
    100% {
        opacity: 0.25;
        transform: scale(1.01); 
        filter: blur(0px);
    }
}
@media (max-width: 1024px) {
    .modal-door-left { width: 35%; }
    .modal-door-right { width: 65%; }
}

@media (max-width: 768px) {
    .modal-door-left { display: none; }
    .modal-door-right { width: 100%; left: 0; }
    .spec-item { flex: 0 0 45%; } 
    .modal-actions { flex-direction: column; }
}

.mobile-product-img {
    display: none; 
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px 4px 0 0; 
    margin-bottom: 0; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-bottom: none; 
}

.modal-mini-gallery {
    display: flex;
    gap: 8px; 
    margin-bottom: 30px; 
    margin-top: 10px; 
    overflow-x: auto; 
    padding-bottom: 5px;
}

.modal-mini-gallery::-webkit-scrollbar { display: none; }

.mini-thumb {
    width: 80px;
    height: 60px; 
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
    background: #f0f0f0;
    flex-shrink: 0; 
}

@media (max-width: 768px) {
    .mobile-product-img {
        display: block;
    }
    
    .modal-mini-gallery {
        justify-content: flex-start; 
        margin-top: 10px; 
    }

    .mini-thumb {
        width: 70px; height: 50px;
    }
}