/* =====================================================
   Camera N City — Homepage stylesheet
   RTL / Hebrew / Dark neon theme
   ===================================================== */

/* ---------- CSS Variables --------------------------- */
:root {
  --bg-dark:       #080c1a;
  --bg-mid:        #0d1226;
  --bg-card:       #111827;
  --bg-light:      #f8faff;
  --accent-cyan:   #1cd4e8;
  --accent-purple: #7c3aed;
  --accent-grad:   linear-gradient(135deg, #1cd4e8 0%, #7c3aed 100%);
  --glow-cyan:     0 0 30px rgba(28, 212, 232, 0.35);
  --glow-purple:   0 0 30px rgba(124, 58, 237, 0.35);
  --text-white:    #ffffff;
  --text-muted:    #8b9ab2;
  --text-dark:     #1a1f2e;
  --border-light:  rgba(255,255,255,0.08);
  --border-cyan:   rgba(28,212,232,0.4);
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     24px;
  --transition:    0.3s ease;
  --font-main:     'Heebo', sans-serif;
  --font-en:       'Inter', sans-serif;
}

/* ---------- Global Reset ---------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { direction: rtl; scroll-behavior: smooth; }
body.page-template-template-homepage {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-white);
  overflow-x: hidden;
}
body.page-template-template-homepage a { text-decoration: none; color: inherit; }
body.page-template-template-homepage img { max-width: 100%; display: block; }

/* =====================================================
   HERO SECTION
   ===================================================== */
.cnc-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;       /* stack: inner (grows) + strip-outer */
  justify-content: space-between;
  overflow: hidden;
  padding-top: 70px;
}

/* The grid (text + image) takes all remaining space */
.cnc-hero__inner {
  flex: 1;
  display: grid;
  overflow: hidden;
}

.cnc-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  transition: background-image 0.6s ease;
}

/* Directional mask: opaque on text side, clear on image side */
.cnc-hero__mask {
  position: absolute;
  inset: 0;
  /* RTL: text is on the right — dark from right, fading left */
  background:
    linear-gradient(to left,  rgba(8,12,26,0.97) 0%, rgba(8,12,26,0.82) 38%, rgba(8,12,26,0.1) 65%, transparent 100%),
    linear-gradient(to top,   rgba(8,12,26,0.7)  0%, transparent 40%),
    linear-gradient(to bottom,rgba(8,12,26,0.4)  0%, transparent 30%);
  z-index: 1;
  pointer-events: none;
}

/* Ambient glow orbs */
.cnc-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
}
.cnc-hero__orb--1 {
  width: 500px; height: 500px;
  background: var(--accent-cyan);
  top: -100px; inset-inline-start: -150px;
}
.cnc-hero__orb--2 {
  width: 400px; height: 400px;
  background: var(--accent-purple);
  bottom: -80px; inset-inline-end: 10%;
}

.cnc-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 42fr 58fr;
  align-items: stretch;
  gap: 0;
}

/* Content side — pinned to consistent top position so text never shifts */
.cnc-hero__content {
  max-width: 600px;
  padding: 0 48px 80px 24px;
  padding-top: clamp(80px, 14vh, 160px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.cnc-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  border: 1px solid var(--border-cyan);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 28px;
}
.cnc-hero__badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.cnc-hero__heading {
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text-white);
  margin-bottom: 24px;
}
.cnc-hero__heading .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cnc-hero__sub {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 480px;
}


.cnc-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 13px 28px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(28,212,232,0.3);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(28,212,232,0.45);
}
.btn--outline {
  background: transparent;
  color: var(--accent-cyan);
  border: 1.5px solid var(--border-cyan);
}
.btn--outline:hover {
  background: rgba(28,212,232,0.08);
  border-color: var(--accent-cyan);
}
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn--ghost:hover { color: var(--text-white); }

/* Play button variant (CTA secondary) */
.btn--ghost-play {
  background: rgba(255,255,255,0.07);
  color: var(--text-white);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  gap: 10px;
}
.btn--ghost-play:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
}
.btn-play-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-cyan);
  display: flex; align-items: center; justify-content: center;
  color: #000;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.btn--ghost-play:hover .btn-play-icon { transform: scale(1.1); }

