﻿/* ============================================================
   Shadbx Portfolio — custom styles
   (Tailwind CDN handles the utility classes; this file adds
   the brand-specific design: glass, glows, glossy cards,
   premium preloader, animations)
   ============================================================ */

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #0a0a0f;
  color: #e4e4e7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(168, 85, 247, 0.35);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7c3aed, #a855f7);
  border-radius: 999px;
  border: 2px solid #0a0a0f;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #8b5cf6, #c084fc);
}

button {
  font-family: inherit;
  cursor: pointer;
}

a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid rgba(168, 85, 247, 0.7);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- Preloader (nova-style cyber spinner) ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(147, 51, 234, 0.15) 0%, transparent 60%), #050508;
  opacity: 1;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-box {
  position: relative;
  width: 128px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-ring {
  position: absolute;
  border-radius: 9999px;
}

.preloader-ring-outer {
  inset: 0;
  border: 2px solid transparent;
  border-top-color: #a855f7;
  border-right-color: rgba(147, 51, 234, 0.6);
  animation: rot 1.4s linear infinite;
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.7));
}

.preloader-ring-inner {
  inset: 12px;
  border: 2px solid transparent;
  border-bottom-color: #a855f7;
  border-left-color: rgba(147, 51, 234, 0.4);
  animation: rot-rev 2.2s linear infinite;
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.5));
}

/* only the two rings rotate — nothing else orbits the logo */

.preloader-logo {
  width: 96px;
  height: 96px;
  border-radius: 9999px;
  object-fit: cover;
  border: 2px solid rgba(147, 51, 234, 0.7);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.45);
}

.preloader-loading {
  margin-top: 40px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  align-items: center;
}

.preloader-dots {
  display: inline-flex;
  margin-left: 12px;
}

.loading-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 3px;
  border-radius: 50%;
  background: #a855f7;
  animation: dotPulse 1.2s infinite;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.8);
}

.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }

.preloader-welcome {
  margin-top: 16px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #a855f7;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.7), 0 0 20px rgba(168, 85, 247, 0.5);
}

@keyframes rot { to { transform: rotate(360deg); } }
@keyframes rot-rev { to { transform: rotate(-360deg); } }
@keyframes dotPulse {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50%      { opacity: 1; transform: scale(1); }
}

/* ---------- Global background: purple glows + grid ---------- */
.glow {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
}

.glow-top {
  top: -220px;
  left: -160px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.5), transparent 65%);
  filter: blur(80px);
  opacity: 0.55;
}

.glow-bottom {
  bottom: -260px;
  right: -180px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.45), transparent 65%);
  filter: blur(90px);
  opacity: 0.5;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* ---------- Text helpers ---------- */
