/* ============================================================
   parallax.css — Sons Of Favor
   Parallax layer classes, orbs, shimmer, decorative elements
   ============================================================ */

/* WILL-CHANGE LAYERS */
.parallax-bg,
.parallax-mid,
.parallax-fg,
.parallax-text {
  will-change: transform;
  transform-origin: center center;
}

/* HERO BG IMAGE */
.hero-bg-img {
  position: absolute;
  inset: -15%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
}

/* SECTION BACKGROUND PANEL */
.section-bg {
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

/* FLOATING ORB */
.orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(212,175,55,.15), transparent 70%);
  filter: blur(40px);
  will-change: transform;
  pointer-events: none;
  animation: orbFloat 14s ease-in-out infinite alternate;
}
.orb--lg  { width: 480px; height: 480px; }
.orb--sm  { width: 220px; height: 220px; animation-duration: 10s; }
.orb--tl  { top: -80px;  left: -80px; }
.orb--br  { bottom: -100px; right: -60px; }
.orb--tr  { top: -60px;  right: -80px; }
.orb--bl  { bottom: -80px; left: -60px; }

@keyframes orbFloat {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-28px) scale(1.04); }
}

/* SHIMMER LINE */
.shimmer-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: .35;
  animation: shimmerPulse 3.5s ease-in-out infinite;
}
.shimmer-line--top    { top: 0; }
.shimmer-line--bottom { bottom: 0; }
@keyframes shimmerPulse { 0%,100%{opacity:.35} 50%{opacity:.90} }

/* DOT GRID */
.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(212,175,55,.08) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 0;
  pointer-events: none;
  animation: dotBreathe 7s ease-in-out infinite alternate;
}
@keyframes dotBreathe { from{opacity:.6} to{opacity:1} }

/* SCAN LINE (portfolio thumbnail hover) */
.scan-line {
  position: absolute;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  top: 0;
  opacity: 0;
  pointer-events: none;
}
.portfolio-card:hover .scan-line {
  opacity: 1;
  animation: scanSweep .6s ease-out forwards;
}
@keyframes scanSweep { from{top:0;opacity:.8} to{top:100%;opacity:0} }

/* GOLD LINE DECORATION */
.gold-line {
  position: absolute;
  background: linear-gradient(to bottom, var(--gold), transparent);
  width: 1px;
  opacity: .18;
}

/* DISABLE ON MOBILE + REDUCED MOTION */
@media (max-width: 767px) {
  .parallax-bg, .parallax-mid, .parallax-fg, .parallax-text {
    will-change: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .parallax-bg, .parallax-mid, .parallax-fg, .parallax-text,
  .orb { animation: none !important; transform: none !important; will-change: auto; }
}
