/* Projects Page Styles */
.projects-section { padding: 0 0 80px; }

.project-detail-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.project-detail-card.reverse { direction: rtl; }
.project-detail-card.reverse > * { direction: ltr; }

.proj-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: none;
  border: none;
}

.proj-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proj-placeholder {
  width: 100%;
  height: 100%;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  background: linear-gradient(135deg, rgba(26,86,219,0.14), rgba(249,115,22,0.14));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
}

.proj-status-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
}

.watch-demo-btn {
  position: absolute;
  top: auto !important;
  bottom: 14px !important;
  right: 14px !important;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 50px;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.watch-demo-btn i {
  color: #ff0000;
  font-size: 0.95rem;
  transition: transform 0.3s ease;
}
.watch-demo-btn:hover {
  background: #ff0000;
  color: #ffffff;
  border-color: #ff0000;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.45);
}
.watch-demo-btn:hover i {
  color: #ffffff;
  transform: scale(1.15);
}

/* ===== VIDEO DEMO POPUP MODAL ===== */
.video-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.video-modal-card {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 760px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
  transform: scale(0.92) translateY(20px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.video-modal-close-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #1e293b;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.video-modal-close-icon:hover {
  background: #ef4444;
  color: #ffffff;
  transform: scale(1.1);
}

.video-player-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000000;
}

.video-player-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-body {
  padding: 24px 28px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  background: #ffffff;
}

.video-modal-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.5;
  margin: 0;
}

.video-modal-close-btn {
  padding: 10px 42px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
  background: linear-gradient(135deg, #f97316, #ea580c);
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.25s ease;
}

.video-modal-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
}

.proj-info { display: flex; flex-direction: column; gap: 16px; }

.proj-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.proj-info h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
}

.proj-info > p {
  color: var(--gray-400);
  line-height: 1.7;
  font-size: 0.95rem;
}

.proj-features h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 10px;
}

.proj-features ul { display: flex; flex-direction: column; gap: 8px; }

.proj-features li {
  color: var(--gray-200);
  font-size: 0.9rem;
}

.proj-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.proj-tech span {
  background: rgba(26,86,219,0.12);
  border: 1px solid rgba(26,86,219,0.25);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.8rem;
  color: var(--blue-light);
  font-weight: 500;
}

.proj-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.cta-banner {
  background: linear-gradient(135deg, rgba(26,86,219,0.15), rgba(249,115,22,0.1));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-banner h2 span { color: var(--orange); }
.cta-banner p { color: var(--gray-400); }
.cta-banner > div { justify-content: center; }

@media (max-width: 768px) {
  .project-detail-card { grid-template-columns: 1fr; gap: 30px; }
  .project-detail-card.reverse { direction: ltr; }
  .cta-banner { padding: 32px 24px; }
}