/* =====================================================
   CTA PRODUCT STRIP — full-width band at hero bottom
   ===================================================== */

/* Outer wrapper — sits below the hero grid, full width */
.cnc-hero__strip-outer {
  position: relative;
  z-index: 2;
  width: 100%;
  background: linear-gradient(to top, rgba(8,12,26,0.92) 0%, rgba(8,12,26,0.5) 100%);
  padding: 12px 0 20px;
}

/* Inner — max-width centred container */
.cnc-hero__strip-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Product title bar */
.cnc-cta-product-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 20px;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cnc-cta-product-info.visible { opacity: 1; transform: none; }
.cnc-cta-product-info__name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-white);
}
.cnc-cta-product-info__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-cyan);
  border: 1px solid var(--border-cyan);
  border-radius: 100px;
  padding: 2px 10px;
  transition: background var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.cnc-cta-product-info__link:hover { background: rgba(28,212,232,0.1); }

/* Top nav — arrows above the strip */
.cnc-cta-strip__topnav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

.cnc-cta-strip__arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: var(--text-white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), border-color var(--transition);
  border-radius: 0;
}
.cnc-cta-strip__arrow:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
}
.cnc-cta-strip__arrow svg { pointer-events: none; }

/* Strip row — no border, just the track */
.cnc-cta-strip {
  overflow: hidden;
}

