/* ============================================================
   RAMALLAH DIGITAL — BRAND COLOR SYSTEM
   Primary: Red #C5232D | Dark: #4A5568 | Black: #0A0A0A
   ============================================================ */
:root {
  --brand:       #C5232D;
  --brand-light: #E8404A;
  --brand-dim:   #7A1218;
  --brand-glow:  rgba(197, 35, 45, 0.25);
  --border:      rgba(197, 35, 45, 0.18);
}

/* =============================================
   RAMALLAH DIGITAL — SUP SERVICES CSS
   Cinematic · Dark Gold · Premium
   ============================================= */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Cairo:wght@300;400;600;700;900&family=Tajawal:wght@300;400;500;700&display=swap");

/* ============ CSS VARIABLES ============ */
:root {
  --black:       #0a0a0a;
  --deep:        #0d1117;
  --charcoal:    #1a1a2e;
  --card-bg:     #131722;
  --card-hover:  #161c28;
  --brand:        var(--brand);
  --brand-light:  var(--brand-light);
  --brand-dim:    var(--brand-dim);
  --brand-glow:   var(--border);
  --white:       #f8f6f0;
  --muted:       #9a9a9a;
  --border:      var(--border);
  --border-hover:rgba(197, 35, 45, 0.42);
  --transition:  0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============ RESET ============ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  background: var(--deep);
  color: var(--white);
  font-family: "Cairo", "Tajawal", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============ FIXED CONTROLS ============ */
.top-controls {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 2000;
  display: flex;
  gap: 0.75rem;
}

/* Dark Mode & Lang Buttons — match home style */
.fancy-toggle-btn {
  padding: 0.45rem 1.2rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  cursor: pointer;
  outline: none;
  border: 1.5px solid var(--brand);
  background: transparent;
  color: var(--brand);
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.fancy-toggle-btn:hover {
  background: var(--brand);
  color: var(--black);
  box-shadow: 0 8px 28px rgba(197, 35, 45, 0.3);
}
.darkmode-btn { border-color: rgba(255,255,255,0.18); color: rgba(255,255,255,0.6); }
.darkmode-btn:hover { background: rgba(255,255,255,0.08); color: var(--white); }

/* زر اللغة — ذهبي مميّز */
.lang-btn {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(197,35,45,0.06);
}
.lang-btn:hover {
  background: var(--brand);
  color: var(--black);
  box-shadow: 0 8px 28px rgba(197,35,45,0.35);
}

/* ضمان أن wrapper الأزرار دائماً فوق كل شيء */
#langToggle,
#darkModeToggle {
  position: relative;
  z-index: 9999;
  pointer-events: all;
}
div:has(#langToggle) {
  z-index: 9999 !important;
  pointer-events: all;
}

/* ============ SERVICE PAGE HERO — Playsoru Style ============ */
.svc-hero {
  position: relative;
  width: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.svc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-bg) center / cover no-repeat;
  z-index: 0;
  transform: scale(1.04);
  transition: transform 6s ease;
}

.svc-hero:hover::before {
  transform: scale(1.0);
}

/* ── Video background (replaces ::before image) ── */
.svc-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.04);
  transition: transform 6s ease;
}
.svc-hero:hover .svc-hero-video {
  transform: scale(1.0);
}
.svc-hero:has(.svc-hero-video)::before {
  display: none;
}

.svc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 15, 0.60) 0%,
    rgba(10, 10, 15, 0.75) 60%,
    rgba(10, 10, 15, 0.92) 100%
  );
  z-index: 1;
}

.svc-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 2rem 4rem;
}

.svc-hero-title {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.1;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.7);
  margin: 0;
  font-family: "Cairo", "Montserrat", sans-serif;
}

