/* High-Performance 60Hz/144Hz Optimized Styles for Krotex Script */

/* Hardware acceleration & smooth rendering root */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  /* GPU compositing on html (safe — does NOT break position:fixed) */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* body must NOT have transform/perspective — they create a new containing block
   and break ALL position:fixed children (lightbox, modals, cart, etc.) */
body {
  /* GPU boost via will-change instead of transform — safe for fixed children */
  will-change: scroll-position;
}

/* Custom performance-friendly scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #07070d;
}
::-webkit-scrollbar-thumb {
  background: #252243;
  border-radius: 4px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: #7c3aed;
}

/* GPU Accelerated Marquee */
@keyframes marquee {
  0% { transform: translate3d(0%, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.animate-marquee {
  display: flex;
  width: 200%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  animation: marquee 28s linear infinite;
}

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

/* High-Performance Glass Panels (optimized blur) */
.glass-panel {
  background: rgba(15, 14, 28, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 92, 246, 0.2);
  transform: translateZ(0);
}

.card-glow {
  will-change: transform, box-shadow;
  transform: translate3d(0, 0, 0);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.card-glow:hover {
  transform: translate3d(0, -4px, 0);
  box-shadow: 0 12px 30px -5px rgba(124, 58, 237, 0.3);
}

/* Off-screen Content Visibility Optimization (Zero Lag Scrolling) */
#why-us, #reviews, #faq {
  content-visibility: auto;
  contain-intrinsic-size: 1px 400px;
}

/* Lazy image rendering & crispness */
img {
  content-visibility: auto;
}

/* Sale Pulse Keyframe */
@keyframes salePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.45);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(168, 85, 247, 0);
  }
}
.animate-sale-pulse {
  animation: salePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Accordion Smooth Transitions */
.faq-content {
  transition: max-height 0.25s cubic-bezier(0, 1, 0, 1), opacity 0.2s ease;
}