.cnc-cta-strip__track-wrap {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.cnc-cta-strip__track {
  display: flex;
  gap: 8px;
  padding: 8px;
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  will-change: transform;
}

/* Individual thumbnail — small, landscape */
.cnc-cta-thumb {
  flex: 0 0 82px;
  height: 58px;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: opacity var(--transition);
}
.cnc-cta-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.cnc-cta-thumb.active { opacity: 0.6; }

@media (max-width: 860px) {
  .cnc-cta-thumb { flex: 0 0 70px; height: 48px; }
}
@media (max-width: 600px) {
  .cnc-cta-thumb { flex: 0 0 58px; height: 40px; border-radius: 6px; }
  .cnc-hero__strip-outer { padding: 10px 0 16px; }
}

/* Visual side — full-bleed image panel, no rounding */
.cnc-hero__visual {
  position: relative;
  overflow: hidden;
  align-self: stretch;
}
.cnc-hero__visual-img {
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  object-position: top center;
  aspect-ratio: unset;
  transition: opacity 0.35s ease;
  display: block;
}
.cnc-hero__visual-img.is-loading { opacity: 0.45; }

/* Frame removed — no decorative border on the image */
.cnc-hero__visual-frame { display: none; }

/* Product card overlay on the hero visual */
.cnc-hero__product-card {
  position: absolute;
  bottom: 16px;
  inset-inline-start: 16px;
  background: rgba(8,12,26,0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(28,212,232,0.28);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  min-width: 180px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  z-index: 3;
}
.cnc-hero__product-card.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cnc-hero__product-card__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.cnc-hero__product-card__price {
  font-size: 20px;
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  line-height: 1.2;
}
.cnc-hero__product-card__btn {
  font-size: 17px;
  padding: 9px 22px;
  width: 100%;
  justify-content: center;
}

/* Hero layout — tablet / mobile */
@media (max-width: 860px) {
  /*
   * Fixed 4:5 portrait canvas = consistent height across all slides.
   * Images use object-fit:contain so the full artwork is visible.
   * min-height:unset kills the 100vh that was creating the gap.
   */
  .cnc-hero {
    min-height: unset !important;
    padding-top: var(--header-h);
    flex-direction: column;
  }
  .cnc-hero__inner {
    grid-template-columns: 1fr;
    padding: 0; gap: 0;
    position: relative;
    z-index: 2;
    flex: none;
  }
  /* Image first, text below */
  .cnc-hero__visual { order: 1; }
  .cnc-hero__content {
    order: 2;
    display: block;
    max-width: 100%;
    padding: 20px 24px 24px;
    background: var(--bg-dark);
    text-align: right;
  }
  .cnc-hero__heading { font-size: 26px; line-height: 1.25; margin-bottom: 10px; }
  .cnc-hero__sub    { font-size: 14px; line-height: 1.6; margin-bottom: 0; }
  /* Gallery CTA button below hero text on mobile */
  .cnc-hero__gallery-cta { order: 3; background: var(--bg-dark); padding: 16px 24px 20px; text-align: right; }

  .cnc-hero__visual {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: unset !important;  /* let image height drive the container */
    background: var(--bg-dark);
    z-index: 0;
    overflow: hidden;
  }
  .cnc-hero__visual-img {
    position: static !important;     /* flow inside container, no letterbox */
    width: 100% !important;
    height: auto !important;
    max-height: 90svh;               /* prevent ultra-tall images overflowing */
    object-fit: contain !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block;
  }
  .cnc-hero__mask {
    background:
      linear-gradient(to top,    rgba(8,12,26,0.3) 0%, transparent 20%),
      linear-gradient(to bottom, rgba(8,12,26,0.2) 0%, transparent 10%);
  }
}


/* Desktop: product card is mobile-only — hide it (cnc-cta-product-info handles it) */
@media (min-width: 861px) {
  .cnc-hero__product-card { display: none; }
}

@media (max-width: 600px) {
  .cnc-cta-product-info { display: none; }
}

/* Stats strip */
.cnc-hero__stats {
  position: absolute;
  bottom: -24px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  background: rgba(13,18,38,0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 28px;
  display: flex;
  gap: 32px;
}
[dir="rtl"] .cnc-hero__stats { transform: translateX(50%); }
[dir="ltr"] .cnc-hero__stats { transform: translateX(-50%); inset-inline-start: 50%; }
.cnc-stat { text-align: center; }
.cnc-stat__num {
  font-size: 22px;
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cnc-stat__label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* =====================================================
   GALLERY CTA STRIP
   ===================================================== */
.cnc-gallery-cta-strip {
  background: var(--bg-mid);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
  padding: 40px 24px;
}
.cnc-gallery-cta-strip__btn {
  display: inline-block;
  padding: 16px 56px;
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1.5px solid rgba(28,212,232,0.7);
  letter-spacing: 1px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  background: rgba(28,212,232,0.06);
}
.cnc-gallery-cta-strip__btn:hover {
  background: rgba(28,212,232,0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  text-decoration: none;
}
@media (max-width: 860px) {
  .cnc-gallery-cta-strip { padding: 24px 20px; }
  .cnc-gallery-cta-strip__btn { padding: 14px 40px; font-size: 15px; width: 100%; max-width: 320px; }
}

/* =====================================================
   SECTION SHARED
   ===================================================== */
.cnc-section { padding: 100px 24px; }
.cnc-section__inner {
  max-width: 1380px;
  margin: 0 auto;
}

.cnc-section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.cnc-section-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 56px;
  max-width: 500px;
}
.cnc-section-sub--light { color: var(--text-muted); }

.cnc-label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}
.cnc-label--dark { color: var(--accent-purple); }

/* =====================================================
   SERVICES SECTION
   ===================================================== */
.cnc-services { background: var(--bg-mid); }
.cnc-services .cnc-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Service cards */
.cnc-services__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cnc-service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all var(--transition);
}
.cnc-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(124,58,237,0.22);
  border-color: rgba(124,58,237,0.35);
}
.cnc-service-card__icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(28,212,232,0.12), rgba(124,58,237,0.12));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
}
.cnc-service-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
  line-height: 1.3;
}
.cnc-service-card__desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* =====================================================
   FAQ SLIDER — one item fully open, arrow navigation
   ===================================================== */
.cnc-faq-slider { position: relative; }

.cnc-faq-slider__viewport { overflow: hidden; }

.cnc-faq-slide {
  display: none;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid rgba(28,212,232,0.3);
  border-radius: var(--radius-md);
  min-height: 180px;
  animation: faq-fade-in 0.35s ease;
}
.cnc-faq-slide.active { display: block; }

@keyframes faq-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cnc-faq-slide__num {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  margin-bottom: 14px;
}
.cnc-faq-slide__q {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 16px;
  line-height: 1.5;
}
.cnc-faq-slide__a {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
}

