
      /* ===== PROJECT MODAL OVERLAY ===== */
      .project-modal-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0, 0, 0, 0.75);
        z-index: 99999;
        overflow-y: auto;
        animation: fadeInOverlay 0.3s ease;
      }

      .project-modal-overlay.active {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: 40px 20px;
      }

      @keyframes fadeInOverlay {
        from { opacity: 0; }
        to   { opacity: 1; }
      }

      /* ===== PROJECT MODAL BOX ===== */
      .project-modal {
        background: #fff;
        border-radius: 6px;
        max-width: 820px;
        width: 100%;
        padding: 45px 50px;
        position: relative;
        animation: slideInModal 0.35s ease;
        line-height: 1.85;
      }

      @keyframes slideInModal {
        from { opacity: 0; transform: translateY(-30px); }
        to   { opacity: 1; transform: translateY(0);     }
      }

      /* ===== CLOSE BUTTON ===== */
      .project-modal .modal-close {
        position: absolute;
        top: 18px; right: 22px;
        font-size: 22px;
        cursor: pointer;
        color: #888;
        background: none;
        border: none;
        line-height: 1;
        transition: color 0.3s;
      }

      .project-modal .modal-close:hover {
        color: #222;
      }

      /* ===== MODAL HEADER ===== */
      .project-modal .modal-category {
        display: inline-block;
        background: #e8f0fe;
        color: var(--main-color, #0066cc);
        font-size: 12px;
        font-weight: 700;
        padding: 4px 14px;
        border-radius: 20px;
        margin-bottom: 14px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
      }

      .project-modal h2 {
        font-size: 26px;
        font-weight: 800;
        color: #1a1a2e;
        margin-bottom: 8px;
        line-height: 1.3;
      }

      .project-modal .modal-meta {
        font-size: 13px;
        color: #888;
        margin-bottom: 22px;
        padding-bottom: 18px;
        border-bottom: 1px solid #eee;
      }

      .project-modal .modal-meta span {
        margin-right: 18px;
      }

      .project-modal .modal-meta .fa {
        margin-right: 5px;
        color: var(--main-color, #0066cc);
      }

      /* ===== MODAL IMAGE ===== */
      .project-modal .modal-image {
        width: 100%;
        border-radius: 4px;
        margin-bottom: 28px;
        max-height: 380px;
        object-fit: cover;
      }

      /* ===== MODAL BODY TEXT ===== */
      .project-modal p {
        font-size: 15px;
        color: #555;
        margin-bottom: 16px;
      }

      .project-modal h4 {
        font-size: 17px;
        font-weight: 700;
        color: #222;
        margin: 22px 0 10px;
      }

      .project-modal ul {
        padding-left: 20px;
        margin-bottom: 16px;
      }

      .project-modal ul li {
        font-size: 15px;
        color: #555;
        margin-bottom: 8px;
        list-style: disc;
      }

      /* ===== PROJECT DETAILS GRID ===== */
      .project-modal .project-details-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px 24px;
        background: #f8f9fa;
        border-radius: 4px;
        padding: 20px 24px;
        margin: 22px 0;
        border-left: 4px solid var(--main-color, #0066cc);
      }

      .project-modal .project-details-grid .detail-item strong {
        display: block;
        font-size: 12px;
        color: #999;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 3px;
      }

      .project-modal .project-details-grid .detail-item span {
        font-size: 14px;
        color: #333;
        font-weight: 600;
      }

      /* ===== TECH TAGS ===== */
      .project-modal .tech-tags {
        margin: 18px 0;
      }

      .project-modal .tech-tags span {
        display: inline-block;
        background: #e8f0fe;
        color: var(--main-color, #0066cc);
        padding: 5px 13px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        margin: 4px 3px;
      }

      /* ===== MODAL CTA ===== */
      .project-modal .modal-cta {
        margin-top: 28px;
        padding-top: 22px;
        border-top: 1px solid #eee;
        display: flex;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
      }

      .project-modal .modal-cta a.theme-btn {
        font-size: 14px;
      }

      .project-modal .modal-cta .close-modal-link {
        font-size: 13px;
        color: #888;
        cursor: pointer;
        text-decoration: underline;
        background: none;
        border: none;
        padding: 0;
      }

      .project-modal .modal-cta .close-modal-link:hover {
        color: #333;
      }

      /* ===== RESPONSIVE ===== */
      @media (max-width: 600px) {
        .project-modal {
          padding: 30px 22px;
        }
        .project-modal .project-details-grid {
          grid-template-columns: 1fr;
        }
        .project-modal h2 {
          font-size: 20px;
        }
      }

      /* ===== FILTER TABS ===== */
      .filter-tabs .filter {
        cursor: pointer;
      }
