/* ═══════════════════════════════════════════════════════════════
   VividWalls — Projects page styles
   ═══════════════════════════════════════════════════════════════ */


/* ── Counters ── */

.counters-section {
  padding: 60px 0;
  background: linear-gradient(135deg,
    rgba(37,99,235,0.04) 0%,
    rgba(124,58,237,0.05) 50%,
    rgba(249,115,22,0.04) 100%);
  border-top: 1px solid rgba(15,23,42,0.06);
  border-bottom: 1px solid rgba(15,23,42,0.06);
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.counter-item {
  text-align: center;
  padding: 32px 24px;
  position: relative;
}

.counter-item + .counter-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(15,23,42,0.08);
}

.counter-number {
  line-height: 1;
  margin-bottom: 10px;
}

.counter-number .counter {
  font-family: 'Geologica', sans-serif;
  font-size: clamp(2.2rem, 4.2vw, 3.6rem) !important;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}

.counter-label {
  font-size: 1.05rem;
  color: var(--color-dark);
  font-weight: 700;
  margin-top: 6px;
}


/* ── Gallery ── */

.gallery-grid {
  display: grid;
  gap: 16px;
  margin-top: 48px;
}

.gallery-canvas {
  grid-template-columns: 45% 1fr 1fr;
  grid-template-rows: 280px 280px;
}

.gallery-wallpaper {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 280px 280px;
}

.gallery-canvas-rtl {
  direction: rtl;
}
.gallery-canvas-rtl > * {
  direction: ltr;
}

.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1), box-shadow 0.45s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 32px 72px rgba(15,23,42,0.18);
  z-index: 2;
}

.gallery-item-lg {
  grid-column: span 2;
}

.gallery-item-tall {
  grid-row: span 2;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.gallery-cta {
  text-align: center;
  margin-top: 36px;
}


/* ── Client logos ── */

.clients-section {
  background: linear-gradient(135deg,
    rgba(37,99,235,0.03) 0%,
    rgba(124,58,237,0.04) 100%);
}

.clients-stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 1.6rem;
  line-height: 1;
  color: #f5b301;
  text-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

.logos-marquee {
  margin-top: 48px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.logos-track {
  display: flex;
  width: max-content;
  animation: logosScroll 36s linear infinite;
  will-change: transform;
}

.logos-set {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-right: 64px;
  flex-shrink: 0;
}

.logos-marquee:hover .logos-track { animation-play-state: paused; }

.logo-card {
  flex: 0 0 auto;
  background: transparent;
  border: none;
  padding: 16px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes logosScroll {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .logos-track { animation: none; }
}

.logo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.logo-letter {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-family: 'Geologica', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--gradient-main);
  color: #fff;
}

.logo-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-muted);
  text-align: center;
}

/* ── Responsive ── */

@media (max-width: 1000px) {
  .counters-grid { grid-template-columns: repeat(2, 1fr); }
  .counter-item:nth-child(3)::before { display: none; }
  .logos-track { gap: 48px; animation-duration: 30s; }
}

@media (max-width: 768px) {
  .gallery-canvas,
  .gallery-wallpaper {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .gallery-item-lg,
  .gallery-item-tall { grid-column: auto; grid-row: auto; }
  .gallery-item { height: auto; aspect-ratio: 4 / 3; }
  .logos-track { gap: 36px; animation-duration: 26s; }
}

@media (max-width: 500px) {
  .counters-grid { grid-template-columns: repeat(2, 1fr); }
  .counter-item::before { display: none; }
  .counter-item { padding: 22px 16px; }
  .counter-label { font-size: 0.85rem; }
  .gallery-canvas,
  .gallery-wallpaper { grid-template-columns: 1fr; }
  .gallery-item { height: auto; aspect-ratio: 4 / 3; }
  .logos-track { gap: 28px; animation-duration: 22s; }
}

@media (max-width: 380px) {
  .counters-grid { grid-template-columns: 1fr 1fr; }
  .counter-item { padding: 18px 12px; }
  .counter-number .counter { font-size: clamp(1.8rem, 9vw, 2.4rem) !important; }
}
