/* --- Capabilities Grid & Modal --- */
        .capabilities-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5em;
            margin-top: 2.5em;
        }
 
        .capabilities-grid .btn {
            width: 100%; /* Ensure buttons fill the grid cell */
        }
/* Modal Styles */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            visibility: hidden;
            opacity: 0;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .modal.open {
            visibility: visible;
            opacity: 1;
        }

        .modal-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            cursor: pointer;
        }

        .modal-content {
            position: relative;
            background-color: #fff;
            padding: 2em;
            border-radius: 5px;
            max-width: 900px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            z-index: 1001;
            transform: scale(0.95);
            transition: transform 0.3s ease;
        }

        .modal.open .modal-content {
            transform: scale(1);
        }

        .modal-close {
            position: absolute;
            top: 1em;
            right: 1em;
            background: none;
            border: none;
            font-size: 2rem;
            line-height: 1;
            cursor: pointer;
            color: #888;
        }

        .modal-close:hover {
            color: #000;
        }

        .modal-body {
            display: flex;
            gap: 3em;
            align-items: flex-start;
        }

        .modal-body .tab-image {
            flex: 1 1 40%;
        }

        .modal-body .tab-image img {
            width: 100%;
            height: auto;
            display: block;
        }

        .modal-body .tab-description {
            flex: 1 1 55%;
        }

        .modal-body .tab-description h4 {
            margin-top: 0;
        }

        /* Responsive modal */
        @media (max-width: 768px) {
            .modal-body {
                flex-direction: column;
            }
            .modal-content {
                padding: 1.5em;
            }
            .modal-close {
                top: 0.5em;
                right: 0.5em;
            }
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }