/* ============================================
   HIBRAAR SOLUTIONS — Hybrid Motion System CSS v1.0
   Advanced Animations & Interactions
   ============================================ */

/* ============================================
   1. CUSTOM CURSOR
   ============================================ */
.hib-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hib-cursor-dot-inner {
  width: 100%;
  height: 100%;
  background: var(--color-gold, #C9A84C);
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hib-cursor-dot--hover .hib-cursor-dot-inner {
  transform: scale(2);
  background: var(--color-white, #fff);
}

.hib-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              height 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              background 0.3s ease,
              border-color 0.3s ease;
  mix-blend-mode: difference;
}

.hib-cursor-ring--expand {
  width: 60px;
  height: 60px;
  background: rgba(201, 168, 76, 0.15);
  border-color: var(--color-gold, #C9A84C);
}

@media (hover: none) {
  .hib-cursor-dot,
  .hib-cursor-ring {
    display: none !important;
  }
}

/* ============================================
   2. NOISE OVERLAY
   ============================================ */
.hib-noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ============================================
   3. SCROLL PROGRESS BAR
   ============================================ */
.hib-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.1);
}

.hib-scroll-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-gold, #C9A84C), var(--color-blue, #2563EB));
  transition: width 0.1s ease-out;
}

/* ============================================
   4. TEXT REVEAL ANIMATION
   ============================================ */
.hib-text-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.hib-text-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(125%);
  animation: hibTextReveal 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes hibTextReveal {
  0% {
    opacity: 0;
    transform: translateY(125%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   5. FLOATING ELEMENTS
   ============================================ */
@keyframes hibFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(var(--float-amplitude, -10px)) rotate(1deg);
  }
}

/* ============================================
   6. GRADIENT ORBS
   ============================================ */
.hib-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  pointer-events: none;
  animation: hibOrbDrift 14s ease-in-out infinite alternate;
}

.hib-orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.4) 0%, transparent 70%);
  top: -150px;
  right: -100px;
}

.hib-orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.3) 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
  animation-delay: -7s;
}

@keyframes hibOrbDrift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(60px, 40px) scale(1.15);
  }
}

/* ============================================
   7. SCROLL REVEAL
   ============================================ */
.hib-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.hib-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.hib-reveal--left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.hib-reveal--left.hib-reveal--visible {
  opacity: 1;
  transform: translateX(0);
}

.hib-reveal--right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.hib-reveal--right.hib-reveal--visible {
  opacity: 1;
  transform: translateX(0);
}

.hib-reveal--scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.hib-reveal--scale.hib-reveal--visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.hib-reveal--delay-1 { transition-delay: 0.1s; }
.hib-reveal--delay-2 { transition-delay: 0.2s; }
.hib-reveal--delay-3 { transition-delay: 0.3s; }
.hib-reveal--delay-4 { transition-delay: 0.4s; }
.hib-reveal--delay-5 { transition-delay: 0.5s; }

/* ============================================
   8. MARQUEE
   ============================================ */
[data-marquee] {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: hibMarquee 38s linear infinite;
}

[data-marquee]:hover {
  animation-play-state: paused;
}

@keyframes hibMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ============================================
   9. SPINNING BADGE
   ============================================ */
@keyframes hibSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ============================================
   10. IMAGE HOVER ZOOM
   ============================================ */
[data-zoom] {
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* ============================================
   11. PULSE GLOW
   ============================================ */
@keyframes hibPulseGlow {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

.hib-pulse-glow {
  animation: hibPulseGlow 4s ease-in-out infinite;
}

/* ============================================
   12. SHIMMER EFFECT
   ============================================ */
@keyframes hibShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.hib-shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: hibShimmer 3s infinite;
}

/* ============================================
   13. BORDER GLOW ON HOVER
   ============================================ */
.hib-glow-hover {
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.hib-glow-hover:hover {
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.3),
              0 0 60px rgba(201, 168, 76, 0.15);
  border-color: rgba(201, 168, 76, 0.5);
}

/* ============================================
   14. REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .hib-cursor-dot,
  .hib-cursor-ring,
  .hib-noise-overlay,
  .hib-scroll-progress {
    display: none !important;
  }

  .hib-text-word {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hib-reveal,
  .hib-reveal--left,
  .hib-reveal--right,
  .hib-reveal--scale {
    opacity: 1;
    transform: none;
    transition: none;
  }

  [data-marquee] {
    animation: none;
  }

  .hib-orb {
    animation: none;
  }

  .hib-pulse-glow {
    animation: none;
  }

  .hib-shimmer {
    animation: none;
  }
}