.cnc-faq-slider__nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-top: 20px;
}
.cnc-faq-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-cyan);
  background: rgba(28,212,232,0.06);
  color: var(--accent-cyan);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.cnc-faq-arrow:hover {
  background: rgba(28,212,232,0.18);
  transform: scale(1.08);
}
.cnc-faq-slider__counter {
  font-family: var(--font-en);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 36px;
  text-align: center;
}

/* Legacy FAQ accordion — kept for homepage (not used on services page) */
/* FAQ */
.cnc-faq__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 28px;
}
.cnc-faq-list { display: flex; flex-direction: column; gap: 10px; }

.cnc-faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color var(--transition);
}
.cnc-faq-item.open { border-color: rgba(28,212,232,0.4); }

.cnc-faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-white);
  user-select: none;
  gap: 12px;
}
.cnc-faq-item__icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(28,212,232,0.1);
  border: 1px solid var(--border-cyan);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  color: var(--accent-cyan);
  transition: transform var(--transition), background var(--transition);
}
.cnc-faq-item.open .cnc-faq-item__icon {
  background: var(--accent-cyan);
  color: #fff;
  transform: rotate(45deg);
}

.cnc-faq-item__a {
  display: none;
  padding: 0 20px 18px;
  font-size: 16px;
  line-height: 1.75;
  color: #ffffff;
}
.cnc-faq-item.open .cnc-faq-item__a { display: block; }

/* =====================================================
   GALLERY SECTION — full-width horizontal scroll
   ===================================================== */
.cnc-gallery {
  background: var(--bg-dark);
  padding: 100px 0 80px;
  overflow: hidden;
}

/* Header stays inside max-width container */
.cnc-gallery__header {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 20px;
  flex-wrap: wrap;
}

/* Filter tabs */
.cnc-gallery__filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cnc-filter-btn {
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.cnc-filter-btn.active, .cnc-filter-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(28,212,232,0.08);
}

/* See all link */
.cnc-gallery__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-cyan);
  transition: gap var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.cnc-gallery__link:hover { gap: 10px; }

/* Gallery header end — filters + see-all stacked */
.cnc-gallery__header-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  flex-shrink: 0;
}

/* ---- Carousel track ---- */
.cnc-gallery__carousel {
  position: relative;
}

.cnc-gallery__track-wrap {
  overflow: hidden;
  cursor: grab;
  user-select: none;
}
.cnc-gallery__track-wrap:active { cursor: grabbing; }

.cnc-gallery__track {
  display: flex;
  gap: 20px;
  padding: 0 24px 24px;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Individual card */
.cnc-gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  flex: 0 0 380px;
  height: 500px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
/* Wide feature card */
.cnc-gallery-item--wide {
  flex: 0 0 620px;
  height: 500px;
}
/* Tall portrait card */
.cnc-gallery-item--tall {
  flex: 0 0 340px;
  height: 580px;
}

.cnc-gallery-item:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 60px rgba(0,0,0,0.55), var(--glow-cyan);
}

.cnc-gallery-item__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}
.cnc-gallery-item:hover .cnc-gallery-item__img { transform: scale(1.07); }

/* Gradient overlay — always visible at bottom */
.cnc-gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,12,26,0.88) 0%,
    rgba(8,12,26,0.3) 40%,
    transparent 70%
  );
  display: flex;
  align-items: flex-end;
  padding: 28px;
  transition: background var(--transition);
}
.cnc-gallery-item:hover .cnc-gallery-item__overlay {
  background: linear-gradient(
    to top,
    rgba(8,12,26,0.95) 0%,
    rgba(8,12,26,0.4) 50%,
    transparent 75%
  );
}

.cnc-gallery-item__info { width: 100%; }
.cnc-gallery-item__cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: capitalize;
  color: var(--accent-cyan);
  margin-bottom: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
}
.cnc-gallery-item__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.25;
  transform: translateY(6px);
  transition: transform var(--transition);
}
.cnc-gallery-item__arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--accent-cyan);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
  transition-delay: 0.05s;
}
.cnc-gallery-item:hover .cnc-gallery-item__cat,
.cnc-gallery-item:hover .cnc-gallery-item__arrow { opacity: 1; transform: none; }
.cnc-gallery-item:hover .cnc-gallery-item__title { transform: none; }