.svc-hero-breadcrumb {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  background: rgba(10, 10, 15, 0.50);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.svc-hero-breadcrumb a {
  color: rgba(255, 255, 255, 0.70);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  transition: color 0.25s;
  font-family: "Montserrat", "Cairo", sans-serif;
}

.svc-hero-breadcrumb a:hover {
  color: #fff;
}

.svc-bc-sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.9rem;
  font-weight: 300;
}

.svc-bc-active {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #fff;
  background: var(--brand);
  padding: 0.28rem 1.1rem;
  border-radius: 30px;
  font-family: "Montserrat", "Cairo", sans-serif;
  box-shadow: 0 4px 18px rgba(197, 35, 45, 0.45);
}

@media (max-width: 600px) {
  .svc-hero { min-height: 260px; }
  .svc-hero-title { font-size: clamp(1.6rem, 8vw, 2.8rem); }
  .svc-bc-active { font-size: 0.62rem; padding: 0.22rem 0.8rem; }
}

/* ============ PAGE WRAPPER ============ */
.products-page {
  min-height: 100vh;
  padding: 60px 80px 100px;
  position: relative;
  /* ❌ لا overflow:hidden — كان يكسر z-index الأزرار الـ fixed */
  background: var(--deep);
}

/* ── Layered cinematic background ── */
/* نحطهم على body مباشرة عشان ما يتأثروا بـ stacking context */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%,  rgba(197,35,45,0.055) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 60%,  rgba(197,35,45,0.04)  0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(11,60,93,0.12)    0%, transparent 55%);
  pointer-events: none;
  z-index: -1;
}

/* Cinematic side bar */
body::after {
  content: "";
  position: fixed;
  top: 0; bottom: 0; left: 48px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--brand), transparent);
  opacity: 0.18;
  pointer-events: none;
  z-index: -1;
}

.products-page > * { position: relative; z-index: 1; }

/* ============ PAGE TITLE SECTION ============ */
.page-title-block {
  text-align: center;
  margin-bottom: 70px;
}

/* Eyebrow label */
.page-title-block::before {
  content: "● RAMALLAH DIGITAL ●";
  display: block;
  font-size: 0.70rem;
  letter-spacing: 4px;
  color: var(--brand);
  margin-bottom: 20px;
  opacity: 0.75;
  font-family: "Tajawal", sans-serif;
  font-weight: 300;
}

.page-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 18px;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

/* Gold underline divider */
.page-title-divider {
  width: 56px;
  height: 2px;
  background: var(--brand);
  margin: 0 auto 0;
  position: relative;
}
.page-title-divider::before,
.page-title-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.page-title-divider::before { left: -12px; }
.page-title-divider::after  { right: -12px; }

/* ============ FILTER BAR ============ */
.modern-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  background: rgba(19, 23, 34, 0.85);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(197,35,45,0.06) inset;
  padding: 1rem 2.4rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  backdrop-filter: blur(12px);
}

.modern-filter .filter-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.modern-filter .filter-input {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 1.2rem;
  min-width: 180px;
  position: relative;
  transition: border-color 0.3s;
}
.modern-filter .filter-input:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(197,35,45,0.10);
}

.modern-filter .filter-icon {
  font-size: 1.1rem;
  margin-left: 0.5rem;
  color: var(--brand);
  opacity: 0.7;
}

.modern-filter input {
  border: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--white);
  outline: none;
  width: 100%;
  padding: 0.45rem 0;
  font-family: "Cairo", sans-serif;
}
.modern-filter input::placeholder { color: rgba(248,246,240,0.3); }

.modern-filter .autocomplete-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  z-index: 20;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  max-height: 180px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.modern-filter .filter-actions { display: flex; gap: 0.8rem; }

.modern-filter .filter-btn {
  padding: 0.6rem 1.8rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(248,246,240,0.7);
  cursor: pointer;
  transition: var(--transition);
  font-family: "Cairo", sans-serif;
}
.modern-filter .filter-btn.primary {
  background: var(--brand);
  color: var(--black);
  border-color: var(--brand);
}
.modern-filter .filter-btn:hover {
  background: var(--brand);
  color: var(--black);
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197,35,45,0.3);
}

