/* --- YENİ MODERN MODAL STİLLERİ --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999; /* En üstte durması için */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-window {
    width: 95%;
    max-width: 1000px;
    background: #0a0a0f;
    border: 1px solid #222;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.9);
    transform: scale(0.95);
    transition: transform 0.4s;
    max-height: 90vh;
}

.modal-overlay.active .modal-window {
    transform: scale(1);
}

/* Mobilde alt alta, PC'de yan yana */
@media (min-width: 768px) {
    .modal-window {
        flex-direction: row;
    }
}

.modal-visual {
    background: #000;
    flex: 1;
    min-height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-right: 1px solid #222;
}

.modal-content-wrapper {
    flex: 1.5;
    padding: 40px;
    overflow-y: auto;
    background: linear-gradient(to bottom, #0a0a0f, #050505);
}

.modal-scroll-area {
    padding-bottom: 20px;
}

.tech-pill {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.75rem;
    margin-right: 8px;
    margin-bottom: 8px;
    font-weight: bold;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.03);
}

/* Modal Kapatma Butonu */
.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 50;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}
.modal-close-btn:hover {
    background: #ff0055;
    border-color: #ff0055;
    transform: rotate(90deg);
}