/* Invisible full-card link */
.cnc-gallery-item__link-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Placeholder card (no image uploaded yet) */
.cnc-gallery-item--placeholder {
  background: linear-gradient(135deg, #0d1226 0%, #1a2340 100%);
  border: 1px dashed rgba(28,212,232,0.2);
}
.cnc-gallery-item--placeholder::after {
  content: '＋';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(28,212,232,0.15);
}

/* Carousel nav arrows */
.cnc-gallery__nav {
  max-width: 1380px;
  margin: 28px auto 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cnc-gallery__nav-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.cnc-gallery__nav-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(28,212,232,0.08);
}
.cnc-gallery__progress {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.cnc-gallery__progress-bar {
  height: 100%;
  background: var(--accent-grad);
  border-radius: 2px;
  width: 25%;
  transition: width 0.45s ease;
}

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.cnc-testimonials { background: var(--bg-mid); overflow: hidden; }

.cnc-testimonials__header { text-align: center; margin-bottom: 56px; }

.cnc-testimonials__track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
  will-change: transform;
}

.cnc-testimonial-card {
  flex: 0 0 calc(33.33% - 16px);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.cnc-testimonial-card:hover {
  border-color: var(--border-cyan);
  box-shadow: var(--glow-cyan);
}

.cnc-testimonial__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 20px;
  direction: ltr;
}
.cnc-testimonial__stars span { font-size: 16px; color: #f59e0b; }

.cnc-testimonial__quote {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 400;
}
.cnc-testimonial__quote::before { content: '"'; color: var(--accent-cyan); font-size: 28px; line-height: 0; vertical-align: -12px; margin-inline-end: 4px; }
.cnc-testimonial__quote::after  { content: '"'; color: var(--accent-cyan); font-size: 28px; line-height: 0; vertical-align: -12px; margin-inline-start: 4px; }

.cnc-testimonial__author { display: flex; align-items: center; gap: 14px; }
.cnc-testimonial__avatar {
  width: 48px; height: 48px;
  border-radius: 0;
  object-fit: cover;
  border: 2px solid var(--border-cyan);
}
.cnc-testimonial__name { font-size: 15px; font-weight: 700; color: var(--text-white); }
.cnc-testimonial__role { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* Slider controls */
.cnc-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}
.cnc-slider-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.cnc-slider-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}
.cnc-slider-dots { display: flex; gap: 8px; }
.cnc-slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-light);
  cursor: pointer;
  transition: all var(--transition);
}
.cnc-slider-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--accent-cyan);
}

/* =====================================================
   FOOTER
   ===================================================== */
.cnc-footer {
  background: #04060f;
  padding: 0 24px 0;
  position: relative;
  overflow: hidden;
}

/* Gradient accent bar at top */
.cnc-footer::before {
  content: '';
  display: block;
  height: 2px;
  background: var(--accent-grad);
  margin-bottom: 0;
}

/* Subtle ambient glow behind footer */
.cnc-footer::after {
  content: '';
  position: absolute;
  top: 0; inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse at top, rgba(28,212,232,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cnc-footer__inner {
  position: relative;
  z-index: 1;
  max-width: 1380px;
  margin: 0 auto;
  padding-top: 64px;
}

.cnc-footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 28px;
}

.cnc-footer__brand .cnc-logo { margin-bottom: 18px; }
.cnc-footer__brand p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 290px;
}

/* Social icons */
.cnc-social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.cnc-social-link {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 17px;
  transition: all var(--transition);
  background: rgba(255,255,255,0.02);
}
.cnc-social-link:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(28,212,232,0.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(28,212,232,0.2);
}

/* Nav columns */
.cnc-footer__col-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 12px;
}
.cnc-footer__col-title::after {
  content: '';
  position: absolute;
  bottom: 0; inset-inline-start: 0;
  width: 24px; height: 2px;
  background: var(--accent-grad);
  border-radius: 2px;
}