/* ============ PRODUCTS GRID ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

/* ============ PRODUCT CARD ============ */
.product-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
}

/* Gold top-edge accent line */
.product-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

/* Inner glow */
.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(197,35,45,0.09) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.product-card:hover {
  transform: translateY(-10px);
  border-color: var(--border-hover);
  box-shadow:
    0 30px 70px rgba(0,0,0,0.55),
    0 0 0 1px rgba(197,35,45,0.15) inset;
  background: var(--card-hover);
}
.product-card:hover::before { opacity: 1; }
.product-card:hover::after  { opacity: 1; }

/* ── Card Index Number (decorative, top-right) ── */
.product-card-index {
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 2.6rem;
  font-weight: 900;
  color: rgba(197,35,45,0.05);
  line-height: 1;
  font-family: "Playfair Display", serif;
  z-index: 1;
  user-select: none;
  transition: color 0.4s ease;
}
.product-card:hover .product-card-index {
  color: rgba(197,35,45,0.11);
}

/* ── Badge ── */
.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 30px;
  font-weight: 800;
  z-index: 3;
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-badge.new      { background: linear-gradient(90deg, #4facfe, #00f2fe); color: #0a1a2b; }
.product-badge.offer    { background: linear-gradient(90deg, #43e97b, #38f9d7); color: #0a2b1f; }
.product-badge.discount { background: linear-gradient(90deg, #ff416c, #ff4b2b); color: #fff; }
.product-badge.limited  { background: linear-gradient(90deg, var(--brand), var(--brand-light)); color: #1a1200; }
.product-card:hover .product-badge { transform: scale(1.06); }

/* ============ CAROUSEL / IMAGE AREA ============ */
.product-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: rgba(0,0,0,0.25);
  z-index: 1;
}

/* Subtle dark gradient fade at bottom of image */
.product-image::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--card-bg), transparent);
  pointer-events: none;
  z-index: 4;
  transition: background 0.3s;
}
.product-card:hover .product-image::after {
  background: linear-gradient(to top, var(--card-hover), transparent);
}

.carousel {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 0;
  overflow: hidden;
  z-index: 1;
}

.carousel-track {
  display: flex !important;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  height: 100%;
}

.carousel-img {
  min-width: 100% !important;
  height: 220px;
  object-fit: cover;
  will-change: transform;
  filter: brightness(0.82) saturate(0.85);
  transition: filter 0.5s ease;
}
.product-card:hover .carousel-img {
  filter: brightness(0.95) saturate(1.05);
  transform: scale(1.04);
  transition: transform 0.7s ease, filter 0.5s ease;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13,17,23,0.75);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  transition: var(--transition);
  backdrop-filter: blur(6px);
}
.carousel-prev:hover,
.carousel-next:hover {
  background: var(--brand);
  color: var(--black);
  border-color: var(--brand);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(197,35,45,0.4);
}
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

/* ============ CARD BODY ============ */
.product-body {
  padding: 26px 24px 28px;
  text-align: right;
  position: relative;
  z-index: 1;
}

.prod-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.4;
  letter-spacing: 0.2px;
  transition: color 0.3s;
}
.product-card:hover .prod-name { color: var(--brand-light); }

.prod-desc {
  font-size: 0.9rem;
  color: rgba(248,246,240,0.48);
  line-height: 1.75;
  margin-bottom: 20px;
  font-weight: 400;
  min-height: 2.5em;
}

/* ── Description more/less toggle ── */
.desc-toggle-btn {
  color: var(--brand);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  margin-right: 4px;
  transition: color 0.2s;
  position: relative;
  z-index: 10;
}
.desc-toggle-btn:hover { color: var(--brand-light); }

/* ============ CARD FOOTER ============ */
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 4px;
}

