/* ==========================================================================
   OMNIFLONEX AI — MOTION, BACKGROUND AMBIANCE & CINEMATIC REVEAL SYSTEM
   Unified with OmniflonexAi.com Ultra-Luxury Design System
   ========================================================================== */

/* Fade-In & Reveal Classes for Intersection Observer */
.reveal-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-fade.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-mask {
  position: relative;
  overflow: hidden;
}

.reveal-mask::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 3;
}

.reveal-mask.is-revealed::after {
  transform: scaleX(0);
}

/* Stagger Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ──────────────────────────────────────────────────────────
   AMBIENT FLOATING MESH GLOW ORBS & BACKGROUND AMBIANCE
   ────────────────────────────────────────────────────────── */
.ambient-mesh-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
  animation: meshFloat 18s ease-in-out infinite alternate;
}

.mesh-orb-emerald {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.12), transparent 70%);
  top: -150px;
  left: -150px;
  animation-duration: 20s;
}

.mesh-orb-gold {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.09), transparent 70%);
  bottom: 10%;
  right: -100px;
  animation-duration: 24s;
  animation-direction: alternate-reverse;
}

.mesh-orb-center {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 143, 107, 0.07), transparent 70%);
  top: 40%;
  left: 25%;
  animation-duration: 28s;
}

[data-theme="dark"] .mesh-orb-emerald {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent 70%);
}

[data-theme="dark"] .mesh-orb-gold {
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12), transparent 70%);
}

@keyframes meshFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(40px, 30px, 0) scale(1.08); }
  100% { transform: translate3d(-30px, 50px, 0) scale(0.95); }
}

/* Subtle Floating Light Effect */
@keyframes ambient-drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(15px, -15px) rotate(2deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.ambient-float {
  animation: ambient-drift 12s ease-in-out infinite;
}

/* Luxury Shimmer Accent */
@keyframes gold-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-text {
  background: linear-gradient(90deg, var(--gold) 0%, var(--champagne-light) 50%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gold-shimmer 6s linear infinite;
}

/* Card & Button Shine Animations */
.btn-shine,
.card-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after,
.card-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 70%
  );
  transform: rotate(30deg) translateY(-100%);
  transition: transform 0.75s ease;
  pointer-events: none;
}

.btn-shine:hover::after,
.card-shine:hover::after {
  transform: rotate(30deg) translateY(100%);
}

/* Marquee Continuous Animation for Announcement Bar */
@keyframes marqueeContinuous {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.announcement-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: marqueeContinuous 45s linear infinite;
}

.top-announcement-bar:hover .announcement-track {
  animation-play-state: paused;
}

/* ──────────────────────────────────────────────────────────
   FLUID MAGNETIC LUXURY CUSTOM CURSOR (Matching Main Website)
   ────────────────────────────────────────────────────────── */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, #10b981, #d4af37);
  border-radius: 50%;
  pointer-events: none !important;
  z-index: 999999;
  transform: translate3d(-50%, -50%, 0);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.9), 0 0 20px rgba(212, 175, 55, 0.7);
  will-change: transform;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.2s ease, width 0.2s ease, height 0.2s ease;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(16, 185, 129, 0.55);
  background: rgba(5, 150, 105, 0.03);
  border-radius: 50%;
  pointer-events: none !important;
  z-index: 999998;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform;
  opacity: 0;
  transition: opacity 0.35s ease, width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 20px rgba(5, 150, 105, 0.2), inset 0 0 12px rgba(212, 175, 55, 0.08);
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
}

body.cursor-active .cursor-dot,
body.cursor-active .cursor-ring {
  opacity: 1;
}

body.cursor-hover .cursor-dot {
  width: 8px;
  height: 8px;
  background: #d4af37;
  box-shadow: 0 0 14px #d4af37, 0 0 28px rgba(212, 175, 55, 0.8);
}

body.cursor-hover .cursor-ring {
  width: 54px;
  height: 54px;
  border-color: rgba(212, 175, 55, 0.85);
  background: rgba(212, 175, 55, 0.06);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.3), 0 0 50px rgba(5, 150, 105, 0.2);
}

@media (pointer: coarse), (max-width: 768px) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

/* Hover Zoom Utilities */
.img-zoom-hover {
  overflow: hidden;
}

.img-zoom-hover img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-zoom-hover:hover img {
  transform: scale(1.045);
}

/* Accessibility: Reduced Motion */
@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;
  }
  
  .reveal-fade {
    opacity: 1 !important;
    transform: none !important;
  }
  
  .reveal-mask::after {
    display: none !important;
  }

  .mesh-orb {
    animation: none !important;
  }
}