.cnc-footer__links { display: flex; flex-direction: column; gap: 11px; }
.cnc-footer__links a {
  font-size: 16px;
  color: var(--text-muted);
  transition: color var(--transition), padding var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cnc-footer__links a::before {
  content: '';
  width: 0; height: 1px;
  background: var(--accent-cyan);
  transition: width var(--transition);
  flex-shrink: 0;
}
.cnc-footer__links a:hover { color: var(--accent-cyan); }
.cnc-footer__links a:hover::before { width: 12px; }

/* Bottom bar */
.cnc-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 32px;
}
.cnc-footer__copy {
  font-size: 17px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cnc-footer__copy::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  opacity: 0.6;
}
.cnc-footer__legal { display: flex; gap: 24px; }
.cnc-footer__legal a {
  font-size: 17px;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
.cnc-footer__legal a::after {
  content: '';
  position: absolute;
  bottom: -2px; inset-inline-start: 0; inset-inline-end: 0;
  height: 1px;
  background: var(--accent-cyan);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: inset-inline-end center;
}
.cnc-footer__legal a:hover { color: var(--accent-cyan); }
.cnc-footer__legal a:hover::after { transform: scaleX(1); transform-origin: inset-inline-start center; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1100px) {
  .cnc-services .cnc-section__inner { grid-template-columns: 1fr; gap: 48px; }
  .cnc-testimonial-card { flex: 0 0 calc(50% - 12px); }
  .cnc-footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
  /* Gallery: slightly smaller cards on tablet */
  .cnc-gallery-item          { flex: 0 0 320px; height: 420px; }
  .cnc-gallery-item--wide    { flex: 0 0 520px; height: 420px; }
  .cnc-gallery-item--tall    { flex: 0 0 280px; height: 480px; }
}

@media (max-width: 860px) {
  .cnc-nav { display: none; }
  .cnc-hamburger { display: flex; }
  .cnc-testimonial-card { flex: 0 0 calc(100% - 0px); }
  .cnc-services__cards { grid-template-columns: 1fr; }
  /* Gallery: compact cards on mobile */
  .cnc-gallery-item          { flex: 0 0 260px; height: 340px; }
  .cnc-gallery-item--wide    { flex: 0 0 380px; height: 340px; }
  .cnc-gallery-item--tall    { flex: 0 0 230px; height: 390px; }
  .cnc-gallery__track        { padding: 0 16px 20px; gap: 14px; }
}

@media (max-width: 600px) {
  .cnc-section { padding: 64px 20px; }
  .cnc-hero__heading { font-size: 38px; }
  .cnc-hero__cta { flex-direction: column; align-items: flex-start; }
  .cnc-footer__top { grid-template-columns: 1fr; }
  .cnc-footer__bottom { flex-direction: column; text-align: center; }
  /* Gallery: full-width on small phones */
  .cnc-gallery-item          { flex: 0 0 calc(100vw - 48px); height: 320px; }
  .cnc-gallery-item--wide    { flex: 0 0 calc(100vw - 48px); height: 320px; }
  .cnc-gallery-item--tall    { flex: 0 0 calc(100vw - 48px); height: 360px; }
  .cnc-gallery__header       { flex-direction: column; align-items: flex-start; }
  .cnc-gallery__filters      { display: none; } /* hide filters on very small screens */
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.cnc-contact { background: var(--bg-mid); position: relative; overflow: hidden; }
.cnc-contact::after {
  content: '';
  position: absolute;
  inset-inline-end: -180px; top: -180px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cnc-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 72px;
  align-items: start;
}

.cnc-contact__detail {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 28px;
}
.cnc-contact__detail-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(28,212,232,0.07);
  border: 1px solid var(--border-cyan);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--accent-cyan);
}
.cnc-contact__detail-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px;
}
.cnc-contact__detail-value { font-size: 15px; font-weight: 600; color: var(--text-white); }

