/**
 * ============================================================================
 * BAHADI ENGINEERING - LUXURY DYNAMIC ANIMATIONS & INTERACTION ENGINE
 * High-Performance, Pure GPU-Accelerated (120 FPS), Zero-Jank Architecture
 * Inspired by enma.sa: Flat DOM Layers, Zero Continuous Loops, Native Compositing
 * ============================================================================
 */

:root {
  --anim-ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
  --anim-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --anim-ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
  --glow-cyan: rgba(0, 181, 226, 0.45);
  --glow-navy: rgba(11, 20, 102, 0.35);
}

/* --------------------------------------------------------------------------
   1. GLOBAL NATIVE HIGH-PERFORMANCE HARDWARE SCROLLING (Zero Jitter)
   -------------------------------------------------------------------------- */
html {
  -webkit-overflow-scrolling: touch !important;
  scroll-behavior: auto !important; /* Allows zero-lag native mouse-wheel & touchpad scrolling */
}

body {
  overflow-x: hidden !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeSpeed !important;
}

/* --------------------------------------------------------------------------
   2. UNIVERSAL GPU BLUR ELIMINATION (Zero Compositor Stutter)
   -------------------------------------------------------------------------- */
.site-header,
.site-header.scrolled,
.header-container,
.site-header.scrolled .header-container,
.wix-cat-tab,
.hero-discover,
.discover-circle,
.map-fast-overlay-bar,
.map-pin-label,
.modal-overlay,
.modal-container,
.mobile-drawer-backdrop {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* --------------------------------------------------------------------------
   3. FLOATING GLASSMORPHISM HEADER (120 FPS Pure Hardware Layer)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed !important;
  top: 14px !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 100 !important;
  pointer-events: none !important;
  box-sizing: border-box !important;
  transition: top 0.28s var(--anim-ease-luxury) !important;
}

.site-header.scrolled {
  top: 10px !important;
}

