/* =========================================================
   UIX Solutions — Custom Theme Layer
   Loaded AFTER main.css — overrides accent color to brand
   gradient (from logo) and adds new interactive components.
   ========================================================= */

:root {
  --uix-gradient-start: #A929C5;
  --uix-gradient-end: #5B2A9E;
  --uix-gradient: linear-gradient(135deg, var(--uix-gradient-start), var(--uix-gradient-end));
  --uix-gradient-diag: linear-gradient(120deg, #C13FE0 0%, #7B2FD1 55%, #4C1F8C 100%);
  --uix-black: #0B0B0D;
  --uix-white: #F5F5F7;
  --uix-gray: #8A8A93;
}

/* ---- Accent overrides (was sky-blue in template) ---- */
.tp-btn-sky-border {
  border-color: var(--uix-gradient-end) !important;
  color: var(--uix-white);
  transition: all .35s ease;
}
.tp-btn-sky-border.solid-bg {
  background: var(--uix-gradient);
  border: none !important;
}
.tp-btn-sky-border:hover {
  background: var(--uix-gradient);
  color: #fff;
}

.uix-gradient-text {
  background: var(--uix-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Nav ---- */
.uix-main-nav { gap: 32px; margin-right: 40px; }
.uix-nav-link {
  color: var(--uix-white);
  opacity: .7;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .05em;
  position: relative;
  transition: opacity .25s ease;
}
.uix-nav-link:hover, .uix-nav-link.active { opacity: 1; }
.uix-nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--uix-gradient);
}

/* ---- Custom cursor accent ---- */
#magic-cursor #ball {
  background: var(--uix-gradient) !important;
}
#magic-cursor.uix-cursor-drag #ball::after { content: 'drag'; }
#magic-cursor.uix-cursor-view #ball::after { content: 'view'; }
#magic-cursor.uix-cursor-play #ball::after { content: 'play'; }
#magic-cursor[class*="uix-cursor-"] #ball::after {
  position: absolute;
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

/* =========================================================
   WORK GRID (portfolio page)
   ========================================================= */
.uix-work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 60px;
}
.uix-work-filter-btn {
  padding: 10px 22px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 40px;
  background: transparent;
  color: var(--uix-white);
  font-size: 14px;
  cursor: pointer;
  transition: all .3s ease;
}
.uix-work-filter-btn:hover,
.uix-work-filter-btn.active {
  background: var(--uix-gradient);
  border-color: transparent;
}

.uix-work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
@media (max-width: 767px) {
  .uix-work-grid { grid-template-columns: 1fr; }
}

.uix-work-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #141416;
}
.uix-work-card .uix-work-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.uix-work-card canvas,
.uix-work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.uix-work-card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 6px 0;
}
.uix-work-card-info h4 {
  font-size: 20px;
  color: var(--uix-white);
  margin: 0;
  text-transform: capitalize;
}
.uix-work-card-info span {
  font-size: 13px;
  color: var(--uix-gray);
}
.uix-work-card-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--uix-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform: rotate(0deg);
  transition: transform .35s ease;
}
.uix-work-card:hover .uix-work-card-arrow { transform: rotate(45deg); }

/* Expand-in-place panel */
.uix-work-expand {
  display: none;
  grid-column: 1 / -1;
  background: #141416;
  border-radius: 14px;
  padding: 50px;
  margin-top: -10px;
}
.uix-work-expand.active { display: block; }
.uix-work-expand-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}
.uix-work-expand-gallery img {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 1;
  object-fit: cover;
}
.uix-work-expand-tags span {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 30px;
  font-size: 12px;
  color: var(--uix-gray);
  margin: 4px 6px 4px 0;
}

/* =========================================================
   SERVICE PAGE "TOYS"
   ========================================================= */
.uix-service-toy {
  background: #141416;
  border-radius: 16px;
  padding: 40px;
  margin: 50px 0;
  min-height: 280px;
}

