/* ========== MODAL DOS CASES DESENVOLVIDOS ========== */
.case-modal {
    display: none;
    position: fixed;
    z-index: 2001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.case-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

.case-modal-content {
    background-color: #fff;
    margin: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.case-modal.active .case-modal-content {
    transform: scale(1);
}

.case-modal-header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid #eee;
    position: relative;
    background: #007bff;
    color: white;
    border-radius: 12px 12px 0 0;
}

.case-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.case-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.case-close:hover,
.case-close:focus {
    color: #f0f0f0;
}

.case-modal-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.case-modal-description {
    width: 100%;
}

.case-modal-description p {
    margin: 0 0 20px 0;
    color: #555;
    line-height: 1.6;
    font-size: 16px;
}

.case-modal-details h3,
.case-modal-tech h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.case-modal-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.case-modal-features li {
    padding: 6px 0;
    color: #666;
    font-size: 15px;
    position: relative;
    padding-left: 25px;
}

.case-modal-features li:before {
    content: "•";
    position: absolute;
    left: 0;
    font-size: 14px;
}

.case-modal-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.case-modal-footer {
    padding: 20px 30px 30px;
    border-top: 1px solid #eee;
    text-align: center;
}

.case-modal-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.case-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Responsividade do modal dos cases */
@media (max-width: 768px) {
    .case-modal-content {
        margin: 10px;
        width: calc(100% - 20px);
        max-height: 90vh;
    }
    
    .case-modal-header {
        padding: 20px 20px 15px;
    }
    
    .case-modal-header h2 {
        font-size: 20px;
        padding-right: 40px;
    }
    
    .case-modal-body {
        padding: 20px;
        gap: 20px;
    }
    
    .case-modal-footer {
        padding: 15px 20px 20px;
    }
    
    .case-modal-btn {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }
    
    .case-modal-technologies {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .case-modal-header h2 {
        font-size: 18px;
    }
    
    .case-modal-body {
        padding: 15px;
    }
    
    .case-modal-description p {
        font-size: 15px;
    }
    
    .case-modal-features li {
        font-size: 14px;
    }
    
    .case-modal-details h3,
    .case-modal-tech h3 {
        font-size: 16px;
    }
}