/* Price */
.price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--brand);
  font-family: "Playfair Display", serif;
  letter-spacing: 0.5px;
}

/* Buy / CTA Button */
.buy-btn {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 4px;
  background: transparent;
  border: 1.5px solid var(--brand);
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 5;
  font-family: "Cairo", sans-serif;
}
.buy-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: -1;
}
.buy-btn:hover {
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(197,35,45,0.35);
}
.buy-btn:hover::before { transform: scaleX(1); }

/* ============ EMPTY / NO-RESULT STATE ============ */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  color: rgba(248,246,240,0.3);
  font-size: 1.1rem;
  letter-spacing: 1px;
}
.no-results::before {
  content: "—";
  display: block;
  color: var(--brand);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

/* ============ ANIMATIONS ============ */
.product-card {
  opacity: 0;
  transform: translateY(28px);
  animation: cardReveal 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* Staggered entrance */
.products-grid .product-card:nth-child(1)  { animation-delay: 0.05s; }
.products-grid .product-card:nth-child(2)  { animation-delay: 0.10s; }
.products-grid .product-card:nth-child(3)  { animation-delay: 0.15s; }
.products-grid .product-card:nth-child(4)  { animation-delay: 0.20s; }
.products-grid .product-card:nth-child(5)  { animation-delay: 0.25s; }
.products-grid .product-card:nth-child(6)  { animation-delay: 0.30s; }
.products-grid .product-card:nth-child(7)  { animation-delay: 0.35s; }
.products-grid .product-card:nth-child(8)  { animation-delay: 0.40s; }
.products-grid .product-card:nth-child(n+9){ animation-delay: 0.45s; }

/* Scan line shimmer on hover */
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.product-card:hover .product-image::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 60%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  animation: shimmer 1.4s ease-in-out;
  z-index: 5;
  pointer-events: none;
}

/* ============ DARK MODE ============ */
body.dark-mode {
  background: var(--black) !important;
}
body.dark-mode .products-page {
  background: var(--black);
}
body.dark-mode .modern-filter {
  background: rgba(10,10,10,0.9);
}
body.dark-mode .product-card {
  background: #0f1318;
}
body.dark-mode .product-card:hover {
  background: #13181f;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .products-page { padding: 100px 50px 80px; }
  .products-grid { gap: 24px; }
}

@media (max-width: 768px) {
  .products-page { padding: 90px 24px 70px; }
  body::after { display: none; }

  .page-title { font-size: 2rem; }

  .modern-filter {
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
  }
  .modern-filter .filter-group { flex-direction: column; gap: 0.6rem; }
  .modern-filter .filter-input { min-width: unset; width: 100%; }
  .modern-filter .filter-actions { width: 100%; }
  .modern-filter .filter-btn { flex: 1; text-align: center; }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-body { text-align: center; }
  .product-footer { justify-content: center; gap: 1rem; }
}

@media (max-width: 480px) {
  .products-page { padding: 80px 16px 60px; }
  .page-title { font-size: 1.7rem; }
  .product-card { border-radius: 10px; }
}

/* ═══════════════════════════════════════════════════════════
   27-INCH  ≥ 1920px — services page
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 1920px) {
  .products-page  { padding: 140px 80px 120px; }
  .page-title     { font-size: clamp(2.2rem, 3.5vw, 4rem); }
  .products-grid  { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 40px; }
}

@media (min-width: 2200px) {
  .products-page  { padding: 160px 80px 140px; }
  .products-grid  { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 48px; }
}

/* ================================================================
   PLAYSORU-STYLE PROJECT GRID  — Photography 360 / Sup Services
   ================================================================ */

/* 3-column fixed grid (overrides auto-fill) */
.playsoru-grid.products-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── Thumbnail ── */
.project-thumb {
  position: relative;
  width: 100%;
  height: 290px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  display: block;
}

.project-thumb .thumb-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.88) saturate(0.90);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), filter 0.48s ease;
  will-change: transform;
}