.header-container {
  pointer-events: auto !important;
  width: calc(100% - 24px) !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  height: 96px !important;
  min-height: 96px !important;
  max-height: 96px !important;
  padding: 0 32px !important;
  border-radius: 28px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 8px 30px rgba(11, 20, 102, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  transition: box-shadow 0.28s ease, background-color 0.28s ease !important;
}

.site-header.scrolled .header-container {
  background: #FFFFFF !important;
  box-shadow: 0 14px 40px rgba(11, 20, 102, 0.12) !important;
}

@media (max-width: 992px) {
  .site-header,
  .site-header.scrolled {
    top: 8px !important;
  }
  
  .header-container,
  .site-header.scrolled .header-container {
    width: calc(100% - 16px) !important;
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    padding: 0 16px !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 6px 24px rgba(11, 20, 102, 0.08) !important;
  }
}

/* --------------------------------------------------------------------------
   4. ULTRA-SMOOTH SCROLL REVEALS - LUXURY 120 FPS NATIVE GPU ENGINE
   Dynamic animations trigger when reaching each section with silky staggered easing.
   Once revealed, elements sit cleanly in static layout with zero GPU overhead.
   -------------------------------------------------------------------------- */
.b-reveal {
  opacity: 0 !important;
  transform: translate3d(0, 32px, 0) !important;
  transition: opacity 0.75s var(--anim-ease-luxury),
              transform 0.75s var(--anim-ease-luxury) !important;
  will-change: opacity, transform;
}

.b-reveal-scale {
  opacity: 0 !important;
  transform: scale(0.93) translate3d(0, 22px, 0) !important;
  transition: opacity 0.75s var(--anim-ease-luxury),
              transform 0.75s var(--anim-ease-luxury) !important;
  will-change: opacity, transform;
}

.b-reveal-left {
  opacity: 0 !important;
  transform: translate3d(-32px, 0, 0) !important;
  transition: opacity 0.75s var(--anim-ease-luxury),
              transform 0.75s var(--anim-ease-luxury) !important;
  will-change: opacity, transform;
}

.b-reveal-right {
  opacity: 0 !important;
  transform: translate3d(32px, 0, 0) !important;
  transition: opacity 0.75s var(--anim-ease-luxury),
              transform 0.75s var(--anim-ease-luxury) !important;
  will-change: opacity, transform;
}

.b-reveal.is-revealed,
.b-reveal.revealed,
.b-reveal-scale.is-revealed,
.b-reveal-scale.revealed,
.b-reveal-left.is-revealed,
.b-reveal-left.revealed,
.b-reveal-right.is-revealed,
.b-reveal-right.revealed {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
}

/* Luxury Cascade Stagger Delays */
.delay-100 { transition-delay: 80ms !important; }
.delay-150 { transition-delay: 140ms !important; }
.delay-200 { transition-delay: 200ms !important; }
.delay-250 { transition-delay: 260ms !important; }
.delay-300 { transition-delay: 320ms !important; }
.delay-350 { transition-delay: 380ms !important; }
.delay-400 { transition-delay: 440ms !important; }
.delay-500 { transition-delay: 520ms !important; }

/* --------------------------------------------------------------------------
   5. HERO DYNAMIC TEXT ENTRANCE ANIMATIONS (Silky 120 FPS GPU Entrance)
   Runs smoothly on initial site open, then collapses to static flat layout
   -------------------------------------------------------------------------- */
.hero-title {
  animation: heroTitleEntrance 0.85s var(--anim-ease-luxury) 0.15s both !important;
}

.hero-title span {
  display: block !important;
  animation: heroAccentEntrance 0.9s var(--anim-ease-luxury) 0.32s both !important;
}

.hero-subtitle {
  animation: heroSubtitleEntrance 0.85s var(--anim-ease-luxury) 0.45s both !important;
}

.hero-subtitle::before {
  animation: heroLineExpand 0.7s var(--anim-ease-luxury) 0.65s both !important;
}

.hero-discover {
  animation: heroDiscoverEntrance 0.85s var(--anim-ease-luxury) 0.65s both !important;
}

.hero-discover .discover-arrow {
  display: inline-block !important;
  animation: none !important;
}

/* Dynamic Entrance for Inner Page Hero Titles */
.about-hero-main-title,
.gallery-hero-title,
.contact-headline {
  animation: heroTitleEntrance 0.85s var(--anim-ease-luxury) 0.15s both !important;
}

.about-hero-sub,
.gallery-hero-sub,
.contact-info-col p {
  animation: heroSubtitleEntrance 0.85s var(--anim-ease-luxury) 0.35s both !important;
}

@keyframes heroTitleEntrance {
  0% {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroAccentEntrance {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroSubtitleEntrance {
  0% {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroLineExpand {
  0% {
    width: 0;
    opacity: 0;
  }
  100% {
    width: 24px;
    opacity: 1;
  }
}

@keyframes heroDiscoverEntrance {
  0% {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   6. HERO LUXURY AMBIENT LIGHTS (Static Gradients - Zero Compositor Loops)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-ambient-lights {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-ambient-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.42;
  animation: none !important;
}

.hero-ambient-orb-1 {
  width: 440px;
  height: 440px;
  top: 8%;
  right: 4%;
  background: radial-gradient(circle, rgba(0, 181, 226, 0.26) 0%, rgba(0, 181, 226, 0.06) 45%, transparent 70%);
}

.hero-ambient-orb-2 {
  width: 500px;
  height: 500px;
  bottom: 4%;
  left: 8%;
  background: radial-gradient(circle, rgba(11, 20, 102, 0.40) 0%, rgba(0, 181, 226, 0.10) 45%, transparent 70%);
}

.hero-ambient-orb-3 {
  width: 320px;
  height: 320px;
  top: 38%;
  left: 44%;
  background: radial-gradient(circle, rgba(224, 169, 79, 0.16) 0%, rgba(0, 181, 226, 0.04) 50%, transparent 70%);
}

/* --------------------------------------------------------------------------
   7. FERRIS WHEEL RADAR RINGS & PODS (Pure Hardware Hover)
   -------------------------------------------------------------------------- */
.center-card-svg-frame {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  transform: rotate(45deg) !important;
  animation: none !important;
}

.center-card-frame-dots .frame-dot {
  animation: none !important;
  box-shadow: 0 0 8px rgba(0, 181, 226, 0.6) !important;
}

/* Static Ferris Pods (Zero Movement on Click, Touch, or Hover - 100% Static Orbit) */
.ferris-wheel-track,
.ferris-pod,
.ferris-pod-inner,
.pod-img-icon,
.pod-label {
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.ferris-pod {
  cursor: default !important;
  transition: none !important;
}

.ferris-pod-inner {
  transition: none !important;
}

.pod-img-icon,
.ferris-pod-inner .pod-img-icon {
  transform: none !important;
  transition: none !important;
}

/* Enforce Exact Static Counter-Rotation for all 8 Pod Inners */
.ferris-pod[data-index="0"] .ferris-pod-inner { transform: rotate(0deg) !important; }
.ferris-pod[data-index="1"] .ferris-pod-inner { transform: rotate(-45deg) !important; }
.ferris-pod[data-index="2"] .ferris-pod-inner { transform: rotate(-90deg) !important; }
.ferris-pod[data-index="3"] .ferris-pod-inner { transform: rotate(-135deg) !important; }
.ferris-pod[data-index="4"] .ferris-pod-inner { transform: rotate(-180deg) !important; }
.ferris-pod[data-index="5"] .ferris-pod-inner { transform: rotate(-225deg) !important; }
.ferris-pod[data-index="6"] .ferris-pod-inner { transform: rotate(-270deg) !important; }
.ferris-pod[data-index="7"] .ferris-pod-inner { transform: rotate(-315deg) !important; }

/* Cancel Any Hover, Active, Focus or Click Movement */
.ferris-pod:hover,
.ferris-pod:active,
.ferris-pod:focus,
.ferris-pod.active,
.ferris-pod-inner:hover,
.ferris-pod-inner:active,
.ferris-pod-inner:focus,
.ferris-pod-inner.active {
  animation: none !important;
}

.ferris-pod:hover .pod-img-icon,
.ferris-pod:active .pod-img-icon,
.ferris-pod.active .pod-img-icon,
.pod-img-icon:hover,
.pod-img-icon:active {
  transform: none !important;
  transition: none !important;
}

/* --------------------------------------------------------------------------
   8. BUTTON LIQUID SHIMMER & HOVER DYNAMICS (Pure GPU TranslateX)
   -------------------------------------------------------------------------- */
.enma-profile-btn,
.wix-showcase-btn,
.map-load-interactive-btn,
.map-open-native-btn {
  position: relative !important;
  overflow: hidden !important;
  transition: transform 0.3s var(--anim-ease-bounce),
              box-shadow 0.3s ease,
              background-color 0.3s ease !important;
}

.enma-profile-btn::after,
.wix-showcase-btn::after {
  content: '' !important;
  position: absolute !important;
  top: -50% !important;
  left: 0 !important;
  width: 60% !important;
  height: 200% !important;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  ) !important;
  transform: translate3d(-200%, 0, 0) rotate(30deg) !important;
  pointer-events: none !important;
}

.enma-profile-btn:hover::after,
.wix-showcase-btn:hover::after {
  animation: buttonShimmerSweep 0.75s ease-out forwards !important;
}

@keyframes buttonShimmerSweep {
  0%   { transform: translate3d(-200%, 0, 0) rotate(30deg); }
  100% { transform: translate3d(350%, 0, 0) rotate(30deg); }
}

.enma-profile-btn:hover,
.wix-showcase-btn:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 10px 25px rgba(0, 181, 226, 0.4) !important;
}

.enma-profile-btn:hover .enma-profile-btn-icon svg,
.wix-showcase-btn:hover svg {
  transform: translateY(2px) scale(1.08);
  transition: transform 0.25s var(--anim-ease-bounce);
}

/* --------------------------------------------------------------------------
   9. SATELLITE MAP RADAR BEACON (Ultra-Lightweight Pure GPU Pulse)
   -------------------------------------------------------------------------- */
@keyframes mapBeaconPulse {
  0% {
    transform: scale(0.65);
    opacity: 0.9;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.map-pin-pulse-container {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  z-index: 5 !important;
  pointer-events: none !important;
}

.map-pin-pulse-ring {
  position: absolute !important;
  top: 14px !important;
  left: 50% !important;
  width: 48px !important;
  height: 48px !important;
  margin-left: -24px !important;
  margin-top: -24px !important;
  border-radius: 50% !important;
  border: 2px solid #00B5E2 !important;
  box-shadow: 0 0 14px rgba(0, 181, 226, 0.6) !important;
  animation: mapBeaconPulse 2.8s cubic-bezier(0.16, 1, 0.3, 1) infinite !important;
  pointer-events: none !important;
  will-change: transform, opacity;
}

.map-pin-pulse-ring.delay {
  display: block !important;
  animation-delay: 1.4s !important;
}

.map-pin-icon-wrapper {
  position: relative !important;
  z-index: 2 !important;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4)) !important;
  transition: transform 0.3s var(--anim-ease-bounce) !important;
}

.map-pin-pulse-container:hover .map-pin-icon-wrapper {
  transform: translateY(-4px) scale(1.1) !important;
}

/* --------------------------------------------------------------------------
   10. CORE VALUES CARDS DYNAMICS (Zero Reflow Hover)
   -------------------------------------------------------------------------- */
.core-value-card {
  transition: transform 0.35s var(--anim-ease-luxury),
              box-shadow 0.35s ease !important;
  cursor: default !important;
  will-change: auto !important;
}

.core-value-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
}

.core-value-card .core-value-icon img {
  transition: transform 0.35s var(--anim-ease-bounce) !important;
}

.core-value-card:hover .core-value-icon img {
  transform: scale(1.1) translateY(-3px) !important;
}

/* --------------------------------------------------------------------------
   11. WIX 2D GPU PROJECT CAROUSEL (Eliminates 3D Matrix Recalculation on Scroll)
   -------------------------------------------------------------------------- */
.wix-3d-stage-wrapper {
  perspective: none !important;
  transform-style: flat !important;
}

.wix-3d-cards-track {
  transform-style: flat !important;
}

.wix-3d-card {
  transition: transform 0.4s var(--anim-ease-smooth),
              opacity 0.4s var(--anim-ease-smooth) !important;
  backface-visibility: visible !important;
  -webkit-backface-visibility: visible !important;
  transform-style: flat !important;
  will-change: auto !important;
}

.wix-3d-card.active {
  transform: translate3d(0, 0, 0) scale(1) !important;
  opacity: 1 !important;
  z-index: 10 !important;
  filter: none !important;
}

.wix-3d-card.next-1 {
  transform: translate3d(240px, 0, 0) scale(0.86) !important;
  opacity: 0.85 !important;
  z-index: 6 !important;
}

.wix-3d-card.prev-1 {
  transform: translate3d(-240px, 0, 0) scale(0.86) !important;
  opacity: 0.85 !important;
  z-index: 6 !important;
}

.wix-3d-card.next-2 {
  transform: translate3d(420px, 0, 0) scale(0.72) !important;
  opacity: 0.45 !important;
  z-index: 3 !important;
}

.wix-3d-card.prev-2 {
  transform: translate3d(-420px, 0, 0) scale(0.72) !important;
  opacity: 0.45 !important;
  z-index: 3 !important;
}

.wix-3d-card.hidden {
  transform: translate3d(0, 0, 0) scale(0.5) !important;
  opacity: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 992px) {
  .wix-3d-card.next-1 {
    transform: translate3d(160px, 0, 0) scale(0.84) !important;
    opacity: 0.75 !important;
  }
  .wix-3d-card.prev-1 {
    transform: translate3d(-160px, 0, 0) scale(0.84) !important;
    opacity: 0.75 !important;
  }
  .wix-3d-card.next-2,
  .wix-3d-card.prev-2 {
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@media (max-width: 768px) {
  .wix-3d-card.next-1 {
    transform: translate3d(70px, 0, 0) scale(0.8) !important;
    opacity: 0.55 !important;
  }
  .wix-3d-card.prev-1 {
    transform: translate3d(-70px, 0, 0) scale(0.8) !important;
    opacity: 0.55 !important;
  }
}

.wix-3d-card.active:hover .wix-browser-body img {
  transform: scale(1.04) !important;
}

.wix-browser-body img {
  transition: transform 0.45s var(--anim-ease-luxury) !important;
}

.wix-3d-nav-btn {
  transition: transform 0.3s var(--anim-ease-bounce),
              background-color 0.3s ease,
              box-shadow 0.3s ease !important;
}

.wix-3d-nav-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 25px rgba(0, 181, 226, 0.45) !important;
}

/* --------------------------------------------------------------------------
   12. BACK-TO-TOP BUTTON (REMOVED)
   -------------------------------------------------------------------------- */
.b-back-to-top,
#bBackToTopBtn,
.enma-back-top-btn,
button.enma-back-top-btn,
a.enma-back-top-btn {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* --------------------------------------------------------------------------
   13. ACCORDION (MISSION & VISION) SMOOTH TRANSITIONS
   -------------------------------------------------------------------------- */
.mission-vision-item {
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s var(--anim-ease-luxury) !important;
}

.mission-vision-item:hover {
  border-color: rgba(0, 181, 226, 0.45) !important;
  transform: translateY(-2px);
}

.mission-vision-btn .mission-vision-icon-wrap {
  transition: transform 0.35s var(--anim-ease-bounce), background-color 0.3s ease !important;
}

.mission-vision-item.is-open .mission-vision-icon-wrap {
  transform: rotate(90deg);
  background-color: rgba(0, 181, 226, 0.15);
}

.mission-vision-content-box {
  transition: max-height 0.4s var(--anim-ease-luxury), opacity 0.35s ease !important;
}

/* --------------------------------------------------------------------------
   14. PORTFOLIO PHOTO CELLS SMOOTH HOVER & ZOOM
   -------------------------------------------------------------------------- */
.photo-cell {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--anim-ease-luxury), box-shadow 0.4s var(--anim-ease-luxury) !important;
}

.photo-cell .cell-img {
  transition: transform 0.5s var(--anim-ease-luxury) !important;
}

.photo-cell:hover .cell-img {
  transform: scale(1.06);
}

.photo-cell:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0, 181, 226, 0.22) !important;
}

/* --------------------------------------------------------------------------
   15. AESTHETIC MICRO-INTERACTIONS (120 FPS Pure GPU Motion)
   Subtle, elegant interactive touches that enhance luxury feel without layout reflows.
   -------------------------------------------------------------------------- */
.nav-link {
  position: relative !important;
  transition: color 0.25s ease !important;
}

.nav-link::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0px !important;
  left: 50% !important;
  width: 0 !important;
  height: 2px !important;
  background: linear-gradient(90deg, #00B5E2, #16c4df) !important;
  border-radius: 2px !important;
  transform: translateX(-50%) !important;
  transition: width 0.3s var(--anim-ease-luxury) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 65% !important;
}

/* Social Media Icons Hover Elevation */
.enma-social-tile {
  transition: transform 0.28s var(--anim-ease-bounce),
              background-color 0.28s ease,
              box-shadow 0.28s ease !important;
}

.enma-social-tile:hover {
  transform: translateY(-3px) scale(1.08) !important;
  background-color: #00B5E2 !important;
  box-shadow: 0 6px 18px rgba(0, 181, 226, 0.45) !important;
}

/* Footer Links Micro Shift */
.enma-footer-list li a {
  transition: color 0.25s ease, transform 0.25s ease !important;
  display: inline-block !important;
}

.enma-footer-list li a:hover {
  color: #00B5E2 !important;
  transform: translateX(-4px) !important;
}

[dir="ltr"] .enma-footer-list li a:hover {
  transform: translateX(4px) !important;
}

/* Carousel Control Arrow Spring Hover */
.wix-3d-nav-btn:hover,
.ferris-arrow:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 8px 24px rgba(0, 181, 226, 0.4) !important;
}

.wix-3d-nav-btn:active,
.ferris-arrow:active {
  transform: scale(0.96) !important;
}

/* --------------------------------------------------------------------------
   16. REDUCED MOTION SAFEGUARD
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .b-reveal,
  .b-reveal-scale,
  .b-reveal-left,
  .b-reveal-right {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
