/* AYGIO — Background motion untuk About, Services, Portfolio, Clients, Contact.
   Header tidak diubah. Ubah warna tiap halaman melalui variabel --orb-a dan --orb-b. */
.page:not(.hero){--orb-a:#fa73df;--orb-b:#74c7ff;--orb-c:#ffffff;}
#about{--orb-a:#ff8dcf;--orb-b:#a17bff;--orb-c:#ffdf86}
#services{--orb-a:#4af7e9;--orb-b:#568dff;--orb-c:#d8faff}
#portfolio{--orb-a:#ff76d1;--orb-b:#9a77ff;--orb-c:#ffd1f0}
#clients{--orb-a:#ffb05f;--orb-b:#ff65b5;--orb-c:#ffe4a3}
#contact{--orb-a:#54ddff;--orb-b:#a879ff;--orb-c:#ff9de8}
.page:not(.hero)>.ambient-scene{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0;contain:paint}
.page:not(.hero)>.ambient-scene .orb{position:absolute;width:min(55vw,730px);aspect-ratio:1;border-radius:50%;filter:blur(55px);opacity:.34;will-change:transform;background:radial-gradient(circle at 35% 35%,var(--orb-a),transparent 68%);animation:orbWanderA 19s ease-in-out infinite alternate}
.page:not(.hero)>.ambient-scene .orb:nth-child(1){top:-23%;right:-12%}
.page:not(.hero)>.ambient-scene .orb:nth-child(2){bottom:-45%;left:-17%;width:min(62vw,850px);background:radial-gradient(circle,var(--orb-b),transparent 70%);animation:orbWanderB 24s ease-in-out infinite alternate}
.page:not(.hero)>.ambient-scene .orb:nth-child(3){top:26%;left:33%;width:min(34vw,440px);opacity:.18;background:radial-gradient(circle,var(--orb-c),transparent 70%);animation:orbPulse 12s ease-in-out infinite alternate}
.page:not(.hero)>.ambient-scene .mesh{position:absolute;inset:-20%;background-image:linear-gradient(#ffffff12 1px,transparent 1px),linear-gradient(90deg,#ffffff12 1px,transparent 1px);background-size:80px 80px;opacity:.25;transform:perspective(850px) rotateX(18deg) scale(1.3);animation:meshDrift 28s linear infinite}
.page:not(.hero)>.ambient-scene .ring{position:absolute;right:7%;top:20%;width:min(37vw,480px);aspect-ratio:1;border:1px solid #ffffff35;border-radius:50%;box-shadow:0 0 0 55px #ffffff0b,0 0 0 115px #ffffff08;animation:ringOrbit 30s linear infinite}
.page:not(.hero)>.ambient-scene .spark{position:absolute;left:var(--x);top:var(--y);width:var(--s);height:var(--s);border-radius:50%;background:#fff;opacity:.35;animation:sparkFloat var(--d) ease-in-out infinite alternate;animation-delay:var(--delay)}
.page:not(.hero)>.page-inner{position:relative;z-index:2}
.page:not(.hero)>.ambient-scene{transform:translate3d(calc(var(--mx,0px)*.25),calc(var(--my,0px)*.25),0);transition:transform .6s ease-out}
@keyframes orbWanderA{to{transform:translate(-22%,23%) scale(1.2) rotate(30deg)}}
@keyframes orbWanderB{to{transform:translate(27%,-22%) scale(.85)}}
@keyframes orbPulse{to{transform:translate(18%,-18%) scale(1.45);opacity:.3}}
@keyframes meshDrift{to{background-position:160px 80px}}
@keyframes ringOrbit{to{transform:rotate(360deg) scale(1.08)}}
@keyframes sparkFloat{to{transform:translate(22px,-42px);opacity:.75}}
/* Hentikan animasi di halaman yang tidak terlihat untuk menghemat resource. */
.page:not(.hero):not(.page-in-view)>.ambient-scene *{animation-play-state:paused}
@media(max-width:700px){.page:not(.hero)>.ambient-scene .orb{filter:blur(45px);width:95vw}.page:not(.hero)>.ambient-scene .ring{width:70vw;right:-30%}.page:not(.hero)>.ambient-scene .mesh{background-size:55px 55px}}
@media(prefers-reduced-motion:reduce){.page:not(.hero)>.ambient-scene *{animation:none!important}.page:not(.hero)>.ambient-scene{transform:none!important;transition:none!important}}