/* Before/after slider (UI/UX) */
.uix-ba-slider { position: relative; width: 100%; max-width: 600px; aspect-ratio: 16/10; margin: 0 auto; border-radius: 12px; overflow: hidden; cursor: ew-resize; }
.uix-ba-slider img { position: absolute; top:0; left:0; width: 100%; height: 100%; object-fit: cover; }
.uix-ba-slider .uix-ba-after { clip-path: inset(0 0 0 50%); }
.uix-ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: var(--uix-gradient); transform: translateX(-50%); }
.uix-ba-handle::after { content: '⟷'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 36px; height: 36px; background: var(--uix-gradient); border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }

/* Phone mockup (App dev) */
.uix-phone-frame { width: 260px; height: 540px; border-radius: 36px; border: 8px solid #222; margin: 0 auto; position: relative; overflow: hidden; background: #000; }
.uix-phone-screens { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; }
.uix-phone-screens img { flex: 0 0 100%; scroll-snap-align: start; width: 100%; height: 100%; object-fit: cover; }

/* Logo color-morph (Branding) */
.uix-logo-morph { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.uix-logo-morph img { max-width: 220px; filter: grayscale(0); transition: filter .4s ease; }
.uix-palette-dot { width: 34px; height: 34px; border-radius: 50%; cursor: pointer; border: 2px solid rgba(255,255,255,.3); }

/* Social post mock (Social Media) */
.uix-post-mock { max-width: 320px; margin: 0 auto; border-radius: 16px; overflow: hidden; background: #1c1c1f; }
.uix-post-mock-header { display: flex; align-items: center; gap: 10px; padding: 12px; }
.uix-post-mock-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--uix-gradient); }
.uix-post-mock-img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.uix-post-mock-likes { padding: 10px 12px; font-size: 14px; }

/* SEO ranking graph (SEO/Performance) */
.uix-seo-graph { width: 100%; max-width: 600px; margin: 0 auto; }
.uix-seo-graph path { fill: none; stroke: url(#uixGradientStroke); stroke-width: 3; stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1.6s ease; }
.uix-seo-graph.in-view path { stroke-dashoffset: 0; }

/* =========================================================
   STATS COUNTER STRIP
   ========================================================= */
.uix-stat-item { cursor: pointer; }
.uix-stat-item .uix-stat-number { background: var(--uix-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* =========================================================
   TESTIMONIAL SWIPE STACK
   ========================================================= */
.uix-testimonial-stack { position: relative; max-width: 600px; margin: 0 auto; height: 320px; }
.uix-testimonial-card {
  position: absolute; inset: 0;
  background: #141416; border-radius: 16px; padding: 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .4s ease, opacity .4s ease;
  cursor: grab;
}
.uix-testimonial-card:active { cursor: grabbing; }

/* =========================================================
   FOOTER EASTER-EGG GAME
   ========================================================= */
.uix-easter-egg-zone { text-align: center; padding: 30px 0 0; }
.uix-game-trigger {
  background: none; border: 1px dashed rgba(255,255,255,.25);
  color: var(--uix-gray); padding: 10px 20px; border-radius: 30px;
  font-size: 13px; cursor: pointer; transition: all .3s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.uix-game-trigger:hover { border-color: var(--uix-gradient-end); color: #fff; }
.uix-game-trigger-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--uix-gradient); display: inline-block; animation: uixPulse 1.6s infinite; }
@keyframes uixPulse { 0%,100%{ opacity:1; } 50%{ opacity:.3; } }

.uix-game-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(5,5,7,.92);
  display: flex; align-items: center; justify-content: center;
}
.uix-game-panel { background: #141416; border-radius: 20px; padding: 30px; text-align: center; position: relative; }
.uix-game-close { position: absolute; top: 14px; right: 18px; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; }
.uix-game-title { color: #fff; margin-bottom: 4px; text-transform: lowercase; }
.uix-game-score { color: var(--uix-gray); margin-bottom: 16px; }
#uix-game-canvas { background: #0B0B0D; border-radius: 12px; touch-action: none; }
.uix-game-hint { color: var(--uix-gray); font-size: 12px; margin-top: 12px; }

/* =========================================================
   GLOBAL EASTER EGG (5x logo click / konami)
   ========================================================= */
.uix-confetti-canvas { position: fixed; inset: 0; z-index: 10000; pointer-events: none; }
