/* ============================================================
   YOUSEE360 — AURORA (brand green + cyan)
   Immersive Three.js stage + glassmorphism content overlays.
   Loads AFTER all other CSS to take precedence.
   ============================================================ */

:root {
  /* Brand palette — green + cyan only */
  --aurora-bg:        #02060a;
  --aurora-bg-deep:   #03090e;

  --aurora-green:     #00ff88;
  --aurora-green-2:   #2dffa6;
  --aurora-cyan:      #22d3ee;
  --aurora-cyan-2:    #01e4e4;
  --aurora-teal:      #2dd4bf;

  --aurora-glow-green: rgba(0, 255, 136, 0.55);
  --aurora-glow-cyan:  rgba(34, 211, 238, 0.5);
  --aurora-glow-teal:  rgba(45, 212, 191, 0.4);

  --aurora-text:       #eaf7f0;
  --aurora-text-muted: rgba(234, 247, 240, 0.62);
  --aurora-text-dim:   rgba(234, 247, 240, 0.38);

  --aurora-border:        rgba(255,255,255,0.08);
  --aurora-border-strong: rgba(255,255,255,0.15);

  --ease-aurora: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   THE AURORA CANVAS — fixed full-viewport Three.js stage
   ============================================================ */
.ys-aurora {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  pointer-events: none;
  background: transparent;
  display: block;
}
@media (hover: hover) and (pointer: fine) {
  body.ys-aurora-interactive .ys-aurora {
    pointer-events: auto;
    cursor: grab;
  }
  body.ys-aurora-interactive.ys-aurora-dragging .ys-aurora {
    cursor: grabbing;
  }
}
.ys-aurora-fallback {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 30%, var(--aurora-glow-green) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 15%, var(--aurora-glow-cyan)  0%, transparent 55%),
    radial-gradient(ellipse at 60% 80%, var(--aurora-glow-teal)  0%, transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(0,255,136,0.25)     0%, transparent 60%),
    var(--aurora-bg);
  animation: aurora-shift-fallback 22s ease-in-out infinite alternate;
}
@keyframes aurora-shift-fallback {
  0%   { filter: hue-rotate(-6deg) brightness(0.95) saturate(1.05); }
  100% { filter: hue-rotate(8deg)  brightness(1.05) saturate(1.15); }
}

/* ============================================================
   BODY — transparent dark so aurora shows behind content
   ============================================================ */
body.aurora-on {
  background: var(--aurora-bg) !important;
  color: var(--aurora-text);
  position: relative;
}
body.aurora-on > * { position: relative; z-index: 1; }

body.aurora-on .navigation-bar { z-index: 99999 !important; }

/* ============================================================
   SECTION TRANSPARENCY — let aurora bleed through dark sections
   ============================================================ */
body.aurora-on .section,
body.aurora-on section.section,
body.aurora-on .ys-section,
body.aurora-on main,
body.aurora-on .ys-pricing,
body.aurora-on .ys-testimonials,
body.aurora-on .ys-trusted,
body.aurora-on .ys-portfolio-teaser,
body.aurora-on .ys-estimator,
body.aurora-on .ys-related,
body.aurora-on .ys-includes,
body.aurora-on .ys-faq,
body.aurora-on .case-studies-section,
body.aurora-on .strategic-benefits,
body.aurora-on .industry-applications,
body.aurora-on .process-timeline,
body.aurora-on .recommendations-section,
body.aurora-on .stats-section {
  background: transparent !important;
  background-image: none !important;
  position: relative;
}

body.aurora-on .section::before,
body.aurora-on section.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 0%, rgba(2,6,10,0.55) 100%);
  pointer-events: none;
  z-index: -1;
}

/* ============================================================
   GLASSMORPHISM CARDS — green-tinted glass
   ============================================================ */
body.aurora-on .ds-card,
body.aurora-on .bento-card,
body.aurora-on .ys-package,
body.aurora-on .ys-testimonial,
body.aurora-on .ys-portfolio-tile,
body.aurora-on .ys-includes-item,
body.aurora-on .ys-faq-item,
body.aurora-on .ys-related-card,
body.aurora-on .ys-trust-badge,
body.aurora-on .modern-service-card,
body.aurora-on .glass-card,
body.aurora-on .glass-panel,
body.aurora-on .case-study-card,
body.aurora-on .featured-tour-container {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    rgba(4, 10, 14, 0.55) !important;
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}
body.aurora-on .ds-card:hover,
body.aurora-on .bento-card:hover,
body.aurora-on .ys-package:hover {
  border-color: rgba(0, 255, 136, 0.40) !important;
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 255, 136, 0.25),
    0 0 60px -10px rgba(0, 255, 136, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

/* Estimator + Contact glass card — deeper blur */
body.aurora-on .ys-estimator-card,
body.aurora-on .ys-contact-card,
body.aurora-on .ys-footer-cta,
body.aurora-on .roi-results,
body.aurora-on .modal-form-section {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)),
    rgba(3, 8, 12, 0.6) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1px solid rgba(0, 255, 136, 0.20) !important;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 255, 136, 0.15) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

