/**
 * URETECH 3D Arrow Hero — CSS v1.1
 *
 * Architecture:
 *   .arr3d-bg     = fixed fullscreen background (3D canvas + orbs)
 *   .arr3d-spacer = scroll space for 3D animation (before page content)
 *   .arr3d-section = first Elementor section (transparent bg, normal flow)
 */

/* ── Header floats above everything ── */
body:has(.arr3d-bg) [data-elementor-type="header"],
body:has(.arr3d-bg) .elementor-location-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 100 !important;
  pointer-events: auto;
}
body.admin-bar:has(.arr3d-bg) [data-elementor-type="header"],
body.admin-bar:has(.arr3d-bg) .elementor-location-header {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar:has(.arr3d-bg) [data-elementor-type="header"],
  body.admin-bar:has(.arr3d-bg) .elementor-location-header {
    top: 46px !important;
  }
}

/* ═══════════════════════════════════════════
   FIXED 3D BACKGROUND
   ═══════════════════════════════════════════ */
.arr3d-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #060510;
  transition: opacity 0.2s;
}

.arr3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ── Hide existing apostrophe 3D ── */
body:has(.arr3d-bg) .three-canvas,
body:has(.arr3d-bg) > .scroll-hint,
body:has(.arr3d-bg) > .progress-bar {
  display: none !important;
}

/* ═══════════════════════════════════════════
   SCROLL SPACER — provides scroll height for 3D animation
   ═══════════════════════════════════════════ */
.arr3d-spacer {
  position: relative;
  height: 160vh;
  z-index: 1;
  pointer-events: none;
}

/* ═══════════════════════════════════════════
   FIRST SECTION — stays in normal document flow!
   Background replaced with transparent gradient → 3D shows through
   ═══════════════════════════════════════════ */
.arr3d-section {
  position: relative !important;
  z-index: 2 !important;
  min-height: 100vh;
  /* opacity and transform controlled by JS */
  will-change: opacity, transform;

  /* Transparent gradient bg: solid at bottom, fades to transparent at top */
  background: linear-gradient(
    to top,
    rgba(6,5,16,1) 0%,
    rgba(6,5,16,0.97) 20%,
    rgba(6,5,16,0.88) 40%,
    rgba(6,5,16,0.7) 60%,
    rgba(6,5,16,0.4) 80%,
    transparent 100%
  ) !important;
  background-color: transparent !important;
}

/* Padding-top to push content below the 3D scene area */
.arr3d-section > .e-con-inner,
.arr3d-section > .elementor-container {
  padding-top: 30vh !important;
}

/* Override Elementor's own backgrounds */
.arr3d-section.e-con,
.arr3d-section.elementor-section {
  background-color: transparent !important;
}

/* ── All sections after first get opaque bg to cover 3D ── */
body:has(.arr3d-bg) [data-elementor-type="wp-page"] {
  position: relative;
  z-index: 2;
}

/* ═══════════════════════════════════════════
   CSS ORBS — floating gradient blurs over 3D scene
   ═══════════════════════════════════════════ */
.arr3d-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.arr3d-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  will-change: transform;
}
.arr3d-orb-1 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(228,132,216,.5) 0%, transparent 70%);
  top: 5%; left: 3%;
  animation: arr3dOrb1 22s ease-in-out infinite;
}
.arr3d-orb-2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(193,191,230,.45) 0%, transparent 70%);
  top: 60%; right: 8%;
  animation: arr3dOrb2 28s ease-in-out infinite;
}
.arr3d-orb-3 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(245,176,236,.35) 0%, transparent 70%);
  bottom: 15%; left: 20%;
  animation: arr3dOrb3 25s ease-in-out infinite;
}

@keyframes arr3dOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, 25px) scale(1.06); }
  50% { transform: translate(-15px, 40px) scale(0.94); }
  75% { transform: translate(25px, -15px) scale(1.04); }
}
@keyframes arr3dOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-20px, -25px) scale(1.08); }
  66% { transform: translate(15px, 20px) scale(0.95); }
}
@keyframes arr3dOrb3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(25px, -35px) scale(1.1); }
  50% { transform: translate(-15px, 25px) scale(0.9); }
  75% { transform: translate(35px, 15px) scale(1.04); }
}

@media (max-width: 767px) {
  .arr3d-orb-1 { width: 220px; height: 220px; top: -3%; left: -8%; }
  .arr3d-orb-2 { width: 160px; height: 160px; top: 55%; right: -5%; }
  .arr3d-orb-3 { width: 180px; height: 180px; bottom: 15%; left: 5%; }
}

/* ═══════════════════════════════════════════
   SCROLL HINT
   ═══════════════════════════════════════════ */
.arr3d-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  transition: opacity 0.5s;
}
.arr3d-scroll-hint span {
  color: rgba(250,250,250,0.5);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: Outfit, sans-serif;
}
.arr3d-scroll-hint svg {
  animation: arr3d-bounce 2s ease-in-out infinite;
}

@keyframes arr3d-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(4px); opacity: 0.3; }
}

/* ── Progress bar ── */
.arr3d-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #e484d8, #C1BFE6);
  z-index: 11;
  transition: none;
}

/* ── Preload Playfair Display for shaft engraving ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital@1&display=swap');
