/* ================================================
   MyWebShop — Animations & Parallax CSS
   Mobile-first, performance-optimized
   ================================================ */

/* ── SCROLL REVEAL BASE ── */
.reveal-hidden {
  will-change: transform, opacity;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-fade-up    { opacity: 0; transform: translateY(40px); }
.reveal-fade-left  { opacity: 0; transform: translateX(-40px); }
.reveal-fade-right { opacity: 0; transform: translateX(40px); }
.reveal-zoom       { opacity: 0; transform: scale(0.88); }
.reveal-flip       { opacity: 0; transform: rotateY(20deg) translateZ(-60px); }

.revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* ── CURSOR GLOW ── */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,146,26,0.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}
@media (max-width: 768px) { .cursor-glow { display: none; } }

/* ── PAGE TRANSITION ── */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-dark, #0F1117);
  z-index: 99999;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
}
.page-transition-overlay.exit {
  opacity: 0;
}

/* ── MARQUEE (partner logos) ── */
.marquee-wrapper {
  overflow: hidden;
  position: relative;
}
.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--color-dark, #0F1117), transparent);
}
.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--color-dark, #0F1117), transparent);
}
.marquee-track {
  display: flex;
  gap: 32px;
  animation: marquee 28s linear infinite;
  width: max-content;
  align-items: center;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── FLOATING HERO ELEMENTS ── */
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-18px) rotate(2deg); }
}
@keyframes float-medium {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-12px) rotate(-3deg); }
}
@keyframes float-fast {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.float-1 { animation: float-slow 6s ease-in-out infinite; }
.float-2 { animation: float-medium 4s ease-in-out infinite 1s; }
.float-3 { animation: float-fast 3s ease-in-out infinite 0.5s; }

/* ── GRADIENT TEXT ── */
.gradient-text {
  background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-pink) 50%, var(--color-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── SHIMMER LOADING SKELETON ── */
@keyframes shimmer {
  0%   { background-position: -800px 0; }
  100% { background-position: 800px 0; }
}
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.8s infinite;
  border-radius: 8px;
}

/* ── HOVER GLOW CARDS ── */
.card-glow {
  transition: var(--transition, all 0.3s ease);
  position: relative;
}
.card-glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--color-orange), var(--color-pink), var(--color-purple));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
  filter: blur(12px);
}
.card-glow:hover::after { opacity: 0.5; }
.card-glow:hover { transform: translateY(-6px); }

/* ── TYPING CURSOR ── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.typing-cursor::after {
  content: '|';
  animation: blink 0.8s infinite;
  color: var(--color-orange);
  margin-left: 2px;
}

/* ── UNDERLINE HOVER (links) ── */
.hover-underline {
  position: relative;
  display: inline-block;
}
.hover-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 100%;
  height: 2px;
  background: var(--color-orange);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-underline:hover::after { right: 0; }

/* ── SCALE HOVER ── */
.hover-scale { transition: transform 0.3s ease; }
.hover-scale:hover { transform: scale(1.04); }

/* ── NOISE TEXTURE OVERLAY ── */
.noise-overlay {
  position: relative;
}
.noise-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}

/* ── GRADIENT BORDER ── */
.gradient-border {
  position: relative;
  background: var(--color-dark-2, #1A1D27);
  border-radius: var(--radius, 12px);
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--color-orange), var(--color-pink), var(--color-purple), var(--color-green-mid));
  z-index: -1;
  opacity: 0.4;
  transition: opacity 0.3s;
}
.gradient-border:hover::before { opacity: 1; }

/* ── SECTION DIVIDERS ── */
.wave-divider {
  overflow: hidden;
  line-height: 0;
}
.wave-divider svg {
  display: block;
  width: 100%;
}

/* ── STICKY HEADER SCROLLED ── */
.site-header.scrolled {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  backdrop-filter: blur(20px);
}

/* ── PULSING CTA ── */
@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 146, 26, 0.4); }
  60%       { box-shadow: 0 0 0 16px rgba(232, 146, 26, 0); }
}
.btn-pulse { animation: pulse-cta 2.5s infinite; }

/* ── HERO GRID BACKGROUND ── */
.hero-grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* ── MOBILE OVERRIDES ── */
@media (max-width: 767px) {
  .reveal-fade-left,
  .reveal-fade-right {
    transform: translateY(30px);
    /* simplify to vertical on mobile */
  }
  .page-transition-overlay { display: none; }
  .marquee-track { animation-duration: 20s; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-hidden { opacity: 1 !important; transform: none !important; }
}
