/* ============================================================
   Alphax TechBiz — 3D & premium enhancement layer
   Loaded after the page's own <style> block so these rules win
   on equal specificity. Purely additive: nothing here removes
   the original design, it gives it depth, motion, and punch.
   Where an element already owned an animation (e.g. .hero-card's
   float, .about-badge's spin), the full shorthand is restated
   here with the original keyframes included, so nothing is lost.
   ============================================================ */

/* ── brighter brand palette (overrides the page's own :root) ── */
:root{
  --gold:#ffcf4d;
  --gold2:#ffe37a;
  --ice:#5fd9ff;
  --ice2:#d8f8ff;
  --ember:#ff6a3d;
  --mint:#2dffcf;
  --text:#d3ebfb;
  --text2:#a7cbe8;
  --white:#ffffff;
}

/* ── perspective root: gives child 3D transforms somewhere to live ── */
#hero,.svc-hero{perspective:1600px}

/* ================= 3D HEADINGS ================= */
/* layered text-shadow gives real extrusion depth; a slow, gentle
   preserve-3d wobble keeps them alive without becoming distracting */
.hero-h1,.svc-h1,.section-h2{
  transform-style:preserve-3d;
  text-shadow:
    1px 1px 0 rgba(255,207,77,.35),
    2px 2px 0 rgba(255,207,77,.28),
    3px 3px 0 rgba(255,207,77,.2),
    4px 4px 6px rgba(255,207,77,.12),
    6px 8px 18px rgba(0,0,0,.55);
}
.section-h2{animation:heading3D 9s ease-in-out infinite}
.hero-h1{animation:slideUp .8s ease .35s forwards, heading3D 9s ease-in-out infinite 1.2s}
.svc-h1{animation:slideUp .8s ease .2s forwards, heading3D 9s ease-in-out infinite 1s}
@keyframes heading3D{
  0%,100%{transform:perspective(700px) rotateX(0deg) rotateY(0deg) translateZ(0)}
  25%{transform:perspective(700px) rotateX(2.5deg) rotateY(-3deg) translateZ(6px)}
  50%{transform:perspective(700px) rotateX(0deg) rotateY(3deg) translateZ(10px)}
  75%{transform:perspective(700px) rotateX(-2.5deg) rotateY(0deg) translateZ(6px)}
}

/* shimmering gradient sweep across the italic/gold portions of headings */
.hero-h1 em,.svc-h1 em,.section-h2 em{
  background-size:250% 100%!important;
  animation:textShine 5s linear infinite;
}
@keyframes textShine{
  0%{background-position:200% 0}
  100%{background-position:-200% 0}
}

/* ================= LOGO — bigger, continuous 3D spin ================= */
nav{height:112px}
#hero{padding-top:132px}
.svc-hero{padding-top:172px}
.nav-logo{perspective:600px}
.nav-logo img{
  height:92px;width:92px;
  object-fit:cover;border-radius:50%;
  box-shadow:0 0 0 2px rgba(255,207,77,.5),0 0 26px rgba(255,207,77,.35),0 6px 20px rgba(0,0,0,.5);
  animation:logoSpin3D 7s linear infinite;
  transform-style:preserve-3d;
  backface-visibility:visible;
}
@keyframes logoSpin3D{
  0%{transform:rotateY(0deg)}
  100%{transform:rotateY(360deg)}
}
@media(max-width:768px){
  nav{height:96px}
  #hero{padding-top:116px}
  .svc-hero{padding-top:150px}
  .nav-logo img{height:72px;width:72px}
}

/* ================= tilting surfaces ================= */
/* (.hero-card and .about-badge already own a transform animation,
   so they're excluded here and handled in their own rules below) */
.service-tile,.feature-card,.tool-chip,.del-card,.other-link,
.stat-card,.trust-card,.svc-hero-badge,.cert-chip{
  transition:transform .5s cubic-bezier(.2,.8,.2,1),box-shadow .5s ease;
  will-change:transform;
  transform-style:preserve-3d;
}
.service-tile:hover,.feature-card:hover,.tool-chip:hover,.del-card:hover,
.other-link:hover,.stat-card:hover,.trust-card:hover,
.svc-hero-badge:hover,.cert-chip:hover{
  box-shadow:0 30px 60px -20px rgba(0,0,0,.6),0 0 40px -18px rgba(255,207,77,.35);
}

/* .hero-card: restate its original float + entrance, add a breathing glow */
.hero-card{
  animation:floatCard 6s ease-in-out infinite, slideLeft .8s ease .8s both, glowPulse 4s ease-in-out infinite;
  transition:box-shadow .5s ease;
}
.hero-card:hover{box-shadow:0 40px 80px -24px rgba(0,0,0,.65),0 0 70px -18px rgba(255,207,77,.4)}

/* .about-badge: restate its original slow spin, add a breathing glow */
.about-badge{animation:spin-slow 20s linear infinite, glowPulse 4s ease-in-out infinite}

.svc-hero-badge{animation:glowPulse 4s ease-in-out infinite}

.svc-hero-img{transition:transform .6s cubic-bezier(.2,.8,.2,1);will-change:transform}

/* slow continuous Ken-Burns drift on service tile / feature imagery */
.service-tile-img{animation:kenBurns 14s ease-in-out infinite alternate}
@keyframes kenBurns{
  0%{transform:scale(1.02)}
  100%{transform:scale(1.12) translate(-1%,-1%)}
}

/* ================= continuous ambient motion ================= */
@keyframes glowPulse{
  0%,100%{box-shadow:0 0 0 rgba(255,207,77,0)}
  50%{box-shadow:0 0 34px -6px rgba(255,207,77,.4)}
}