.cnc-contact-form {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.cnc-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px;
}
.cnc-form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.cnc-form-label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.cnc-form-input,
.cnc-form-textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: var(--font-main);
  font-size: 16px;
  color: var(--text-white);
  outline: none;
  width: 100%;
  direction: rtl;
  transition: border-color var(--transition), background var(--transition);
}
.cnc-form-input::placeholder,
.cnc-form-textarea::placeholder { color: rgba(255,255,255,0.6); }
.cnc-form-input:focus,
.cnc-form-textarea:focus { border-color: var(--border-cyan); background: rgba(28,212,232,0.03); }
.cnc-form-textarea { min-height: 120px; resize: vertical; }
.cnc-form-submit { margin-top: 20px; width: 100%; justify-content: center; }
.cnc-form-submit.loading { opacity: 0.65; pointer-events: none; }
.cnc-form-message { margin-top: 12px; font-size: 14px; text-align: center; min-height: 20px; }
.cnc-form-message.success { color: var(--accent-cyan); }
.cnc-form-message.error   { color: #f87171; }

@media (max-width: 860px) {
  .cnc-contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .cnc-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cnc-contact-form { padding: 24px 20px; }
}

/* =====================================================
   LIGHTBOX MODAL
   ===================================================== */
.cnc-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.cnc-lightbox.open {
  display: flex;
  animation: lbFadeIn 0.2s ease;
}
@keyframes lbFadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cnc-lightbox__backdrop {
  position: absolute; inset: 0;
  background: rgba(4,6,15,0.94);
  cursor: pointer;
}
.cnc-lightbox__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding: 0 20px;
  max-width: 92vw;
}
.cnc-lightbox__close {
  position: absolute; top: -52px; inset-inline-end: 0;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  font-size: 20px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.cnc-lightbox__close:hover {
  border-color: var(--accent-cyan); color: var(--accent-cyan);
  background: rgba(28,212,232,0.1);
}
.cnc-lightbox__img-wrap {
  border-radius: 0; overflow: hidden; line-height: 0;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(28,212,232,0.15);
}
.cnc-lightbox__img {
  display: block;
  max-width: 80vw; max-height: 72vh;
  width: auto; height: auto;
  object-fit: contain;
}
.cnc-lightbox__info {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap; justify-content: center;
}
.cnc-lightbox__cat {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: capitalize; color: var(--text-muted);
}
.cnc-lightbox__title { font-size: 17px; font-weight: 700; color: var(--text-white); }
.cnc-lightbox__buy   { padding: 9px 22px; font-size: 14px; text-decoration: none; }

/* =====================================================
   ANIMATIONS
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.cnc-about { background: var(--bg-mid); overflow: hidden; }

.cnc-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.cnc-about__bio {
  margin: 20px 0 36px;
}
.cnc-about__bio p {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.cnc-about__bio p:last-child { margin-bottom: 0; }
.cnc-about__bio strong { color: var(--text-white); font-weight: 700; }

.cnc-about__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.cnc-about__img-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.cnc-about__img {
  width: 100%;
  border-radius: 0;
  object-fit: cover;
  aspect-ratio: 4/5;
  display: block;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
}

.cnc-about__img-frame {
  position: absolute;
  inset: -10px;
  border-radius: 0;
  border: 1px solid rgba(124,58,237,0.22);
  pointer-events: none;
}

.cnc-about__img-badge {
  position: absolute;
  bottom: 28px;
  inset-inline-end: -18px;
  background: var(--bg-dark);
  color: var(--accent-cyan);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-cyan);
  box-shadow: var(--glow-cyan);
  white-space: nowrap;
}

.cnc-about__img-orb {
  position: absolute;
  top: -40px;
  inset-inline-start: -40px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--accent-purple);
  filter: blur(90px);
  opacity: 0.1;
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 860px) {
  .cnc-about__grid { grid-template-columns: 1fr; gap: 48px; }
  .cnc-about__visual { order: -1; }
  .cnc-about__img-badge { inset-inline-end: 0; }
  .cnc-gallery__header-end { align-items: flex-start; }
  .cnc-gallery__filters { flex-wrap: wrap; }
}

/* ── Elementor / WP page content area (homepage bottom) ── */
.cnc-page-content {
  width: 100%;
}
.cnc-page-content .elementor-section,
.cnc-page-content .e-con {
  max-width: 100%;
}