/* Carousel inside project-thumb */
.project-thumb .carousel          { height: 290px; }
.project-thumb .carousel-track    { height: 100%; }
.project-thumb .carousel-img      {
  height: 290px;
  filter: brightness(0.88) saturate(0.90);
}

/* Zoom + darken on hover */
.product-card:hover .project-thumb .thumb-main,
.product-card:hover .project-thumb .carousel-img {
  transform: scale(1.07);
  filter: brightness(0.50) saturate(1.0);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), filter 0.42s ease;
}

/* ── Description overlay — slides up on hover ── */
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 8, 14, 0.96) 0%,
    rgba(8, 8, 14, 0.62) 42%,
    rgba(8, 8, 14, 0.08) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 28px 22px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.40s ease, transform 0.40s ease;
  pointer-events: none;
  z-index: 3;
}

.product-card:hover .project-overlay {
  opacity: 1;
  transform: translateY(0);
}

.overlay-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.80;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  text-align: start;
  margin: 0;
}

/* ── Arrow button — bounces in on hover ── */
.project-arrow {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(10, 10, 18, 0.58);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.65);
  transition:
    opacity   0.28s ease,
    transform 0.36s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.28s ease,
    border-color 0.28s ease;
  z-index: 5;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}

.project-arrow svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

.product-card:hover .project-arrow {
  opacity: 1;
  transform: scale(1);
  background: var(--brand);
  border-color: var(--brand);
}

/* ── Content footer ── */
.project-content {
  padding: 18px 22px 20px;
  text-align: start;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(197, 35, 45, 0.12);
}

.project-content .prod-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 10px;
  line-height: 1.45;
  letter-spacing: 0.15px;
  transition: color 0.30s ease;
}

.product-card:hover .project-content .prod-name {
  color: var(--brand-light);
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-cat {
  font-size: 0.72rem;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-family: "Tajawal", "Cairo", sans-serif;
}

.project-year {
  font-size: 0.74rem;
  color: rgba(248, 246, 240, 0.32);
  font-weight: 400;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .playsoru-grid.products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .playsoru-grid.products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-thumb,
  .project-thumb .carousel,
  .project-thumb .carousel-img {
    height: 240px;
  }
}

/* ================================================================
   PLAYSORU HERO REDESIGN — pv-hero
   مستوحى من: flex-end trick + large margin-bottom + pill breadcrumb
   + bottom border-radius + cinematic dual overlay
   ================================================================ */

/* ── Override base .svc-hero for the new design ── */
.svc-hero.pv-hero {
  min-height: 560px;
  justify-content: flex-end;  /* THE KEY: دفع المحتوى للأسفل */
  align-items: center;
  padding: 0;
  border-radius: 0 0 28px 28px;  /* Playsoru signature curve */
}

/* ── Cinematic dual-layer overlay ──
   خفيف في الوسط (تظهر الصورة) — ثقيل في الأسفل (وضوح النص) */
.pv-hero .svc-hero-overlay {
  background:
    radial-gradient(ellipse at 75% 0%,   rgba(197, 35, 45, 0.14) 0%, transparent 48%),
    radial-gradient(ellipse at 20% 100%, rgba(197, 35, 45, 0.10) 0%, transparent 40%),
    linear-gradient(
      to bottom,
      rgba(8, 8, 14, 0.55)  0%,
      rgba(8, 8, 14, 0.20)  30%,
      rgba(8, 8, 14, 0.22)  50%,
      rgba(8, 8, 14, 0.80)  78%,
      rgba(8, 8, 14, 0.97) 100%
    );
}

/* ── Decorative brand glow — top-right ── */
.pv-hero-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 35, 45, 0.20) 0%, transparent 68%);
  pointer-events: none;
  z-index: 1;
  animation: pv-glow-pulse 5s ease-in-out infinite alternate;
}

@keyframes pv-glow-pulse {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.12); }
}