/* ============================================================
   NAV — refined glass over green aurora
   ============================================================ */
body.aurora-on .navigation-bar {
  background: rgba(3, 8, 12, 0.55) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(0, 255, 136, 0.10) !important;
}
body.aurora-on .navigation-bar.scrolled {
  background: rgba(2, 6, 10, 0.85) !important;
}

/* ============================================================
   TYPOGRAPHY ACCENT — green→cyan gradient text
   ============================================================ */
body.aurora-on .highlight {
  background: linear-gradient(120deg,
    var(--aurora-green) 0%,
    var(--aurora-green-2) 35%,
    var(--aurora-cyan) 70%,
    var(--aurora-green) 100%) !important;
  background-size: 300% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  filter: drop-shadow(0 0 24px rgba(0, 255, 136, 0.55))
          drop-shadow(0 0 48px rgba(34, 211, 238, 0.3));
  animation: aurora-gradient-shift 9s ease-in-out infinite;
  font-weight: 800;
  text-shadow: none !important;
}
@keyframes aurora-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Section tag — green/cyan neon chip */
body.aurora-on .section-tag {
  background:
    linear-gradient(135deg, rgba(0, 255, 136, 0.16), rgba(34, 211, 238, 0.08)),
    rgba(2, 6, 10, 0.55) !important;
  border-color: rgba(0, 255, 136, 0.35) !important;
  color: var(--aurora-text) !important;
  box-shadow:
    0 0 0 1px rgba(0, 255, 136, 0.30),
    0 8px 28px -10px rgba(0, 255, 136, 0.45),
    0 0 40px -16px rgba(34, 211, 238, 0.5) !important;
  backdrop-filter: blur(10px);
}

/* ============================================================
   BUTTONS — primary CTAs become green→cyan pills
   ============================================================ */
body.aurora-on .nav-cta,
body.aurora-on .ds-btn-primary,
body.aurora-on .pkg-btn.is-featured,
body.aurora-on .pkg-btn,
body.aurora-on .ys-form-submit,
body.aurora-on .ys-estimator-next,
body.aurora-on .ys-mob-bar a.btn-quote,
body.aurora-on .ys-mobile-top-cta,
body.aurora-on .ys-fab-trigger {
  background:
    linear-gradient(135deg, var(--aurora-green) 0%, var(--aurora-green-2) 55%, var(--aurora-cyan) 100%) !important;
  color: #001a10 !important;
  box-shadow:
    0 12px 32px -8px rgba(0, 255, 136, 0.55),
    0 0 32px -8px rgba(34, 211, 238, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.40) !important;
}
body.aurora-on .nav-cta:hover,
body.aurora-on .ds-btn-primary:hover {
  box-shadow:
    0 18px 44px -8px rgba(0, 255, 136, 0.7),
    0 0 48px -6px rgba(34, 211, 238, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}

/* ============================================================
   HERO — homepage video hero gets aurora vignette tint
   ============================================================ */
body.aurora-on #Hero .hero-overlay {
  background:
    radial-gradient(ellipse at 20% 80%, rgba(0, 255, 136, 0.28) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(34, 211, 238, 0.22) 0%, transparent 50%),
    radial-gradient(circle at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%) !important;
}

/* Service / industry heroes — constellation bg gives way to aurora */
body.aurora-on .hero-section[data-service],
body.aurora-on .hero-section[data-industry],
body.aurora-on .hero-section.bg-dark:not(#Hero) {
  background: transparent !important;
}

/* ============================================================
   AURORA HINT (desktop)
   ============================================================ */
.ys-aurora-hint {
  position: fixed;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(2, 6, 10, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 136, 0.30);
  color: rgba(234, 247, 240, 0.8);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s var(--ease-aurora) .8s;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  body.ys-aurora-interactive .ys-aurora-hint { display: block; opacity: 1; }
  body.ys-aurora-hint-dismissed .ys-aurora-hint { opacity: 0; transition-delay: 0s; }
}
.ys-aurora-hint::before {
  content: "✥ ";
  color: var(--aurora-green);
}

/* ============================================================
   FOOTER — collapse trailing space
   ============================================================ */
