/* Modal Styles with Glass Effect */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal {
    background: rgba(0, 0, 0);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    height: 100%;
    overflow-y: auto;
    transform: scale(0.9) translateY(50px);
    transition: all 0.3s ease;
    position: relative;
}

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

.modal-header {
    position: relative;
    height: 50%;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.modal-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    background-size: cover;     
    background-position: top; 
    background-repeat: no-repeat;
}


.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(29, 155, 240, 0.8);
    transform: scale(1.1);
}

.modal-content {
    padding: 2rem;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #1d9bf0, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-tech {
    color: #1d9bf0;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.modal-description {
    color: #e7e9ea;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.modal-features {
    margin-bottom: 2rem;
}

.modal-features h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.features-list li {
    color: #71767b;
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1d9bf0;
    font-weight: bold;
}

.modal-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-link {
    border-radius: 30%;
    padding: 5px;
    width: 60px;
    font-size: 1rem;
    justify-content: center; 
    align-items: center;    
}

.project-link svg {
    fill: #fff; 
}

.project-link:hover {
    transform: scale(1.2);
    color: #e1e1e1;
}