.gradient-text {
  background: linear-gradient(90deg, #c084fc, #a78bfa 35%, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.28);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* ---------- Buttons ---------- */
.btn-bubble {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, background 0.25s;
  will-change: transform;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #a855f7 50%, #ec4899);
  box-shadow: 0 10px 32px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(139, 92, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-outline {
  color: #e9e9ef;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-outline:hover {
  transform: translateY(-3px);
  color: #fff;
  border-color: rgba(168, 85, 247, 0.55);
  background: rgba(139, 92, 246, 0.12);
  box-shadow: 0 12px 36px rgba(139, 92, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-lg {
  padding: 1.1rem 2.3rem;
  font-size: 1.05rem;
}

/* ---------- Glass surfaces ---------- */
.glass-nav {
  background: rgba(18, 14, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#navbar.scrolled .glass-nav {
  background: rgba(12, 10, 18, 0.85);
  border-color: rgba(168, 85, 247, 0.2);
  box-shadow: 0 10px 44px rgba(0, 0, 0, 0.55), 0 0 30px rgba(139, 92, 246, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.glass-card {
  background: linear-gradient(170deg, rgba(28, 20, 44, 0.75), rgba(13, 10, 20, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ---------- Navbar ---------- */
.logo-mark {
  border-radius: 9999px;
  object-fit: cover;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.55);
}

.nav-portfolio {
  margin-top: 2px;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #a78bfa;
  text-shadow: 0 0 12px rgba(167, 139, 250, 0.8);
}

.nav-link {
  position: relative;
  padding: 6px 2px;
  color: #d4d4d8;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #a855f7, #ec4899);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.8);
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link.active::after {
  transform: scaleX(1);
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  transition: background 0.2s, border-color 0.2s;
}

.mobile-menu-btn:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(168, 85, 247, 0.4);
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.25s, opacity 0.2s;
}

.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: #d4d4d8;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.mobile-link:hover,
.mobile-link.active {
  background: rgba(139, 92, 246, 0.12);
  color: #fff;
}

.mobile-link.active {
  box-shadow: inset 3px 0 0 #a855f7;
}

/* ---------- Reveal on tab switch ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Hero ---------- */
.hero-stack {
  perspective: 900px;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}

.hero-glow {
  position: absolute;
  inset: 8%;
  z-index: -1;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35), transparent 60%);
  filter: blur(50px);
}

.float-card {
  position: absolute;
  background: rgba(20, 16, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: box-shadow 0.4s;
  will-change: transform;
}

.float-card:hover {
  box-shadow: 0 22px 60px rgba(139, 92, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.float-slow { --r: -6deg; animation: floatY 8s ease-in-out 1.2s infinite; }
.float-med  { --r: 5deg;  animation: floatY 6.5s ease-in-out 0.6s infinite; }
.float-fast { --r: -3deg; animation: floatY 5s ease-in-out 0s infinite; }

@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50%      { transform: translateY(-14px) rotate(var(--r, 0deg)); }
}

.float-card-thumb {
  position: relative;
  height: 120px;
  overflow: hidden;
}

.float-card-thumb img {
  transition: transform 0.5s;
}

.float-card:hover .float-card-thumb img {
  transform: scale(1.06);
}

.float-card-body {
  padding: 12px 14px;
}

.float-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  display: -webkit-box;
  display: box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.float-meta {
  margin-top: 4px;
  font-size: 0.68rem;
  color: #9ca3af;
}

.float-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.work-dur {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 2;
  padding: 3px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
  background: rgba(5, 5, 10, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.work-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a78bfa;
  background: radial-gradient(circle at 50% 30%, rgba(168, 85, 247, 0.2), transparent 70%);
}

/* ---------- Trust badges ---------- */
.trust-badge {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.trust-num {
  font-size: 1.55rem;
  font-weight: 800;
  background: linear-gradient(90deg, #c084fc, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.trust-label {
  font-size: 0.72rem;
  color: #9ca3af;
  letter-spacing: 0.05em;
}

/* ---------- Reviews marquee (home) ---------- */
.reviews-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.reviews-track {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  width: max-content;
  padding: 26px 0 34px;
  animation: marqueeScroll 46s linear infinite;
}

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

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* scattered look: every card is tilted & vertically offset,
   so the strip feels casually thrown onto the page */
.marquee-card {
  flex: 0 0 auto;
  width: 300px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(30, 20, 45, 0.85), rgba(18, 13, 28, 0.92));
  border: 1px solid rgba(168, 85, 247, 0.22);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform-origin: center;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}

.marquee-card:nth-child(4n+1) { transform: rotate(-1.6deg) translateY(0); }
.marquee-card:nth-child(4n+2) { transform: rotate(1.4deg) translateY(28px); }
.marquee-card:nth-child(4n+3) { transform: rotate(-1.1deg) translateY(12px); }
.marquee-card:nth-child(4n+4) { transform: rotate(1.7deg) translateY(32px); }

.marquee-card:hover {
  transform: rotate(0deg) translateY(-5px) scale(1.02);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 18px 52px rgba(139, 92, 246, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ---------- Process ---------- */
.process-card {
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(170deg, rgba(26, 19, 40, 0.9), rgba(13, 10, 20, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.process-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.process-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 16px;
  color: #c084fc;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(236, 72, 153, 0.1));
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.process-steps {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  list-style: none;
  padding: 0;
}

.process-step {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
}

.process-step:last-child {
  border-bottom: none;
}

.process-num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.4);
}

.process-step h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.process-step p {
  margin-top: 4px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #a1a1aa;
}

.warranty-chip {
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #34d399;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 999px;
}

/* ---------- Work ---------- */
.work-cat {
  position: relative;
  padding: 28px 26px;
  border-radius: 26px;
  background: linear-gradient(165deg, rgba(30, 22, 46, 0.85), rgba(14, 11, 22, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.work-cat:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 18px 50px rgba(139, 92, 246, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.work-cat-count {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 4px 10px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 999px;
}

.work-cat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #c084fc;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(236, 72, 153, 0.08));
  border: 1px solid rgba(168, 85, 247, 0.28);
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.3s;
}

.work-cat:hover .work-cat-icon {
  transform: scale(1.08) rotate(-3deg);
}

.work-cat-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c4b5fd;
  transition: color 0.3s;
}

.work-cat-cta svg {
  transition: transform 0.3s;
}

.work-cat:hover .work-cat-cta {
  color: #f0abfc;
}

.work-cat:hover .work-cat-cta svg {
  transform: translateX(4px);
}

.g-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c4b5fd;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  transition: all 0.2s;
}

.g-back:hover {
  color: #fff;
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(168, 85, 247, 0.4);
}

.gallery-empty,
.reviews-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.work-item {
  display: block;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(165deg, rgba(26, 19, 40, 0.9), rgba(13, 10, 20, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.work-item:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 20px 55px rgba(139, 92, 246, 0.22);
}

.work-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.work-item:hover .work-media img {
  transform: scale(1.05);
}

.work-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 5, 10, 0.55));
}

.work-play,
.work-zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: #fff;
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.45);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.25s, transform 0.25s;
}

.work-item:hover .work-play,
.work-item:hover .work-zoom {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.work-meta {
  padding: 16px 18px 18px;
}

.work-meta h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.work-meta p {
  margin-top: 4px;
  font-size: 0.78rem;
  color: #9ca3af;
}

/* ---------- Lightbox / video modal ---------- */
.lightbox,
.video-modal,
.review-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 5, 10, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.show,
.video-modal.show,
.review-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  transform: scale(0.94);
  transition: transform 0.3s;
}

.lightbox.show img,
.video-modal.show .video-frame,
.review-modal.show .review-frame {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.2s, border-color 0.2s, transform 0.25s;
}

.lightbox-close:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(168, 85, 247, 0.5);
  transform: rotate(90deg);
}

.video-frame {
  position: relative;
  width: min(880px, 92vw);
  padding: 18px;
  border-radius: 24px;
  overflow: hidden;
  background: #09090d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  transform: scale(0.94);
  transition: transform 0.3s;
}

.video-player {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.video-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-open {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c4b5fd;
  text-decoration: none;
  transition: color 0.2s;
}

.video-open:hover {
  color: #fff;
}

.video-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 44px 20px;
  text-align: center;
  color: #c4b5fd;
}

.video-fallback strong {
  font-size: 1.05rem;
  color: #fff;
}

.video-fallback p {
  max-width: 360px;
  font-size: 0.9rem;
  color: #a1a1aa;
}

/* ---------- Services ---------- */
.service-card {
  position: relative;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(28, 20, 44, 0.9), rgba(13, 10, 20, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 20px 55px rgba(139, 92, 246, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  color: #c084fc;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(236, 72, 153, 0.1));
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ---------- Pricelist ---------- */
.price-label {
  margin-top: 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
}

.price-num {
  margin-top: 2px;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(90deg, #e9d5ff, #c084fc, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(168, 85, 247, 0.45));
}

.price-addon {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #f0abfc;
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.25);
  border-radius: 999px;
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}

.price-features li {
  position: relative;
  padding-left: 22px;
  font-size: 0.85rem;
  color: #b9b9c0;
}

.price-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
}

.price-note {
  margin-top: 12px;
  font-size: 0.75rem;
  color: #6b7280;
}

/* ---------- Payment chips (glossy) ---------- */
.pay-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ca3af;
}

.payment-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 19px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ececf3;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02) 55%, rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 8px 24px rgba(0, 0, 0, 0.25),
    0 0 18px rgba(139, 92, 246, 0.22);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, filter 0.2s;
}

.payment-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.22) inset,
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 12px 32px rgba(0, 0, 0, 0.3),
    0 0 32px rgba(139, 92, 246, 0.45);
}

.chip-paypal svg { color: #93c5fd; }
.chip-paypal { filter: drop-shadow(0 0 8px rgba(147, 197, 253, 0.4)); }
.chip-apple svg { color: #e5e7eb; }
.chip-apple { filter: drop-shadow(0 0 8px rgba(229, 231, 235, 0.25)); }
.chip-crypto svg { color: #c084fc; }
.chip-crypto { filter: drop-shadow(0 0 10px rgba(192, 132, 252, 0.45)); }
.chip-bank svg { color: #86efac; }
.chip-bank { filter: drop-shadow(0 0 8px rgba(134, 239, 172, 0.32)); }
.chip-card { filter: drop-shadow(0 0 9px rgba(251, 158, 27, 0.35)); }
.payment-chip:hover { filter: drop-shadow(0 0 16px rgba(168, 85, 247, 0.6)); }

/* ---------- Reviews ---------- */
.review-card {
  background: linear-gradient(160deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.06) 45%, rgba(20, 15, 32, 0.95));
  border-color: rgba(168, 85, 247, 0.25);
}

.review-quote {
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.6;
  color: #d8d8df;
}

.rq {
  display: block;
  height: 26px;
  font-family: Georgia, serif;
  font-size: 2.4rem;
  line-height: 1;
  color: #a855f7;
  text-shadow: 0 0 14px rgba(168, 85, 247, 0.7);
}

.stars {
  display: flex;
  gap: 3px;
  color: #fbbf24;
}

.stars svg {
  filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.55));
}

.stars svg.off {
  color: rgba(255, 255, 255, 0.18);
  filter: none;
}

.avatar-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #a855f7 55%, #ec4899);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06), 0 6px 18px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.reviews-more {
  display: none;
}

.reviews-more.show {
  display: block;
}

/* clean & premium view-all button */
.btn-viewall {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #e9e9f2;
  background: rgba(139, 92, 246, 0.07);
  border: 1px solid rgba(168, 85, 247, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 28px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s, color 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.btn-viewall:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: rgba(168, 85, 247, 0.6);
  background: rgba(139, 92, 246, 0.14);
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.25) inset,
    0 12px 34px rgba(139, 92, 246, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.btn-viewall:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.bva-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.25);
}

.bva-label {
  white-space: nowrap;
}

.bva-count {
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 999px;
}

.bva-arrow {
  display: flex;
  align-items: center;
  color: #c4b5fd;
  transition: transform 0.25s;
}

.btn-viewall:hover .bva-arrow {
  transform: translateX(4px);
}

/* ---------- Review modal ---------- */
.review-frame {
  position: relative;
  width: min(480px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px;
  border-radius: 26px;
  background: linear-gradient(170deg, rgba(30, 22, 46, 0.98), rgba(13, 10, 20, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 60px rgba(139, 92, 246, 0.15);
  transform: scale(0.94);
  transition: transform 0.3s;
}

.rm-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.rm-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: #fbbf24;
  background: radial-gradient(circle at 30% 20%, rgba(251, 191, 36, 0.35), transparent 60%), rgba(5, 5, 10, 0.5);
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.2);
}

.form-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #c9c9d4;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.9rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.form-input::placeholder {
  color: #71717a;
}

select.form-input {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

select.form-input option {
  background: #17151f;
  color: #fff;
}

.star-picker {
  display: flex;
  gap: 6px;
}

.star-picker button {
  padding: 2px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.18);
  transition: color 0.15s, filter 0.15s, transform 0.15s;
}

.star-picker button:hover {
  transform: scale(1.15);
}

.star-picker button:hover,
.star-picker button.active {
  color: #fbbf24;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
}

/* ---------- About ---------- */
.avatar-ring {
  position: relative;
  width: 156px;
  height: 156px;
  padding: 4px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #a855f7, #ec4899 60%, #fbbf24);
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.avatar-ring::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  border: 1px dashed rgba(168, 85, 247, 0.35);
  animation: spinSlow 14s linear infinite;
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

.avatar-inner {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  object-fit: cover;
  border: 3px solid #0d0a16;
}

.skill-chip {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e9d5ff;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.skill-chip:hover {
  background: rgba(139, 92, 246, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.2);
}

/* ---------- Contact CTA ---------- */
.cta-card {
  background: linear-gradient(170deg, rgba(26, 19, 40, 0.92), rgba(13, 10, 20, 0.95));
  border: 1px solid rgba(168, 85, 247, 0.22);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ---------- Social icons (clean, theme-matched) ---------- */
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  color: #c4b5fd;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.social-icon:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: rgba(168, 85, 247, 0.55);
  background: rgba(139, 92, 246, 0.14);
  box-shadow: 0 8px 22px rgba(139, 92, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: rgba(20, 14, 32, 0.95);
  border: 1px solid rgba(168, 85, 247, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 0.35s cubic-bezier(0.2, 0.8, 0.3, 1), transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.toast svg {
  color: #34d399;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* NOTE: .preloader-ring rotates ALWAYS — even with
     prefers-reduced-motion — because the spinning rings
     are the core of the loader's look */

  .loading-dot,
  .float-card,
  .float-slow,
  .float-med,
  .float-fast,
  .reviews-track,
  .avatar-ring::before {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}