/* ═══════════════════════════════════════════════════════
   ZERMISH — Effects & Animations
   ═══════════════════════════════════════════════════════ */

/* ── Entrance Animations (GSAP fallback) ────────────── */
.is-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ── Floating Sparkles ─────────────────────────────────── */
.sparkle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: sparkle-float 6s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(194, 163, 103, 0.4);
}

@keyframes sparkle-float {
  0%   { opacity: 0; transform: translateY(0) scale(0.5); }
  15%  { opacity: 0.8; }
  50%  { opacity: 0.4; transform: translateY(-40px) scale(1); }
  85%  { opacity: 0.7; }
  100% { opacity: 0; transform: translateY(-80px) scale(0.3); }
}

/* ── Gold Dust Particles ───────────────────────────────── */
.gold-dust {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold-light);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: dust-drift var(--dust-duration, 8s) var(--dust-delay, 0s) ease-in-out infinite;
}

@keyframes dust-drift {
  0%   { opacity: 0; transform: translate(0, 0) scale(0); }
  20%  { opacity: 0.6; transform: scale(1); }
  80%  { opacity: 0.3; }
  100% { opacity: 0; transform: translate(var(--dust-dx, 30px), var(--dust-dy, -60px)) scale(0); }
}

/* ── Lens Flare ────────────────────────────────────────── */
.lens-flare {
  position: fixed;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(194, 163, 103, 0.08) 0%,
    rgba(194, 163, 103, 0.02) 40%,
    transparent 60%
  );
  pointer-events: none;
  z-index: var(--z-rays);
  opacity: 0;
  transition: opacity 1s var(--ease-luxury);
}

.lens-flare.is-visible {
  opacity: 1;
}

/* ── Shimmer effect on gold text ───────────────────────── */
.shimmer-text {
  background: linear-gradient(
    110deg,
    var(--gold-dark) 0%,
    var(--gold-light) 45%,
    var(--white) 50%,
    var(--gold-light) 55%,
    var(--gold-dark) 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position: -100% 50%; }
}

/* ── Crystal Reflection ────────────────────────────────── */
.crystal-reflection {
  position: absolute;
  width: 1px;
  height: 40px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(194, 163, 103, 0.15),
    transparent
  );
  transform: rotate(45deg);
  pointer-events: none;
  animation: crystal-glint 5s ease-in-out infinite;
}

@keyframes crystal-glint {
  0%, 100% { opacity: 0; transform: rotate(45deg) translateY(-20px); }
  50%      { opacity: 1; transform: rotate(45deg) translateY(20px); }
}

/* ── Glass Sphere CSS ──────────────────────────────────── */
.glass-sphere {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(194, 163, 103, 0.08) 0%,
    rgba(10, 41, 35, 0.3) 50%,
    rgba(10, 41, 35, 0.5) 100%
  );
  border: 1px solid rgba(194, 163, 103, 0.08);
  box-shadow:
    inset 0 0 20px rgba(194, 163, 103, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ── Floating Pearl CSS ────────────────────────────────── */

.pearl {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(245, 240, 232, 0.6) 0%,
    rgba(245, 240, 232, 0.2) 30%,
    rgba(194, 163, 103, 0.15) 60%,
    rgba(194, 163, 103, 0.05) 100%
  );
  box-shadow:
    inset -2px -2px 6px rgba(0, 0, 0, 0.2),
    inset 2px 2px 4px rgba(245, 240, 232, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

/* ── Geometric Gold Shapes ─────────────────────────────── */
.geo-shape {
  position: absolute;
  border: 1px solid rgba(194, 163, 103, 0.15);
  pointer-events: none;
  opacity: 0.4;
}

.geo-shape--diamond {
  width: 20px;
  height: 20px;
  transform: rotate(45deg);
}

.geo-shape--hex {
  width: 30px;
  height: 17px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: rgba(194, 163, 103, 0.04);
  border: none;
}

/* ── Page Load Overlay ─────────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--emerald-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-luxury);
}

.page-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.page-loader__text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.4em;
  text-transform: uppercase;
}
