
/* Portfolio details button */
.portfolio-card {
  display: flex;
  flex-direction: column;
}

.portfolio-tags { margin-bottom: 16px; }

.btn-details {
  margin-top: auto;
  width: 100%;
  padding: 11px 18px;
  background: rgba(102, 126, 234, 0.12);
  border: 1px solid rgba(102, 126, 234, 0.35);
  border-radius: 50px;
  color: var(--purple);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-details:hover {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
}

/* Clients note */
.clients-note {
  text-align: center;
  max-width: 720px;
  margin: 32px auto 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Project Modal */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-modal.open {
  opacity: 1;
  visibility: visible;
}

.project-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(8px);
}

.project-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.project-modal.open .project-modal-dialog {
  transform: translateY(0) scale(1);
}

.project-modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--transition);
}

.project-modal-close:hover { background: rgba(0, 0, 0, 0.55); }

.project-modal-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 28px 24px 60px;
  background: linear-gradient(145deg, #0d1b3e 0%, #1a2f5a 45%, #2d1b69 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.project-modal-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.project-modal-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
}

.project-modal-header h2 {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.project-modal-header p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

.project-modal-body {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
}

.modal-section { margin-bottom: 28px; }
.modal-section:last-child { margin-bottom: 0; }

.modal-section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--primary-light);
}

.modal-section h3 i { color: var(--purple); }

.modal-section > p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 14px;
}

.modal-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.modal-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
}

/* Screenshots */
.screenshots-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: -6px 0 14px;
}

.screenshot-role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.screenshot-role-tab {
  padding: 8px 14px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.screenshot-role-tab:hover {
  border-color: rgba(102, 126, 234, 0.45);
  color: var(--primary-light);
}

.screenshot-role-tab.active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.screenshot-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0f172a;
}

.screenshot-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  background: #1e293b;
}

.screenshot-caption {
  padding: 10px 14px;
  background: var(--bg-dark);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}

/* UI mock — shared */
.ui-mock { font-family: 'Tajawal', sans-serif; font-size: 10px; direction: rtl; }

.ui-mock-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: linear-gradient(135deg, #1e3a5f, #2d6a9f);
  color: #fff;
  font-weight: 700;
  font-size: 9px;
}

.ui-mock-nav span { opacity: 0.85; }

.ui-mock-body { padding: 10px; background: #eef2f7; min-height: 120px; }

.ui-mock-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.ui-mock-stat {
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  border-right: 3px solid var(--c, #667eea);
}

.ui-mock-stat strong { display: block; font-size: 14px; color: #1e293b; }
.ui-mock-stat span { color: #64748b; font-size: 8px; }

.ui-mock-table {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.ui-mock-row {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: 4px;
  padding: 6px 8px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 8px;
  color: #475569;
}

.ui-mock-row.head { background: #f8fafc; font-weight: 700; color: #334155; }

.ui-mock-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 50px;
  font-size: 7px;
  font-weight: 700;
}

.badge-green { background: #d1fae5; color: #065f46; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-blue { background: #dbeafe; color: #1e40af; }

.ui-mock-form { background: #fff; border-radius: 8px; padding: 10px; }

.ui-mock-field {
  height: 22px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  color: #94a3b8;
  font-size: 8px;
}

.ui-mock-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }

.ui-mock-chip {
  padding: 4px 8px;
  border-radius: 50px;
  font-size: 7px;
  font-weight: 700;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #4338ca;
}

.ui-mock-chip.on { background: #667eea; color: #fff; border-color: #667eea; }

.ui-mock-btn {
  display: inline-block;
  padding: 5px 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 700;
}

.project-modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
}

body.modal-open { overflow: hidden; }

@media (max-width: 768px) {
  .project-modal-header {
    flex-direction: column;
    text-align: center;
    padding: 56px 20px 20px;
  }

  .screenshots-grid { grid-template-columns: 1fr; }

  .project-modal-dialog { max-height: 94vh; }
}

@media (max-width: 480px) {
  .project-modal { padding: 12px; }
}