/* ── Main inner block — the ONLY flex child that matters ── */
.pv-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 40px 52px;
}

/* ── Eyebrow label ── */
.pv-hero-eyebrow {
  display: inline-block;
  font-size: 0.62rem;
  font-family: "Montserrat", "Cairo", sans-serif;
  font-weight: 700;
  letter-spacing: 4.5px;
  text-transform: uppercase;
  color: var(--brand);
  opacity: 0.88;
  margin-bottom: 20px;
  animation: pv-fade-up 0.65s 0.05s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Big title ── */
.pv-hero-title {
  font-family: "Sora", "Cairo", sans-serif;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.08;
  letter-spacing: -0.03em;    /* الحروف متقاربة — مفتاح الـ premium look */
  text-align: center;
  text-shadow:
    0 4px 40px rgba(0, 0, 0, 0.55),
    0 0  80px rgba(197, 35, 45, 0.08);
  margin: 0 0 90px 0;         /* THE TRICK: margin ضخم يدفع الـ pills للأسفل */
  animation: pv-fade-up 0.72s 0.14s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Breadcrumb pills ── */
.pv-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  animation: pv-fade-up 0.72s 0.26s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Every pill — base */
.pv-bc-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 22px;
  border-radius: 30px;
  font-family: "Montserrat", "Cairo", sans-serif;
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease,
              color 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
}

/* Link pills — glass morphism style */
.pv-bc-link {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pv-bc-link:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(197, 35, 45, 0.42);
}

/* Active pill — filled brand red */
.pv-bc-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(197, 35, 45, 0.40);
}

/* ── Entrance animation (staggered via animation-delay above) ── */
@keyframes pv-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .svc-hero.pv-hero  { min-height: 480px; }
  .pv-hero-title     { margin-bottom: 70px; }
}

@media (max-width: 767px) {
  .svc-hero.pv-hero  { min-height: 360px; }
  .pv-hero-inner     { padding: 0 24px 44px; }
  .pv-hero-title     { margin-bottom: 36px; }
  .pv-bc-pill        { font-size: 0.62rem; padding: 7px 16px; }
  .pv-hero-glow      { width: 200px; height: 200px; top: -40px; right: -40px; }
}

@media (max-width: 480px) {
  .svc-hero.pv-hero  { min-height: 300px; border-radius: 0 0 16px 16px; }
  .pv-hero-title     { margin-bottom: 26px; }
  .pv-hero-eyebrow   { letter-spacing: 3px; }
}

/* ================================================================
   YOUTUBE THUMBNAIL PLAY BUTTON
   ================================================================ */
.yt-thumb-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
}
.yt-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.88) saturate(0.90);
  transition: transform 0.75s cubic-bezier(0.16,1,0.3,1), filter 0.48s ease;
  will-change: transform;
}
.product-card:hover .yt-thumb-wrap img {
  transform: scale(1.07);
  filter: brightness(0.50) saturate(1.0);
}
.yt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.65));
  transition: transform 0.32s cubic-bezier(0.34,1.56,0.64,1), opacity 0.28s ease;
}
.product-card:hover .yt-play-btn {
  transform: translate(-50%, -50%) scale(1.18);
}

/* ================================================================
   YOUTUBE VIDEO MODAL
   ================================================================ */
.yt-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: ytModalIn 0.22s ease;
}
@keyframes ytModalIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.yt-modal-inner {
  position: relative;
  width: min(92vw, 900px);
}
.yt-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.22);
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.22s, transform 0.22s, border-color 0.22s;
  line-height: 1;
}
.yt-modal-close:hover {
  background: var(--brand);
  border-color: var(--brand);
  transform: scale(1.12);
}
.yt-modal-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0,0,0,0.85);
}
.yt-modal-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
@media (max-width: 480px) {
  .yt-modal-close { top: -44px; width: 32px; height: 32px; font-size: 0.9rem; }
}