/* pulsing eyebrow / section-label dash — a subtle continuous breathe */
.hero-eyebrow::before,.section-label::before,.svc-eyebrow::before{
  animation:dashPulse 2.4s ease-in-out infinite;
}
@keyframes dashPulse{
  0%,100%{opacity:1;width:24px}
  50%{opacity:.4;width:34px}
}

/* drifting radial backgrounds — a slow living atmosphere instead of a static glow */
.hero-radial{animation:driftA 16s ease-in-out infinite alternate}
.hero-radial2{animation:driftB 20s ease-in-out infinite alternate}
@keyframes driftA{
  0%{transform:translateY(-50%) translateX(0) scale(1)}
  100%{transform:translateY(-58%) translateX(-4%) scale(1.15)}
}
@keyframes driftB{
  0%{transform:translateX(0) translateY(0) scale(1)}
  100%{transform:translateX(5%) translateY(-6%) scale(1.2)}
}

/* icons: gentle continuous float */
.feat-icon,.del-icon,.step-icon-big{
  display:inline-block;
  animation:iconFloat 3.6s ease-in-out infinite;
}
@keyframes iconFloat{
  0%,100%{transform:translateY(0) rotate(0deg)}
  50%{transform:translateY(-6px) rotate(-4deg)}
}

/* top accent bars: animated shimmer sweep instead of a static gradient */
.hero-card::before,.svc-hero-badge::before{
  background:linear-gradient(90deg,transparent,var(--gold),var(--ice),var(--gold),transparent)!important;
  background-size:300% 100%;
  animation:barShine 4s linear infinite;
}
@keyframes barShine{
  0%{background-position:200% 0}
  100%{background-position:-200% 0}
}

/* count-up numbers get a tiny scale pop as they land */
.count-pop{animation:countPop .4s ease}
@keyframes countPop{
  0%{transform:scale(1)}
  40%{transform:scale(1.14)}
  100%{transform:scale(1)}
}

/* buttons: continuous soft breathing shadow so CTAs stay alive at rest */
.btn-gold{animation:btnGlow 3s ease-in-out infinite}
@keyframes btnGlow{
  0%,100%{box-shadow:0 4px 18px rgba(255,207,77,.25)}
  50%{box-shadow:0 10px 34px rgba(255,207,77,.55)}
}

/* marquee separators spin continuously */
.marquee-item .sep{display:inline-block;animation:sepSpin 3s linear infinite}
@keyframes sepSpin{
  0%{transform:rotate(0deg)}
  100%{transform:rotate(360deg)}
}

/* live/status dots: bright continuous pulse ring */
.live-dot{position:relative}
.live-dot::after{
  content:'';position:absolute;inset:-4px;border-radius:50%;
  border:1px solid var(--mint);
  animation:ringPulse 1.8s ease-out infinite;
}
@keyframes ringPulse{
  0%{transform:scale(.4);opacity:.8}
  100%{transform:scale(1.8);opacity:0}
}

/* ================= magnetic glow on primary actions ================= */
.btn-gold,.btn-ghost,.nav-cta-btn{position:relative;isolation:isolate}
.btn-gold::after,.btn-ghost::after,.nav-cta-btn::after{
  content:'';position:absolute;inset:0;
  background:radial-gradient(140px circle at var(--mx,50%) var(--my,50%),rgba(255,255,255,.45),transparent 70%);
  opacity:0;transition:opacity .35s ease;pointer-events:none;z-index:1;
}
.btn-gold::after,.btn-ghost::after{clip-path:polygon(10px 0%,100% 0%,calc(100% - 10px) 100%,0% 100%)}
.nav-cta-btn::after{clip-path:polygon(8px 0%,100% 0%,calc(100% - 8px) 100%,0% 100%)}
.btn-gold:hover::after,.btn-ghost:hover::after,.nav-cta-btn:hover::after{opacity:1}

/* ================= field media: photo + video triptych ================= */
.field-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:1px;background:var(--edge);border:1px solid var(--edge)}
.field-frame{position:relative;overflow:hidden;background:var(--panel);aspect-ratio:4/3}
.field-frame img,.field-frame video{width:100%;height:100%;object-fit:cover;filter:brightness(.62) saturate(.9);display:block;transition:transform .8s ease,filter .5s ease}
.field-frame:hover img,.field-frame:hover video{filter:brightness(.82) saturate(1.05);transform:scale(1.06)}
.field-caption{position:absolute;left:0;right:0;bottom:0;padding:.8rem 1rem;background:linear-gradient(0deg,rgba(0,0,0,.8),transparent);font-family:var(--mono);font-size:.6rem;letter-spacing:2px;text-transform:uppercase;color:var(--gold);z-index:2}
.field-frame.is-video::before{
  content:'\25B6';position:absolute;top:.9rem;right:1rem;width:26px;height:26px;border-radius:50%;
  background:rgba(0,0,0,.5);border:1px solid rgba(255,207,77,.6);color:var(--gold);
  display:flex;align-items:center;justify-content:center;font-size:.6rem;z-index:2;pointer-events:none;
}
@media(max-width:768px){.field-grid{grid-template-columns:1fr}.field-frame{aspect-ratio:16/10}}

/* ================= premium chrome ================= */
::selection{background:var(--gold);color:var(--ink)}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:var(--ink)}
::-webkit-scrollbar-thumb{background:linear-gradient(180deg,var(--gold),var(--gold2));border:2px solid var(--ink);background-clip:padding-box}
::-webkit-scrollbar-thumb:hover{background:var(--gold2);background-clip:padding-box}

/* ================= accessibility & performance ================= */
@media (prefers-reduced-motion: reduce){
  *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