body.aurora-on .footer,
body.aurora-on .ys-footer-v2 {
  margin-bottom: 0 !important;
  padding-bottom: 32px !important;
}
body.aurora-on .footer::after,
body.aurora-on .ys-footer-v2::after {
  content: none !important;
}
/* No bottom padding on desktop. Mobile gets its 88px from mobile.css. */
body.aurora-on { padding-bottom: 0 !important; }
@media (max-width: 768px) {
  body.aurora-on { padding-bottom: 88px !important; }
}

/* ============================================================
   SIDE RAIL — desktop section progress indicator
   ============================================================ */
.ys-sidenav {
  position: fixed;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 14px 8px;
  border-radius: 999px;
  background: rgba(2, 6, 10, 0.45);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(0, 255, 136, 0.12);
  box-shadow:
    0 16px 40px -16px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
  .ys-sidenav { display: flex; }
}
.ys-sidenav-dot {
  position: relative;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.ys-sidenav-dot-inner {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background .35s var(--ease-aurora),
              transform .35s var(--ease-aurora),
              box-shadow .35s var(--ease-aurora);
}
.ys-sidenav-dot:hover .ys-sidenav-dot-inner {
  background: rgba(0, 255, 136, 0.6);
  transform: scale(1.4);
}
.ys-sidenav-dot.is-active .ys-sidenav-dot-inner {
  background: var(--aurora-green);
  transform: scale(1.55);
  box-shadow: 0 0 14px rgba(0, 255, 136, 0.7),
              0 0 28px rgba(34, 211, 238, 0.4);
}
.ys-sidenav-tip {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(2, 6, 10, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 136, 0.2);
  color: var(--aurora-text);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease-aurora);
}
.ys-sidenav-dot:hover .ys-sidenav-tip,
.ys-sidenav-dot.is-active .ys-sidenav-tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ============================================================
   LIVE INLINE 360 VIEWER on homepage
   ============================================================ */
.ys-live-tour-host {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}
.ys-live-tour {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 136, 0.22);
  background: #000;
  box-shadow:
    0 40px 100px -30px rgba(0, 255, 136, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 80px -20px rgba(34, 211, 238, 0.25);
  cursor: grab;
}
.ys-live-tour:active { cursor: grabbing; }
.ys-live-tour [data-pannellum] {
  position: absolute;
  inset: 0;
}
.ys-live-tour-overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  z-index: 5;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), transparent);
  pointer-events: none;
}
.ys-live-tour-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(2, 6, 10, 0.65);
  border: 1px solid rgba(0, 255, 136, 0.35);
  color: var(--aurora-green);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.ys-live-tour-badge::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--aurora-green);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.8);
  animation: live-pulse 1.4s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.45); opacity: 0.45; }
}
.ys-live-tour-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(2, 6, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
  opacity: 1;
  transition: opacity .6s ease;
}
.ys-live-tour.has-interacted .ys-live-tour-hint { opacity: 0; }
.ys-live-tour-expand {
  position: absolute;
  bottom: 18px;
  right: 18px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(2, 6, 10, 0.7);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: var(--aurora-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  backdrop-filter: blur(12px);
  text-decoration: none;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.ys-live-tour-expand:hover {
  background: rgba(0, 255, 136, 0.15);
  transform: scale(1.06);
  box-shadow: 0 0 24px -6px rgba(0, 255, 136, 0.5);
}
/* Mobile tuning */
@media (max-width: 768px) {
  .ys-live-tour { aspect-ratio: 4 / 5; min-height: 380px; border-radius: 18px; }
  .ys-live-tour-overlay { padding: 14px 16px; }
  .ys-live-tour-hint { font-size: 0.6875rem; padding: 5px 11px; }
  .ys-live-tour-badge { font-size: 0.625rem; letter-spacing: 0.18em; padding: 5px 11px; }
}
/* Hide the legacy facade/frame if any leftovers from old build remain in cached HTML */
.tour-facade, .tour-frame { display: none !important; }

/* ============================================================
   FALLBACKS / REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .ys-aurora { display: none; }
  .ys-aurora-fallback { display: block !important; }
  body.aurora-on .highlight { animation: none; }
}

/* No-WebGL fallback */
body.aurora-no-webgl .ys-aurora { display: none; }
body.aurora-no-webgl .ys-aurora-fallback { display: block; }

/* ============================================================
   MOBILE TUNING
   ============================================================ */
@media (max-width: 768px) {
  body.aurora-on .ds-card,
  body.aurora-on .bento-card,
  body.aurora-on .ys-package,
  body.aurora-on .ys-testimonial,
  body.aurora-on .modern-service-card {
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
  }
}
